/* Layout concept: a jeweller's counter — emerald for trust and action, champagne gold only for small marks of value,
   warm green-tinted neutrals, brand logos carry the colour of each product. */
:root {
  /* color (brand + accent are overridden from Admin → Branding) */
  --brand: #006A4E; --accent: #C8973E;
  --brand-ink: var(--brand);                                   /* brand colour used for text/icons */
  --gold-ink: #8C6722;                                         /* readable gold on light */
  --bg: #F6F7F4; --surface: #FFFFFF; --surface2: #EEF2EE; --sunk: #E8EDE8;
  --text: #10231E; --muted: #52625A; --faint: #66756E; --line: #E2E8E2; --line2: #D0D9D2;
  --ok: #12652F; --bad: #C81E1E; --warn: #9A4A06;
  /* type */
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  /* shape */
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16,35,30,.05);
  --shadow: 0 1px 2px rgba(16,35,30,.04), 0 12px 32px -12px rgba(16,35,30,.16);
  --shadow-lg: 0 2px 4px rgba(16,35,30,.04), 0 28px 60px -22px rgba(10,63,53,.32);
  --grad: linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand) 45%, color-mix(in srgb, var(--brand) 70%, #000));
  --gold-grad: linear-gradient(135deg, #F1D48A, #D6A54A 50%, #B5822C);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, var(--surface));
  --gold-soft: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color-scheme: light;
}
/* Dark: soft charcoal with a hint of green — dimmed, never pitch black */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171D1B; --surface: #1F2624; --surface2: #273030; --sunk: #141A18;
    --text: #E8EEEB; --muted: #A2B0AA; --faint: #74827D; --line: #2D3735; --line2: #3A4643;
    --ok: #5BD08A; --bad: #F58A8A; --warn: #F2C25B;
    --brand-ink: color-mix(in srgb, var(--brand) 45%, #CFF3E6); --gold-ink: #E5C27A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
    --shadow: 0 1px 2px rgba(0,0,0,.25), 0 12px 32px -12px rgba(0,0,0,.45);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.25), 0 28px 60px -22px rgba(0,0,0,.55);
    --brand-soft: color-mix(in srgb, var(--brand) 30%, var(--surface));
    --gold-soft: color-mix(in srgb, var(--accent) 18%, var(--surface));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171D1B; --surface: #1F2624; --surface2: #273030; --sunk: #141A18;
  --text: #E8EEEB; --muted: #A2B0AA; --faint: #74827D; --line: #2D3735; --line2: #3A4643;
  --ok: #5BD08A; --bad: #F58A8A; --warn: #F2C25B;
  --brand-ink: color-mix(in srgb, var(--brand) 45%, #CFF3E6); --gold-ink: #E5C27A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.25);
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 12px 32px -12px rgba(0,0,0,.45);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.25), 0 28px 60px -22px rgba(0,0,0,.55);
  --brand-soft: color-mix(in srgb, var(--brand) 30%, var(--surface));
  --gold-soft: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 15px; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); }

