/* Baqaty storefront. One bold element (the navy price board); everything else stays quiet. */
:root {
  --navy: #172554;
  --navy-2: #22337a;
  --navy-ink: #0f1a3d;
  --gold: #fbbf24;
  --gold-soft: #fff4d1;
  --paper: #f4f6fb;
  --surface: #ffffff;
  --line: #dde3ef;
  --line-strong: #c7d0e2;
  --muted: #5b6472;
  --ok: #0f766e;
  --warn: #9a5b00;
  --bad: #b42318;
  --brand-bg: #172554;      /* navy surfaces: price board, footer, primary buttons */
  --on-gold: #172554;       /* text on gold stays dark in both themes */
  --text-2: #3a4459;
  --header-bg: rgba(255, 255, 255, 0.96);
  --card-foot: #fafbfe;
  --picked: #f8f9ff;
  --error-bg: #fdecea;
  --ok-bg: #e6f4f2;
  --focus-ring: rgba(23, 37, 84, 0.12);
  --radius: 14px;
  --font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
}

/* Light by default whatever the device says ("only light" stops browsers auto-darkening).
   Dark only when the visitor picks it with the header toggle (theme.js sets data-theme). */
:root { color-scheme: only light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #c7d4ff;          /* headings, links and accents become light */
  --navy-2: #2a3b86;
  --navy-ink: #e4e9f5;
  --brand-bg: #18245a;
  --gold-soft: #3b3017;
  --paper: #0b1120;
  --surface: #131b30;
  --line: #243049;
  --line-strong: #33405f;
  --muted: #9aa5ba;
  --ok: #2bb3a5;
  --warn: #f2bd5b;
  --bad: #ff8a80;
  --text-2: #c2c9d8;
  --header-bg: rgba(11, 17, 32, 0.94);
  --card-foot: #10172a;
  --picked: #1a2547;
  --error-bg: #3a1716;
  --ok-bg: #0f2d2a;
  --focus-ring: rgba(199, 212, 255, 0.18);
}
:root[data-theme="dark"] .add.is-added { color: #06201d; }
:root[data-theme="dark"] .stars { color: #f2bd5b; }
:root[data-theme="dark"] .welcome { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
body { margin: 0; background: var(--paper); color: var(--navy-ink); font-family: var(--font); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.3; margin: 0; color: var(--navy); }
p { margin: 0 0 0.75em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------ header */
.announce { background: var(--brand-bg); color: #fff; text-align: center; font-size: 14px; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 19px; }
.brand-text small { font-size: 12px; color: var(--muted); }
.main-nav { display: none; gap: 4px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--navy); }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--paper); }
.cart-button { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; position: relative; color: var(--navy); }
.cart-count { background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 13px; min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; padding-inline: 6px; }
@media (min-width: 900px) { .main-nav { display: flex; } .cart-button { margin-inline-start: 8px; } .lang-toggle { margin-inline-start: 8px; } }
@media (max-width: 420px) { .cart-label, .brand-text small { display: none; } }

/* ------------------------------------------------------------ intro */
.intro { background: var(--surface); padding-block: 18px 16px; border-bottom: 1px solid var(--line); }
.intro h1 { font-size: clamp(22px, 5.5vw, 34px); font-weight: 700; line-height: 1.4; color: var(--navy-ink); }
.lead { font-size: 14px; color: var(--text-2); max-width: 56ch; margin-top: 4px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 12px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); font-size: 12.5px; font-weight: 500; }
.pay-chip .icon { width: 14px; height: 14px; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; max-width: 520px; }
.search input { border: 0; background: transparent; padding: 12px 0; width: 100%; outline: none; font-size: 16px; }
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--focus-ring); }
@media (min-width: 960px) { .intro { padding-block: 36px 30px; } .intro .search { margin-top: 18px; } .lead { font-size: 17px; } }

