/* =========================================================
   SOLAR STUDIOS — Tebex template stylesheet
   Change the brand colours in :root below.
   ========================================================= */
:root {
    --bg: #07060d;
    --bg-2: #0d0b16;
    --surface: #121019;
    --raised: #191623;
    --hover: #211d2e;
    --line: rgba(255, 255, 255, .07);
    --line-hi: rgba(255, 255, 255, .14);
    --text: #f5f3fb;
    --mute: rgba(236, 232, 250, .62);
    --dim: rgba(236, 232, 250, .38);

    --acc: #8a3dff;          /* Solar purple */
    --acc-hi: #b98cff;       /* light lilac */
    --acc-deep: #5a12d6;
    --acc-rgb: 138, 61, 255;
    --good: #34d399;
    --bad: #f87171;

    --r: 14px;
    --r-lg: 22px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, Consolas, monospace;
    --display: "Michroma", "Plus Jakarta Sans", sans-serif;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -18px rgba(0,0,0,.7);

    /* Tebex legal footer colours */
    --tebex-legal-footer-background-color: #07060d;
    --tebex-legal-footer-text-color: rgba(236, 232, 250, .55);
    --tebex-legal-footer-border-color: rgba(255, 255, 255, .07);
    --tebex-legal-footer-logo-color: rgba(236, 232, 250, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh;
    background: var(--bg); color: var(--text);
    font: 500 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
::selection { background: rgba(var(--acc-rgb), .45); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--mute); } .dim { color: var(--dim); } .mono { font-family: var(--mono); }
.sm { font-size: 13px; } .xs { font-size: 12px; } .center { text-align: center; }

.bg-glow {
    position: fixed; inset: -20vh -10vw auto; height: 90vh; pointer-events: none; z-index: 0;
    background:
        radial-gradient(40% 50% at 50% 0%, rgba(var(--acc-rgb), .22), transparent 70%),
        radial-gradient(30% 40% at 85% 10%, rgba(90, 18, 214, .14), transparent 70%);
    animation: drift 18s var(--ease) infinite alternate;
}
.page { position: relative; z-index: 1; min-height: 60vh; animation: pagein .6s var(--ease) both; }
.wrap { width: min(1392px, 100% - 48px); margin: 0 auto; padding: 56px 0; }

/* ---------------- Buttons ---------------- */
.btn {
    --h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--h); padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; white-space: nowrap; position: relative; overflow: hidden;
    transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .3s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-light { background: #f4f2fb; color: #0b0912; box-shadow: 0 8px 30px -10px rgba(var(--acc-rgb), .6); }
.btn-light:hover { background: #fff; box-shadow: 0 10px 40px -8px rgba(var(--acc-rgb), .85); transform: translateY(-1px); }
.btn-light::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(var(--acc-rgb), .28) 50%, transparent 70%);
}
.btn-light:hover::after { animation: shimmer .9s var(--ease); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--line-hi); }
.btn-acc { background: linear-gradient(135deg, var(--acc-hi), var(--acc) 45%, var(--acc-deep)); color: #fff; }
.btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.link-btn { background: none; border: 0; color: var(--mute); padding: 6px; font-size: 14px; }
.link-btn:hover { color: var(--text); }
.icon-btn {
    width: 38px; height: 38px; display: inline-grid; place-items: center; position: relative;
    border-radius: 11px; color: var(--mute); background: transparent; border: 1px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn.boxed { width: 46px; height: 46px; border-color: var(--line); background: rgba(255,255,255,.04); border-radius: 14px; }
.badge {
    position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: var(--acc); color: #fff; font-size: 10.5px; font-weight: 700;
    display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg), 0 0 12px rgba(var(--acc-rgb), .8);
}

/* ---------------- Nav ---------------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 6, 13, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav-inner { height: 72px; padding: 0 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; justify-self: start; }
.brand img { filter: drop-shadow(0 0 10px rgba(var(--acc-rgb), .55)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 13px; border-radius: 10px; color: var(--mute); font-size: 15px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 6px; justify-self: end; }
.nav-right .btn-light img { width: 16px; height: 16px; }
.user-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.menu-btn { display: none; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed; z-index: 80; left: 50%; top: 86px; transform: translateX(-50%);
    display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 18px; width: max-content; max-width: calc(100% - 32px);
    background: var(--raised); border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: var(--shadow);
    animation: note-in .5s var(--ease) both;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); flex: none; }
.toast-success::before { background: var(--good); box-shadow: 0 0 10px var(--good); }
.toast-danger::before, .toast-error::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.toast button { background: none; border: 0; font-size: 20px; color: var(--mute); line-height: 1; }
.toast.out { opacity: 0; transform: translate(-50%, -10px); transition: .4s var(--ease); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 40px 24px 70px; text-align: center; overflow: hidden; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 99px;
    border: 1px solid var(--line-hi); background: rgba(255,255,255,.03);
    font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 10px var(--acc); animation: pulse 2.2s ease-in-out infinite; }
.hero-banner {
    position: relative; width: min(1180px, 100%); margin: 26px auto 0; border-radius: 26px; overflow: hidden;
    border: 1px solid var(--line-hi);
    box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .08), 0 40px 120px -30px rgba(var(--acc-rgb), .55), 0 30px 60px -30px #000;
}
.hero-banner img { width: 100%; aspect-ratio: 2972 / 776; object-fit: cover; }
.banner-shine {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.08) 48%, transparent 60%);
    transform: translateX(-100%); animation: sweep 7s var(--ease) 1.2s infinite;
}
.hero-inner { margin-top: 34px; display: grid; gap: 24px; justify-items: center; }
.hero-sub { max-width: 560px; color: var(--mute); font-size: 17px; }
.orbits { position: absolute; inset: 0; pointer-events: none; }
.orbit {
    position: absolute; left: 50%; top: 44%; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .14);
    transform: translate(-50%, -50%) rotateX(68deg); animation: arcs-float 14s linear infinite;
}
.orbit::after { content: ""; position: absolute; width: 7px; height: 7px; top: -4px; left: 50%; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 14px 3px rgba(var(--acc-rgb), .8); }
.o1 { width: 760px; height: 760px; }
.o2 { width: 1100px; height: 1100px; animation-duration: 22s; animation-direction: reverse; border-color: rgba(var(--acc-rgb), .09); }
.o3 { width: 1460px; height: 1460px; animation-duration: 34s; border-color: rgba(var(--acc-rgb), .06); }
.sun { position: absolute; left: 50%; top: 44%; width: 420px; height: 220px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(var(--acc-rgb), .35), transparent); filter: blur(30px); }

/* ---------------- Showcase ---------------- */
.showcase { position: relative; padding: 80px 24px 0; text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.showcase.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.showcase-head { display: grid; gap: 14px; justify-items: center; position: relative; z-index: 2; }
.showcase-head h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.035em; text-shadow: 0 0 40px rgba(var(--acc-rgb), .35); }
.showcase-head > p { max-width: 380px; color: var(--mute); font-size: 16px; line-height: 1.5; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.pills.sm { justify-content: flex-start; }
.pill { padding: 5px 13px; border: 1px solid var(--line-hi); border-radius: 9px; font-size: 13.5px; color: var(--text); background: rgba(255,255,255,.02); }
.pills.sm .pill { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.pill-acc { border-color: rgba(var(--acc-rgb), .5); color: var(--acc-hi); background: rgba(var(--acc-rgb), .12); }
.showcase-head .btn-row { margin-top: 10px; }

.showcase-stage { position: relative; display: block; width: min(1080px, 100%); margin: 56px auto 0; height: 380px; perspective: 1400px; }
.stage-glow { position: absolute; left: 50%; top: -60px; width: 70%; height: 260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--acc-rgb), .45), transparent); filter: blur(40px); pointer-events: none; }
.stage-frame, .stage-side {
    position: absolute; bottom: -30px; border-radius: 16px 16px 0 0; overflow: hidden;
    border: 1px solid var(--line-hi); border-bottom: 0; background: linear-gradient(180deg, #17132a, #0b0914);
}
.stage-frame { left: 50%; width: 52%; height: 100%; transform: translateX(-50%); z-index: 2; transition: transform .7s var(--ease); box-shadow: 0 -1px 0 rgba(var(--acc-rgb), .6), 0 -30px 80px -20px rgba(var(--acc-rgb), .5); }
.stage-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--acc-hi), transparent); z-index: 2; }
.stage-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage-side { width: 30%; height: 66%; opacity: .45; filter: blur(.5px); transition: transform .7s var(--ease), opacity .5s; }
.stage-side.l { left: 10%; transform: rotateY(18deg); }
.stage-side.r { right: 10%; transform: rotateY(-18deg); }
.showcase-stage:hover .stage-frame { transform: translateX(-50%) translateY(-10px); }
.showcase-stage:hover .stage-side.l { transform: rotateY(18deg) translateX(-14px); opacity: .6; }
.showcase-stage:hover .stage-side.r { transform: rotateY(-18deg) translateX(14px); opacity: .6; }
.stage-placeholder { position: absolute; inset: 0 0 30px; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--dim); font: 500 13px var(--mono); }
.stage-frame .stage-placeholder img { width: 72px; height: 72px; object-fit: contain; opacity: .95; filter: drop-shadow(0 0 20px rgba(var(--acc-rgb), .6)); animation: float 6s ease-in-out infinite; }