/* ===== Buttons & forms ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn.primary:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.05); }
.btn.dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.dark:hover { opacity: .9; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface2); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, textarea, select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); outline: none; transition: .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--brand-ink); }
.field-icon { position: relative; }
.field-icon svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.field-icon input { padding-left: 40px; }

/* ===== Navbar ===== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; gap: 2px; margin-left: 14px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--muted); font-size: 14px; white-space: nowrap; }
.nav .logo span, .nav-right .btn { white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line2); background: var(--surface); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.cur-switch { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface2); border: 1px solid var(--line); }
.cur-switch button { border: 0; background: transparent; padding: 5px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.cur-switch button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.balance-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; cursor: pointer; border: 0; font-family: var(--display); }
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: 48px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; text-align: left; font-weight: 500; font-size: 14px; color: var(--text); }
.menu a svg.i, .menu button svg.i { color: var(--muted); }
.menu a:hover, .menu button:hover { background: var(--surface2); }
.menu .head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.burger { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left, 0px)); margin: 0; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .burger { display: grid; }
  .hide-md { display: none !important; }
}
@media (max-width: 520px) { .hide-sm { display: none !important; } .nav .container { gap: 8px; } .nav .logo span { display: none; } }

/* ===== Brand tiles ===== */
.ptile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; position: relative; overflow: hidden; font-size: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.08); }
.ptile i { width: 54%; height: 54%; display: block; background: #fff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ptile.light i { background: #17142A; }
.ptile img { width: 100%; height: 100%; object-fit: cover; }
.ptile.mono { color: #fff; font-weight: 800; font-size: 16px; font-family: var(--display); }
.ptile.mono.light { color: #17142A; }
.ptile.sm { width: 28px; height: 28px; border-radius: 8px; }
.ptile.lg { width: 72px; height: 72px; border-radius: 20px; }
.ptile.xl { width: 104px; height: 104px; border-radius: 28px; }
.ptile.mono.lg { font-size: 28px; } .ptile.mono.xl { font-size: 40px; } .ptile.mono.sm { font-size: 11px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(600px 300px at 85% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
  radial-gradient(500px 260px at 70% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.045em; margin: 18px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand-ink), color-mix(in srgb, var(--accent) 80%, var(--brand-ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.pill-note b { background: var(--brand-soft); color: var(--brand-ink); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; align-items: center; }
.hero-meta .stat b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-meta .stat span { font-size: 13px; color: var(--muted); }
.paychips { display: flex; gap: 6px; }
.paychip { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 8px; color: #fff; letter-spacing: .01em; }
.paychip.bkash { background: #C70F5E; } .paychip.nagad { background: #B8470F; }

/* receipt-style showcase in the hero */
.receipt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); }
.receipt .r-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.receipt .r-prod { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--line2); }
.receipt .r-prod b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.receipt .r-code { margin-top: 16px; font-family: var(--mono); font-size: 15px; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; letter-spacing: .04em; }
.receipt .r-rows { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; }
.receipt .r-rows div { display: flex; justify-content: space-between; }
.receipt .floater { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.receipt .floater.f1 { left: -28px; bottom: -22px; }
.receipt { margin-bottom: 22px; }
.receipt .floater.f2 { right: -18px; top: -18px; }
.dot-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 40px; } .receipt .floater.f1 { left: 10px; bottom: -20px; } .receipt .floater.f2 { right: 10px; } }

/* logo marquee */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 34px; width: max-content; animation: scroll 50s linear infinite; }
.marquee .item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 14px; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } html { scroll-behavior: auto; } }

/* ===== Sections ===== */
section.block { padding: 64px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 6px; }
.sec-head p { margin-top: 6px; color: var(--muted); }
.page-head { padding: 44px 0 24px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.04em; margin-top: 8px; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 620px; }

/* ===== Brand grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; align-items: center; gap: 12px; transition: .18s; min-width: 0; }
.cat:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat > div { min-width: 0; }
.cat b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat span { font-size: 12px; color: var(--muted); }

/* ===== Product cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: .18s; position: relative; min-width: 0; }
.card:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .top { display: flex; gap: 12px; align-items: flex-start; }
.card .top > div { min-width: 0; }
.card h3 { font-family: var(--body); font-size: 15px; letter-spacing: -.01em; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .cat-name { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.card .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card .go { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); transition: .15s; }
.card:hover .go { background: var(--text); color: var(--bg); }
.card.soldout { opacity: .62; }
.price { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.badge svg.i { width: 12px; height: 12px; }
.badge.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.badge.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.badge.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }

/* ===== Shop layout ===== */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-bottom: 20px; }
.shop > * { min-width: 0; }
.side { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 106px); overflow: auto; padding-right: 4px; }
.side h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 8px 10px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--muted); }
.side a:hover { background: var(--surface2); color: var(--text); }
.side a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 6px 9px; }
.side a .count { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.toolbar .field-icon { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.toolbar input[type="checkbox"] { flex: none; }
.toggle-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; margin: 0; color: var(--text); white-space: nowrap; }
.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.chips a .ptile { width: 22px; height: 22px; border-radius: 7px; }
.chips a.active { border-color: var(--text); }
@media (max-width: 960px) { .shop { grid-template-columns: 1fr; } .side { display: none; } .chips { display: flex; } }
.result-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* ===== Product page ===== */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.pdp { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 18px 0 20px; align-items: start; }
.pdp > * { min-width: 0; }
.pdp-head { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.pdp-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.035em; margin-bottom: 10px; }
.pdp-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 14px; }
.pdp-section h2, .pdp-section h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pdp-section h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pdp-section h2 svg.i, .pdp-section h3 svg.i { color: var(--brand-ink); }
.desc { white-space: pre-wrap; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; line-height: 1.7; }
.buybox { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-lg); }
.buybox .price { font-size: 38px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; width: fit-content; background: var(--surface); }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { background: var(--surface2); color: var(--text); }
.qty input { width: 64px; border: 0; text-align: center; border-radius: 0; box-shadow: none !important; padding: 8px 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.line { display: flex; justify-content: space-between; padding: 7px 0; font-variant-numeric: tabular-nums; }
.line.total { border-top: 1px dashed var(--line2); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 700; }
.assure { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.assure div { display: flex; gap: 10px; align-items: center; }
.assure svg.i { color: var(--ok); width: 16px; height: 16px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } .buybox { position: static; } }

/* ===== Panels / tables ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 16px; min-width: 0; }
.panel h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h3 svg.i { color: var(--brand-ink); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cols > * { min-width: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.code { font-family: var(--mono); background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; word-break: break-all; margin: 8px 0; font-size: 14px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .em-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--surface2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.empty .em-ic svg.i { width: 26px; height: 26px; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 20px; }
.wallet-card { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: var(--r-xl); padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; box-shadow: var(--shadow-lg); }
.wallet-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.08); }
.wallet-card .amt { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wallet-card .btn { background: #fff; color: #17142A; border: 0; position: relative; z-index: 1; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--surface); }
.pay-method .dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 12px; }
.steps-mini { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.steps-mini li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 12px; display: grid; place-items: center; }

/* ===== Features / steps ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feature { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.feature .f-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.feature h3, .feature h4 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.step { padding: 28px; position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step .n { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--brand-ink); letter-spacing: .06em; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step .n span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); }
.step h3, .step h4 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; border-top: 1px solid var(--line); } }

/* ===== FAQ ===== */
.faq-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.faq-layout > * { min-width: 0; }
.faq-group { margin-bottom: 30px; }
.faq-group h2 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.faq-group h2 .g-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; transition: border-color .15s; }
.faq details[open] { border-color: var(--line2); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.i { color: var(--faint); transition: transform .2s; }
.faq details[open] summary svg.i { transform: rotate(180deg); color: var(--brand-ink); }
.faq details p { color: var(--muted); padding: 0 18px 18px; max-width: 70ch; }
.help-card { position: sticky; top: 86px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); }
.help-card h3 { font-size: 20px; margin-bottom: 6px; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } .help-card { position: static; } }

