/* Asan — پلتفرم خدمات مالی */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-arabic-500.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/fonts/vazirmatn-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/fonts/vazirmatn-arabic-800.woff2) format('woff2'); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/fonts/vazirmatn-latin-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/fonts/vazirmatn-latin-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --navy: #0e225b;
  --navy-700: #1a3274;
  --navy-50: #eef1f8;
  --gold: #ffc34a;
  --gold-600: #e9a817;
  --gold-50: #fff7e3;
  --gray: #e6e7e8;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #0f1729;
  --text-2: #4a5468;
  --text-3: #8790a3;
  --line: #e3e6ec;
  --danger: #c62f3c;
  --danger-50: #fdeef0;
  --ok: #1a8a5a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 34, 91, .06), 0 8px 24px rgba(14, 34, 91, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-feature-settings: "tnum"; }
.muted { color: var(--text-2); }
.hidden { display: none !important; }

/* ── brand ── */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: auto; }
.brand-name { font-weight: 800; font-size: 22px; line-height: 1; color: var(--navy); }
.brand-sub { font-size: 11.5px; color: var(--text-3); line-height: 1.4; margin-top: 4px; }
.brand.on-dark .brand-name { color: #fff; }
.brand.on-dark .brand-sub { color: rgba(255,255,255,.7); }

/* ── buttons & fields ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-700); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover:not(:disabled) { background: var(--gold-600); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-link { background: none; border: 0; color: var(--navy); font-weight: 600; cursor: pointer; padding: 4px 0; }
.btn-link:disabled { color: var(--text-3); cursor: default; }
.btn-block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(14,34,91,.1); }
.input.has-error { border-color: var(--danger); }
.input.ltr { text-align: left; letter-spacing: .5px; }
.input-wrap { position: relative; }
.input-suffix { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 14px; pointer-events: none; }
.input-wrap .input { padding-inline-end: 64px; }
.error-text { color: var(--danger); font-size: 13.5px; margin-top: 6px; min-height: 0; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.8; }
.alert svg { flex: none; margin-top: 3px; }
.alert-danger { background: var(--danger-50); color: var(--danger); }
.alert-info { background: var(--navy-50); color: var(--navy); }
.alert-gold { background: var(--gold-50); color: #7a5300; }

/* ── signup (auth) layout ── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1.05fr; }
.auth-side {
  position: relative; overflow: hidden; background: var(--navy); color: #fff;
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side .circuit { position: absolute; left: -30px; bottom: -40px; width: 300px; opacity: .9; }
.auth-side h1 { font-size: 34px; line-height: 1.5; margin: 0 0 14px; font-weight: 800; max-width: 440px; }
.auth-side h1 span { color: var(--gold); }
.auth-side p { color: rgba(255,255,255,.78); max-width: 420px; margin: 0; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 420px; position: relative; }
.auth-points li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); font-size: 14.5px; }
.auth-points svg { color: var(--gold); flex: none; }
.auth-side .copy { font-size: 12.5px; color: rgba(255,255,255,.55); position: relative; }

.auth-main { display: flex; flex-direction: column; padding: 32px 24px; }
.auth-main-top { display: none; }
.auth-card { width: 100%; max-width: 420px; margin: auto; }
.auth-card h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: var(--navy); }
.auth-card .lead { color: var(--text-2); margin: 0 0 26px; font-size: 14.5px; }
.auth-note { font-size: 12.5px; color: var(--text-3); margin-top: 16px; text-align: center; }
.auth-footer { text-align: center; font-size: 12.5px; color: var(--text-3); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding-top: 24px; }
.auth-footer a { color: var(--text-2); text-decoration: none; }
.auth-footer a:hover { color: var(--navy); }

.otp-row { display: flex; gap: 10px; direction: ltr; justify-content: space-between; margin-bottom: 8px; }
.otp-row input {
  width: 100%; max-width: 64px; height: 60px; text-align: center; font-size: 24px; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.otp-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(14,34,91,.1); }
.otp-row.has-error input { border-color: var(--danger); }
.otp-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--text-2); margin: 10px 0 22px; }
.sent-to { display: inline-flex; gap: 6px; align-items: center; }
.welcome-badge { width: 64px; height: 64px; border-radius: 18px; background: var(--gold-50); color: var(--gold-600); display: grid; place-items: center; margin-bottom: 18px; }
.step-anim { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── app shell ── */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  background: var(--navy); color: #fff; padding: 22px 16px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
}
.sidebar .brand { padding: 4px 8px 22px; }
.nav-label { font-size: 11.5px; color: rgba(255,255,255,.45); padding: 14px 12px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 14.5px; border: 0; background: none; cursor: pointer; text-align: start;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(255,195,74,.14); color: var(--gold); font-weight: 700; }
.nav-item svg { flex: none; opacity: .95; }
.nav-item .soon { margin-inline-start: auto; font-size: 10.5px; background: rgba(255,255,255,.1); padding: 1px 7px; border-radius: 6px; color: rgba(255,255,255,.65); font-weight: 500; }
.sidebar-user { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 8px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.sidebar-user .u-name { font-weight: 700; font-size: 14px; line-height: 1.4; }
.sidebar-user .u-mobile { font-size: 12px; color: rgba(255,255,255,.6); }
.sidebar-user .logout { margin-inline-start: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: 6px; border-radius: 8px; }
.sidebar-user .logout:hover { color: #fff; background: rgba(255,255,255,.08); }

.nav-scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 800; color: var(--navy); }
.topbar .top-pill { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--navy-50); color: var(--navy); padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-inline-start: -8px; border-radius: 10px; cursor: pointer; color: var(--navy); }
.content { padding: 28px 32px 48px; max-width: 1180px; width: 100%; }
.app-footer { margin-top: auto; padding: 18px 32px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.app-footer a { color: var(--text-2); text-decoration: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.section-title { font-size: 16.5px; font-weight: 800; margin: 0 0 14px; color: var(--navy); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.section-head .section-title { margin: 0; }

  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, #1b3a8a 100%);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.srv {
  text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 6px;
}
.srv:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.srv-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; margin-bottom: 6px; }
.srv-name { font-weight: 800; font-size: 15.5px; color: var(--text); }
.srv-desc { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.srv-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.tag { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.tag-gold { background: var(--gold-50); color: #8a5d00; }
.tag-navy { background: var(--navy-50); color: var(--navy); }
.tag-gray { background: #f0f1f4; color: var(--text-2); }
.srv-foot .go { color: var(--navy); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 14px; }
.step b { display: block; font-size: 14.5px; }
.step span { font-size: 13px; color: var(--text-2); }

.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.preset {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 8px; cursor: pointer; text-align: center;
  font-weight: 800; color: var(--navy); font-size: 15px; line-height: 1.5;
}
.preset small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); }
.preset:hover { border-color: var(--navy); }
.preset.active { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; color: var(--text-2); }
.summary-row b { color: var(--text); font-weight: 700; }
.summary-row.total { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 14px; font-size: 16px; color: var(--navy); }
.summary-row.total b { color: var(--navy); font-size: 19px; font-weight: 800; }
.words { font-size: 12.5px; color: var(--text-3); margin-top: -8px; margin-bottom: 14px; min-height: 20px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; color: var(--text-3); font-weight: 600; font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table a { font-weight: 700; text-decoration: none; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; color: var(--text-3); padding: 26px 10px; font-size: 14px; }

/* ── pre-invoice ── */
.invoice { max-width: 860px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--navy); }
.inv-title { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; }
.inv-meta { font-size: 13.5px; color: var(--text-2); display: grid; gap: 2px; }
.inv-meta b { color: var(--text); }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.party { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.party h3 { margin: 0 0 8px; font-size: 13.5px; color: var(--navy); font-weight: 800; display: flex; gap: 8px; align-items: center; }
.party dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.party dt { color: var(--text-3); }
.party dd { margin: 0; font-weight: 600; }
.inv-items th, .inv-items td { text-align: start; }
.inv-items th:last-child, .inv-items td:last-child { text-align: end; }
.inv-items thead th { background: var(--navy-50); color: var(--navy); border-bottom: 0; }
.inv-items thead th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.inv-items thead th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.inv-totals { margin-inline-start: auto; max-width: 340px; margin-top: 12px; }
.inv-note { font-size: 12.5px; color: var(--text-2); margin-top: 18px; line-height: 1.9; }
.inv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-unpaid { background: var(--gold-50); color: #8a5d00; }
.status-paid { background: #e7f6ef; color: var(--ok); }

/* ── modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 50, .45); display: grid; place-items: center; padding: 18px; z-index: 50; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 440px; padding: 26px; box-shadow: 0 20px 60px rgba(10,20,50,.25); animation: rise .2s ease; position: relative; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--text-3); }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.modal h3 { margin: 0 0 8px; font-size: 18.5px; color: var(--navy); font-weight: 800; }
.modal p { margin: 0 0 16px; color: var(--text-2); font-size: 14.5px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }

/* ── static pages ── */
.page-top { background: #fff; border-bottom: 1px solid var(--line); }
.page-top .in { max-width: 900px; margin: auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.page { max-width: 900px; margin: 0 auto; padding: 28px 20px 48px; }
.page h1 { color: var(--navy); font-size: 26px; margin: 0 0 16px; }
.page h2 { color: var(--navy); font-size: 18px; margin: 26px 0 8px; }
.page p, .page li { color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item .ci-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.contact-item b { display: block; font-size: 13px; color: var(--text-3); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.site-footer .in { max-width: 900px; margin: auto; padding: 18px 20px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-3); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.enamad { margin-inline-start: auto; }
.enamad img { height: 72px; width: auto; }

.loading { min-height: 60vh; display: grid; place-items: center; color: var(--text-3); }


/* ── services: cards, detail page, buy box ── */
a.srv { text-decoration: none; color: inherit; }
.srv-price { font-size: 13px; color: var(--text-2); }
.srv-quota { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--navy); background: var(--navy-50); border-radius: 8px; padding: 5px 9px; margin-top: 6px; line-height: 1.7; }
.srv-quota svg { flex: none; margin-top: 4px; }
.srv-foot .go { white-space: nowrap; }
.srv-price b { font-size: 17px; color: var(--navy); font-weight: 800; }
.srv-price span { color: var(--text-3); }
.srv-foot .tag { white-space: normal; line-height: 1.6; }
.section-link { font-size: 13.5px; font-weight: 700; color: var(--navy); text-decoration: none; }

.hello { position: relative; overflow: hidden; border-radius: 18px; padding: 24px 28px; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, #1b3a8a 100%); }
.hello h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.hello h2 b { color: var(--gold); }
.hello p { margin: 0; color: rgba(255,255,255,.8); font-size: 14.5px; max-width: 560px; position: relative; }
.hello .circuit { position: absolute; left: 18px; top: -40px; width: 120px; opacity: .22; transform: rotate(180deg); }

.empty-state { display: flex; align-items: center; gap: 16px; }
.empty-state .es-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-50); color: var(--gold-600); display: grid; place-items: center; flex: none; }
.empty-state b { display: block; font-size: 15px; }
.empty-state span { font-size: 13.5px; color: var(--text-2); }
.pending { display: grid; gap: 8px; margin-top: 10px; }
.pending-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: inherit; font-size: 14px; flex-wrap: wrap; }
.pending-item:hover { border-color: var(--navy); }
.pending-item b { margin-inline-start: auto; color: var(--navy); }

.svc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.svc-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.svc-title { font-size: 23px; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.5; }
.svc-short { margin: 0; color: var(--text-2); font-size: 14.5px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.svc-main { display: grid; gap: 16px; min-width: 0; }
.svc-buy { position: sticky; top: 86px; }
.svc-text { margin: 0 0 6px; color: var(--text-2); }
.sub-title { font-size: 14.5px; color: var(--navy); margin: 16px 0 8px; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.checks svg { color: var(--ok); flex: none; margin-top: 4px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fact { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.fact span { display: block; font-size: 12.5px; color: var(--text-3); }
.fact b { font-size: 14px; }
.plans-table td, .plans-table th { padding: 9px 10px; }
.fine { font-size: 12.5px; color: var(--text-3); margin: 10px 0 0; }
.terms { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.9; }
.more-terms { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.more-terms summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 10px; }

.buy-price { font-size: 14px; color: var(--text-2); }
.buy-price b { font-size: 26px; font-weight: 800; color: var(--navy); }
.buy-price span { color: var(--text-3); }
.durations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.duration { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 8px; cursor: pointer; display: grid; gap: 2px; text-align: center; }
.duration:hover { border-color: var(--navy); }
.duration.active { border-color: var(--navy); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy); }
.d-len { font-weight: 800; color: var(--navy); font-size: 14.5px; }
.d-off { font-size: 11.5px; color: var(--ok); font-weight: 700; }
.d-off.muted-off { color: var(--text-3); font-weight: 500; }
.summary-row.discount b { color: var(--ok); }
.summary-row.total small { font-size: 13px; font-weight: 600; }
.accept { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 14px 0 4px; cursor: pointer; line-height: 1.8; }
.accept input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--navy); flex: none; }
#buy-btn { margin-top: 10px; }


.top-links { display: flex; align-items: center; gap: 16px; }
.top-links > a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.page-wide { max-width: 1120px; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.back svg { transform: scaleX(-1); }

@media (max-width: 960px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-buy { position: static; order: -1; }
}
@media (max-width: 860px) {
  .svc-title { font-size: 19px; }
  .svc-icon { width: 50px; height: 50px; }
  .facts { grid-template-columns: 1fr; }
  .hello { padding: 20px; }
  .top-links > a:not(.btn) { display: none; }
  .empty-state { align-items: flex-start; }
}

.inv-items-m { display: none; }
.iim { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.iim > b { display: block; color: var(--navy); margin-bottom: 4px; }
.iim .summary-row { padding: 4px 0; font-size: 13.5px; }

/* ── responsive ── */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 18px 20px 20px; }
  .auth-main-top { display: flex; justify-content: center; padding: 6px 0 22px; }
  .auth-card { margin: 0 auto; }
  .auth-footer { margin-top: auto; }

  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 40; transform: translateX(100%); transition: transform .22s ease; }
  .shell.nav-open .sidebar { transform: none; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(10,20,50,.4); z-index: 39; display: none; }
  .shell.nav-open .nav-scrim { display: block; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; height: 60px; }
  .topbar h1 { font-size: 16.5px; }
  .content { padding: 18px 16px 36px; }
  .app-footer { padding: 16px; }
  .parties { grid-template-columns: 1fr; }
  .inv-items-d { display: none; }
  .inv-items-m { display: grid; gap: 8px; }
  .inv-totals { max-width: none; }
  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .srv { padding: 14px; }
  .srv-desc { display: none; }
  .modal-actions { flex-direction: column-reverse; }
}
@media (max-width: 380px) {
  .services { grid-template-columns: 1fr; }
  .otp-row { gap: 6px; }
}

@media print {
  .sidebar, .topbar, .app-footer, .inv-actions, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .content { padding: 0; }
}
