/* ============================================================
   CapeTown5 — Page & Component Styles
   ============================================================ */

/* ── Header extras ────────────────────────────────────────── */
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark  { display: block; }

.avatar-sm { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.avatar-initial {
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: var(--on-ink);
    font-size: 13px; font-weight: 700;
}
.avatar-initial.lg { width: 46px; height: 46px; font-size: 18px; }

.theme-sun, .theme-moon { display: none; }
[data-theme="light"] .theme-moon { display: flex; align-items: center; gap: 10px; }
[data-theme="dark"]  .theme-sun  { display: flex; align-items: center; gap: 10px; }

.user-menu { position: relative; }
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 250px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--sh-3);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all var(--fast); z-index: 130;
}
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.ud-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dropdown a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--r-sm);
    font-size: 14px; transition: background var(--fast);
}
.user-dropdown a:hover { background: var(--surface-2); }
.user-dropdown .ml-auto { margin-left: auto; }
.user-dropdown .divider { margin: 6px 0; }

/* ── Drawer ───────────────────────────────────────────────── */
.drawer-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer-user { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.drawer-user img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }

.drawer-nav { padding: 8px; flex: 1; overflow-y: auto; }
.drawer-nav > a, .drawer-theme {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 12px 14px; border-radius: var(--r-sm);
    font-size: 14.5px; font-weight: 500; text-align: left;
    transition: background var(--fast);
}
.drawer-nav > a:hover, .drawer-theme:hover { background: var(--surface-2); }
.drawer-sep {
    padding: 16px 14px 7px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--faint);
}
.drawer-group summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: var(--r-sm);
    font-size: 14.5px; font-weight: 500; cursor: pointer; list-style: none;
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary:hover { background: var(--surface-2); }
.drawer-group[open] summary svg { transform: rotate(180deg); }
.drawer-group summary svg { transition: transform var(--fast); }
.drawer-nav a.sub { padding-left: 30px; font-size: 13.5px; color: var(--muted); }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); text-align: center; flex: none; }

/* ── WhatsApp float ───────────────────────────────────────── */
.wa-float {
    position: fixed; right: 16px; z-index: 60;
    bottom: calc(var(--bottom-h) + 18px + env(safe-area-inset-bottom));
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff;
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
    transition: transform var(--fast);
}
.wa-float:hover { transform: scale(1.08); }
@media (min-width: 861px) { .wa-float { bottom: 24px; } }

/* ── Newsletter ───────────────────────────────────────────── */
.news-form { display: flex; gap: 8px; }
.news-form .input { padding: 10px 13px; font-size: 13.5px; }
.news-form .btn { padding: 10px 14px; flex: none; }

/* ============================================================
   HOME
   ============================================================ */

/* Story deals bar */
.stories { padding-top: 14px; }
.stories .rail > * { width: auto; }
.story {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    width: 74px; text-align: center;
}
.story-ring {
    width: 66px; height: 66px; border-radius: 50%; padding: 2.5px;
    background: conic-gradient(from 140deg, var(--gold), #FF7A45, var(--gold));
    transition: transform var(--fast);
}
.story:active .story-ring { transform: scale(.94); }
.story-ring img, .story-ring .ph {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2.5px solid var(--bg); background: var(--surface-2);
}
.story-ring .ph { display: grid; place-items: center; color: var(--faint); }
.story span { font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }

/* Hero */
.hero { position: relative; }
.hero-slider {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; border-radius: var(--r-lg);
    -ms-overflow-style: none;
}
.hero-slider::-webkit-scrollbar { display: none; }
.hero-slide {
    flex: 0 0 100%; scroll-snap-align: center;
    position: relative; aspect-ratio: 16/7; min-height: 240px;
    border-radius: var(--r-lg); overflow: hidden;
    background: var(--surface-2);
}
@media (max-width: 700px) { .hero-slide { aspect-ratio: 4/3.4; min-height: 300px; } }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide .hero-body {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(22px, 5vw, 56px);
    background: linear-gradient(90deg, rgba(10,10,12,.78) 0%, rgba(10,10,12,.35) 55%, transparent 100%);
    color: #fff;
}
@media (max-width: 700px) {
    .hero-slide .hero-body {
        justify-content: flex-end;
        background: linear-gradient(0deg, rgba(10,10,12,.85) 10%, rgba(10,10,12,.2) 62%, transparent 100%);
    }
}
.hero-body h2 {
    font-size: clamp(24px, 4.4vw, 44px); color: #fff;
    max-width: 15ch; margin-bottom: 8px;
}
.hero-body p { font-size: clamp(13px, 1.6vw, 16px); opacity: .9; max-width: 34ch; margin-bottom: 18px; }
.hero-body .btn { align-self: flex-start; }

.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.hero-dots button {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--line-strong); transition: all var(--base);
}
.hero-dots button.active { width: 22px; border-radius: 4px; background: var(--ink); }