/* ---------------- Promo ---------------- */
.promo {
    position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 440px;
    padding: 70px clamp(28px, 6vw, 68px); display: flex; align-items: center;
    background:
        radial-gradient(60% 90% at 85% 50%, rgba(var(--acc-rgb), .32), transparent 70%),
        linear-gradient(120deg, #0f0c19, #130f22 60%, #1a1030);
    border: 1px solid var(--line);
}
.promo-copy { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; max-width: 560px; }
.promo-copy h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }
.promo-copy p { color: var(--mute); font-size: 16px; }
.promo-copy .btn { margin-top: 12px; }
.promo-mark {
    position: absolute; right: clamp(-60px, 4vw, 90px); top: 50%; width: clamp(240px, 30vw, 380px);
    transform: translateY(-50%) rotate(-8deg); border-radius: 22%;
    filter: drop-shadow(0 30px 70px rgba(var(--acc-rgb), .55)); animation: float-tilt 9s ease-in-out infinite;
}

/* ---------------- Sections / features / categories ---------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.more { color: var(--text); font-size: 15.5px; display: inline-flex; gap: 8px; align-items: center; }
.more span { transition: transform .3s var(--ease); font-size: 20px; line-height: 1; }
.more:hover span { transform: translateX(4px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
    display: grid; align-content: start; gap: 10px; padding: 30px 28px 40px; min-height: 240px;
    background: linear-gradient(180deg, var(--surface), #0d0b14); border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(var(--acc-rgb), .35); box-shadow: 0 30px 60px -30px rgba(var(--acc-rgb), .5); }
.feature-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--acc-hi); background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .25); margin-bottom: 36px; }
.feature-label { font-size: 15px; color: var(--mute); }
.feature-text { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.22; }

.band { padding-top: 70px; padding-bottom: 70px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.cat-card {
    position: relative; overflow: hidden; min-height: 300px; padding: 30px; border-radius: var(--r-lg);
    display: grid; align-content: end; gap: 6px;
    background: linear-gradient(160deg, #15111f, #0c0a13); border: 1px solid var(--line);
    transition: transform .5s var(--ease), border-color .4s;
}
.cat-card img { position: absolute; top: 30px; left: 30px; filter: drop-shadow(0 0 14px rgba(var(--acc-rgb), .6)); transition: transform .6s var(--ease); }
.cat-glow { position: absolute; right: -30%; top: -40%; width: 80%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--acc-rgb), .3), transparent); transition: transform .7s var(--ease); }
.cat-name { font-size: 26px; font-weight: 700; letter-spacing: -.025em; position: relative; }
.cat-go { color: var(--mute); position: relative; display: inline-flex; gap: 6px; }
.cat-card:hover { transform: translateY(-4px); border-color: rgba(var(--acc-rgb), .35); }
.cat-card:hover .cat-glow { transform: scale(1.25); }
.cat-card:hover img { transform: rotate(-10deg) scale(1.08); }

/* ---------------- Shop ---------------- */
.shop { padding-top: 46px; min-height: 60vh; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.shop-head h1 { font-size: 38px; }
.shop-desc { color: var(--mute); margin-top: 6px; }
.shop-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.seg { display: flex; padding: 4px; gap: 2px; border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); overflow-x: auto; }
.seg a { padding: 6px 13px; border-radius: 9px; color: var(--mute); font-size: 14.5px; white-space: nowrap; transition: .2s; }
.seg a:hover { color: var(--text); }
.seg a.on { background: #f4f2fb; color: #0b0912; }
.search { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; width: 220px; border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--dim); transition: border-color .2s; }
.search:focus-within { border-color: rgba(var(--acc-rgb), .55); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pkg-card {
    position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10;
    background: #0f0c17; border: 1px solid var(--line);
    transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.pkg-media, .pkg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkg-media img { transition: transform .8s var(--ease); }
.pkg-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 40%, rgba(var(--acc-rgb), .28), transparent 70%), #0f0c17; }
.pkg-fallback img { position: static; width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgba(var(--acc-rgb), .7)); }
.pkg-fallback.big img { width: 120px; height: 120px; border-radius: 26px; }
.pkg-card:hover { transform: translateY(-5px); border-color: rgba(var(--acc-rgb), .45); box-shadow: 0 30px 60px -28px rgba(var(--acc-rgb), .65); }
.pkg-card:hover .pkg-media img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; }
.tag-sale { background: var(--acc); color: #fff; box-shadow: 0 0 16px rgba(var(--acc-rgb), .7); }
.tag-new { background: var(--good); color: #062014; }
.tag-incart { left: auto; right: 12px; background: rgba(7,6,13,.75); border: 1px solid var(--line-hi); backdrop-filter: blur(8px); }
.pkg-bar {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
    border-radius: 12px; background: rgba(12, 10, 20, .72); border: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.pkg-name { font-weight: 700; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg-price { font-weight: 700; font-size: 16.5px; display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.pkg-price s, .price s { color: var(--dim); font-weight: 500; font-size: .85em; }
.empty-search { color: var(--mute); text-align: center; padding: 40px 0; }

/* ---------------- Product ---------------- */
.product { padding-top: 26px; }
.crumbs { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13.5px; color: var(--mute); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text); } .crumbs b { color: var(--text); font-weight: 600; }
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.product-media { position: sticky; top: 96px; border-radius: 20px; overflow: visible; }
.product-media > img, .product-media > .pkg-fallback { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; border: 1px solid var(--line-hi); box-shadow: 0 40px 90px -40px rgba(var(--acc-rgb), .6); }
.product-media > .pkg-fallback { display: grid; }
.product-media .stage-glow { top: -40px; width: 80%; }
.product-info { display: grid; gap: 16px; align-content: start; }
.product-info h1 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -.035em; }
.price { font-size: 24px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; color: var(--text); }
.price small { font-size: 13px; color: var(--dim); font-weight: 500; }
.buy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.escrow { display: inline-flex; gap: 8px; align-items: center; color: var(--dim); font-size: 13px; }
.prose { color: var(--mute); font-size: 15px; line-height: 1.7; margin-top: 10px; }
.prose > * + * { margin-top: 14px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 30px; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 18px; }
.prose h4 { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.prose a { color: var(--acc-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { padding-left: 20px; } .prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--acc); }
.prose img, .prose iframe { border-radius: 14px; border: 1px solid var(--line); max-width: 100%; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose code { font-family: var(--mono); font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text); }
.prose blockquote { margin: 0; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; } .prose td, .prose th { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--surface); }
.prose details + details { margin-top: 8px; }
.prose summary { cursor: pointer; color: var(--text); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.card-pad { padding: 34px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-top: 0; }

/* ---------------- Cart ---------------- */
.cart { padding-top: 46px; min-height: 60vh; }
.cart-head { margin-bottom: 34px; } .cart-head h1 { font-size: clamp(38px, 5vw, 50px); letter-spacing: -.04em; }
.cart-head p { font-size: 17px; margin-top: 4px; }
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.cart-row:hover { border-color: var(--line-hi); }
.cart-thumb { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .25); }
.cart-meta { flex: 1; min-width: 0; display: grid; }
.cart-name { font-weight: 700; font-size: 16px; } .cart-name:hover { color: var(--acc-hi); }
.cart-price { font-weight: 700; }
.cart-row .icon-btn:hover { color: var(--bad); background: rgba(248,113,113,.1); }
.summary { position: sticky; top: 96px; display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: linear-gradient(180deg, var(--raised), var(--surface)); border: 1px solid var(--line-hi); box-shadow: 0 30px 70px -40px rgba(var(--acc-rgb), .6); }
.summary h3 { font-size: 18px; }
.coupons { display: flex; flex-wrap: wrap; gap: 8px; }
.coupon { display: inline-flex; gap: 8px; align-items: center; padding: 5px 6px 5px 11px; border-radius: 9px; background: rgba(var(--acc-rgb), .14); border: 1px solid rgba(var(--acc-rgb), .35); color: var(--acc-hi); font-size: 13px; }
.coupon a { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; } .coupon a:hover { background: rgba(255,255,255,.1); }
.coupon-form { display: flex; gap: 8px; }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
    background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
    font: inherit; padding: 0 14px; height: 44px; outline: 0; transition: border-color .2s; width: 100%;
}
.search input { height: auto; padding: 0; border: 0; background: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(var(--acc-rgb), .6); }
textarea { height: auto; padding: 12px 14px; }
.coupon-form input { flex: 1; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.total b { font-size: 24px; } .total small { font-size: 12px; color: var(--dim); font-weight: 500; }

.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 90px 20px; color: var(--text); }
.empty h3 { font-size: 20px; margin-top: 6px; }
.empty img { filter: drop-shadow(0 0 16px rgba(var(--acc-rgb), .6)); }
.empty .btn-row { margin-top: 16px; }

/* ---------------- Auth / CMS ---------------- */
.auth { display: grid; place-items: center; min-height: 64vh; }
.auth-card { width: min(420px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; padding: 40px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-hi); box-shadow: 0 40px 100px -40px rgba(var(--acc-rgb), .6); }
.auth-card img { border-radius: 18px; filter: drop-shadow(0 10px 30px rgba(var(--acc-rgb), .6)); }
.auth-card h1 { font-size: 28px; }
.stack { display: grid; gap: 10px; width: 100%; }
.cms { padding-top: 46px; } .cms-head { margin-bottom: 26px; } .cms-head h1 { font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -.035em; }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3, 2, 8, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadein .3s var(--ease) both; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(384px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: 22px; background: #13101c; border: 1px solid var(--line-hi); box-shadow: 0 40px 100px -30px rgba(var(--acc-rgb), .55); animation: rise .5s var(--ease) both; }
.modal-head { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; margin-bottom: 14px; }
.modal-head img { border-radius: 9px; }
.modal-x { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--mute); font-size: 22px; line-height: 1; }
.modal-x:hover { background: rgba(255,255,255,.07); color: var(--text); }
.welcome-big { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: linear-gradient(120deg, #fff, var(--acc-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-small { font-size: 18px; font-weight: 600; color: var(--mute); margin-top: -6px; }
.code-box { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 16px; border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin: 10px 0 4px; }
.code-box code { font: 600 16px var(--mono); letter-spacing: .1em; }
.video-card { position: relative; width: min(1000px, 100%); animation: rise .5s var(--ease) both; }
.video-card .modal-x { position: absolute; right: 0; top: -44px; color: #fff; }
.video-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-hi); background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- Footer ---------------- */
.footer { position: relative; z-index: 1; background: var(--bg-2); margin-top: 40px; border-top: 1px solid var(--line); }
.footer-inner { width: min(860px, 100% - 48px); margin: 0 auto; padding: 60px 0 40px; display: grid; gap: 34px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 15.5px; margin-bottom: 14px; letter-spacing: -.01em; }
.footer-cols a, .footer-cols span { display: block; color: var(--mute); padding: 4px 0; font-size: 15px; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-note { color: var(--mute); font-size: 14.5px; }
.footer-note a { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.footer-bottom b { color: var(--text); font-weight: 600; }
.footer-bottom .mono { letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }

/* ---------------- Reveal on scroll ---------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Keyframes ---------------- */
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes note-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes shimmer { to { transform: translateX(120%); } }
@keyframes sweep { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 3%, 0) scale(1.06); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes arcs-float { from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); } to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-tilt { 0%, 100% { transform: translateY(-50%) rotate(-8deg); } 50% { transform: translateY(calc(-50% - 14px)) rotate(-5deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; gap: 34px; }
    .product-media { position: relative; top: 0; }
}
@media (max-width: 900px) {
    .nav-inner { grid-template-columns: auto 1fr; padding: 0 16px; }
    .menu-btn { display: inline-grid; }
    .nav-links {
        position: fixed; left: 12px; right: 12px; top: 76px; flex-direction: column; gap: 2px; padding: 10px;
        background: rgba(18, 16, 25, .96); border: 1px solid var(--line-hi); border-radius: 18px; box-shadow: var(--shadow);
        backdrop-filter: blur(18px); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .3s var(--ease);
    }
    .nav-links a { padding: 12px 14px; font-size: 16px; }
    .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
    .hide-sm { display: none; }
    .cart-grid { grid-template-columns: 1fr; }
    .summary { position: relative; top: 0; }
    .showcase-stage { height: 260px; }
    .stage-frame { width: 78%; }
    .stage-side { display: none; }
    .promo { min-height: 0; padding-bottom: 260px; align-items: flex-start; }
    .promo-mark { top: auto; bottom: -40px; right: 50%; transform: translateX(50%) rotate(-8deg); width: 260px; animation: none; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 32px); padding: 40px 0; }
    .feature-grid, .pkg-grid { grid-template-columns: 1fr; }
    .feature { min-height: 0; }
    .feature-ico { margin-bottom: 14px; }
    .shop-tools, .search { width: 100%; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero { padding-top: 24px; }
    .hero-banner { border-radius: 16px; }
    .user-chip { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
    .nav .brand span { display: none; }
    .promo-copy h2 br { display: none; }
}
.prose > :first-child { margin-top: 0; }