/* ===== Legal pages ===== */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding-bottom: 20px; }
.legal > * { min-width: 0; }
.toc { position: sticky; top: 86px; display: grid; gap: 2px; }
.toc h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 8px 10px; }
.toc a { padding: 6px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface2); }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 44px); }
.doc h2 { font-size: 22px; margin: 34px 0 12px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; line-height: 1.75; max-width: 70ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 10px 0; }
.doc li { position: relative; padding-left: 22px; }
.doc li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: .7; }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.legal-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--muted); }
.legal-tabs a.on { color: var(--text); border-color: var(--text); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .toc { display: none; } }

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; background: var(--text); color: var(--bg); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); opacity: .7; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 8px; }
.cta-band p { opacity: .7; }

/* ===== Auth ===== */
.auth-wrap { display: grid; place-items: center; padding: 56px 0; }
.auth { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-lg); }
.auth h1 { font-size: 28px; margin: 18px 0 6px; }
.auth .perks { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.auth .perks div { display: flex; gap: 8px; align-items: center; }
.auth .perks svg.i { color: var(--ok); width: 16px; height: 16px; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 80px; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-block: 52px 32px; }
.foot h5, .foot .foot-h { font-family: var(--body); letter-spacing: .08em; }
.foot h5, .foot .foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 14px; font-weight: 600; }
.foot nav { display: grid; gap: 9px; }
.foot nav a { font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot .brandcol p { color: var(--muted); font-size: 14px; max-width: 300px; margin: 14px 0 18px; }
.foot-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-bottom span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot .brandcol { grid-column: 1 / -1; } }