/* Category circles */
.cat-rail .rail > * { width: auto; }
.cat-tile {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    width: 88px; text-align: center;
}
.cat-tile .thumb {
    width: 80px; height: 80px; border-radius: 22px;
    overflow: hidden; background: var(--surface-2);
    border: 1px solid var(--line);
    transition: transform var(--base), border-color var(--base);
    display: grid; place-items: center; color: var(--faint);
}
.cat-tile:hover .thumb { transform: translateY(-3px); border-color: var(--gold); }
.cat-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile span { font-size: 12px; font-weight: 500; line-height: 1.3; }

/* USP strip */
.usp-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    padding: 16px 0;
}
@media (max-width: 700px) { .usp-strip { grid-template-columns: repeat(2, 1fr); } }
.usp {
    display: flex; align-items: center; gap: 10px;
    padding: 13px; border-radius: var(--r-md);
    background: var(--bg-soft); border: 1px solid var(--line);
}
.usp .ico {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-deep);
}
.usp b { font-size: 13px; display: block; }
.usp span { font-size: 11.5px; color: var(--muted); }

/* Deal of the day */
.deal-band {
    border-radius: var(--r-lg);
    background: linear-gradient(120deg, #16161B 0%, #23231C 55%, #2E2413 100%);
    color: #fff; padding: clamp(20px, 4vw, 32px);
    position: relative; overflow: hidden;
}
.deal-band::after {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(231,185,77,.28), transparent 70%);
}
.deal-band h2 { color: #fff; }
.deal-band .sub { color: rgba(255,255,255,.68); }
.countdown { display: flex; gap: 7px; margin-top: 12px; }
.countdown div {
    min-width: 46px; padding: 7px 6px; text-align: center;
    background: rgba(255,255,255,.1); border-radius: var(--r-sm);
    backdrop-filter: blur(6px);
}
.countdown b { display: block; font-size: 19px; font-family: var(--font-display); color: var(--gold); }
.countdown span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; opacity: .7; }

/* Reseller CTA band */
.resell-cta {
    border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(135deg, var(--ink) 0%, #1B1B22 100%);
    color: #fff; padding: clamp(24px, 5vw, 44px);
    position: relative;
}
.resell-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px circle at 88% 15%, rgba(231,185,77,.22), transparent 55%);
}
.resell-cta > * { position: relative; }
.resell-cta h2 { color: #fff; max-width: 18ch; }
.resell-cta p { color: rgba(255,255,255,.72); max-width: 46ch; margin-block: 10px 20px; }
.resell-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 22px; }
.resell-stats b { font-family: var(--font-display); font-size: 26px; color: var(--gold); display: block; }
.resell-stats span { font-size: 12px; color: rgba(255,255,255,.6); }

/* Trust / review band */
.review-mini {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 16px;
}
.review-mini .stars { color: var(--gold); display: flex; gap: 1px; margin-bottom: 8px; }
.review-mini p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.review-mini .who { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }

