/* =====================================================================
   BD Subscriptions — design system v3 ("the ledger")
   A calm commerce UI that borrows from receipts and bank statements:
   Geist for words, Geist Mono for money, codes and references,
   Bangladesh green for actions, the logo's red sun as one small signature mark.
   Loaded after style.css and overrides it.
   ===================================================================== */
:root {
  --brand: #006A4E;
  --brand-ink: #00664B;
  --brand-deep: #063B2C;
  --sun: #D9381E;                                  /* the red sun — signature only, never for errors */
  --accent: var(--sun);
  --gold-ink: var(--muted);
  --bg: #F6F6F3; --surface: #FFFFFF; --surface2: #F0F1ED; --sunk: #EEF0EB;
  --text: #0D1A15; --muted: #56615B; --faint: #7B857F; --line: #E4E6E1; --line2: #D3D8D1;
  --ok: #0F7A45; --bad: #C42121; --warn: #9A5300;
  --display: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r-sm: 6px; --r: 8px; --r-lg: 10px; --r-xl: 14px;
  --shadow-sm: 0 1px 2px rgba(13,26,21,.05);
  --shadow: 0 1px 2px rgba(13,26,21,.04), 0 6px 16px -8px rgba(13,26,21,.12);
  --shadow-lg: 0 1px 3px rgba(13,26,21,.05), 0 18px 44px -18px rgba(13,26,21,.22);
  --grad: var(--brand);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, var(--surface));
  --gold-soft: color-mix(in srgb, var(--sun) 7%, var(--surface));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111614; --surface: #171D1A; --surface2: #1E2622; --sunk: #0E1311;
    --text: #E9EEEB; --muted: #A3AFA9; --faint: #78847E; --line: #262F2B; --line2: #34403A;
    --ok: #4CC98A; --bad: #F08A8A; --warn: #E9B45A;
    --brand-ink: #5FD3A6; --brand-deep: #0B2C22;
    --brand-soft: color-mix(in srgb, var(--brand) 22%, var(--surface));
    --gold-soft: color-mix(in srgb, var(--sun) 12%, var(--surface));
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 16px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 1px 3px rgba(0,0,0,.3), 0 18px 44px -18px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #111614; --surface: #171D1A; --surface2: #1E2622; --sunk: #0E1311;
  --text: #E9EEEB; --muted: #A3AFA9; --faint: #78847E; --line: #262F2B; --line2: #34403A;
  --ok: #4CC98A; --bad: #F08A8A; --warn: #E9B45A;
  --brand-ink: #5FD3A6; --brand-deep: #0B2C22;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, var(--surface));
  --gold-soft: color-mix(in srgb, var(--sun) 12%, var(--surface));
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 16px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 1px 3px rgba(0,0,0,.3), 0 18px 44px -18px rgba(0,0,0,.6);
}

/* ---------- type ---------- */
body { font-size: 15px; line-height: 1.55; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4 { font-weight: 650; letter-spacing: -.022em; line-height: 1.2; }
.num, .price, .mono, td.num, .ometa span:first-child, .balance-pill { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mono { font-size: .92em; }

/* signature label: a small red square + mono caps (replaces the old gold eyebrow) */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--sun); border-radius: 1px; flex: none; }