/* ===== Modal / toast / skeleton ===== */
.modal { position: fixed; inset: 0; background: rgba(13,11,22,.5); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal.open { display: flex; }
.modal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; width: 100%; max-width: 500px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal .box h2 { font-size: 24px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: .6; } }
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(16px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 99; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; font-weight: 600; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.skeleton { background: linear-gradient(90deg, var(--surface2), var(--surface), var(--surface2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-lg); min-height: 140px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ===== Admin (shared tokens) ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

/* ===== Layout grids that always fill complete rows ===== */
.cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid.g4, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.g4, .grid.g3, .features { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cat.all { background: var(--brand-soft); border-color: transparent; }
.cat.all .ptile { background: var(--surface); color: var(--brand-ink); }

/* ===== Premium details ===== */
.btn.primary { background: var(--grad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.btn.primary:hover::after { transform: translateX(120%); }
.pill-note b { background: var(--gold-soft); color: var(--gold-ink); }
.balance-pill { background: var(--brand-soft); }
.avatar { background: var(--grad); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.wallet-card { background: radial-gradient(500px 240px at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), var(--grad); }
.wallet-card .btn { color: #10231E; }
.cta-band { background: radial-gradient(600px 300px at 100% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--brand) 70%, #000), color-mix(in srgb, var(--brand) 45%, #000)); color: #F4F1E8; }
.cta-band::before { display: none; }
.cta-band p { color: rgba(244,241,232,.75); opacity: 1; }
.step .n { color: var(--gold-ink); }
.feature .f-ic, .faq-group h2 .g-ic, .step .n span { background: var(--brand-soft); color: var(--brand-ink); }
.hero::before { background:
  radial-gradient(620px 320px at 88% 6%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(560px 300px at 65% 95%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%); }
.receipt { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.price { color: var(--text); }
.logo span { letter-spacing: -.035em; }

/* ===== Hover & motion (kept subtle) ===== */
.card, .cat, .feature { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.card:hover, .cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.card .ptile, .cat .ptile { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.card:hover .ptile, .cat:hover .ptile { transform: scale(1.07) rotate(-3deg); }
.feature:hover { transform: translateY(-2px); border-color: var(--line2); }
.card .go { transition: background .2s, color .2s, transform .25s; }
.card:hover .go { background: var(--brand); color: #fff; transform: translateX(2px); }
.nav-links a { position: relative; transition: color .15s, background .15s; }
.side a { transition: background .15s, color .15s; }
.faq details { transition: border-color .2s, box-shadow .2s; }
.faq summary:hover { color: var(--brand-ink); }
.reveal { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(8px); opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Mobile polish ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 16px; }
  .hero-meta { gap: 18px; }
  .sec-head h2 { font-size: 24px; }
  section.block { padding-top: 48px; }
  .cat { padding: 12px; gap: 10px; }
  .cat .ptile { width: 38px; height: 38px; border-radius: 11px; }
  .pdp-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ptile.xl { width: 76px; height: 76px; border-radius: 22px; }
  .page-head { padding-top: 28px; }
  .wallet-card .amt { font-size: 36px; }
  .receipt .floater { display: none; }
  .cur-switch button { padding: 5px 7px; font-size: 12px; }
  .panel { padding: 18px; }
  .modal .box { padding: 20px; border-radius: 20px; }
}

/* two-tone wordmark */
.logo .w1 { color: var(--brand-ink); }

/* ===== Cart, wishlist, notify me ===== */
.icon-btn.has-cnt { position: relative; }
.icon-btn .cnt { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #241703; font-size: 11px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); }
.card .heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--faint); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: color .15s, transform .15s, border-color .15s; }
.card .heart svg.i { width: 16px; height: 16px; }
.card .heart:hover { color: var(--bad); transform: scale(1.08); }
.card .heart.on, .save-btn.on { color: var(--bad); }
.card .heart.on svg.i, .save-btn.on svg.i { fill: currentColor; }
.card .top { padding-right: 34px; }
.soldout-box { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--gold-soft); }
.soldout-box b { display: flex; gap: 8px; align-items: center; color: var(--gold-ink); margin-bottom: 4px; }
.saved-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.saved-card .card { flex: 1; }
.saved-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.saved-actions .btn.ghost { margin-left: auto; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-layout > * { min-width: 0; }
.cart-list { padding: 6px 18px; }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: 0; }
.cart-row.bad { opacity: .75; }
.cart-info { flex: 1; min-width: 0; }
.cart-info a b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-info a:hover b { color: var(--brand-ink); }
.cart-total { min-width: 72px; text-align: right; }
.qty.sm button { width: 32px; height: 32px; }
.qty.sm span { min-width: 28px; text-align: center; font-weight: 700; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cart-row { flex-wrap: wrap; }
  .cart-row .cart-info { flex-basis: calc(100% - 60px); }
  .cart-row .qty { margin-left: 60px; }
  .cart-total { margin-left: auto; }
}

/* sticky buy bar on phones (product page) */
.mbar { display: none; }
@media (max-width: 1080px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.18); }
  .mbar b { font-family: var(--display); font-size: 20px; }
  .mbar .btn { padding: 11px 18px; }
  body:has(.mbar) footer { padding-bottom: 70px; }
}

/* ===== Support page ===== */
.contact-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s; }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line2); }
.contact-card .f-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 6px; }
.contact-card h3 { font-size: 19px; }
.contact-card .grow { flex: 1; font-size: 14px; }
.contact-val { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 8px; padding: 8px 8px 8px 12px; min-height: 44px; border-radius: 11px; background: var(--sunk); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.contact-val span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm svg.i { width: 15px; height: 15px; }
.contact-card .btn { margin-top: 10px; white-space: normal; }
.support-more { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 16px; align-items: start; }
.support-more > * { min-width: 0; margin: 0; }
.tip { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tip:first-of-type { border-top: 0; padding-top: 4px; }
.tip-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface2); color: var(--muted); }
.tip b { font-size: 14px; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .contact-card:last-child:nth-child(odd) { grid-column: 1 / -1; } .support-more { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .contact-card:last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Payment logos ===== */
.pay-ico { width: 45px; height: 30px; border-radius: 6px; display: block; flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pay-ico.lg { width: 60px; height: 40px; border-radius: 8px; }
.pay-row, .hero-pay { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.we-accept { margin-top: 4px; }
.we-accept > span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.pay-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pay-opt:hover { border-color: var(--faint); transform: translateY(-1px); }
.pay-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.pay-opt .pay-icons { display: flex; gap: 4px; }
.pay-opt .pay-icons .pay-ico { width: 39px; height: 26px; }
.pay-opt .pay-name { font-weight: 700; font-size: 14px; }
.pay-info { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface2); }
.pay-info > .pay-ico + .pay-ico { margin-left: -8px; }
.pay-info-body { flex: 1; min-width: 0; }
.pay-info-body > b { display: block; }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 6px; padding: 8px 8px 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pay-number b { font-size: 18px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .pay-info { flex-direction: column; gap: 10px; } .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Loading feedback (busy.js) ===== */
.topbar-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; opacity: 0; overflow: hidden; transition: opacity .25s; }
.topbar-progress::before { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), var(--brand), transparent); animation: tp-slide 1.1s cubic-bezier(.4,0,.2,1) infinite; }
.topbar-progress.on { opacity: 1; }
.topbar-progress.done { opacity: 0; }
@keyframes tp-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.btn.is-loading, button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > *, button.is-loading > * { visibility: hidden; }
.btn.is-loading::after, button.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid var(--text); border-right-color: transparent; animation: spin .7s linear infinite; visibility: visible; }
.btn.primary.is-loading::after, .btn.dark.is-loading::after { border-color: #fff; border-right-color: transparent; }
.btn.dark.is-loading::after { border-color: var(--bg); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--brand); animation: spin .7s linear infinite; flex: none; }
.loading-line { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 500; }

/* Page skeletons shown while a page loads */
.sk { background: linear-gradient(90deg, var(--sunk) 0%, var(--surface2) 50%, var(--sunk) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; border-radius: 10px; }
.sk-page { padding-block: 28px 60px; }
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-h { height: 36px; width: min(420px, 70%); margin-bottom: 14px; border-radius: 12px; }
.sk-crumb { height: 12px; width: 220px; margin-bottom: 26px; }
.sk-tile { width: 104px; height: 104px; border-radius: 26px; flex: none; }
.sk-card { height: 168px; border-radius: var(--r-lg); }
.sk-panel { height: 220px; border-radius: var(--r-lg); }
.sk-row { display: flex; gap: 20px; align-items: flex-start; }
.sk-pdp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sk-list { display: grid; gap: 12px; }
.sk-list .sk { height: 84px; border-radius: 16px; }
@media (max-width: 860px) { .sk-pdp { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sk, .topbar-progress::before, .spinner, .btn.is-loading::after { animation-duration: 2.4s; } }

/* ===== My orders ===== */
.ostats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ostats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.ostats span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.ostats b { display: block; font-family: var(--display); font-size: 24px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ofilters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; min-width: 0; max-width: 100%; }
.ochip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; transition: .15s; }
.ochip span { background: var(--surface2); color: var(--text); border-radius: 99px; padding: 1px 8px; font-size: 12px; }
.ochip:hover { border-color: var(--line2); color: var(--text); }
.ochip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.ochip.on span { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.otools-r { display: flex; gap: 8px; flex-wrap: wrap; }
.osearch { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 0; color: var(--muted); font-weight: 400; }
.osearch svg { width: 16px; height: 16px; flex: none; }
.osearch input { border: 0; background: transparent; padding: 10px 0; width: 210px; margin: 0; box-shadow: none; outline: none; }
.osearch:focus-within { border-color: var(--brand); }
.otools select { width: auto; margin: 0; padding: 10px 12px; border-radius: 12px; }
.olist { display: grid; gap: 12px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.ocard:hover { border-color: var(--line2); box-shadow: var(--shadow, 0 6px 20px -12px rgba(0,0,0,.2)); }
.ocard.processing { border-left: 3px solid var(--warn); }
.ocard.failed { border-left: 3px solid var(--bad); }
.ocard-main { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ocard-tile .ptile { width: 52px; height: 52px; border-radius: 15px; }
.ocard-info { flex: 1; min-width: 0; }
.ocard-info h3 { font-size: 16px; margin: 1px 0 4px; overflow-wrap: anywhere; }
.ometa { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.ometa span:first-child { font-weight: 700; color: var(--text); }
.ocard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ocard-side b { font-size: 18px; font-family: var(--display); }
.onote { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: var(--surface2); color: var(--muted); font-size: 13px; font-weight: 500; }
.onote svg { width: 16px; height: 16px; flex: none; }
.onote.warn { background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); }
.onote .spinner { width: 14px; height: 14px; border-top-color: var(--warn); }
.ocodes { margin-top: 12px; animation: rise .2s ease-out; }
.ocodes .line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.code > span { min-width: 0; overflow-wrap: anywhere; }
.code-act { display: flex; gap: 6px; flex: none; }
.ocard-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
@media (max-width: 760px) {
  .ostats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otools-r, .osearch { width: 100%; }
  .osearch { flex: 1; }
  .osearch input { width: 100%; }
}
@media (max-width: 520px) {
  .ocard { padding: 14px; }
  .ocard-main { flex-wrap: wrap; }
  .ocard-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; padding-left: 66px; }
  .code { flex-direction: column; align-items: stretch; }
  .code-act { justify-content: flex-end; }
}

/* ===== Email verification / password reset ===== */
.auth .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 6px; }
.auth .label-row label { margin: 0; }
.notice-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--gold-soft, var(--surface2)); border: 1px solid var(--line); text-align: left; }
.notice-box > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold-ink, var(--brand)); }
.notice-box p { margin: 2px 0 0; }
.mail-steps { display: grid; gap: 10px; margin-top: 18px; text-align: left; }
.mail-steps > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface2); font-size: 14px; }
.mail-steps svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand); }

/* ===== First paint: show a skeleton, not the plain crawler list (that stays for search engines / no-JS) ===== */
.boot { display: none; }
.js .boot { display: block; }
.js #view > .ssr { display: none; }

/* ===== Password show / hide ===== */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--surface2); }
.pw-eye:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.pw-eye[aria-pressed="true"] { color: var(--brand-ink); }

/* ===== Footer social icons ===== */
.socials { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.soc { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: color .15s, border-color .15s, background .15s, transform .15s; }
a.soc:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
a.soc-facebook:hover { background: #1877F2; }
a.soc-instagram:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
a.soc-linkedin:hover { background: #0A66C2; }
a.soc-telegram:hover { background: #229ED9; }
a.soc-youtube:hover { background: #FF0000; }
.soc.soon { opacity: .55; cursor: default; }
.foot-bottom a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.foot-bottom a:hover { color: var(--text); }