/* ============================================================
   LISTING / SHOP
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.filters { position: sticky; top: calc(var(--nav-h) + 16px); }
.filter-block { padding-block: 16px; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h4 {
    font-size: 12.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--faint); margin-bottom: 12px;
    font-family: var(--font);
}
.filter-list { display: flex; flex-direction: column; gap: 9px; max-height: 230px; overflow-y: auto; }
.filter-list label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.filter-list .n { margin-left: auto; font-size: 11.5px; color: var(--faint); }

.size-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chips label { cursor: pointer; }
.size-chips input { position: absolute; opacity: 0; }
.size-chips span {
    display: grid; place-items: center;
    min-width: 40px; height: 34px; padding: 0 8px;
    font-size: 12.5px; font-weight: 500;
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    transition: all var(--fast);
}
.size-chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }

.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chips label { cursor: pointer; position: relative; }
.color-chips input { position: absolute; opacity: 0; }
.color-chips span {
    display: block; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--line); transition: all var(--fast);
}
.color-chips input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.shop-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding-block: 14px; flex-wrap: wrap;
}
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters .chip { background: var(--gold-soft); color: var(--gold-deep); }

.filter-fab {
    position: fixed; z-index: 55; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom));
    display: none;
}
@media (max-width: 900px) { .filter-fab { display: flex; } }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; gap: 22px; } }

.pd-gallery { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 900px) { .pd-gallery { position: static; margin-inline: calc(var(--gutter) * -1); } }

.pd-main {
    position: relative; aspect-ratio: 3/4; overflow: hidden;
    border-radius: var(--r-lg); background: var(--surface-2);
}
@media (max-width: 900px) { .pd-main { border-radius: 0; } }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slides > div { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }

.pd-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs button {
    flex: none; width: 62px; aspect-ratio: 3/4; border-radius: var(--r-sm);
    overflow: hidden; border: 2px solid transparent; opacity: .6;
    transition: all var(--fast);
}
.pd-thumbs button.active { border-color: var(--ink); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-counter {
    position: absolute; bottom: 12px; right: 12px; z-index: 2;
    padding: 4px 10px; border-radius: var(--r-full);
    background: rgba(10,10,12,.6); color: #fff; font-size: 11.5px; font-weight: 600;
    backdrop-filter: blur(6px);
}

.pd-title { font-size: clamp(20px, 3.4vw, 28px); margin-bottom: 6px; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.pd-price { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.pd-mrp { font-size: 16px; color: var(--faint); text-decoration: line-through; }
.pd-off { font-size: 15px; font-weight: 700; color: var(--money); }

.pd-section { padding-block: 18px; border-top: 1px solid var(--line); }
.pd-section h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 12px; font-family: var(--font); font-weight: 700; }

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
    min-width: 46px; height: 42px; padding: 0 14px;
    display: grid; place-items: center;
    font-size: 14px; font-weight: 500;
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    transition: all var(--fast); cursor: pointer; position: relative;
}
.opt:hover { border-color: var(--line-strong); }
.opt.active { border-color: var(--ink); background: var(--ink); color: var(--on-ink); font-weight: 600; }
.opt.disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.opt-color {
    width: 38px; height: 38px; border-radius: 50%; padding: 0;
    border: 2px solid var(--line);
}
.opt-color.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); border-color: transparent; }

.qty-box {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: var(--r-full); overflow: hidden;
}
.qty-box button { width: 40px; height: 42px; display: grid; place-items: center; transition: background var(--fast); }
.qty-box button:hover { background: var(--surface-2); }
.qty-box input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; }

.pincode-box { display: flex; gap: 8px; max-width: 340px; }
.pincode-box .input { padding: 11px 14px; }
.pin-result { margin-top: 10px; font-size: 13.5px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
@media (max-width: 500px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-grid div span { display: block; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.spec-grid div b { font-size: 14px; font-weight: 500; }

.pd-trust { display: flex; gap: 18px; flex-wrap: wrap; }
.pd-trust div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pd-trust svg { color: var(--gold-deep); flex: none; }

/* Reseller share panel on product page */
.resell-panel {
    border-radius: var(--r-md); padding: 16px;
    background: linear-gradient(135deg, var(--money-soft), color-mix(in srgb, var(--money-soft) 40%, var(--bg)));
    border: 1px solid color-mix(in srgb, var(--money) 26%, transparent);
}
.margin-slider { width: 100%; accent-color: var(--money); margin-block: 10px 4px; }
.earn-preview { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.earn-preview b { font-family: var(--font-display); font-size: 22px; color: var(--money); }

/* Reviews */
.rating-summary { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.rating-big { text-align: center; }
.rating-big b { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.rating-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.rating-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rating-bar .track { flex: 1; height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rating-bar .track i { display: block; height: 100%; background: var(--gold); }

.review-item { padding-block: 18px; border-bottom: 1px solid var(--line); }
.review-imgs { display: flex; gap: 6px; margin-top: 10px; }
.review-imgs img { width: 62px; height: 62px; object-fit: cover; border-radius: var(--r-sm); }

/* Sticky buy bar */
.buy-bar { display: flex; gap: 10px; }
.buy-bar .btn { flex: 1; }

/* ============================================================
   CART / CHECKOUT
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
    display: grid; grid-template-columns: 86px 1fr; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item .thumb { aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .oos-tag { font-size: 11.5px; color: var(--danger); font-weight: 600; }

.summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.sum-row.total {
    border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px;
    font-size: 17px; font-weight: 700; font-family: var(--font-display);
}
.savings-strip {
    background: var(--money-soft); color: var(--money);
    padding: 10px 14px; border-radius: var(--r-sm);
    font-size: 13px; font-weight: 600; text-align: center; margin-top: 12px;
}

.coupon-row { display: flex; gap: 8px; }
.coupon-card {
    display: flex; gap: 12px; align-items: center;
    padding: 13px; border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-sm); transition: all var(--fast); cursor: pointer;
}
.coupon-card:hover { border-color: var(--gold); background: var(--gold-soft); }
.coupon-card.disabled { opacity: .5; cursor: not-allowed; }
.coupon-code {
    font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
    padding: 5px 9px; border-radius: var(--r-xs);
    background: var(--gold-soft); color: var(--gold-deep); flex: none;
}

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.step .n {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 700;
    background: var(--surface-2); color: var(--muted);
}
.step.active { color: var(--ink); font-weight: 600; }
.step.active .n { background: var(--ink); color: var(--on-ink); }
.step.done .n { background: var(--money); color: #fff; }
.steps .line { flex: 1; height: 1px; background: var(--line); }

.addr-card {
    padding: 15px; border: 1.5px solid var(--line); border-radius: var(--r-md);
    cursor: pointer; transition: all var(--fast); position: relative;
}
.addr-card:hover { border-color: var(--line-strong); }
.addr-card.selected { border-color: var(--ink); background: var(--bg-soft); }
.addr-card input { position: absolute; opacity: 0; }

.pay-option {
    display: flex; align-items: center; gap: 12px;
    padding: 15px; border: 1.5px solid var(--line); border-radius: var(--r-md);
    cursor: pointer; transition: all var(--fast); margin-bottom: 10px;
}
.pay-option:hover { border-color: var(--line-strong); }
.pay-option.selected { border-color: var(--ink); background: var(--bg-soft); }
.pay-option .ico {
    width: 40px; height: 40px; border-radius: 11px; flex: none;
    display: grid; place-items: center; background: var(--surface-2);
}
.pay-option.disabled { opacity: .5; pointer-events: none; }

/* ============================================================
   ORDERS / TRACKING
   ============================================================ */
.order-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.order-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.order-thumbs::-webkit-scrollbar { display: none; }
.order-thumbs img { width: 54px; height: 68px; object-fit: cover; border-radius: var(--r-xs); flex: none; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; }
.s-amber  { background: var(--warn-soft);  color: var(--warn); }
.s-blue,.s-indigo,.s-violet,.s-cyan { background: var(--info-soft); color: var(--info); }
.s-green  { background: var(--money-soft); color: var(--money); }
.s-red    { background: var(--danger-soft);color: var(--danger); }
.s-gray   { background: var(--surface-2);  color: var(--muted); }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before {
    content: ''; position: absolute; left: -26px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--bg); border: 2.5px solid var(--line-strong);
}
.tl-item.done::before { background: var(--money); border-color: var(--money); }
.tl-item.current::before {
    background: var(--gold); border-color: var(--gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent);
}
.tl-item b { font-size: 14px; }
.tl-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   ACCOUNT
   ============================================================ */
.acct-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .acct-layout { grid-template-columns: 1fr; } }

.acct-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 860px) { .acct-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; } }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 500; white-space: nowrap;
    transition: all var(--fast);
}
.acct-nav a:hover { background: var(--surface-2); }
.acct-nav a.active { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.acct-nav a .ml-auto { margin-left: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.stat {
    padding: 16px; border-radius: var(--r-md);
    background: var(--surface); border: 1px solid var(--line);
}
.stat .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; }
.stat b { display: block; font-family: var(--font-display); font-size: 23px; line-height: 1.15; }
.stat span { font-size: 12px; color: var(--muted); }

/* ============================================================
   RESELLER DASHBOARD
   ============================================================ */
.rs-hero {
    border-radius: var(--r-lg); padding: clamp(18px, 4vw, 26px);
    background: linear-gradient(135deg, var(--ink) 0%, #1C1C24 60%, #241E10 100%);
    color: #fff; position: relative; overflow: hidden;
}
.rs-hero::after {
    content: ''; position: absolute; right: -70px; bottom: -70px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(231,185,77,.25), transparent 70%);
}
.rs-hero > * { position: relative; }
.rs-balance { font-family: var(--font-display); font-size: clamp(30px, 7vw, 42px); font-weight: 700; color: var(--gold); line-height: 1.1; }
.rs-hero .lbl { font-size: 12.5px; color: rgba(255,255,255,.6); }

.level-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--r-full);
    font-size: 12px; font-weight: 700; letter-spacing: .03em;
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
}

