/* ============================================================
   DC Token Store — storefront styles  (Lavender & Cloud theme)
   ============================================================ */

:root {
    --brand: #7c6cf0;
    --brand-600: #6a58e6;
    --brand-700: #5a49d6;
    --lav: #a78bfa;
    --brand-050: #f4f1ff;
    --brand-100: #ece7ff;
    --ink: #221d4a;
    --ink-2: #4b4675;
    --muted: #817ca3;
    --line: #ebe7fb;
    --line-2: #f1eefc;
    --bg: #faf9ff;
    --bg-alt: #f4f2ff;
    --card: #ffffff;
    --ok: #16a34a;
    --ok-bg: #e9fbf1;
    --warn: #d97706;
    --warn-bg: #fff5e6;
    --danger: #e0483d;
    --danger-bg: #fdeeed;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-sm: 11px;
    --shadow-sm: 0 2px 10px rgba(90, 73, 214, .06);
    --shadow: 0 12px 30px rgba(90, 73, 214, .10);
    --shadow-lg: 0 24px 60px rgba(90, 73, 214, .16);
    --grad: linear-gradient(135deg, #8b7bf2, #a78bfa);
    --grad-soft: linear-gradient(160deg, #efeaff, #f7f5ff 55%, #ffffff);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --head: 'Poppins', var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: clip; /* clip (not hidden) so it doesn't break position: sticky */
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--head); font-weight: 600; font-size: 15px;
    padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px rgba(124, 108, 240, .32); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(124, 108, 240, .42); transform: translateY(-1px); }
.btn-ghost { background: var(--brand-050); color: var(--brand-700); }
.btn-ghost:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-white { background: #fff; color: var(--brand-700); box-shadow: var(--shadow); }
.btn-white:hover { color: var(--brand-700); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.link { color: var(--brand-600); font-weight: 600; }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }

/* ---------- Flash ---------- */
.flash { padding: 12px 0; font-weight: 500; font-size: 14.5px; }
.flash-success { background: var(--ok-bg); color: #12683a; }
.flash-info { background: var(--brand-050); color: var(--brand-700); }
.flash-error { background: var(--danger-bg); color: #a02b22; }

.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px; }
.alert-info { background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-100); }
.alert-error { background: var(--danger-bg); color: #a02b22; border: 1px solid #f6d4d1; }
.alert-success { background: #e9f8ef; color: #157a41; border: 1px solid #b6e6c8; }
.repl-note { display: inline-block; margin-top: 4px; font-size: 13px; opacity: .9; }

/* ---------- Top / header ---------- */
.topbar { background: var(--grad); color: #fff; text-align: center; font-size: 13.5px; font-weight: 500; padding: 8px 0; letter-spacing: .01em; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-name { letter-spacing: -.01em; }
.brand-logo { height: 42px; width: auto; display: block; }
img.brand-mark { width: 56px; height: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-link { padding: 9px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--brand-050); color: var(--brand-700); }
.nav-mobile-actions { display: none; }

/* --- Products mega dropdown --- */
.nav-item.has-mega { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; cursor: pointer; }
.nav-trigger .chev { color: var(--muted); transition: transform .2s; }
.has-mega:hover .nav-trigger, .has-mega:focus-within .nav-trigger, .has-mega.open .nav-trigger { background: var(--brand-050); color: var(--brand-700); }
.has-mega:hover .nav-trigger .chev, .has-mega:focus-within .nav-trigger .chev, .has-mega.open .nav-trigger .chev { transform: rotate(180deg); color: var(--brand); }
.mega { position: absolute; top: 100%; left: 0; margin-top: 12px; width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 120; }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-card { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 13px; transition: background .15s; }
.mega-card:hover { background: var(--brand-050); }
.mega-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; transition: background .15s, color .15s; }
.mega-card:hover .mega-ic { background: var(--grad); color: #fff; }
.mega-tx { line-height: 1.3; }
.mega-tx strong { display: block; font-family: var(--head); font-size: 14.5px; color: var(--ink); font-weight: 600; }
.mega-tx small { color: var(--muted); font-size: 12.5px; }
.mega-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 13px 14px; border-radius: 13px; background: var(--bg-alt); color: var(--brand-700); font-family: var(--head); font-weight: 600; font-size: 14px; transition: background .15s; }
.mega-foot:hover { background: var(--brand-100); color: var(--brand-700); }
.mega-foot span { display: inline-flex; align-items: center; gap: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-search { display: flex; align-items: center; background: transparent; border: 1.5px solid var(--line); border-radius: 11px; padding: 2px 2px 2px 12px; transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 108, 240, .14); }
.header-search input[type="search"] { border: 0; background: transparent; margin: 0; padding: 8px 6px; width: 180px; font-size: 14px; border-radius: 0; box-shadow: none; outline: none; color: var(--ink); }
.header-search button { border: 0; background: transparent; color: var(--muted); padding: 8px; cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { color: var(--brand); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--brand-050); color: var(--brand-700); }
.cart-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--ink-2); transition: background .15s, color .15s; }
.cart-btn:hover { background: var(--brand-050); color: var(--brand-700); }
.cart-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--brand); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count.is-empty { display: none; }
/* Header site-balance widget (replaces the cart icon) */
.balance-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 6px 0 12px; border-radius: 11px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; transition: border-color .15s, background .15s, color .15s; white-space: nowrap; }
.balance-btn:hover { border-color: var(--brand); background: var(--brand-050); color: var(--brand-700); }
.balance-btn .balance-ic { display: inline-flex; color: var(--brand); }
.balance-btn .balance-val { line-height: 1; }
.balance-btn .balance-plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 18px; font-weight: 700; line-height: 1; }
.balance-btn.is-guest .balance-val { color: var(--muted); font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(34, 29, 74, .4); z-index: 90; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3vw, 33px); margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.section-more { text-align: center; margin-top: 36px; }
.page-h1 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-soft); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 70px 0 74px; position: relative; z-index: 2; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; z-index: 1; }
.hero-blob-1 { width: 420px; height: 420px; background: #c9bdff; top: -120px; right: -80px; }
.hero-blob-2 { width: 360px; height: 360px; background: #dcd4ff; bottom: -160px; left: -100px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--brand-700); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.hero-eyebrow svg { color: var(--brand); }
.hero-copy h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 520px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 500; padding: 7px 13px; border-radius: 999px; }
.chip svg { color: var(--brand); }
.hero-art { position: relative; z-index: 2; }
.hero-svg { width: 100%; height: auto; max-width: 480px; margin-left: auto; }

/* ---------- Trust badges ---------- */
.trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; }
.trust-item strong { display: block; font-family: var(--head); font-size: 15px; }
.trust-item span { color: var(--muted); font-size: 13px; }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; transition: transform .18s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cat-ic { width: 56px; height: 56px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 18px rgba(124, 108, 240, .28); }
.cat-name { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 5px; }
.cat-desc { color: var(--muted); font-size: 14px; flex: 1; }
.cat-arrow { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-600); font-weight: 600; font-size: 14px; margin-top: 14px; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pc-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #f4f1ff, #eee9ff); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-icon { color: var(--brand); opacity: .85; }
.pc-badge { position: absolute; top: 12px; left: 12px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 14px rgba(124, 108, 240, .35); letter-spacing: .02em; }
.pc-instant { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .92); color: var(--brand-700); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-title { font-size: 16.5px; margin-bottom: 5px; }
.pc-title a { color: var(--ink); }
.pc-title a:hover { color: var(--brand-700); }
.pc-desc { color: var(--muted); font-size: 13.5px; flex: 1; margin-bottom: 14px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; }
.pc-price small { color: var(--muted); font-size: 12px; }
.pc-price b { font-family: var(--head); font-size: 19px; color: var(--ink); }
.pc-price .is-free { color: var(--ok); }
.pc-cta { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-600); font-weight: 600; font-size: 14px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-family: var(--head); font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.stat-label { color: rgba(255, 255, 255, .85); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; text-align: center; }
.step-num { position: absolute; top: 18px; right: 22px; font-family: var(--head); font-weight: 800; font-size: 40px; color: var(--brand-050); }
.step-ic { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Stars ---------- */
.stars { position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 1px; font-family: Arial, sans-serif; }
.stars-bg { color: #e0dcf3; }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5b301; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; box-shadow: var(--shadow-sm); }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12px; font-weight: 600; }
.review-title { font-size: 15.5px; margin-bottom: 6px; }
.review-card blockquote { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.review-card figcaption { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { color: var(--brand); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq-answer p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 30px 0 66px; }
.cta-inner { background: var(--grad); border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.cta-inner p { color: rgba(255, 255, 255, .9); margin: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 14px 0; font-size: 13.5px; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-600); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Listing ---------- */
.listing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.listing-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.listing-sort select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.listing-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.listing-side { position: sticky; top: 90px; }
.side-title { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.side-cats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.side-cats a:hover { background: var(--brand-050); color: var(--brand-700); }
.side-cats a.is-active { background: var(--brand); color: #fff; }
.side-cats a.is-active svg { color: #fff; }
.side-help { background: var(--brand-050); border-radius: 14px; padding: 18px; }
.side-help strong { display: block; font-family: var(--head); margin-bottom: 4px; }
.side-help p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.listing-main .product-grid { grid-template-columns: repeat(3, 1fr); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--brand-050); color: var(--brand); margin-bottom: 18px; }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pd-media-inner { position: relative; background: linear-gradient(150deg, #f4f1ff, #eae4ff); border-radius: var(--radius-lg); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.pd-media-inner img { width: 100%; height: 100%; object-fit: cover; }
.pd-icon { color: var(--brand); opacity: .85; }
.pd-badge { top: 16px; left: 16px; }
.pd-assurances { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pd-assurances li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.pd-assurances svg { color: var(--brand); flex-shrink: 0; }
.pd-cat { display: inline-block; color: var(--brand-600); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.pd-title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.pd-rating { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-sold { color: var(--muted); }
.pd-short { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pd-price { font-family: var(--head); font-size: 34px; font-weight: 800; color: var(--ink); }
.pd-reseller { background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pd-variants { border: 0; padding: 0; margin: 0 0 18px; }
.pd-variants legend { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.variant-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 15px; cursor: pointer; margin-bottom: 9px; transition: border-color .15s, background .15s; }
.variant-opt:hover { border-color: var(--lav); }
.variant-opt input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.variant-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-050); }
.variant-opt.is-out { opacity: .55; cursor: not-allowed; }
.vo-main { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vo-name { font-weight: 600; font-size: 14.5px; }
.vo-price { font-family: var(--head); font-weight: 700; }
.vo-stock { font-size: 12px; }
.stock.in { color: var(--ok); font-weight: 600; }
.stock.out { color: var(--danger); font-weight: 600; }
.pd-buy-actions { display: flex; gap: 12px; margin-bottom: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.qty-btn { width: 40px; height: 46px; border: 0; background: #fff; font-size: 20px; color: var(--ink-2); cursor: pointer; transition: background .15s; }
.qty-btn:hover { background: var(--brand-050); color: var(--brand-700); }
.qty input { width: 46px; height: 46px; border: 0; text-align: center; font: inherit; font-weight: 600; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-mini-trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pd-lower { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 50px; align-items: start; }
.pd-h2 { font-size: 22px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.pd-description { color: var(--ink-2); font-size: 15px; }
.pd-description ul { padding-left: 20px; }
.pd-description li { margin-bottom: 6px; }
.pd-note { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-alt); border-radius: 14px; padding: 16px 18px; margin: 24px 0 34px; }
.pd-note svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.pd-note p { margin: 0; font-size: 13px; color: var(--muted); }
.pd-aside { position: sticky; top: 90px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.aside-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.aside-card h3 svg { color: var(--brand); }
.tick-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 14px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; background: var(--ok-bg); color: var(--ok); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* ---------- Discord Tokens landing page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.token-hero { max-width: 720px; margin-bottom: 28px; }
.token-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); background: var(--brand-050); font-weight: 600; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.token-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.token-sub { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.token-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.token-chips .chip { background: #fff; }

.token-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.config-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.config-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.config-head h2, .tk-h2 { font-size: 18px; margin: 0; }
.tk-h2 { margin-bottom: 16px; }

.token-variants { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.token-opt { display: flex; align-items: flex-start; gap: 13px; border: 1.5px solid var(--line); border-radius: 14px; padding: 15px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.token-opt:hover { border-color: var(--lav); }
.token-opt input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.token-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-050); }
.token-opt.is-out { opacity: .55; cursor: not-allowed; }
.to-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.to-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.to-name { font-family: var(--head); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.to-price small { color: var(--muted); font-size: 12px; }
.to-price b { font-family: var(--head); font-size: 17px; }
.to-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.to-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }

.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qty-note { margin: 10px 0 0; font-size: 13.5px; }
.qty-quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.qty-quick button { padding: 9px 13px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.qty-quick button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-700); background: var(--brand-050); }
.qty-quick button:disabled { opacity: .4; cursor: not-allowed; }
.qty-quick .qty-max { background: var(--brand-050); color: var(--brand-700); border-color: transparent; }
.qty-quick .qty-max:hover:not(:disabled) { background: var(--brand-100); }
#qtyMax { font-weight: 600; color: var(--ink-2); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; }
.feature-item strong { display: block; font-family: var(--head); font-size: 14.5px; color: var(--ink); }
.feature-item span { color: var(--muted); font-size: 13px; }
.format-card { background: var(--bg-alt); border-radius: 14px; padding: 16px 18px; }
.format-label { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-700); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.format-card code { display: block; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.format-card p { margin: 0; font-size: 12.5px; }

.token-summary { position: static; }
.ts-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.ts-card h2 { font-size: 18px; margin-bottom: 16px; }
.ts-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14.5px; color: var(--ink-2); }
.ts-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.ts-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; margin: 6px 0 14px; border-top: 2px solid var(--line); font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--ink); }
.ts-amount { padding: 14px 0; margin: 6px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ts-amount > label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.amount-controls { display: flex; flex-direction: column; gap: 8px; }
.amount-controls .qty { width: 100%; }
.amount-controls .qty input { flex: 1; width: auto; }
.amount-controls .qty-quick { display: flex; gap: 6px; }
.amount-controls .qty-quick button { flex: 1; padding: 9px 4px; text-align: center; }
.amount-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.ts-email-row small { color: var(--muted); font-weight: 500; }
.ts-email-row strong { color: var(--brand); }
.ts-emailacc { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, rgba(0,0,0,.02)); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ts-emailacc input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }
.ts-emailacc small { display: block; font-weight: 500; color: var(--muted); }
/* The hidden attribute must win over the flex display above (used to hide the
   email-access row & checkbox on Unclaimed variants). */
.ts-email-row[hidden], .ts-emailacc[hidden] { display: none; }
.ts-email { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.ts-email input { margin-top: 6px; }
.cart-addon { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--brand); font-size: 12px; font-weight: 600; }
.ts-deliver-to { margin-top: 8px; }
.ts-deliver-to strong { color: var(--ink); }
/* Direct-checkout payment selector */
.ts-pay-select { margin-top: 12px; display: grid; gap: 8px; }
.ts-pay-label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.pay-opt2 { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt2:hover { border-color: var(--brand); }
.pay-opt2 input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }
.pay-opt2:has(input:checked) { border-color: var(--brand); background: var(--brand-050, rgba(124,92,255,.06)); }
.pay-opt2-body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.pay-opt2-body strong { color: var(--ink); font-weight: 600; }
.pay-opt2-body span { color: var(--muted); font-size: 12.5px; }
.pay-bal strong { color: var(--brand); }
.pay-bal-low { color: var(--danger, #d64545); font-style: normal; font-weight: 600; }
.pay-opt2.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-opt2.is-disabled:hover { border-color: var(--line); }
.ts-min-hint { margin: 10px 0 0; color: var(--danger, #d64545); font-size: 12.5px; font-weight: 600; }
.amount-min-warn { color: var(--danger, #d64545); font-weight: 600; font-size: 12px; white-space: nowrap; }
/* Live-stock change animation (pop + colour flash: green up, red down) */
@keyframes stockBump { 0% { transform: scale(1); } 28% { transform: scale(1.45); } 100% { transform: scale(1); } }
.stock-bump { display: inline-block; animation: stockBump .8s cubic-bezier(.2,.9,.25,1.3); font-weight: 700; }
.stock-up   { color: #16a34a !important; }
.stock-down { color: #d64545 !important; }
#totalStock { display: inline-block; transition: color .2s; }
@media (prefers-reduced-motion: reduce) { .stock-bump { animation: none; } }
.ts-card .btn { margin-top: 10px; }
.ts-trust { display: flex; justify-content: center; gap: 16px; margin: 16px 0 12px; color: var(--muted); font-size: 12.5px; }
.ts-trust span { display: inline-flex; align-items: center; gap: 5px; }
.ts-trust svg { color: var(--brand); }
.ts-pay { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }

.token-disclaimer { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-alt); border-radius: 14px; padding: 16px 18px; margin-top: 28px; }
.token-disclaimer svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.token-disclaimer p { margin: 0; font-size: 13px; color: var(--muted); }
.faq-links { margin: 14px 0 0; font-size: 13px; }

/* ============================================================
   Reseller programme
   ============================================================ */
.nav-link-accent { color: var(--brand-700); font-weight: 600; }
.nav-link-accent:hover { background: var(--brand-100); }

.rs-hero { position: relative; background: var(--grad-soft); overflow: hidden; }
.rs-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 60px 0 66px; }
.rs-hero-copy h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }

.rs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.rs-card h2 { font-size: 18px; margin-bottom: 12px; }
.rs-price { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rs-amount { font-family: var(--head); font-size: 40px; font-weight: 800; color: var(--ink); }
.rs-per { color: var(--muted); font-size: 13.5px; }
.rs-card .tick-list { margin-bottom: 20px; }
.rs-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 5px; }

.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rs-grid-4 { grid-template-columns: repeat(4, 1fr); }
.rs-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; transition: transform .18s, box-shadow .2s; }
.rs-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rs-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 15px; box-shadow: 0 8px 18px rgba(124, 108, 240, .28); }
.rs-tile h3 { font-size: 17px; margin-bottom: 6px; }
.rs-tile p { color: var(--muted); font-size: 14px; margin: 0; }

.rs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rs-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; }
.rs-step-num { position: absolute; top: 16px; right: 20px; font-family: var(--head); font-weight: 800; font-size: 34px; color: var(--brand-050); }
.rs-step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-050); color: var(--brand); margin-bottom: 14px; }
.rs-step h3 { font-size: 16px; margin-bottom: 6px; }
.rs-step p { color: var(--muted); font-size: 13.5px; margin: 0; }

.rs-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; box-shadow: var(--shadow-sm); }
.rs-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.rs-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 18px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.rs-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.rs-table tr:last-child td { border-bottom: 0; }
.rs-table a { color: var(--ink); }
.rs-table a:hover { color: var(--brand-700); }
.rs-pct { display: inline-block; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 13px; padding: 3px 11px; border-radius: 999px; }
.rs-table-note { margin-top: 16px; font-size: 13.5px; }

.rs-api { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.rs-api-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.rs-api-copy code { background: var(--brand-050); color: var(--brand-700); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.rs-api-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.rs-api-list li { display: flex; gap: 12px; align-items: flex-start; }
.rs-api-ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand); display: grid; place-items: center; }
.rs-api-list strong { display: block; font-family: var(--head); font-size: 14.5px; color: var(--ink); }
.rs-api-list span { color: var(--muted); font-size: 13.5px; }
.rs-code { background: #211d43; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.rs-code-head { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.65); font-size: 12px; font-family: 'SFMono-Regular', Consolas, monospace; }
.rs-code-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.rs-code-head span:last-child { margin-left: 8px; }
.rs-code pre { margin: 0; padding: 20px; overflow-x: auto; }
.rs-code code { color: #d7d0ff; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; line-height: 1.7; }

.rs-rules { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.rs-rules h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 16px; }
.rs-rules h2 svg { color: var(--brand); }
.rs-rules ul { margin: 0; padding-left: 20px; }
.rs-rules li { color: var(--ink-2); font-size: 14.5px; margin-bottom: 12px; }

/* ---------- join / top-up ---------- */
.join-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.join-highlight { display: flex; gap: 16px; align-items: flex-start; background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.join-hl-ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 15px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.join-highlight strong { font-family: var(--head); font-size: 17px; }
.join-highlight p { margin: 4px 0 0; color: rgba(255,255,255,.92); font-size: 14.5px; }
.join-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.join-note { display: flex; gap: 11px; align-items: flex-start; background: var(--bg-alt); border-radius: 13px; padding: 15px; }
.join-note svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.join-note p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.join-side { position: sticky; top: 90px; }
.join-agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 13px; color: var(--ink-2); font-weight: 400; cursor: pointer; }
.join-agree input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.ok-text { color: var(--ok); }
.order-check.is-pending { background: var(--warn-bg); color: var(--warn); }

/* ---------- reseller dashboard ---------- */
.rs-progress { height: 10px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.rs-progress span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .4s ease; }
.rs-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.key-row { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.key-input { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 13px; background: var(--bg-alt); }
.api-docs { margin: 18px 0 6px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.api-docs summary { padding: 14px 18px; cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 15px; }
.api-docs-body { padding: 0 18px 18px; }
.api-docs-body h4 { font-size: 14px; margin: 16px 0 6px; }
.api-docs-body pre { background: #211d43; border-radius: 10px; padding: 14px; overflow-x: auto; margin: 0; }
.api-docs-body code { color: #d7d0ff; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; }
.api-docs-body p code, .api-docs-body td code { background: var(--brand-050); color: var(--brand-700); padding: 1px 6px; border-radius: 5px; }

@media (max-width: 1024px) {
    .rs-grid, .rs-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .rs-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .rs-hero-inner, .rs-api, .join-layout { grid-template-columns: 1fr; }
    .join-side { position: static; }
    .join-notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .rs-grid, .rs-grid-4, .rs-steps { grid-template-columns: 1fr; }
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 22px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-row:last-of-type { border-bottom: 0; }
.cart-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--brand-050); display: grid; place-items: center; color: var(--brand); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { display: block; font-family: var(--head); font-weight: 600; color: var(--ink); }
.cart-name:hover { color: var(--brand-700); }
.cart-variant { display: block; color: var(--muted); font-size: 13px; }
.cart-unit { display: block; color: var(--muted); font-size: 12.5px; }
.cart-line { font-family: var(--head); font-weight: 700; font-size: 16px; min-width: 72px; text-align: right; }
.cart-remove button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; transition: background .15s, color .15s; }
.cart-remove button:hover { background: var(--danger-bg); color: var(--danger); }
.cart-actions-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.cart-summary h2 { font-size: 19px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; color: var(--ink-2); }
.sum-total { display: flex; justify-content: space-between; padding: 16px 0; margin: 8px 0 16px; border-top: 2px solid var(--line); font-family: var(--head); font-size: 19px; font-weight: 700; color: var(--ink); }
.sum-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 5px; }
.sum-note svg { color: var(--ok); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.co-card h2 { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 18px; }
.co-step { width: 28px; height: 28px; background: var(--grad); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.co-hint { color: var(--muted); font-size: 14px; margin-top: -6px; margin-bottom: 16px; }
.field-hint, .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; margin-bottom: 14px; }
.req { color: var(--danger); }
.pay-methods { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 13px; padding: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-050); }
.pay-opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-opt-body strong { display: block; font-family: var(--head); font-size: 15px; }
.pay-opt-body span { color: var(--muted); font-size: 13px; }
.co-note-box { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-050); border-radius: 12px; padding: 15px; margin-top: 16px; }
.co-note-box svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.co-note-box p { margin: 0; font-size: 13px; color: var(--ink-2); }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.checkout-summary h2 { font-size: 18px; margin-bottom: 16px; }
.co-items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.co-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; font-size: 14px; }
.co-qty { color: var(--brand-600); font-weight: 700; }
.co-name { color: var(--ink); }
.co-name small { display: block; color: var(--muted); font-size: 12px; }
.co-price { font-weight: 600; }
.co-coupon { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sum-terms { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* ---------- Order success / tables ---------- */
.order-hero { text-align: center; margin-bottom: 30px; }
.order-check { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); margin-bottom: 16px; }
.order-hero h1 { font-size: clamp(24px, 3vw, 32px); }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: var(--bg-alt); color: var(--muted); }
.order-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.order-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.order-table tfoot td { border: 0; padding-top: 12px; }
.order-table .grand td { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--ink); }
.delivery-box { background: var(--bg-alt); border-radius: 12px; padding: 14px; }
.delivery-label { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.delivery-box pre, .delivered-block pre, .delivery-raw { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 8px; font-size: 13px; white-space: pre-wrap; word-break: break-all; font-family: 'SFMono-Regular', Consolas, monospace; }
/* Parsed email:pass:token credential card */
.cred-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 6px; }
.cred-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; }
.cred-k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.cred-row code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 13px; word-break: break-all; font-family: 'SFMono-Regular', Consolas, monospace; user-select: all; }

/* ---------- Gated token delivery ---------- */
.token-delivery { margin-top: 22px; }
.td-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.td-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.td-count { background: var(--brand-050); color: var(--brand-700); font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.td-gate { position: relative; border: 1px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.td-blur { display: grid; gap: 8px; filter: blur(7px); opacity: .5; pointer-events: none; margin-bottom: 18px; }
.td-blur-row { height: 20px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-alt) 30%, #e7e2f7 60%, var(--bg-alt)); }
.td-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.td-gate-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.td-result { margin-top: 4px; }
.td-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.td-dl-label { color: var(--muted); font-size: 13px; margin-left: 4px; }
.btn.btn-sm { padding: 7px 12px; font-size: 13px; }
.td-table-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.td-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: 'SFMono-Regular', Consolas, monospace; }
.td-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.td-table tr:last-child td { border-bottom: 0; }
.td-table .td-i { color: var(--muted); text-align: right; width: 42px; user-select: none; position: sticky; left: 0; background: #fff; }
.td-table .td-c { user-select: all; }
.td-table .td-tok { word-break: break-all; white-space: normal; }
.td-table tr:hover td { background: var(--brand-050); }
/* modal */
.td-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(20, 16, 45, .55); padding: 20px; }
.td-modal[hidden] { display: none; }
.td-modal-box { background: #fff; border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.td-modal-box h3 { margin: 0 0 12px; font-size: 19px; }
.td-warn { display: flex; gap: 8px; align-items: flex-start; background: #fff8e6; border: 1px solid #f5d78a; border-radius: 10px; padding: 12px; font-size: 13.5px; }
.td-warn svg { color: #c98a00; flex-shrink: 0; margin-top: 1px; }
.td-input { width: 100%; margin-top: 10px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-family: 'SFMono-Regular', Consolas, monospace; }
.td-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.td-modal-box .lbl { display: block; font-weight: 600; font-size: 13.5px; margin: 12px 0 5px; }
/* replacement request */
.replacement-block { margin: 0 0 18px; }
.replacement-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.replacement-cta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.replacement-cta svg { color: var(--brand); }
.rep-help { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; background: var(--brand-050); border-radius: 10px; padding: 11px 13px; }
.rep-help a { color: var(--brand-700); font-weight: 600; }
/* email access */
.email-access-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.email-access-cta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.email-access-cta svg { color: var(--brand); }
.ea-form .lbl { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 6px; }
.ea-form .lbl:first-child { margin-top: 0; }
.ea-form input { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.ea-form input[readonly] { background: var(--bg-alt); color: var(--ink-2); }
.ea-form .btn { margin-top: 18px; }
.ea-viewer { margin-top: 18px; }
.ea-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.ea-vmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ea-vlabel { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-700); font-weight: 700; font-size: 13px; }
.ea-mail { min-height: 220px; }
.ea-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 46px 20px; text-align: center; color: var(--ink-2); }
.ea-placeholder p { margin: 0; font-size: 14px; }
.ea-spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: eaSpin .8s linear infinite; margin-bottom: 6px; }
@keyframes eaSpin { to { transform: rotate(360deg); } }
.order-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Auth ---------- */
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; max-width: 460px; margin: 20px auto; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .brand-mark { margin: 0 auto 12px; }
.auth-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-050); color: var(--brand); margin-bottom: 12px; }
.auth-head h1 { font-size: 24px; }
.auth-head p { color: var(--muted); margin: 0; }
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.auth-link { font-size: 13.5px; }
.auth-alt { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], textarea, select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; margin: 6px 0 4px; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 108, 240, .14); }
input:disabled { background: var(--bg-alt); color: var(--muted); }
textarea { resize: vertical; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.hp { position: absolute; left: -9999px; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.account-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 90px; }
.account-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-avatar { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.account-user strong { display: block; font-size: 14.5px; }
.account-user span { display: block; color: var(--muted); font-size: 12px; word-break: break-all; }
.role-pill { display: inline-block !important; background: var(--brand-050); color: var(--brand-700); font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-top: 4px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.account-nav a:hover { background: var(--brand-050); color: var(--brand-700); }
.account-nav a.is-active { background: var(--brand); color: #fff; }
.account-nav a.is-active svg { color: #fff; }
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 24px; }
.acct-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.acct-num { display: block; font-family: var(--head); font-size: 26px; font-weight: 800; color: var(--ink); }
.acct-stat span:last-child { color: var(--muted); font-size: 13px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.account-card-head h2 { font-size: 18px; margin: 0; }
.empty-inline { text-align: center; padding: 30px; color: var(--muted); }
.empty-inline p { margin-bottom: 14px; }
/* Site-balance page */
.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--grad-soft, linear-gradient(135deg, #efeaff, #f6f3ff)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 22px; }
.balance-hero-label { display: block; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.balance-hero-amt { display: block; font-family: var(--head); font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.balance-hero-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.topup-form .lbl { display: block; font-weight: 600; margin: 14px 0 6px; }
.topup-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topup-quick button { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.topup-quick button:hover { border-color: var(--brand); background: var(--brand-050); }
.balance-refund-note { background: #fff8e6; border: 1px solid #f5d78a; }
.balance-refund-note svg { color: #c98a00; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.acct-table th, .acct-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.acct-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; }
.acct-table .ta-r { text-align: right; }
.acct-table .amt-pos { color: #16a34a; font-weight: 700; }
.acct-table .amt-neg { color: var(--danger, #d64545); font-weight: 700; }
.acct-table .tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.acct-table .tag-muted { background: var(--bg-alt, #f2f0fa); color: var(--ink-2); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--line); }
.data-table td { padding: 13px 10px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* ---------- Prose (legal pages) ---------- */
.prose { color: var(--ink-2); font-size: 15.5px; }
.prose h2 { font-size: 21px; margin: 32px 0 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.page-updated { color: var(--muted); font-size: 13.5px; font-style: italic; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.ci-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-list strong { display: block; font-family: var(--head); font-size: 14.5px; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 14px; }

/* ---------- Status ---------- */
.status-hero { text-align: center; margin-bottom: 30px; }
.status-dot-lg { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px var(--ok-bg); margin-bottom: 14px; }
.status-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.status-item { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.status-item:last-child { border-bottom: 0; }
.status-ok { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; font-size: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }

/* ---------- Error ---------- */
.error-page { padding: 60px 0; }
.error-code { font-family: var(--head); font-size: 100px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 54px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand .brand-logo { height: 46px; }
.footer-tag { color: var(--muted); font-size: 14px; margin: 14px 0 16px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-050); color: var(--brand); display: grid; place-items: center; transition: background .15s, color .15s; }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--brand-600); }
.footer-trust { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 14px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge svg { display: block; border-radius: 5px; }
.ssl-badge { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.ssl-badge svg { color: var(--ok); }
.footer-bottom { padding: 22px 0 34px; border-top: 1px solid var(--line); }
.disclaimer { color: var(--muted); font-size: 12px; margin-bottom: 8px; max-width: 900px; }
.copyright { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Recent purchase popup ---------- */
.recent-popup { position: fixed; bottom: 24px; left: 24px; z-index: 80; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); max-width: 320px; transform: translateY(20px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.recent-popup.show { transform: translateY(0); opacity: 1; }
.rp-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex-shrink: 0; }
.rp-body { flex: 1; line-height: 1.3; }
.rp-body strong { font-size: 13.5px; display: block; }
.rp-body span { color: var(--muted); font-size: 12px; }
.rp-close { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 4px; }

/* ---------- Live chat ---------- */
.live-chat { position: fixed; bottom: 24px; right: 24px; z-index: 85; }
.lc-toggle { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: transform .2s; }
.lc-toggle:hover { transform: scale(1.06); }
.lc-dot { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; border: 2px solid #fff; }
.lc-panel { position: absolute; bottom: 74px; right: 0; width: 330px; max-width: calc(100vw - 48px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.lc-head { background: var(--grad); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.lc-head strong { display: block; font-family: var(--head); }
.lc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.lc-status i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; }
.lc-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.lc-messages { padding: 18px; display: grid; gap: 10px; background: var(--bg); }
.lc-msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14px; color: var(--ink-2); max-width: 85%; }
.lc-msg p { margin: 0; }
.lc-actions { padding: 16px 18px; border-top: 1px solid var(--line); }
.lc-note { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .category-grid, .product-grid, .listing-main .product-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 50px 0; }
    .hero-art { display: none; }
    .hero-cta, .hero-chips { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .product-detail { grid-template-columns: 1fr; gap: 26px; }
    .pd-lower { grid-template-columns: 1fr; }
    .pd-aside { position: static; }
    .cart-layout, .checkout-layout, .contact-layout, .token-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary, .token-summary { position: static; }
    .listing-layout { grid-template-columns: 1fr; }
    .listing-side { position: static; display: grid; grid-template-columns: 1fr; }
    .side-cats { flex-direction: row; flex-wrap: wrap; }
    .side-help { display: none; }
    .account-layout { grid-template-columns: 1fr; }
    .account-side { position: static; }
}
@media (max-width: 768px) {
    .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; max-width: 82vw; background: #fff; flex-direction: column; align-items: stretch; padding: 80px 20px 20px; gap: 4px; transform: translateX(100%); transition: transform .28s ease; z-index: 95; box-shadow: var(--shadow-lg); overflow-y: auto; }
    .main-nav.open { transform: translateX(0); }
    .nav-link { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
    .nav-mobile-actions { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
    .nav-toggle { display: flex; order: 3; }
    .header-search { display: none; }
    .header-actions { margin-left: auto; gap: 4px; }
    .brand-logo { height: 32px; }
    /* Mega dropdown becomes an inline list inside the mobile drawer */
    .nav-item.has-mega { flex-direction: column; align-items: stretch; }
    .nav-trigger { justify-content: space-between; width: 100%; padding: 12px 14px; font-size: 15px; }
    .mega { position: static; width: auto; margin-top: 2px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 6px; }
    .mega::before { display: none; }
    .mega-grid { grid-template-columns: 1fr; gap: 2px; }
    .mega-card { padding: 10px 12px; }
    .mega-ic { width: 36px; height: 36px; }
    .mega-foot { margin-top: 6px; }
    .trust-badges { grid-template-columns: 1fr 1fr; }
    .category-grid, .product-grid, .listing-main .product-grid, .reviews-grid, .steps, .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cart-row { grid-template-columns: 56px 1fr auto; grid-template-areas: "thumb info line" "thumb qty remove"; row-gap: 10px; }
    .cart-thumb { grid-area: thumb; width: 56px; height: 56px; }
    .cart-info { grid-area: info; }
    .cart-qty { grid-area: qty; }
    .cart-line { grid-area: line; }
    .cart-remove { grid-area: remove; justify-self: end; }
    .section { padding: 46px 0; }
}
@media (max-width: 480px) {
    .category-grid, .product-grid, .listing-main .product-grid, .reviews-grid, .steps, .stats-grid, .trust-badges { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .pd-buy-actions { flex-direction: column; }
    .pd-buy-actions .qty { width: 100%; justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 26px 20px; }
}

/* ================= Members boosting — step 1 configurator ================= */
.boost-page { padding-top: 34px; }
.boost-card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 34px 32px;
}
.boost-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.boost-ic {
    display: grid; place-items: center;
    width: 46px; height: 46px; flex: none;
    border-radius: 14px;
    background: var(--brand-050); color: var(--brand);
}
.boost-head h1 { font-family: var(--head); font-size: 1.35rem; line-height: 1.25; margin: 0; }
.boost-head-sub { display: block; }
.boost-note { color: var(--ink-2); font-size: .95rem; margin: 0 0 20px; }
.boost-div { border: 0; border-top: 1px solid var(--line); margin: 4px 0 22px; }
.boost-field { margin-bottom: 18px; }
.boost-field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.boost-field .req { color: var(--danger); }
.boost-select { position: relative; }
.boost-select select,
.boost-field input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    font: inherit; color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.boost-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.boost-select::after {
    content: ""; position: absolute; right: 16px; top: 50%;
    width: 9px; height: 9px; pointer-events: none;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
}
.boost-field input[type="text"]:focus,
.boost-select select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.boost-field input[type="text"]::placeholder { color: var(--muted); }
.boost-sub { text-align: center; color: var(--brand); font-size: .85rem; margin: 9px 0 0; }
.boost-card .btn-block { margin-top: 6px; justify-content: center; }
@media (max-width: 560px) {
    .boost-card { padding: 26px 20px; }
    .boost-head h1 { font-size: 1.2rem; }
}
/* fetched server info (step 2) */
.boost-server { animation: bs-fade .25s ease; }
@keyframes bs-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bs-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bs-avatar {
    width: 56px; height: 56px; flex: none;
    border-radius: 16px; object-fit: cover;
    border: 1px solid var(--line); background: var(--bg-alt);
}
.bs-avatar-ph {
    display: grid; place-items: center;
    font-family: var(--head); font-weight: 700; font-size: 1.4rem;
    color: var(--brand); background: var(--brand-050);
}
.bs-id-text { min-width: 0; }
.bs-id-text strong { display: block; font-size: 1.1rem; line-height: 1.3; word-break: break-word; }
.bs-id-text span { color: var(--muted); font-size: .88rem; }
.bs-stats {
    margin: 0 0 22px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden;
}
.bs-stats > div {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px;
    border-top: 1px solid var(--line-2);
}
.bs-stats > div:first-child { border-top: 0; }
.bs-stats dt {
    display: flex; align-items: center; gap: 7px;
    color: var(--ink-2); font-size: .9rem;
}
.bs-stats dd {
    margin: 0; font-weight: 600; color: var(--ink);
    font-variant-numeric: tabular-nums; text-align: right; word-break: break-all;
}
.bs-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg);
    display: inline-block;
}
/* capacity rows (max members we can add) */
.boost-capacity { margin-bottom: 18px; }
.cap-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.cap-row + .cap-row { margin-top: 10px; }
.cap-ic { font-size: 1.15rem; line-height: 1; flex: none; }
.cap-label { flex: 1; color: var(--ink-2); font-size: .9rem; line-height: 1.35; }
.cap-label strong { color: var(--ink); }
.cap-val {
    flex: none; font-weight: 700; font-family: var(--head);
    color: var(--brand); font-variant-numeric: tabular-nums;
    background: var(--brand-050); border-radius: 8px;
    padding: 3px 11px; min-width: 46px; text-align: center;
}
.cap-val-tbd { color: var(--muted); background: var(--line-2); }

/* billing note + warranty box */
.boost-terms { margin-bottom: 22px; }
.bt-billing {
    display: flex; gap: 9px; align-items: flex-start;
    margin: 0 0 12px; color: var(--ink-2); font-size: .9rem; line-height: 1.5;
}
.bt-billing .bt-ic { font-size: 1rem; flex: none; margin-top: 1px; }
.bt-warranty {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 13px 15px; border-radius: var(--radius-sm);
    background: var(--ok-bg); border: 1px solid #bce6cd;
}
.bt-warranty .bt-ic { font-size: 1.05rem; flex: none; margin-top: 1px; }
.bt-warranty p { margin: 0; font-size: .88rem; line-height: 1.5; color: #1c6b3f; }
.bt-warranty strong { color: #12603a; }

/* step 2 checkout: amount + price table + payment (reuses token .ts-*, .pay-opt2, .qty*) */
.boost-checkout { margin: 0; }
.bc-amount { margin-bottom: 16px; }
.bc-amount > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.bc-amount > label small { color: var(--muted); font-weight: 500; }
.amount-hint { margin: 8px 0 0; font-size: .82rem; color: var(--muted); min-height: 1em; }
.amount-hint.is-warn { color: var(--warn); font-weight: 600; }
.bc-summary { margin: 4px 0 16px; }
.bc-summary .ts-row small, .bc-summary .ts-total small { color: var(--muted); font-weight: 500; font-size: 12px; }
.bc-email { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.bc-email input {
    width: 100%; margin-top: 8px; padding: 12px 14px; font: inherit; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.bc-email input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.bc-deliver { margin: 2px 0 12px; }
.bc-pay { margin: 14px 0 4px; }
.bc-pay-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.bc-trust { margin-top: 14px; }
.boost-back {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 16px; padding: 6px;
    color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.boost-back:hover { color: var(--brand); }

/* ================= Live order tracker ================= */
.bt-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bt-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px;
    font-weight: 700; font-size: .9rem;
    background: var(--brand-050); color: var(--brand-700);
}
.bt-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bt-badge[data-status="queued"]     { background: var(--brand-050); color: var(--brand-700); }
.bt-badge[data-status="processing"] { background: var(--warn-bg); color: var(--warn); }
.bt-badge[data-status="processing"]::before { animation: bt-pulse 1s infinite; }
.bt-badge[data-status="completed"]  { background: var(--ok-bg); color: #157a41; }
.bt-badge[data-status="failed"]     { background: var(--danger-bg); color: #a02b22; }
.bt-badge[data-status="canceled"]   { background: var(--line-2); color: var(--muted); }
@keyframes bt-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.bt-queue { color: var(--ink-2); font-size: .9rem; }
.bt-queue strong { color: var(--ink); }

.bt-progress { margin-bottom: 20px; }
.bt-bar { height: 12px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.bt-bar span {
    display: block; height: 100%; width: 0;
    background: var(--grad);
    border-radius: 999px; transition: width .6s ease;
}
.bt-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.bt-progress-meta strong { color: var(--ink); }

.bt-h2 { font-family: var(--head); font-size: 1.05rem; margin: 0 0 14px; }
.bt-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.bt-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.bt-ev { position: relative; padding: 0 0 16px 22px; }
.bt-ev:last-child { padding-bottom: 0; }
.bt-ev-dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--card); }
.bt-ev-progress .bt-ev-dot  { background: var(--lav); }
.bt-ev-completed .bt-ev-dot { background: var(--ok); }
.bt-ev-failed .bt-ev-dot    { background: var(--danger); }
.bt-ev-body { display: flex; flex-direction: column; gap: 2px; }
.bt-ev-msg { font-size: .92rem; color: var(--ink); }
.bt-ev-time { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.bt-live { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: .85rem; font-weight: 600; color: var(--brand); }
.bt-dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: bt-pulse 1.2s infinite; }
.bt-live.is-done { color: var(--ok); }
.bt-live.is-done .bt-dot-live { display: none; }
.bt-keep { margin-top: 10px; }