/* ------------------------------------------------------------ logos */
.tile { display: inline-grid; place-items: center; flex: none; border-radius: 12px; font-weight: 700; color: #fff; object-fit: cover; background: #fff; }
.tile-sm { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.tile-md { width: 48px; height: 48px; font-size: 17px; }
.tile-lg { width: 72px; height: 72px; font-size: 26px; border-radius: 18px; }
.tone-0 { background: #22337a; } .tone-1 { background: #0f5f63; } .tone-2 { background: #5b3a77; }
.tone-3 { background: #7a3b2e; } .tone-4 { background: #3f5a2a; } .tone-5 { background: #2f4a6b; }
.tile-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tile-logo img { width: 62%; height: 62%; object-fit: contain; }
.tile-logo-full { overflow: hidden; background: transparent; box-shadow: none; }
.tile-logo-full img { width: 100%; height: 100%; }

/* ------------------------------------------------------------ categories + shelves */
.cat-nav { position: sticky; top: 64px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.cat-scroll { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll a { flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; color: var(--navy); }
.cat-scroll a:hover { border-color: var(--navy); }
.shelf { padding-block: 34px 6px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 16px; }
.shelf-head p { margin: 0; color: var(--muted); font-size: 15px; }
.shelf-title { font-size: 24px; font-weight: 700; margin-bottom: 0; }
.shelf > .shelf-title { margin-bottom: 16px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.search-empty { margin-top: 28px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 18px; }

/* ------------------------------------------------------------ product card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.card.is-off { opacity: 0.72; }
.card-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 10px; text-decoration: none; color: inherit; }
.card-title { min-width: 0; }
.card-head h3 { font-size: 18px; font-weight: 700; text-align: start; }
.card-head:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.card-sub { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.plan-rows { list-style: none; margin: 0; padding: 0 16px; }
.plan-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.plan-row.is-off { color: var(--muted); }
.plan-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.plan-name b { font-weight: 600; font-size: 15px; }
.plan-name small { color: var(--muted); font-size: 13px; }
.leader { flex: 1; min-width: 12px; border-bottom: 2px dotted var(--line-strong); margin-bottom: 6px; align-self: flex-end; }
.tag-mail { font-style: normal; font-size: 12px; color: var(--navy-2); margin-inline-start: 8px; white-space: nowrap; }
.pick-name .tag-mail { margin: 0; }
.tag-pay { font-style: normal; font-size: 12px; color: var(--ok); margin-inline-start: 8px; white-space: nowrap; }
.price { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price strong { font-size: 17px; color: var(--navy); }
.price-lg strong { font-size: 24px; }
.price del { color: var(--muted); font-size: 13px; }
.price .off { background: var(--gold-soft); color: var(--warn); font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 6px; }
.price-ask { color: var(--muted); font-size: 14px; }
.add { border: 1px solid var(--navy); background: var(--surface); color: var(--navy); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 14px; flex: none; }
.add:hover { background: var(--brand-bg); border-color: var(--brand-bg); color: #fff; }
.add.is-added, .btn.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
.add { min-width: 84px; transition: background-color 0.15s, color 0.15s; }
.add.is-added { font-size: 12.5px; padding-inline: 4px; white-space: nowrap; overflow: hidden; }
.btn.is-added { white-space: nowrap; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.unavailable { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--card-foot); border-radius: 0 0 var(--radius) var(--radius); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .icon { width: 16px; height: 16px; color: var(--navy); }
.more { font-size: 14px; }
@media (max-width: 559px) { .plan-row { flex-wrap: wrap; row-gap: 2px; } .plan-name { flex: 1 1 100%; } }

/* ------------------------------------------------------------ offers */
.offers { padding-top: 34px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-list a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: inherit; }
.offer-list a > span:not(.tile) { flex: 1; min-width: 0; }
.offer-name b, .offer-name small { display: block; }
.offer-name small { color: var(--muted); font-size: 13px; }
.offer-list .price { flex-direction: column; align-items: flex-end; gap: 0; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 12px 18px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 15px; }
.btn-block { width: 100%; }
.btn-navy { background: var(--brand-bg); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #f5b20f; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--navy); }
.btn-wa { background: #fff; color: var(--on-gold); border-color: rgba(255, 255, 255, 0.4); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.icon-btn { border: 0; background: transparent; padding: 8px; cursor: pointer; border-radius: 8px; color: var(--navy); }
.link { display: inline-block; margin-top: 10px; }

/* ------------------------------------------------------------ how it works, reviews, faq */
.how { background: var(--surface); border-block: 1px solid var(--line); margin-top: 40px; padding-block: 36px; }
.how .shelf-title { margin-bottom: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--on-gold); font-weight: 700; display: grid; place-items: center; }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.reviews-strip { padding-block: 36px 0; }
.review-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.review header { display: flex; justify-content: space-between; gap: 8px; }
.stars { color: #d99a00; letter-spacing: 1px; }
.stars-off { color: var(--line-strong); }
.review-for { font-size: 13px; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.verified { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.verified .icon { width: 14px; height: 14px; }
.review-body { margin: 4px 0; }
.review-reply { background: var(--paper); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.review time { font-size: 12px; color: var(--muted); }
.faq { padding-block: 36px; }
.faq .shelf-title { margin-bottom: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: 10px 0 2px; color: var(--text-2); }

/* ------------------------------------------------------------ product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.product-page { padding-bottom: 40px; }
.product-grid { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 960px) { .product-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 40px; } .buy { position: sticky; top: 84px; } }
.product-head { display: flex; gap: 16px; align-items: flex-start; }
.product-head h1 { font-size: clamp(28px, 5vw, 38px); text-align: start; }
.product-head .lead { margin-top: 4px; }
.rating { font-size: 14px; color: var(--muted); text-decoration: none; }
.about { margin-top: 18px; font-size: 17px; max-width: 66ch; }
.block { margin-top: 30px; }
.block h2 { font-size: 20px; margin-bottom: 12px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.features b { color: var(--navy); }
.features span { color: var(--text-2); font-size: 15px; }
.examples { margin: 0; padding-inline-start: 20px; }
.examples li { margin-bottom: 6px; }
.notes { background: var(--gold-soft); border-radius: 12px; padding: 14px 16px; }
.notes p { font-size: 15px; }
.buy { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.buy h2 { font-size: 18px; }
.plan-picker { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--picked); }
.pick.is-off { opacity: 0.6; cursor: not-allowed; }
.pick input { accent-color: var(--navy); width: 18px; height: 18px; }
.pick-name { display: flex; flex-direction: column; flex: 1; line-height: 1.4; }
.pick-name small { color: var(--muted); font-size: 13px; }
.pick-name .tag-pay { margin: 0; }

/* ------------------------------------------------------------ pages */
.page { padding-block: 32px 48px; }
.page h1 { font-size: clamp(26px, 5vw, 34px); margin-bottom: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 15px; }
.field > span, .field > label { font-weight: 500; }
.field input, .field select, .field textarea { border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px; background: var(--surface); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input, .field .check input { width: 18px; height: 18px; padding: 0; flex: none; margin-top: 3px; accent-color: var(--navy); }
.check > span { flex: 1; font-weight: 400; }
.hint { color: var(--muted); font-size: 13px; }
.form-error { color: var(--bad); background: var(--error-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.form-ok { color: var(--ok); background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; }
.suggest { font-size: 14px; margin: 0; }
.suggest button { border: 0; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 0; font-weight: 600; }
.track-form { display: grid; gap: 4px; margin-top: 18px; max-width: 420px; }
.track-form input { text-transform: uppercase; letter-spacing: 0.15em; font-size: 20px; text-align: center; }
.track-card { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.track-card header { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; }
.track-status { font-size: 22px; font-weight: 700; color: var(--navy); margin: 10px 0; }
.timeline { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 13px; color: var(--muted); }
.timeline li { border-top: 4px solid var(--line); padding-top: 6px; }
.timeline li.done { border-color: var(--ok); color: var(--navy-ink); }
.track-items { margin: 0; padding-inline-start: 18px; }
.track-items small { display: block; color: var(--muted); }
.track-money { margin-top: 10px; font-weight: 600; }
.review-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 20px 0; max-width: 640px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 14px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--navy); background: var(--picked); }
.stat-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 20px 0; }
.stat-list div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat-list dt { color: var(--muted); font-size: 14px; }
.stat-list dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: var(--navy); }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--brand-bg); color: rgba(255, 255, 255, 0.86); margin-top: 48px; padding-block: 32px 96px; }
.site-footer .brand, .site-footer .brand-text small { color: #fff; }
.site-footer .fine { color: rgba(255, 255, 255, 0.7); max-width: 60ch; margin-top: 12px; }
.footer-grid { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: #fff; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; } .site-footer { padding-bottom: 40px; } }

/* ------------------------------------------------------------ cart */
.cart { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92vh; inset-block: auto 0; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--navy-ink); }
.cart::backdrop { background: rgba(15, 26, 61, 0.45); }
@media (min-width: 760px) { .cart { inset-block: 0; inset-inline: 0 auto; height: 100vh; max-height: 100vh; width: 440px; border-radius: 0; } }
.cart[open] { display: flex; flex-direction: column; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 20px; }
.cart-body { overflow-y: auto; padding: 14px 18px 22px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-items li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-items .ci-text { flex: 1; min-width: 0; line-height: 1.45; }
.cart-items .ci-text small { display: block; color: var(--muted); font-size: 13px; }
.cart-items .ci-price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-items button { border: 1px solid var(--bad); background: none; color: var(--bad); cursor: pointer; padding: 2px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.cart-items button:hover { background: var(--bad); color: #fff; }
.cart-empty { color: var(--muted); padding: 16px 0; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; padding: 14px 0; }
.cart-total strong { color: var(--navy); }
.checkout .field { margin-bottom: 12px; }
.sent { padding-top: 8px; display: grid; gap: 10px; }
.sent h3 { font-size: 20px; }
.cart-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand-bg); color: #fff; border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 26, 61, 0.28); }
.cart-bar strong { color: var(--gold); }
@media (min-width: 900px) { .cart-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------ first-visit welcome card */
.welcome { border: 0; padding: 22px 22px 20px; width: min(420px, calc(100% - 32px)); border-radius: 22px; background: var(--surface); color: var(--navy-ink); box-shadow: 0 24px 60px rgba(15, 26, 61, 0.32); }
.welcome::backdrop { background: rgba(15, 26, 61, 0.5); }
.welcome[open] { animation: welcome-in 0.28s ease-out; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.welcome-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.welcome h2 { font-size: 23px; }
.welcome-lead { color: var(--text-2); margin: 6px 0 16px; }
.welcome-pay { display: flex; gap: 12px; background: var(--brand-bg); color: #fff; border-radius: 16px; padding: 14px; position: relative; }
.welcome-pay::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 12px; pointer-events: none; }
.welcome-pay b { color: var(--gold); font-size: 16px; display: block; }
.welcome-pay p { margin: 4px 0 8px; font-size: 14px; color: rgba(255, 255, 255, 0.86); line-height: 1.6; }
.welcome-pay-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(251, 191, 36, 0.16); color: var(--gold); display: grid; place-items: center; }
.welcome-pay-icon .icon { width: 20px; height: 20px; }
.tag-pay-pill { display: inline-block; margin: 0; background: #e6f4f2; color: var(--ok); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.welcome-steps { list-style: none; counter-reset: w; margin: 16px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.welcome-steps li { counter-increment: w; display: flex; align-items: center; gap: 10px; }
.welcome-steps li::before { content: counter(w); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--on-gold); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .welcome[open] { animation: none; } }

/* ------------------------------------------------------------ light / dark toggle */
.theme-toggle { margin-inline-start: auto; width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--navy); border-radius: 999px; cursor: pointer; }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle + .cart-button { margin-inline-start: 0; }
.lang-toggle { margin-inline-start: auto; height: 40px; min-width: 40px; padding: 0 12px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--navy); border-radius: 999px; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.lang-toggle:hover { border-color: var(--navy); }
.lang-toggle + .theme-toggle { margin-inline-start: 0; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: inline-grid; }
:root[data-theme="dark"] .theme-moon { display: none; }




/* ------------------------------------------------------------ app grid */
.cat-scroll button { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; }
.cat-scroll button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-block: 16px 24px; }
@media (min-width: 640px) { .app-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; } }
.js .app-grid[data-grid]:not([data-ready]) .app-cell[data-rank=""] { display: none; }
.app-cell { position: relative; display: flex; min-width: 0; }
.app { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.app:hover { border-color: var(--navy); }
.app:active { transform: scale(0.98); }
.app .tile { margin-bottom: 4px; }
.app .tile-lg { width: 56px; height: 56px; border-radius: 15px; }
.app-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--navy-ink); max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.app-use { font-size: 10.5px; color: #3730a3; background: #eef2ff; border-radius: 99px; padding: 1px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-price { font-size: 12px; color: var(--muted); margin-top: 2px; }
.app-price b { font-size: 15px; color: var(--navy-ink); font-variant-numeric: tabular-nums; }
.app-meta { font-size: 10.5px; color: var(--muted); }
.app-pay { font-style: normal; font-size: 10px; color: var(--ok); }
.app-off { color: var(--muted); }
.app-cell.is-off .app { opacity: 0.6; }
.app-badge { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--ok-bg); color: var(--ok); font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }

/* ------------------------------------------------------------ plan sheet */
.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 88vh; inset-block: auto 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--navy-ink); flex-direction: column; overflow: hidden; }
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(15, 26, 61, 0.45); }
.sheet-grab { width: 40px; height: 4px; border-radius: 9px; background: var(--line-strong); margin: 9px auto 0; flex: none; }
.sheet-x { position: absolute; top: 10px; inset-inline-start: 12px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 18px 6px; overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sheet-head b { display: block; font-size: 19px; }
.sheet-desc { font-size: 14px; line-height: 1.8; color: var(--text-2); margin: 4px 0 8px; }
.sheet-intro { font-size: 13.5px; line-height: 1.8; margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chips span { font-size: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; color: var(--text-2); }
.note { background: var(--gold-soft); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; margin: 8px 0; font-size: 12.5px; line-height: 1.7; }
.note p { margin: 0; }
.sheet-label { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.opts { display: grid; gap: 8px; margin-top: 8px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.opt.on { border-color: var(--navy); background: var(--picked); }
.opt-text { flex: 1; min-width: 0; }
.opt-text b { display: block; font-size: 14px; }
.opt-text small { display: block; font-size: 11.5px; color: var(--muted); }
.opt strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.sheet .more { display: block; text-align: center; margin: 12px 0 8px; font-size: 13px; color: var(--navy); }
.sheet-foot { flex: none; padding: 10px 18px 16px; border-top: 1px solid var(--line); background: var(--surface); }
@media (min-width: 760px) { .sheet { inset: 0; margin: auto; width: 460px; max-height: 84vh; border-radius: 20px; } .sheet[open] { display: flex; } .sheet-grab { display: none; } }
:root[data-theme="dark"] .app-use { background: #27315c; color: #c7d2fe; }