.link-box {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: var(--r-sm);
    background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.25);
    font-family: var(--font-mono); font-size: 12.5px;
    overflow: hidden;
}
.link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.rs-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px) { .rs-actions { grid-template-columns: repeat(2, 1fr); } }
.rs-action {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 10px; border-radius: var(--r-md); text-align: center;
    background: var(--surface); border: 1px solid var(--line);
    transition: all var(--fast); font-size: 12.5px; font-weight: 500;
}
.rs-action:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--sh-2); }
.rs-action .ico {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-deep);
}

.chart-wrap { height: 180px; position: relative; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.bar-chart div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.bar-chart i {
    display: block; width: 100%; border-radius: 5px 5px 2px 2px; min-height: 3px;
    background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 55%, var(--bg)));
    transition: height .6s var(--ease);
}
.bar-chart span { font-size: 9.5px; color: var(--faint); white-space: nowrap; }

.leader-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.leader-rank {
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
    background: var(--surface-2); color: var(--muted);
}
.leader-rank.gold   { background: linear-gradient(135deg,#F5D77E,#D9A21B); color:#3A2A00; }
.leader-rank.silver { background: linear-gradient(135deg,#E4E8ED,#B4BCC6); color:#2A2E33; }
.leader-rank.bronze { background: linear-gradient(135deg,#E5B98C,#B4794A); color:#3A2410; }

.level-card {
    padding: 18px; border-radius: var(--r-md);
    border: 1.5px solid var(--line); position: relative;
    transition: all var(--base);
}
.level-card.current { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.level-card .lvl-ico {
    width: 44px; height: 44px; border-radius: 13px;
    display: grid; place-items: center; margin-bottom: 12px;
}

.earn-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.earn-row .amt { margin-left: auto; font-family: var(--font-display); font-weight: 700; }

/* Share sheet */
.share-preview {
    border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line); background: var(--surface);
}
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-btn {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 13px 6px; border-radius: var(--r-md);
    background: var(--surface-2); font-size: 11.5px; font-weight: 500;
    transition: all var(--fast);
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 32px 16px 60px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }

/* ============================================================
   SPIN WHEEL
   ============================================================ */
.wheel-wrap { position: relative; width: min(300px, 82vw); margin: 0 auto; aspect-ratio: 1; }
.wheel {
    width: 100%; height: 100%; border-radius: 50%;
    transition: transform 4.6s cubic-bezier(.15,.9,.2,1);
    box-shadow: 0 10px 40px rgba(0,0,0,.2), inset 0 0 0 6px var(--surface);
}
.wheel-pin {
    position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; z-index: 3;
    border-left: 13px solid transparent; border-right: 13px solid transparent;
    border-top: 24px solid var(--gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.wheel-hub {
    position: absolute; inset: 0; margin: auto;
    width: 62px; height: 62px; border-radius: 50%; z-index: 2;
    background: var(--surface); border: 4px solid var(--gold);
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 12px;
    box-shadow: var(--sh-2);
}

/* ============================================================
   CMS / MISC
   ============================================================ */
.prose { max-width: 68ch; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { margin: 28px 0 12px; }
.prose h3 { margin: 22px 0 10px; }
.prose p  { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; }
.prose a  { color: var(--gold-deep); text-decoration: underline; }
.prose img { border-radius: var(--r-md); margin-block: 16px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 17px 0; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item summary svg { transition: transform var(--fast); flex: none; color: var(--muted); }
.faq-item .ans { padding-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err-code { font-family: var(--font-display); font-size: clamp(70px, 16vw, 130px); font-weight: 700; line-height: .9; color: var(--gold); }

/* ── Simple table (size charts, specs) ────────────────────── */
.table-simple { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-simple th, .table-simple td {
    padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line);
}
.table-simple th {
    font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--faint); background: var(--surface-2); font-weight: 700;
}
.table-simple tr:last-child td { border-bottom: 0; }

/* ── Misc fixes ───────────────────────────────────────────── */
.ml-auto { margin-left: auto; }
.btn.disabled { opacity: .5; pointer-events: none; }
.p-media-link { display: block; }
.segment a { display: contents; }
.acct-nav .danger { color: var(--danger); }
.drawer-nav .danger { color: var(--danger); }
.user-dropdown .danger { color: var(--danger); }
input[type="range"] { accent-color: var(--ink); }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ── Visual fixes ─────────────────────────────────────────── */

/* Empty cart badge should not render as a bare dot */
.bottom-nav a .count:empty,
.bottom-nav a .count[data-count="0"] { display: none; }

/* USP strip: let text breathe on narrow screens */
@media (max-width: 700px) {
    .usp-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
    .usp { padding: 11px 10px; gap: 8px; }
    .usp .ico { width: 30px; height: 30px; border-radius: 9px; }
    .usp b { font-size: 12px; line-height: 1.25; }
    .usp span { font-size: 10.5px; line-height: 1.3; display: block; }
    .usp > div { min-width: 0; }
}

/* Deal band rail should not clip its last card */
.deal-band .rail { padding-right: 4px; }
.deal-band .rail::after { content: ''; flex: 0 0 4px; }
