/* SMC store: dark purple neon with a sunset gradient. Shares its look with ../tebex-theme. */

:root {
    --bg: #0b0912;
    --surface: #14111d;
    --surface-2: #1b1727;
    --line: #2a2439;
    --text: #f1edf8;
    --muted: #9a92ad;
    --accent: #b35cff;
    --accent-hot: #e64bd6;
    --sunset: #ff8a3d;
    --accent-glow: rgba(179, 92, 255, 0.4);
    --grad: linear-gradient(135deg, #8a3dff 0%, #c64bff 45%, #ff5fa2 100%);
    --grad-sunset: linear-gradient(90deg, #6d35ff 0%, #c64bff 35%, #ff5fa2 70%, #ff8a3d 100%);
    --ok: #3ddc84;
    --danger: #ff4d6d;
    --radius: 10px;
    --font-display: "Chakra Petch", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    /* Tebex legal footer, matched to the theme (must stay visible) */
    --tebex-legal-footer-background-color: #0b0912;
    --tebex-legal-footer-text-color: #9a92ad;
    --tebex-legal-footer-border-color: #2a2439;
    --tebex-legal-footer-logo-color: #f1edf8;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: 17px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.site-main { flex: 1; position: relative; z-index: 1; }
.section { padding-top: 40px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }
.stack { display: grid; gap: 12px; }

/* Faint diagonal speed lines behind everything */
.speed-lines {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 85% -10%, var(--accent-glow), transparent 70%),
        repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.018) 46px 47px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 8px;
    font: 600 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em;
    cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
    color: var(--text); background: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-primary, .btn-secondary {
    background: var(--grad);
    color: #fff;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    border-radius: 0;
}
.btn-primary:hover:not([disabled]), .btn-secondary:hover:not([disabled]) { box-shadow: 0 0 24px var(--accent-glow); }
.btn-ghost, .btn-tertiary { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover:not([disabled]), .btn-tertiary:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }

.icon-btn {
    display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
    border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2);
    color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="number"], select, textarea {
    width: 100%; height: 44px; padding: 0 14px;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 8px; font: inherit;
}
textarea { height: auto; min-height: 100px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
label { display: block; font-weight: 600; margin-bottom: 6px; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(10, 11, 14, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { max-height: 40px; width: auto; }
.brand-mark {
    width: 26px; height: 18px;
    background: var(--grad);
    clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.brand-name { font: 700 19px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }

.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-link {
    padding: 8px 12px; border-radius: 6px; white-space: nowrap;
    font: 600 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-chip {
    display: inline-flex; align-items: center; gap: 8px; max-width: 160px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; color: var(--muted);
}
.user-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 8px var(--ok); }
.basket-btn { min-width: 64px; }
.basket-count { font-variant-numeric: tabular-nums; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
    .topbar-inner { gap: 12px; }
    .nav-toggle {
        display: grid; gap: 4px; place-content: center; order: 3;
        width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer;
    }
    .nav-toggle span { width: 18px; height: 2px; background: var(--text); }
    .nav {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; padding: 8px 16px 16px;
        background: var(--bg); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav-link { padding: 12px; }
    .user-chip { display: none; }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 40;
    display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
    padding: 12px 16px; border-radius: 8px; border: 1px solid var(--line);
    background: var(--surface-2); box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.toast-success { border-color: var(--ok); }
.toast-error, .toast-danger { border-color: var(--danger); }
.toast-close { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 88px; padding-bottom: 72px; position: relative; z-index: 1; }
.eyebrow {
    display: inline-block; margin: 0 0 16px;
    font: 600 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: .2em; color: var(--accent);
}
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.hero-title { font-size: clamp(36px, 6.5vw, 72px); text-transform: uppercase; letter-spacing: .01em; max-width: 14ch; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 52ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
    list-style: none; padding: 0; margin: 56px 0 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 720px;
}
.hero-stats li { background: var(--surface); padding: 16px 18px; }
.hero-stats strong { display: block; font: 700 18px/1.2 var(--font-display); text-transform: uppercase; }
.hero-stats span { color: var(--muted); font-size: 13px; }
.hero-stripe {
    position: absolute; right: -10%; top: 0; bottom: 0; width: 45%;
    background: repeating-linear-gradient(115deg, transparent 0 28px, var(--accent) 28px 34px, transparent 34px 60px);
    opacity: .08; transform: skewX(-12deg);
    mask-image: linear-gradient(to left, #000, transparent);
}
@media (max-width: 600px) {
    .hero-inner { padding-top: 56px; padding-bottom: 48px; }
    .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--line), transparent); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-card {
    position: relative; display: flex; align-items: center; gap: 16px;
    padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .15s, transform .15s;
    overflow: hidden;
}
.cat-card::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--accent); transform: scaleY(0); transition: transform .2s;
}
.cat-card:hover { border-color: #3a3f4c; transform: translateY(-2px); }
.cat-card:hover::after { transform: scaleY(1); }
.cat-index { font: 700 13px/1 var(--font-display); color: var(--accent); }
.cat-name { flex: 1; font: 600 17px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.cat-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.cat-card:hover .cat-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- Page head ---------- */
.page-head { border-bottom: 1px solid var(--line); padding: 40px 0 28px; background: linear-gradient(to bottom, var(--surface), transparent); }
.page-desc { color: var(--muted); max-width: 70ch; }
.crumb { display: inline-block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.crumb:hover { color: var(--accent); }

/* ---------- Package cards ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pkg-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.pkg-card:hover { border-color: #3a3f4c; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.pkg-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pkg-card:hover .pkg-media img { transform: scale(1.04); }
.pkg-placeholder {
    display: block; width: 100%; height: 100%;
    background:
        linear-gradient(115deg, transparent 45%, rgba(179,92,255,.18) 45% 55%, transparent 55%),
        var(--surface-2);
}
.pkg-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.pkg-name { margin: 0; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.pkg-name a:hover { color: var(--accent); }
.pkg-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pkg-price strong { font: 700 22px/1 var(--font-display); }
.pkg-price small { color: var(--muted); font-size: 12px; }
.pkg-price del { color: var(--muted); font-size: 14px; }
.pkg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pkg-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.pkg-tag {
    position: absolute; left: 0; bottom: 0;
    padding: 5px 12px 5px 10px; background: rgba(10,11,14,.85);
    font: 600 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.pkg-grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (min-width: 1040px) { .pkg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 8px; border-radius: 4px; font: 700 12px/1 var(--font-display);
}
.badge-sale { background: var(--sunset); color: #1a0a00; }
.pkg-price .badge { position: static; }

/* List display type */
.pkg-grid-list { grid-template-columns: 1fr; }
.pkg-grid-list .pkg-card { flex-direction: row; }
.pkg-grid-list .pkg-media { width: 240px; flex: none; aspect-ratio: auto; }
@media (max-width: 600px) {
    .pkg-grid-list .pkg-card { flex-direction: column; }
    .pkg-grid-list .pkg-media { width: 100%; aspect-ratio: 16 / 10; }
}

/* ---------- Package detail ---------- */
.pkg-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pkg-detail { padding-top: 16px; }
.pkg-detail h1 { text-transform: uppercase; }
.pkg-price-lg strong { font-size: 34px; }
.gallery { position: sticky; top: 92px; display: grid; gap: 10px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16 / 10; }
.gallery-slide, .gallery-slide img, .gallery-slide iframe { width: 100%; height: 100%; border: 0; }
.gallery-slide img { object-fit: cover; }
.gallery-slide[hidden] { display: none; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gallery-thumb {
    position: relative; padding: 0; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); opacity: .6; transition: opacity .15s, border-color .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; border-color: var(--accent); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-shadow: 0 0 8px #000; }
@media (max-width: 860px) {
    .pkg-detail { grid-template-columns: 1fr; gap: 24px; }
    .gallery { position: static; }
}

.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

.delivery-note {
    display: flex; gap: 14px; align-items: flex-start; margin-top: 18px;
    padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--ok);
    border-radius: 8px; background: var(--surface);
}
.delivery-note strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.delivery-note .muted { font-size: 13px; }
.pulse { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.trust-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
.trust-list li { display: flex; gap: 10px; align-items: baseline; }
.trust-list span { color: var(--accent); font-weight: 700; }
@media (max-width: 500px) { .trust-list { grid-template-columns: 1fr; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: 13px; color: var(--muted); }
.crumbs-flush { padding-top: 0; margin-bottom: 12px; }
.crumbs a:hover { color: var(--accent); }
.crumb-current { color: var(--text); }

/* ---------- Promo bar ---------- */
.promo-bar { position: relative; z-index: 21; background: var(--grad-sunset); color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.promo-bar[hidden] { display: none; }
.promo-inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; text-align: center; }
.promo-code { padding: 2px 8px; border: 1px dashed currentColor; border-radius: 4px; font-family: var(--font-display); letter-spacing: .1em; cursor: copy; }
.promo-close { position: absolute; right: 12px; background: none; border: 0; font-size: 18px; color: inherit; cursor: pointer; }

/* ---------- Header extras ---------- */
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); }
.icon-link:hover { color: #8b9bff; background: var(--surface); }
.basket-sum { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.35); font-variant-numeric: tabular-nums; }
.nav-mobile-only { display: none; }
@media (max-width: 860px) { .nav-mobile-only { display: block; } }
@media (max-width: 480px) {
    .topbar-actions .btn-ghost { display: none; }
    .brand-name { font-size: 16px; }
    .brand img { max-height: 32px; }
}
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: 0; cursor: pointer; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 25;
    display: none; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.nav-drop.is-open .nav-drop-menu { display: grid; }
.nav-drop-menu a { padding: 10px 12px; border-radius: 6px; font-size: 14px; color: var(--muted); }
.nav-drop-menu a:hover { background: var(--surface-2); color: var(--accent); }
@media (min-width: 861px) { .nav-drop:hover .nav-drop-menu { display: grid; } .nav { overflow: visible; } }
@media (max-width: 860px) {
    .brand { margin-right: auto; }
    .nav-toggle { order: 0; }
    .nav-drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; }
    .basket-sum, .icon-link { display: none; }
}

/* ---------- Hero background ---------- */
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; opacity: .7; mask-image: linear-gradient(to right, transparent 5%, rgba(0,0,0,.6) 45%, #000 80%); }
.hero-title .accent { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title { text-shadow: 0 0 40px rgba(179,92,255,.25); }
.hero-stats li { display: flex; gap: 12px; align-items: center; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 8px; background: var(--surface-2); color: var(--accent); }

/* ---------- Chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font: 600 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
    transition: border-color .15s, color .15s;
}
.chip:hover, .chip.is-active { border-color: var(--accent); color: var(--accent); }
.chip-num { font-size: 11px; color: var(--accent); }
.chip-row-sm { margin-top: 20px; }
.chip-row-sm .chip { padding: 8px 14px; font-size: 12px; }

.section-tight { padding-top: 20px; padding-bottom: 20px; }
.view-all { flex: none; font: 600 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }

/* ---------- Help + FAQ ---------- */
.help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding: 32px; position: relative; overflow: hidden; }
.help::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.help-intro h2 { font-size: 28px; }
.help-intro .muted { margin: 0 0 20px; }
@media (max-width: 760px) { .help { grid-template-columns: 1fr; padding: 24px; } }
.faq { display: grid; gap: 10px; align-content: start; }
.faq-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.faq details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; }
.faq details[open] { border-color: #3a3f4c; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Panels / prose ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--accent); }
.prose img { border-radius: 8px; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--accent); }

/* ---------- Auth / checkout card ---------- */
.auth { display: grid; place-items: center; min-height: 55vh; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.auth-card h1 { font-size: 26px; text-transform: uppercase; margin: 0; }
.auth-card p { margin: 0 0 8px; }

/* ---------- Basket drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6); }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 31;
    width: min(420px, 100%); display: flex; flex-direction: column;
    background: var(--surface); border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
    animation: drawer-in .22s ease-out;
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.basket-list { list-style: none; margin: 0; padding: 12px 20px; flex: 1; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.basket-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.basket-item img { width: 56px; height: 40px; object-fit: cover; border-radius: 4px; }
.basket-item-info { flex: 1; min-width: 0; display: grid; }
.basket-item-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-item-info span { color: var(--muted); font-size: 13px; }
.coupon-form { display: flex; gap: 8px; padding: 0 20px 12px; }
.coupon-form input { height: 36px; }
.coupon-list { list-style: none; margin: 0; padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.coupon-list li { font-size: 12px; padding: 4px 8px; border: 1px dashed var(--ok); color: var(--ok); border-radius: 4px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; }
.basket-total strong { font: 700 22px/1 var(--font-display); }
.drawer-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); padding: 20px; }

/* ---------- Sidebar modules (rendered by Tebex) ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.modules > * { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); padding: 40px 0 0; background: linear-gradient(to bottom, var(--surface), var(--bg)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.footer-about p { margin: 12px 0 16px; font-size: 14px; max-width: 40ch; }
.footer-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 32px; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

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

/* ---------- Headless store extras ---------- */
button.nav-link { background: none; border: 0; cursor: pointer; text-align: left; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
    content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton .pkg-media, .skeleton-block, .skeleton-line, .skeleton .pkg-body span, .skeleton-chip {
    background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.skeleton .pkg-body span { display: block; height: 14px; border-radius: 4px; }
.skeleton .pkg-body span + span { width: 50%; }
.skeleton-line { display: block; height: 28px; width: 50%; border-radius: 6px; margin-bottom: 14px; }
.skeleton-line.short { width: 30%; }
.skeleton-block { aspect-ratio: 16 / 10; }
.skeleton-chip { width: 120px; height: 38px; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }

.badge-inline { position: static; display: inline-block; margin-top: 10px; }
.coupon-list li { display: inline-flex; align-items: center; gap: 6px; }
.coupon-remove { background: none; border: 0; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }

/* ---------- Build it your way ---------- */
.builder { margin: 20px 0; padding: 22px; position: relative; overflow: hidden; }
.builder::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-sunset); }
.builder-title { margin: 0 0 4px; font-size: 22px; background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.builder-list { display: grid; gap: 8px; margin: 16px 0; }
.builder-opt {
    display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px;
    margin: 0; padding: 12px 14px; cursor: pointer; font-weight: 400;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}
.builder-opt:hover { border-color: #3a3f4c; }
.builder-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--accent-glow); }
.builder-opt.is-locked { opacity: .55; cursor: default; }
.builder-opt input { position: absolute; opacity: 0; pointer-events: none; }
.builder-check {
    width: 18px; height: 18px; margin-top: 2px; border-radius: 4px;
    border: 2px solid #4a4360; display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.builder-opt input:checked + .builder-check { background: var(--grad); border-color: transparent; }
.builder-opt input:checked + .builder-check::after { content: "\2713"; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.builder-opt input:focus-visible + .builder-check { box-shadow: 0 0 0 3px var(--accent-glow); }
.builder-text { display: grid; gap: 2px; min-width: 0; }
.builder-text strong { font-size: 14px; }
.builder-text .muted { font-size: 12px; line-height: 1.45; }
.builder-price { font: 700 14px/1.3 var(--font-display); color: var(--accent); white-space: nowrap; }
.builder-input { margin-top: 6px; height: 40px; }
.builder-input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,77,109,.25); }
.builder-sum { display: grid; gap: 6px; padding: 14px 0; margin-bottom: 14px; border-top: 1px solid var(--line); }
.builder-sum div { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.builder-grand { font-family: var(--font-display); }
.builder-grand span { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.builder-grand strong { font-size: 24px; }
.builder-note { margin: 12px 0 0; }

/* ---------- Image logo ---------- */
.brand-logo { height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(179,92,255,.45)); }
.site-footer .brand-logo { height: 48px; }
@media (max-width: 480px) { .brand-logo { height: 32px; } }

/* =========================================================
   Modern pass: rounded pills, softer glows, sentence case.
   These rules override the older angular styles above.
   ========================================================= */
:root { --radius: 16px; --radius-sm: 10px; }

h2 { text-transform: none; letter-spacing: -.01em; font-size: 26px; }
.section-head h2 { font-size: 24px; }

/* Buttons */
.btn {
    border-radius: 999px; font: 600 14px/1 var(--font-body); text-transform: none; letter-spacing: 0;
    height: 44px; padding: 0 22px;
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-primary, .btn-secondary {
    clip-path: none; border-radius: 999px; color: #fff;
    background: linear-gradient(135deg, #9b4dff 0%, #c64bff 55%, #e64bd6 100%);
    box-shadow: 0 6px 24px rgba(179,92,255,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover:not([disabled]) { box-shadow: 0 8px 34px rgba(179,92,255,.55), inset 0 1px 0 rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-glow { box-shadow: 0 0 26px rgba(198,75,255,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost, .btn-tertiary { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.btn-ghost:hover:not([disabled]) { background: rgba(255,255,255,.07); border-color: rgba(179,92,255,.5); color: var(--text); }

/* Header */
.topbar { background: rgba(11,9,18,.72); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { height: 72px; gap: 28px; }
.brand-name { font-size: 20px; letter-spacing: .06em; }
.nav { gap: 6px; }
.nav-link {
    padding: 9px 14px; border-radius: 10px;
    font: 600 15px/1 var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted);
    transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.nav-link.is-active { background: rgba(255,255,255,.08); color: #fff; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.nav-drop-menu { border-radius: 14px; background: rgba(20,17,29,.96); backdrop-filter: blur(12px); border-color: rgba(255,255,255,.08); }
.nav-drop-menu a, .nav-drop-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font: 500 14px/1.2 var(--font-body); color: var(--muted); background: none; border: 0; cursor: pointer; }
.nav-drop-menu a:hover, .nav-drop-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-drop-right { left: auto; right: 0; min-width: 160px; }

.topbar-actions { gap: 10px; }
.status-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
    font-size: 14px; color: var(--muted); transition: border-color .15s, color .15s;
}
.status-chip:hover { border-color: rgba(88,101,242,.6); color: var(--text); }
.status-chip svg { width: 18px; height: 18px; color: #8b9bff; }
.status-chip strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #5a5470; }
.status-chip.is-live .status-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.icon-btn-lg {
    position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer;
    transition: border-color .15s, background .15s;
}
.icon-btn-lg:hover { border-color: rgba(179,92,255,.5); background: rgba(179,92,255,.1); }
.basket-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--grad); color: #fff; font: 700 11px/18px var(--font-body); text-align: center;
    box-shadow: 0 0 0 2px var(--bg);
}
.basket-badge[hidden] { display: none; }

.user-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
    color: var(--text); font: 600 14px/1 var(--font-body); cursor: pointer;
}
.user-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 700; color: #fff; }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 960px) { .status-chip strong { display: none; } .status-chip { padding: 0 12px; } }
@media (max-width: 860px) {
    .topbar-inner { height: 64px; }
    .nav { top: 64px; }
    .status-chip { display: none; }
    .nav-link { padding: 12px; }
    .nav-drop-menu { background: none; backdrop-filter: none; }
    .account-drop .nav-drop-menu { position: absolute; }
}
@media (max-width: 480px) {
    .topbar-actions .btn-ghost { display: inline-flex; }
    .user-name { display: none; }
    .user-pill { padding: 0 4px; }
    .user-pill .caret { display: none; }
}

/* Hero */
.hero { border-bottom: 0; }
.hero-inner { padding-top: 56px; }
.hero-announce { margin-bottom: 28px; min-height: 0; }
.announce {
    display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(20,17,29,.7); backdrop-filter: blur(8px);
    color: var(--text); font: 500 14px/1.2 var(--font-body); cursor: copy; transition: border-color .15s, transform .15s;
}
.announce:hover { border-color: rgba(179,92,255,.6); transform: translateY(-1px); }
.announce-label { padding: 6px 12px; border-radius: 999px; background: var(--grad); font: 800 11px/1 var(--font-body); letter-spacing: .14em; color: #fff; }
.announce-code { color: #e4c2ff; font-family: var(--font-display); letter-spacing: .06em; }
.announce-arrow { color: var(--ok); font-weight: 700; }
.hero-title { text-transform: none; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(40px, 7vw, 80px); }
.hero-stats { border-radius: var(--radius); }
.hero-stats li { background: rgba(20,17,29,.75); }
.eyebrow { letter-spacing: .16em; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-tile {
    position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
    background: var(--surface-2); border: 1px solid rgba(255,255,255,.06);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-tile img, .cat-tile .pkg-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,9,18,.95) 0%, rgba(11,9,18,.2) 55%, transparent 100%); }
.cat-tile:hover { transform: translateY(-3px); border-color: rgba(179,92,255,.55); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 24px rgba(179,92,255,.25); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile.is-hot { border-color: rgba(255,138,61,.7); }
.cat-tile-body { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 2px; }
.cat-tile-body strong { font: 700 17px/1.2 var(--font-body); }
.cat-tile-body span { font-size: 12px; color: var(--muted); }
.tile-badge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 9px; border-radius: 6px; background: #ff3b5c; color: #fff; font: 800 11px/1 var(--font-body); letter-spacing: .08em; transform: rotate(4deg); box-shadow: 0 4px 12px rgba(255,59,92,.4); }
span.cat-tile { pointer-events: none; }

/* Cards and panels */
.panel { border-radius: var(--radius); border-color: rgba(255,255,255,.07); background: rgba(20,17,29,.8); }
.pkg-card { border-radius: var(--radius); border-color: rgba(255,255,255,.07); background: rgba(20,17,29,.85); }
.pkg-card:hover { border-color: rgba(179,92,255,.45); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 24px rgba(179,92,255,.18); }
.pkg-name { text-transform: none; letter-spacing: 0; font: 700 16px/1.3 var(--font-body); }
.pkg-tag { clip-path: none; left: 10px; bottom: 10px; border-radius: 999px; padding: 5px 10px; font: 600 11px/1 var(--font-body); letter-spacing: .02em; background: rgba(11,9,18,.75); backdrop-filter: blur(6px); }
.badge { border-radius: 999px; font-family: var(--font-body); }
.pkg-detail h1 { text-transform: none; letter-spacing: -.01em; }
.gallery-main, .gallery-thumb { border-radius: var(--radius-sm); }
.gallery-main { border-radius: var(--radius); }
.delivery-note { border-radius: var(--radius-sm); }
.faq details { border-radius: var(--radius-sm); }
.builder-opt { border-radius: var(--radius-sm); }
.builder-title { font-family: var(--font-body); font-weight: 800; }
.builder-grand span { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.chip { font: 600 13px/1 var(--font-body); text-transform: none; letter-spacing: 0; }
.view-all { font: 600 14px/1 var(--font-body); text-transform: none; letter-spacing: 0; }
.footer-title { font-family: var(--font-body); letter-spacing: .1em; }
.drawer { border-radius: 20px 0 0 20px; }
.drawer-head h2 { text-transform: none; font-size: 20px; }
.basket-item { border-radius: var(--radius-sm); }
input[type="text"], input[type="email"], input[type="number"], select, textarea { border-radius: var(--radius-sm); }
.toast { border-radius: 999px; padding: 10px 14px 10px 18px; }
.help { border-radius: 20px; }
.help-intro h2 { font-size: 30px; }

.icon-btn-lg.basket-btn { min-width: 0; padding: 0; }


/* ---------- Contact bubble ---------- */
.contact { position: fixed; right: 20px; bottom: 20px; z-index: 28; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.contact-bubble {
    width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #9b4dff 0%, #c64bff 55%, #e64bd6 100%);
    box-shadow: 0 10px 30px rgba(179,92,255,.5), inset 0 1px 0 rgba(255,255,255,.25);
    display: grid; place-items: center; transition: transform .2s, box-shadow .2s;
}
.contact-bubble:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 38px rgba(179,92,255,.65); }
.contact-bubble > span { grid-area: 1 / 1; display: grid; transition: transform .25s, opacity .2s; }
.contact-icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.contact.is-open .contact-icon-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.contact.is-open .contact-icon-close { opacity: 1; transform: none; }

.contact-panel {
    width: min(360px, calc(100vw - 40px)); max-height: min(600px, calc(100vh - 120px)); overflow: hidden;
    display: flex; flex-direction: column; border-radius: 20px;
    background: rgba(20,17,29,.97); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(179,92,255,.15);
    transform-origin: bottom right; animation: contact-in .22s ease-out;
}
.contact-panel[hidden] { display: none; }
@keyframes contact-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.contact-head {
    display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px;
    background: linear-gradient(135deg, rgba(155,77,255,.35), rgba(230,75,214,.18)); border-bottom: 1px solid rgba(255,255,255,.06);
}
.contact-head strong { display: block; font: 700 16px/1.2 var(--font-body); }
.contact-head > div > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.contact-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,9,18,.6); border: 1px solid rgba(255,255,255,.1); flex: none; }
.contact-avatar .brand-mark { width: 18px; height: 12px; }
.contact-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.contact-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.contact-x:hover { background: rgba(255,255,255,.12); }
.contact-x svg { width: 18px; height: 18px; }
.contact-body { padding: 16px 18px 18px; overflow-y: auto; }
.contact-intro { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.contact-form { display: grid; gap: 12px; }
.contact-form label { margin: 0; display: grid; gap: 6px; font: 600 12px/1.2 var(--font-body); color: var(--muted); }
.contact-form .optional { font-weight: 400; opacity: .7; }
.contact-form input, .contact-form textarea { height: 42px; font-size: 14px; color: var(--text); }
.contact-form textarea { height: auto; min-height: 96px; resize: vertical; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-error { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #ffd2da; background: rgba(255,77,109,.12); border: 1px solid rgba(255,77,109,.35); }
.contact-error[hidden] { display: none; }
.contact-alt { text-align: center; font-size: 13px; color: #a9b4ff; }
.contact-alt:hover { color: #fff; }
.contact-done { display: grid; gap: 12px; text-align: center; padding: 8px 0; }
.contact-done p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-done h3 { margin: 0; font: 700 18px/1.2 var(--font-body); }
.contact-check { width: 54px; height: 54px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--grad); box-shadow: 0 0 24px rgba(179,92,255,.5); }
@media (max-width: 480px) {
    .contact { right: 14px; bottom: 14px; }
    .contact-bubble { width: 52px; height: 52px; }
}

/* The image logo already reads "SMC", so the header shows it alone */
.topbar .brand-logo { height: 46px; }
.topbar .brand-logo + .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 480px) { .topbar .brand-logo { height: 38px; } }

/* The header is rendered inside #app-header, so that wrapper is what sticks */
#app-header { position: sticky; top: 0; z-index: 20; }
#app-header .topbar { position: relative; }

/* ---------- Custom Builds ---------- */
.cb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-bottom: 110px; }
.cb-form { display: grid; gap: 16px; }
.cb-form fieldset { margin: 0; padding: 22px; border-radius: var(--radius); display: grid; gap: 14px; min-width: 0; }
.cb-form legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--font-body); }
.cb-form legend + * { clear: both; }
.cb-form label { margin: 0; display: grid; gap: 6px; font: 600 13px/1.2 var(--font-body); color: var(--muted); }
.cb-form .optional { font-weight: 400; opacity: .7; font-size: 12px; }
.cb-step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 13px/1 var(--font-body); flex: none; }
.cb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cb-hint { margin: -6px 0 0; }

.cb-tier { display: grid; gap: 10px; }
.cb-tier + .cb-tier { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.cb-tier-head { display: flex; align-items: baseline; gap: 6px; }
.cb-tier-price { font: 800 20px/1 var(--font-body); background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cb-mod-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-form .cb-mod { display: inline-flex; cursor: pointer; }
.cb-mod input { position: absolute; opacity: 0; pointer-events: none; }
.cb-mod span {
    padding: 9px 14px; border-radius: 999px; font: 500 13px/1.2 var(--font-body); color: var(--text);
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .15s, border-color .15s, box-shadow .15s;
}
.cb-mod:hover span { border-color: rgba(179,92,255,.5); }
.cb-mod.is-on span { background: rgba(179,92,255,.2); border-color: var(--accent); box-shadow: 0 0 14px rgba(179,92,255,.3); }
.cb-mod.is-on span::before { content: "\2713  "; color: #e4c2ff; font-weight: 700; }
.cb-mod input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-glow); }

.cb-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cb-options-pkg { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cb-form .cb-opt {
    position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; cursor: pointer;
    padding: 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
    color: var(--text); transition: border-color .15s, box-shadow .15s, opacity .15s;
}
.cb-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cb-opt:hover { border-color: rgba(179,92,255,.45); }
.cb-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(179,92,255,.25); background: rgba(179,92,255,.1); }
.cb-opt.is-unfit { opacity: .45; }
.cb-opt-body { display: grid; gap: 3px; }
.cb-opt-body strong { font: 600 14px/1.3 var(--font-body); }
.cb-opt-body .muted { font-weight: 400; line-height: 1.4; }
.cb-opt-price { font: 700 14px/1.3 var(--font-body); color: #e4c2ff; white-space: nowrap; }
.cb-tip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.35); }
.cb-tip[hidden] { display: none; }
.cb-tip strong { color: #9ff0c4; }
.cb-agree { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13px !important; line-height: 1.45 !important; color: var(--muted); cursor: pointer; }
.cb-agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.cb-form .is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255,77,109,.25); }

.cb-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.cb-summary, .cb-how { padding: 20px; }
.cb-summary h2, .cb-how h2 { font-size: 18px; margin: 0 0 12px; }
.cb-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.cb-line-head { font-weight: 600; }
.cb-struck { text-decoration: line-through; color: var(--muted); }
.cb-picked { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.cb-picked li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.03); }
.cb-picked button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.cb-picked button:hover { color: var(--danger); }
.cb-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #ffd2da; background: rgba(255,77,109,.12); border: 1px solid rgba(255,77,109,.35); }
.cb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.cb-total span { font-weight: 600; }
.cb-total strong { font: 800 26px/1 var(--font-body); background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cb-summary .muted.small { margin: 0 0 12px; }
.cb-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.cb-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 13px; }
.cb-steps li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-body); background: rgba(179,92,255,.18); color: #e4c2ff; }
.cb-steps strong { font-size: 14px; }
.cb-steps span { color: var(--muted); }

.cb-bar {
    position: fixed; left: 12px; right: 84px; bottom: 14px; z-index: 27; display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(20,17,29,.96); backdrop-filter: blur(10px);
    border: 1px solid rgba(179,92,255,.4); box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.cb-bar > div { display: grid; }
.cb-bar strong { font: 800 18px/1.1 var(--font-body); }

.cb-done { padding: 32px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.cb-done h2 { margin: 0; font-size: 26px; }
.cb-done p { margin: 0; max-width: 46ch; }
.cb-done .btn { max-width: 380px; }
.cb-id { font: 800 28px/1 var(--font-display); letter-spacing: .08em; padding: 12px 22px; border-radius: 14px; cursor: copy; color: #fff; background: rgba(179,92,255,.15); border: 1px dashed rgba(179,92,255,.7); }
.cb-note { font-size: 13px; color: var(--muted); }
.btn-cashapp { background: #00d64f; color: #04210f; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,214,79,.35); font-weight: 700; }
.btn-cashapp:hover { box-shadow: 0 8px 32px rgba(0,214,79,.55); transform: translateY(-1px); }

@media (max-width: 960px) {
    .cb-layout { grid-template-columns: 1fr; }
    .cb-side { position: static; }
    .cb-bar { display: flex; transform: translateY(120%); transition: transform .25s; }
    .cb-bar.is-visible { transform: none; }
}
@media (max-width: 560px) {
    .cb-row { grid-template-columns: 1fr; }
    .cb-form fieldset { padding: 18px 16px; }
    .cb-options, .cb-options-pkg { grid-template-columns: 1fr; }
    .cb-bar { left: 10px; right: 74px; }
}

/* ---------- Scan to pay (Cash App QR) ---------- */
.scan-pay {
    width: 100%; max-width: 620px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; text-align: left;
    padding: 22px; margin: 6px 0; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
.scan-qr { display: grid; justify-items: center; gap: 12px; padding: 18px 18px 14px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.scan-qr-code { position: relative; width: 180px; height: 180px; }
.scan-qr-code svg { width: 100%; height: 100%; display: block; }
.scan-badge {
    position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
    border-radius: 12px; background: #00d64f; color: #fff; display: grid; place-items: center;
    font: 800 28px/1 var(--font-body); box-shadow: 0 0 0 5px #fff;
}
.scan-qr-label { display: inline-flex; align-items: center; gap: 6px; color: #111; font: 600 15px/1 var(--font-body); }
.scan-mini { width: 20px; height: 20px; border-radius: 5px; background: #00d64f; color: #fff; display: grid; place-items: center; font: 800 13px/1 var(--font-body); }
.scan-info { display: grid; gap: 8px; }
.scan-info h3 { margin: 0; font: 800 26px/1.1 var(--font-body); }
.scan-info p { margin: 0; }
.scan-amount { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }
.scan-amount strong { font-weight: 700; }
.scan-note { font-size: 13px; color: var(--muted); }
.scan-id { padding: 2px 8px; border-radius: 6px; cursor: copy; font: 700 13px/1.4 var(--font-display); letter-spacing: .05em; color: #fff; background: rgba(179,92,255,.2); border: 1px dashed rgba(179,92,255,.7); }
@media (max-width: 600px) {
    .scan-pay { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .scan-info { width: 100%; }
    .scan-qr-code { width: 160px; height: 160px; }
}
.cb-deposit { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(0,214,79,.08); border: 1px solid rgba(0,214,79,.3); color: var(--text); font-size: 14px; }
.cb-deposit strong { color: #6dff9f; font-size: 16px; }