/* ---------- controls ---------- */
.btn { border-radius: var(--r); padding: 9px 14px; font-weight: 550; border-color: var(--line2); box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line2)); background: var(--surface2); }
.btn.primary, .btn.primary:hover { background: var(--brand); color: #fff; border: 1px solid color-mix(in srgb, var(--brand) 80%, #000); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--shadow-sm); transform: none; filter: none; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn.primary::after { display: none; }
.btn.dark { border-radius: var(--r); box-shadow: none; }
.btn.dark:hover { background: color-mix(in srgb, var(--text) 85%, var(--brand)); opacity: 1; }
.btn.ghost { box-shadow: none; }
.btn.sm { padding: 5px 10px; border-radius: var(--r-sm); font-size: 13px; }
.btn.lg { padding: 11px 18px; border-radius: var(--r); font-size: 15px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
input, textarea, select { border-radius: var(--r); padding: 10px 12px; border-color: var(--line2); box-shadow: var(--shadow-sm); }
input:focus, textarea:focus, select:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
label { font-size: 13px; font-weight: 550; color: var(--text); }
.icon-btn { border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow-sm); }
.icon-btn:hover { border-color: var(--line2); background: var(--surface2); }
.icon-btn .cnt { background: var(--sun); color: #fff; font-family: var(--mono); font-weight: 600; }
.cur-switch { border-radius: var(--r); }
.cur-switch button { border-radius: var(--r-sm); font-family: var(--mono); font-weight: 500; }

/* ---------- navbar ---------- */
.nav { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.nav .container { height: 64px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.logo img { border-radius: 9px; }
.nav-links a { font-weight: 500; border-radius: var(--r-sm); }
.nav-links a.active { background: transparent; color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--brand-ink); border-radius: 2px; }
.balance-group { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.balance-group .balance-pill { background: transparent; color: var(--text); border-radius: 0; padding: 7px 11px; font-size: 13.5px; font-weight: 600; }
.balance-group .balance-pill svg.i { color: var(--brand-ink); width: 16px; height: 16px; }
.balance-add { display: grid; place-items: center; width: 34px; border-left: 1px solid var(--line); color: #fff; background: var(--brand); }
.balance-add svg.i { width: 16px; height: 16px; stroke-width: 2.5; }
.balance-add:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.balance-group .balance-pill:hover { background: var(--surface2); }
.avatar { background: var(--brand-deep); box-shadow: none; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.menu { border-radius: var(--r-xl); }
.menu a, .menu button { border-radius: var(--r-sm); }
@media (max-width: 1080px) { .nav-links a.active::after { display: none; } .nav-links a.active { background: var(--surface2); } }

/* ---------- page header ---------- */
.page-head { padding: 34px 0 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; margin-top: 10px; font-weight: 650; }
.page-head p { font-size: 15px; margin-top: 6px; }
.sec-head { margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 10px; letter-spacing: -.028em; }
section.block { padding-top: 72px; }

/* ---------- surfaces ---------- */
.panel, .card, .cat, .feature, .ocard, .pdp-section, .doc, .faq details, .contact-card, .ostats > div, .help-card, .auth, .buybox, .receipt, .steps, .modal .box {
  border-radius: var(--r-xl);
}
.panel { padding: 22px 24px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 14px; }
.panel h3 svg.i { width: 17px; height: 17px; }
.buybox, .help-card, .auth { box-shadow: var(--shadow); }
.modal .box { box-shadow: var(--shadow-lg); }
.receipt { box-shadow: var(--shadow-lg); border-color: var(--line); }

/* cards: quiet hover — border + tiny lift of the arrow, no bouncing tiles */
.card, .cat { box-shadow: var(--shadow-sm); }
.card:hover, .cat:hover { transform: none; border-color: var(--line2); box-shadow: var(--shadow); }
.card:hover .ptile, .cat:hover .ptile { transform: none; }
.card .go { border-radius: var(--r); }
.card:hover .go { background: var(--brand); color: #fff; transform: none; }
.card h3 { font-weight: 600; }
.card .bottom { border-top-style: dashed; }
.price { font-family: var(--mono); font-weight: 600; letter-spacing: -.03em; font-size: 20px; }
.buybox .price { font-size: 34px; }
.ptile { border-radius: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ptile.lg { border-radius: 16px; } .ptile.xl { border-radius: 22px; }
.feature .f-ic, .faq-group h2 .g-ic, .step .n span, .contact-card .f-ic { border-radius: var(--r); background: var(--surface2); color: var(--text); }
.feature:hover { transform: none; }

/* badges: square-ish, mono caps, with a status dot */
.badge { border-radius: var(--r-sm); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; }
.badge.ok::before, .badge.bad::before, .badge.warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.brand { text-transform: none; font-family: var(--body); font-size: 12px; letter-spacing: 0; }
.card .badges .badge:not(.ok):not(.bad):not(.warn) { text-transform: none; font-family: var(--body); letter-spacing: 0; font-size: 12px; }

/* tables read like a statement */
table { font-size: 14px; }
th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--faint); padding: 10px 12px; background: var(--surface2); border-bottom: 1px solid var(--line); }
th:first-child { border-top-left-radius: var(--r); } th:last-child { border-top-right-radius: var(--r); }
td { padding: 12px; }
tbody tr:hover td, table tr:hover td { background: color-mix(in srgb, var(--surface2) 55%, transparent); }

/* pagination */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pager-info { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.pager-btns { display: flex; gap: 4px; align-items: center; }
.pg { min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); font-family: var(--mono); font-size: 13px; cursor: pointer; color: var(--muted); }
.pg:hover:not(:disabled) { border-color: var(--line2); color: var(--text); }
.pg.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pg:disabled { opacity: .4; cursor: default; }
.pg svg.i { width: 15px; height: 15px; }
.pg-gap { color: var(--faint); padding: 0 2px; }
.olist + .pager, .olist .pager { border-top: 0; }

/* delivered login details */
.cred { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--sunk); overflow: hidden; margin: 8px 0; }
.cred-head { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 9px 14px 0; }
.cred-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px dashed var(--line2); }
.cred-k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cred-v { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; color: var(--text); }
.cred-a { display: flex; gap: 6px; }
.cred-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cred-row { grid-template-columns: 1fr; gap: 4px; }
  .cred-a { justify-content: flex-end; }
}
.code { border-radius: var(--r-lg); white-space: pre-wrap; }

/* empty states: compact and centred */
.empty { padding: 44px 20px; }
.empty .em-ic { width: 44px; height: 44px; border-radius: var(--r); background: var(--surface2); }
.empty .em-ic svg.i { width: 20px; height: 20px; }
.empty h3 { font-size: 17px; justify-content: center; }
.empty p { max-width: 360px; margin: 0 auto; }

/* ---------- hero ---------- */
.hero::before {
  background:
    linear-gradient(to right, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 30%, #000 20%, transparent 75%);
}
.hero h1 { font-weight: 700; letter-spacing: -.045em; font-size: clamp(38px, 5.4vw, 62px); }
.hero h1 em { background: none; color: var(--brand-ink); -webkit-text-fill-color: currentColor; }
.hero .lead { font-size: 17px; }
.pill-note { border-radius: var(--r); box-shadow: none; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.pill-note b { background: var(--sun); color: #fff; border-radius: var(--r-sm); font-weight: 600; }
.hero-meta .stat b { font-family: var(--mono); font-weight: 600; font-size: 24px; }
.receipt .r-prod b { font-family: var(--body); font-weight: 650; }
.receipt .floater { border-radius: var(--r-lg); }
.marquee { background: var(--surface); }

/* ---------- wallet card: a dark statement card ---------- */
.wallet-card { background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #0B4A37, var(--brand-deep));
  border-radius: var(--r-xl); box-shadow: var(--shadow); }
.wallet-card::after { border: 0; width: 120px; height: 120px; right: 26px; top: 26px; background: var(--sun); opacity: .9; border-radius: 50%; filter: blur(.2px); box-shadow: 0 0 0 18px rgba(217,56,30,.12); }
.wallet-card .amt { font-family: var(--mono); font-weight: 600; font-size: 40px; letter-spacing: -.04em; }
.wallet-card .btn { position: relative; z-index: 1; }
@media (max-width: 600px) { .wallet-card::after { width: 64px; height: 64px; right: 18px; top: 18px; box-shadow: 0 0 0 10px rgba(217,56,30,.12); } }

/* ---------- account area: sidebar + content ---------- */
.acct { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 36px; align-items: start; }
.acct-nav { position: sticky; top: 88px; padding-top: 34px; }
.acct-who { display: flex; gap: 12px; align-items: center; padding: 0 6px 16px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.acct-who .avatar { width: 40px; height: 40px; cursor: default; flex: none; }
.acct-who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who > div > span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.acct-who .avatar { color: #fff; }
.acct-who > div { min-width: 0; }
.acct-links { display: grid; gap: 2px; }
.acct-links a { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--muted); }
.acct-links a:hover { background: var(--surface2); color: var(--text); }
.acct-links a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 8px 9px; }
.acct-links a.on::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--brand-ink); }
.acct-links a .cnt { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.acct-links .sep { height: 1px; background: var(--line); margin: 8px 4px; }
.acct-main { min-width: 0; }
.acct-main > .page-head:first-child { padding-top: 34px; }
@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .acct-nav { position: static; padding-top: 18px; }
  .acct-who { display: none; }
  .acct-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .acct-links a { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; }
  .acct-links a.on { background: var(--text); color: var(--bg); border-color: var(--text); padding: 7px 12px; }
  .acct-links a.on::before, .acct-links .sep, .acct-links .logout { display: none; }
  .acct-main > .page-head:first-child { padding-top: 22px; }
}

/* ---------- my orders ---------- */
.ostats > div { box-shadow: var(--shadow-sm); }
.ostats span { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ostats b { font-family: var(--mono); font-weight: 600; font-size: 22px; }
.ochip { border-radius: var(--r); font-weight: 550; }
.ochip span { font-family: var(--mono); border-radius: var(--r-sm); }
.osearch, .otools select { border-radius: var(--r); }
.ocard { box-shadow: var(--shadow-sm); }
.ocard:hover { box-shadow: var(--shadow); }
.ocard.processing, .ocard.failed { border-left-width: 1px; }
.ocard.processing { box-shadow: inset 3px 0 0 var(--warn), var(--shadow-sm); }
.ocard.failed { box-shadow: inset 3px 0 0 var(--bad), var(--shadow-sm); }
.ocard-info h3 { font-weight: 600; letter-spacing: -.01em; }
.ometa { font-family: var(--mono); font-size: 12px; }
.ocard-side b { font-family: var(--mono); font-weight: 600; font-size: 17px; }
.onote { border-radius: var(--r); }

/* ---------- support ---------- */
.contact-card { box-shadow: var(--shadow-sm); }
.contact-card h3 { font-weight: 650; }

/* ---------- footer ---------- */
footer { background: var(--surface); }
.foot .foot-h { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .09em; }
.soc { border-radius: var(--r); }
.foot-bottom { font-size: 12.5px; }
.cta-band { border-radius: var(--r-xl); background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 30px),
    linear-gradient(135deg, #0B4A37, var(--brand-deep)); }

/* misc */
.toast { border-radius: var(--r); font-weight: 550; }
.auth h1 { font-weight: 650; letter-spacing: -.03em; }
.notice-box > svg { color: var(--sun); }
.soldout-box { border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--sun) 25%, var(--line)); }
.soldout-box b { color: var(--text); }
.soldout-box b svg.i { color: var(--sun); }
.side a.active { border-radius: var(--r); }
.side h5, .toc h5 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .09em; }
.step .n { font-family: var(--mono); color: var(--faint); }
.qty { border-radius: var(--r); }
.legal-tabs a, .chips a { border-radius: var(--r); }
.skeleton, .sk { border-radius: var(--r-lg); }

/* ---------- polish round 1 ---------- */
.badge:has(svg)::before { display: none; }
.receipt .floater.f2 { top: -34px; right: -14px; }
.cta-band .btn.primary, .cta-band .btn.primary:hover { background: #fff; color: var(--brand-deep); border-color: #fff; }
.cta-band .btn.primary:hover { background: #EAF4EF; }

/* wallet: no decorative sun over the button — a small red mark on the label instead */
.wallet-card::after { display: none; }
.wc-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.wc-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(217,56,30,.25); }
.wallet-card .amt { margin-top: 6px; }
.wallet-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .wallet-grid { grid-template-columns: 1fr; } }
.pay-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pay-opt { border-radius: var(--r); padding: 10px; border-width: 1px; }
.pay-opt.on { border-color: var(--brand-ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.pay-info { border-radius: var(--r-lg); }
@media (max-width: 520px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* compact two-line ledger rows */
table.ledger td { padding: 11px 12px; }
.cell-main { display: block; font-weight: 500; }
.cell-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--faint); font-family: var(--mono); }
td .badge + .cell-sub { margin-top: 5px; }
.pay-opt .pay-ico { width: 34px; height: 23px; }
.pay-opt .pay-icons { display: flex; gap: 4px; flex-wrap: nowrap; }
#gridPager .pager { margin-top: 18px; }
.acct > *, .acct-nav, .acct-links { min-width: 0; }
#footContact { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; max-width: 100%; }
#footContact > * { min-width: 0; overflow-wrap: anywhere; }
tr.pg-hide { display: none; }
.tpager { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); }

/* confirmation dialogs */
.confirm-ic { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); color: var(--bad); margin-bottom: 14px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn.danger-solid, .btn.danger-solid:hover { background: var(--bad); color: #fff; border-color: color-mix(in srgb, var(--bad) 80%, #000); }
.btn.danger-solid:hover { background: color-mix(in srgb, var(--bad) 88%, #000); }
.modal .box:has(.confirm-ic) { max-width: 400px; }

/* Log in stays visible on tablets; on phones it moves into the ☰ menu */
.nav-auth { display: none; }
@media (max-width: 1080px) {
  .nav-auth { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-auth a:not(.btn) { display: flex; align-items: center; gap: 10px; }
  .nav-auth .btn { justify-content: center; padding: 11px 14px; }
}
@media (max-width: 600px) { .login-btn { display: none; } }
@media (max-width: 380px) { #userArea .btn.dark { padding: 8px 10px; font-size: 13px; } }
