/* ==========================================================================
   Base: reset, typography, atmosphere, primitives (buttons, inputs, chips).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
    background: var(--c-black);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 32px);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--c-black);
    color: var(--c-white);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.6;
    font-feature-settings: 'ss01', 'cv11';
    letter-spacing: -0.006em;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:where(h1, h2, h3, h4) { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
kbd {
    display: inline-flex; align-items: center; height: 22px; padding: 0 7px;
    border: 1px solid var(--line-3); border-bottom-width: 2px; border-radius: 6px;
    background: var(--c-raise); color: var(--c-light);
    font: 500 11px/1 var(--font-mono); letter-spacing: 0.02em;
}
::selection { background: rgba(255, 255, 255, 0.9); color: var(--c-black); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; border-radius: 6px; }

/* Scrollbar */
html { scrollbar-color: #2a2a2a transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #232323; border: 3px solid var(--c-black); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

main { overflow-x: clip; }
.view, .page-view { position: relative; z-index: 1; }

/* ---------- Atmosphere: deep black blur, soft light, grid and grain ---------- */
.route-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, 0.075), transparent 60%),
        radial-gradient(80% 60% at 50% 120%, rgba(255, 255, 255, 0.035), transparent 70%),
        var(--c-black);
}
.atmo-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
}
.atmo-glow--a {
    width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 65%);
    animation: drift-a 26s var(--ease-in-out) infinite alternate;
}
.atmo-glow--b {
    width: 38vmax; height: 38vmax; right: -12vmax; top: 30vh;
    background: radial-gradient(circle, rgba(220, 220, 220, 0.085), transparent 65%);
    animation: drift-b 32s var(--ease-in-out) infinite alternate;
}
.atmo-glow--c {
    width: 50vmax; height: 30vmax; left: 20vw; bottom: -20vmax;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06), transparent 65%);
    animation: drift-c 38s var(--ease-in-out) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(12vw, 10vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-10vw, -8vh, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-14vw, -6vh, 0) scale(1.1); } }

.atmo-grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
}
.atmo-cursor {
    position: absolute;
    left: 0; top: 0;
    width: 640px; height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.055), transparent 62%);
    transform: translate3d(var(--mx, 50vw), var(--my, -50vh), 0);
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
}
html.has-pointer .atmo-cursor { opacity: 1; }
.atmo-grain {
    position: absolute;
    inset: -50%;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-3%, 2%); }
    40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); }
    80% { transform: translate(3%, 3%); }
    100% { transform: translate(0, 0); }
}

/* Scroll progress hairline */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 2px;
    z-index: 120;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff 40%, #fff);
    transform-origin: 0 50%;
    transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    opacity: 0.85;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-muted);
    font: 500 var(--fs-xs) / 1 var(--font-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow b {
    font-weight: 500;
    color: var(--c-white);
    padding: 5px 7px;
    border: 1px solid var(--line-3);
    border-radius: 6px;
    letter-spacing: 0.06em;
}
.text-gradient {
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mono-value {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-muted);
    overflow-wrap: anywhere;
}

.pulse-dot {
    position: relative;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    flex: none;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: pulse-ring 2.2s var(--ease-out) infinite;
}
@keyframes pulse-ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
    --btn-h: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 20px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    isolation: isolate;
    overflow: hidden;
    user-select: none;
    transition:
        transform var(--t-base) var(--ease-out),
        background-color var(--t-base) var(--ease-out),
        border-color var(--t-base) var(--ease-out),
        color var(--t-base) var(--ease-out),
        box-shadow var(--t-base) var(--ease-out),
        opacity var(--t-fast) linear;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.42; cursor: not-allowed; transform: none; }
.btn-sm { --btn-h: 36px; padding: 0 15px; font-size: 13px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .btn-arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-primary {
    background: var(--c-white);
    color: var(--c-black);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 8px 30px -8px rgba(255, 255, 255, 0.35);
}
.btn-primary::before {
    /* Light sweep */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(0, 0, 0, 0.12) 46%, rgba(255, 255, 255, 0) 60%);
    transform: translateX(-120%);
    transition: transform 0.75s var(--ease-out);
}
.btn-primary:hover:not(:disabled) {
    background: #f2f2f2;
    box-shadow: 0 0 0 1px #fff, 0 14px 44px -10px rgba(255, 255, 255, 0.55), 0 0 80px -20px rgba(255, 255, 255, 0.5);
}
.btn-primary:hover:not(:disabled)::before { transform: translateX(120%); }

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-white);
    box-shadow: inset 0 0 0 1px var(--line-3), var(--glass-highlight);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.btn-glass::before {
    /* Rotating border light on hover */
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0deg, rgba(255, 255, 255, 0.9) 60deg, transparent 120deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out);
    animation: spin-angle 3s linear infinite;
}
.btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.btn-glass:hover:not(:disabled)::before { opacity: 1; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-angle { to { --angle: 360deg; } }

.btn-ghost {
    color: var(--c-light);
    background: transparent;
    box-shadow: inset 0 0 0 1px transparent;
}
.btn-ghost:hover:not(:disabled) { color: #fff; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-pill);
    color: var(--c-light);
    box-shadow: inset 0 0 0 1px var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    transition: background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-4); }
.icon-btn:active { transform: scale(0.94); }

/* Loading state used by auth buttons */
.btn.is-loading, [aria-busy='true'].btn { pointer-events: none; }
.btn.is-loading .auth-button-label,
.btn[aria-busy='true'] .auth-button-label { opacity: 0.6; }
.btn.is-loading::after,
.btn[aria-busy='true']::after {
    content: '';
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.form-group { display: grid; gap: 8px; margin-bottom: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-label {
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--c-white);
    font-size: 14px;
    outline: none;
    transition: box-shadow var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.form-input::placeholder { color: #5f5f5f; }
.form-input:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.form-input:focus {
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 4px rgba(255, 255, 255, 0.06), 0 0 30px -6px rgba(255, 255, 255, 0.18);
}
.form-input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 100px #121212 inset, inset 0 0 0 1px var(--line-3);
    caret-color: #fff;
}
.pw-input-wrap { position: relative; }
.pw-input-wrap .form-input { padding-right: 48px; }
.btn-toggle-pw {
    position: absolute;
    top: 50%; right: 6px;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: var(--c-muted);
    transform: translateY(-50%);
    transition: color var(--t-fast), background-color var(--t-fast);
}
.btn-toggle-pw svg { width: 17px; height: 17px; }
.btn-toggle-pw:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.form-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 4px 0 18px;
    color: var(--c-muted);
    font-size: 12.5px;
    line-height: 1.55;
}
.form-check a { color: var(--c-light); text-decoration: underline; text-decoration-color: var(--line-4); text-underline-offset: 3px; }
.form-check a:hover { color: #fff; text-decoration-color: #fff; }
.form-check input,
.purchase-provider input {
    appearance: none;
    -webkit-appearance: none;
}
.form-check input {
    position: relative;
    flex: none;
    width: 18px; height: 18px;
    margin-top: 1px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px var(--line-4);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color var(--t-fast), box-shadow var(--t-fast);
}
.form-check input::after {
    content: '';
    position: absolute;
    left: 6px; top: 2.5px;
    width: 5px; height: 9px;
    border: solid var(--c-black);
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--t-base) var(--ease-spring);
}
.form-check input:checked { background: #fff; box-shadow: inset 0 0 0 1px #fff; }
.form-check input:checked::after { transform: rotate(45deg) scale(1); }

/* Inline alerts (errors / success) */
.modal-error {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: rgba(242, 167, 167, 0.05);
    box-shadow: inset 0 0 0 1px var(--c-danger-line);
    color: #f5d6d6;
    font-size: 13px;
    line-height: 1.5;
}
.modal-error svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--c-danger); }
.modal-error.show, .modal-error[style*='flex'], .modal-error[style*='block'] { display: flex; animation: alert-in 0.4s var(--ease-out); }
.modal-error.modal-success { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-3); color: #fff; }
.modal-error.modal-success svg { color: #fff; }
@keyframes alert-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 440px);
    padding: 13px 18px 13px 16px;
    border-radius: var(--r-md);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-float), var(--glass-highlight);
    color: var(--c-white);
    font-size: 13.5px;
    line-height: 1.45;
    transform: translateX(-50%);
    animation: toast-in 0.55s var(--ease-out) both;
}
.toast::before {
    content: '';
    flex: none;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}
.toast.error::before { background: var(--c-danger); box-shadow: 0 0 12px rgba(242, 167, 167, 0.7); }
.toast.error { box-shadow: var(--shadow-float), inset 0 0 0 1px var(--c-danger-line); }
.toast.success::before { animation: pulse-soft 1.6s ease-in-out infinite; }
.toast.is-leaving { animation: toast-out 0.35s var(--ease-in) both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(0.96); filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 10px) scale(0.98); } }
@keyframes pulse-soft { 50% { opacity: 0.4; } }

/* Purchase notice injected by purchase-dual.js */
.purchase-notice {
    position: fixed; left: 50%; top: calc(var(--nav-h) + 24px); z-index: 210;
    max-width: min(92vw, 460px); padding: 13px 18px; border-radius: var(--r-md);
    background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-float); font-size: 13.5px; transform: translateX(-50%);
}
.purchase-notice[data-type='error'] { box-shadow: var(--shadow-float), inset 0 0 0 1px var(--c-danger-line); }

/* ---------- Human check overlay ---------- */
.human-check {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, 0.05), transparent 70%), rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.human-check:not(.is-hidden):not(.has-error) { animation: human-check-in 0.4s 0.6s var(--ease-out) both; }
@keyframes human-check-in { from { opacity: 0; } }
.human-check.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.human-check-panel {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(100%, 380px);
    padding: 36px 28px;
    border-radius: var(--r-xl);
    background: var(--glass-bg);
    box-shadow: var(--shadow-float), var(--glass-highlight);
    text-align: center;
}
.human-check-panel h2 { font-size: 20px; }
.human-check-spinner {
    position: relative;
    display: grid; place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
}
.human-check-spinner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    border-top-color: #fff;
    animation: spin 1.1s linear infinite;
}
.human-check-spinner svg { width: 26px; height: 26px; fill: #fff; animation: pulse-soft 1.6s ease-in-out infinite; }
.human-check-status { color: var(--c-muted); font-size: 13px; }
.human-check.has-error .human-check-spinner::before { border-top-color: var(--c-danger); animation-duration: 2.4s; }
.turnstile-slot:empty { display: none; }
.turnstile-slot-auth { margin: 4px 0 14px; min-height: 0; }

/* ---------- Reveal system (states toggled by fx/reveal.ts) ---------- */
html.motion-ok [data-reveal]:not(.is-in) { opacity: 0; }
html.motion-ok [data-split]:not(.is-split) { opacity: 0; }
.split-word { display: inline-block; white-space: nowrap; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-unit { display: inline-block; will-change: transform, opacity; }

/* Skeleton loading */
.skeleton-line {
    display: block;
    height: 12px;
    margin: 10px 0;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}
.skeleton-line--short { width: 60%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* SPA view transitions (View Transitions API, progressive) */
::view-transition-old(root) { animation: vt-out 0.32s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); transform: scale(1.01); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .atmo-grain, .atmo-glow { animation: none !important; }
    html.motion-ok [data-reveal]:not(.is-in), html.motion-ok [data-split]:not(.is-split) { opacity: 1; }
}
/* ==========================================================================
   Landing: navbar, hero, sections, pricing, FAQ, CTA, footer.
   ========================================================================== */

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 14px;
    left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding-inline: 14px;
    pointer-events: none;
}
.navbar-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 1120px);
    height: var(--nav-h);
    padding: 0 10px 0 18px;
    border-radius: var(--r-pill);
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
    transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.navbar.is-scrolled .navbar-inner {
    width: min(100%, 980px);
    height: 56px;
    background: rgba(8, 8, 8, 0.72);
    box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px -24px rgba(0, 0, 0, 0.95);
}
.navbar.is-hidden .navbar-inner { transform: translateY(-140%); }
.navbar-inner { transition-property: width, height, background-color, box-shadow, transform; }

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    margin-right: auto;
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: 16px;
}
.nav-logo-mark {
    width: 26px; height: 26px;
    fill: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
    transition: transform 0.8s var(--ease-out);
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-180deg) scale(0.92); }

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--r-pill);
}
.nav-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    color: var(--c-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: color var(--t-base) var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-indicator {
    position: absolute;
    z-index: 0;
    top: 4px; left: 0;
    height: 36px;
    width: var(--w, 0px);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px var(--line-2);
    transform: translateX(var(--x, 0px));
    opacity: var(--o, 0);
    transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.3s;
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.nav-guest, .nav-user { display: flex; align-items: center; gap: 6px; }
.nav-account {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    max-width: 190px;
    padding: 0 14px 0 5px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 500;
    transition: background-color var(--t-base), box-shadow var(--t-base);
}
.nav-account:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-4); }
.nav-account #header-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account-avatar {
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-black);
}
.nav-account-avatar svg { width: 15px; height: 15px; }

.nav-burger .burger-lines { position: relative; width: 16px; height: 10px; }
.nav-burger .burger-lines i {
    position: absolute; left: 0; right: 0;
    height: 1.5px; border-radius: 2px; background: currentColor;
    transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav-burger .burger-lines i:first-child { top: 0; }
.nav-burger .burger-lines i:last-child { top: 8.5px; }
.nav-burger[aria-expanded='true'] .burger-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.nav-burger[aria-expanded='true'] .burger-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-drawer {
    position: fixed;
    top: calc(14px + var(--nav-h) + 10px);
    left: 14px; right: 14px;
    z-index: 99;
    flex-direction: column;
    gap: 18px;
    padding: 14px;
    border-radius: var(--r-lg);
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    box-shadow: var(--shadow-float), var(--glass-highlight);
}
.mobile-drawer-links { display: grid; }
.mobile-drawer-links a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line-1);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    transition: padding-left var(--t-base) var(--ease-out), color var(--t-base);
}
.mobile-drawer-links a span { color: var(--c-dim); font: 500 11px var(--font-mono); letter-spacing: 0.1em; }
.mobile-drawer-links a:hover { padding-left: 16px; }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-head { display: grid; gap: 18px; max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head--center { margin-inline: auto; justify-items: center; text-align: center; }
.section-title {
    font-size: var(--fs-h2);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.02;
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.62));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.04em;
}
/* Split headings: the gradient must live on each glyph (background does not inherit),
   and the parent must drop its own text clip or Chrome paints ghost glyphs at the
   untransformed positions while the words rise. */
.hero-title.is-split, .section-title.is-split, .final-cta-content h2.is-split {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}
.hero-title { --text-grad: linear-gradient(180deg, #ffffff 35%, rgba(255, 255, 255, 0.42) 100%); }
.section-title, .final-cta-content h2 { --text-grad: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.62)); }
.hero-title .split-unit, .section-title .split-unit, .final-cta-content h2 .split-unit {
    background-image: var(--text-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-sub { max-width: 560px; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.6; }
.section-sub a { color: var(--c-light); border-bottom: 1px solid var(--line-4); transition: color var(--t-fast), border-color var(--t-fast); }
.section-sub a:hover { color: #fff; border-color: #fff; }

/* Section seams: hairline + light bloom between sections */
.section + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1100px, 86vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 30%, rgba(255, 255, 255, 0.16) 70%, transparent);
}
.section + .section::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    width: min(420px, 90vw);
    height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.07), transparent 70%);
    pointer-events: none;
}

/* Spotlight surface (pointer-tracked glow, see fx/ambient.ts) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--px, 50%) var(--py, -40%), rgba(255, 255, 255, 0.075), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}
.spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(260px circle at var(--px, 50%) var(--py, -40%), rgba(255, 255, 255, 0.55), transparent 65%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

.card-surface {
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 120px);
    overflow: clip;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-world {
    position: absolute;
    inset: -6% -4% 0;
    background: url('/assets/hero-world-DGhOPXZy.webp') center 30% / cover no-repeat;
    opacity: 0.32;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 25%, transparent 78%);
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.06);
    animation: hero-breathe 24s var(--ease-in-out) infinite alternate;
}
@keyframes hero-breathe { to { scale: 1.06; } }
.hero-beam {
    position: absolute;
    top: -20%;
    left: 50%;
    width: min(1200px, 120vw);
    height: 90%;
    transform: translateX(-50%);
    background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(255, 255, 255, 0.12) 176deg, rgba(255, 255, 255, 0.22) 180deg, rgba(255, 255, 255, 0.12) 184deg, transparent 200deg);
    filter: blur(28px);
    opacity: 0.8;
    animation: beam 9s var(--ease-in-out) infinite alternate;
}
@keyframes beam { from { opacity: 0.55; transform: translateX(-50%) scaleX(0.85); } to { opacity: 0.9; transform: translateX(-50%) scaleX(1.1); } }
.hero-rings { position: absolute; left: 50%; top: 34%; width: 0; height: 0; }
.hero-rings i {
    position: absolute;
    left: 50%; top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: translate(-50%, -50%);
    animation: ring-pulse 8s var(--ease-in-out) infinite;
}
.hero-rings i:nth-child(1) { width: 520px; height: 520px; }
.hero-rings i:nth-child(2) { width: 820px; height: 820px; animation-delay: -2.6s; border-color: rgba(255, 255, 255, 0.045); }
.hero-rings i:nth-child(3) { width: 1180px; height: 1180px; animation-delay: -5.2s; border-color: rgba(255, 255, 255, 0.03); }
@keyframes ring-pulse { 50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.55; } }
.hero-floor {
    position: absolute;
    left: -25%; right: -25%;
    bottom: 12%;
    height: 46%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(700px) rotateX(64deg);
    transform-origin: 50% 0%;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 50%, transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 50%, transparent 92%);
    animation: floor-move 6s linear infinite;
    opacity: 0.55;
}
@keyframes floor-move { to { background-position: 0 72px; } }
.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 35%, transparent 40%, rgba(5, 5, 5, 0.85) 100%),
        linear-gradient(to bottom, rgba(5, 5, 5, 0.2), transparent 30%, transparent 60%, var(--c-black) 98%);
}

.hero-content {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding: 0 14px 0 12px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--line-3), var(--glass-highlight);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--c-light);
    font: 500 12px var(--font-mono);
    letter-spacing: 0.02em;
    transition: box-shadow var(--t-base), background-color var(--t-base);
}
.hero-kicker svg { width: 14px; height: 14px; color: var(--c-muted); transition: transform var(--t-base) var(--ease-out), color var(--t-base); }
.hero-kicker:hover { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-4); }
.hero-kicker:hover svg { transform: translateX(3px); color: #fff; }
.hero-title {
    margin: 30px 0 22px;
    font-size: var(--fs-display);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.88;
    background: linear-gradient(180deg, #ffffff 35%, rgba(255, 255, 255, 0.42) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.14));
    padding: 0 0.04em 0.06em;
}
.hero-sub { max-width: 580px; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.6; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 760px);
    margin-top: 64px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px var(--line-1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 20px 12px;
    position: relative;
}
.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: linear-gradient(transparent, var(--line-3), transparent);
}
.hero-stat dd { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat dt { color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }

.hero-device-wrap { position: relative; margin-top: clamp(64px, 9vw, 110px); perspective: 1600px; padding-bottom: 40px; }
.hero-device {
    position: relative;
    margin: 0 auto;
    max-width: 1080px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    padding: 8px;
    box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 120px -30px rgba(255, 255, 255, 0.18);
    transform-origin: 50% 0%;
    transform: rotateX(var(--device-tilt, 22deg)) scale(var(--device-scale, 0.92));
    will-change: transform;
}
.device-chrome {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 34px;
    padding: 0 10px 8px;
    color: var(--c-muted);
    font: 500 11px var(--font-mono);
    letter-spacing: 0.04em;
}
.device-dots { display: flex; gap: 6px; }
.device-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.device-dots i:first-child { background: rgba(255, 255, 255, 0.5); }
.device-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-key { justify-self: end; padding: 3px 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--c-light); }
.device-screen { position: relative; overflow: hidden; border-radius: 14px; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.device-screen img { width: 100%; height: auto; }
.device-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04));
    mix-blend-mode: screen;
    pointer-events: none;
}
.hero-device-shadow {
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 70%;
    height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.16), transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

/* ---------- Features bento ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    padding: 30px;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.bento-card--wide { grid-column: span 2; }
.bento-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-3), 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.bento-copy { position: relative; z-index: 1; display: grid; gap: 10px; max-width: 340px; }
.bento-index { color: var(--c-dim); font: 500 11px var(--font-mono); letter-spacing: 0.12em; }
.bento-copy h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; }
.bento-copy p { color: var(--c-muted); font-size: 14px; line-height: 1.6; }
.bento-art {
    position: absolute;
    right: -6%;
    bottom: -12%;
    width: 62%;
    max-width: 300px;
    height: auto;
    opacity: 0.88;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7));
    transition: transform 0.9s var(--ease-out), opacity 0.6s;
    pointer-events: none;
}
.bento-card--wide .bento-art { width: 44%; max-width: 330px; right: 4%; bottom: -16%; }
.bento-card:hover .bento-art { transform: translate(-8px, -12px) rotate(-4deg) scale(1.04); opacity: 1; }
.bento-card::selection { background: none; }

/* ---------- Interface showcase ---------- */
.interface-section { overflow: clip; }
.interface-atmo {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 40% at 50% 38%, rgba(255, 255, 255, 0.08), transparent 70%),
        radial-gradient(30% 30% at 15% 70%, rgba(255, 255, 255, 0.035), transparent 70%),
        radial-gradient(30% 30% at 85% 70%, rgba(255, 255, 255, 0.035), transparent 70%);
    pointer-events: none;
}
.showcase { margin: 0 auto; max-width: 1140px; perspective: 1800px; }
.showcase-frame {
    position: relative;
    padding: 12px;
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015)),
        rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        inset 0 0 0 1px var(--line-3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 80px 160px -60px rgba(0, 0, 0, 1),
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 0 140px -40px rgba(255, 255, 255, 0.22);
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.showcase-frame.is-tilting { transition: transform 0.12s linear; }
.showcase-frame::before {
    /* Animated edge light running around the frame */
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0deg, rgba(255, 255, 255, 0.7) 40deg, transparent 90deg, transparent 180deg, rgba(255, 255, 255, 0.35) 220deg, transparent 270deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-angle 9s linear infinite;
    pointer-events: none;
}
.showcase-corner { position: absolute; width: 18px; height: 18px; border-color: rgba(255, 255, 255, 0.55); border-style: solid; pointer-events: none; }
.showcase-corner--tl { top: -10px; left: -10px; border-width: 1px 0 0 1px; border-top-left-radius: 6px; }
.showcase-corner--tr { top: -10px; right: -10px; border-width: 1px 1px 0 0; border-top-right-radius: 6px; }
.showcase-corner--bl { bottom: -10px; left: -10px; border-width: 0 0 1px 1px; border-bottom-left-radius: 6px; }
.showcase-corner--br { bottom: -10px; right: -10px; border-width: 0 1px 1px 0; border-bottom-right-radius: 6px; }
.showcase-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 12px;
    color: var(--c-muted);
    font: 500 11px var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.showcase-bar-live { display: inline-flex; align-items: center; gap: 8px; color: var(--c-light); }
.showcase-bar-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: pulse-soft 1.8s ease-in-out infinite; }
.showcase-bar-meta { justify-self: end; }
.showcase-screen {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: inset 0 0 0 1px var(--line-2);
    transform: translateZ(30px);
}
.showcase-screen img { width: 100%; height: auto; }
.showcase-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
}
.showcase-caption {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    color: var(--c-muted);
    font-size: 13px;
    text-align: center;
}
.showcase-caption kbd { margin: 0 2px; }

.hotspot {
    position: absolute;
    z-index: 2;
    left: var(--x);
    top: var(--y);
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    cursor: help;
    outline: none;
}
.hotspot > i {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 0 18px rgba(255, 255, 255, 0.9);
}
.hotspot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: pulse-ring 2.4s var(--ease-out) infinite;
}
.hotspot-label {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(8, 8, 8, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px var(--line-3), 0 16px 40px -10px rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    pointer-events: none;
}
.hotspot--left .hotspot-label { left: auto; right: calc(100% + 10px); transform: translate(6px, -50%); }
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label, .showcase.is-annotated .hotspot-label { opacity: 1; transform: translate(0, -50%); }
.showcase.is-annotated .hotspot:nth-of-type(2) .hotspot-label { transition-delay: 0.18s; }
.showcase.is-annotated .hotspot:nth-of-type(3) .hotspot-label { transition-delay: 0.36s; }
.showcase.is-annotated .hotspot:nth-of-type(4) .hotspot-label { transition-delay: 0.54s; }
.showcase.is-annotated .hotspot:nth-of-type(5) .hotspot-label { transition-delay: 0.72s; }

.interface-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 16px;
    margin-top: clamp(56px, 7vw, 88px);
}
.spec-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
}
.spec-num {
    font-size: clamp(54px, 6vw, 76px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.95;
    margin-bottom: auto;
    padding-bottom: 28px;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.spec-card h3 { font-size: 17px; letter-spacing: -0.02em; }
.spec-card p { color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }
.spec-hud {
    overflow: hidden;
    margin: -10px -10px 14px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--line-2);
    background: #000;
}
.spec-hud img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); transform-origin: 0 0; }
.spec-card--hud:hover .spec-hud img { transform: scale(1.06); }

/* ---------- Modules by category ---------- */
.segmented {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    margin-bottom: 32px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.segmented-thumb {
    position: absolute;
    top: 5px; left: 0;
    height: calc(100% - 10px);
    width: var(--w, 0px);
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: 0 6px 24px -6px rgba(255, 255, 255, 0.45);
    transform: translateX(var(--x, 0px));
    transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
}
.segmented-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--r-pill);
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.4s var(--ease-out);
}
.segmented-btn:hover { color: #fff; }
.segmented-btn[aria-selected='true'] { color: var(--c-black); }
.segmented-btn small {
    font: 500 11px var(--font-mono);
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.4s;
}
.segmented-btn[aria-selected='true'] small { background: rgba(0, 0, 0, 0.08); }

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    min-height: 200px;
}
.module-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    align-items: start;
    padding: 18px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.018);
    box-shadow: inset 0 0 0 1px var(--line-1);
    transition: background-color var(--t-base), box-shadow var(--t-base), transform var(--t-base) var(--ease-out);
}
.module-item:hover { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line-3); transform: translateY(-2px); }
.module-item-index {
    grid-row: span 2;
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--c-muted);
    font: 500 11px var(--font-mono);
    transition: background-color var(--t-base), color var(--t-base);
}
.module-item:hover .module-item-index { background: #fff; color: var(--c-black); }
.module-item h4 { font: 600 14px var(--font-mono); letter-spacing: -0.01em; line-height: 1.4; }
.module-item p { color: var(--c-muted); font-size: 13px; line-height: 1.5; }

/* ---------- Video showcase ---------- */
.video-frame {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-xl);
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(70% 70% at 50% 40%, #151515, #070707 75%);
    box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 60px 140px -50px rgba(0, 0, 0, 1), 0 0 120px -30px rgba(255, 255, 255, 0.16);
}
.video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent, rgba(255, 255, 255, 0.5) 30deg, transparent 80deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-angle 10s linear infinite;
    pointer-events: none;
    z-index: 3;
}
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.6s, transform 1.2s var(--ease-out); }
.video-frame:hover .video-poster { opacity: 0.75; transform: scale(1.02); }
.video-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.7)); pointer-events: none; }
.video-play {
    position: absolute;
    left: 50%; top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: transform 0.5s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.video-play::before, .video-play::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: pulse-ring 2.6s var(--ease-out) infinite;
}
.video-play::after { animation-delay: 1.3s; }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; fill: #fff; transition: fill 0.4s; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; box-shadow: 0 0 80px rgba(255, 255, 255, 0.5); }
.video-play:hover svg { fill: var(--c-black); }
.video-meta {
    position: absolute;
    left: 24px; right: 24px; bottom: 22px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-light);
    font: 500 11px var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}
.video-frame.is-playing .video-play, .video-frame.is-playing .video-scrim, .video-frame.is-playing .video-meta, .video-frame.is-playing .video-poster { opacity: 0; pointer-events: none; }

.video-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    text-align: center;
    padding: 24px;
}
.video-placeholder-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 80%);
}
.video-placeholder-scan {
    position: absolute;
    left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: scan 5s var(--ease-in-out) infinite;
}
@keyframes scan { from { top: -120px; } to { top: 100%; } }
.video-placeholder-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px; height: 92px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line-3);
    background: rgba(255, 255, 255, 0.03);
}
.video-placeholder-mark::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation: spin 3.2s linear infinite;
}
.video-placeholder-mark svg { width: 34px; height: 34px; fill: #fff; opacity: 0.85; }
.video-placeholder strong { position: relative; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.04em; }
.video-placeholder p { position: relative; max-width: 380px; color: var(--c-muted); font-size: 14px; }
.video-placeholder .badge-soon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-3);
    color: var(--c-light);
    font: 500 11px var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.video-corners span { position: absolute; width: 22px; height: 22px; border: solid rgba(255, 255, 255, 0.4); z-index: 2; }
.video-corners span:nth-child(1) { top: 18px; left: 18px; border-width: 1px 0 0 1px; }
.video-corners span:nth-child(2) { top: 18px; right: 18px; border-width: 1px 1px 0 0; }
.video-corners span:nth-child(3) { bottom: 18px; left: 18px; border-width: 0 0 1px 1px; }
.video-corners span:nth-child(4) { bottom: 18px; right: 18px; border-width: 0 1px 1px 0; }

/* ---------- Community ---------- */
.community-live {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
}
.community-live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.community-live-head h2 { margin: 14px 0 8px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.045em; }
.community-live-head p { color: var(--c-muted); font-size: 14px; }
.community-live-total { display: grid; justify-items: end; gap: 6px; text-align: right; }
.community-live-total strong { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.community-live-total span { color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.community-online-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.community-player {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px 0 5px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 500;
    animation: chip-in 0.5s var(--ease-out) both;
}
.community-player:nth-child(2) { animation-delay: 40ms; }
.community-player:nth-child(3) { animation-delay: 80ms; }
.community-player:nth-child(4) { animation-delay: 120ms; }
.community-player:nth-child(n+5) { animation-delay: 160ms; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
.community-player-avatar {
    position: relative;
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-black);
    font-size: 12px;
    font-weight: 700;
}
.community-player-avatar::after {
    content: '';
    position: absolute;
    right: -1px; bottom: -1px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--c-black), 0 0 8px #fff;
}
.community-live-loading { display: inline-flex; align-items: center; gap: 10px; color: var(--c-muted); font-size: 13.5px; }
.community-all-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
    margin-top: 18px;
    max-height: 320px;
    overflow: auto;
    padding-right: 4px;
}
.community-all-player { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line-1); font-size: 13px; }
.community-all-player i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-dim); flex: none; }
.community-all-player i.is-online { background: #fff; box-shadow: 0 0 8px #fff; }
.community-all-player span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-all-player small { color: var(--c-muted); font-size: 11px; }
.community-live-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line-1);
    color: var(--c-muted);
    font: 500 11.5px var(--font-mono);
    letter-spacing: 0.04em;
}

/* ---------- Pricing ---------- */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 22px 22px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.price-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-4), 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(255, 255, 255, 0.12); }
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pricing-days { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.price-tag {
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px var(--line-3);
    color: var(--c-light);
    font: 500 10px var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.price-card .pricing-price { display: block; font-size: clamp(34px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { margin-top: -8px; color: var(--c-muted); font: 500 11.5px/18px var(--font-mono); letter-spacing: 0.02em; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pricing-desc { flex: 1; color: var(--c-muted); font-size: 13px; line-height: 1.55; }
.price-card .btn { width: 100%; }
.price-card--featured {
    background: linear-gradient(180deg, #ffffff, #e9e9e9);
    color: var(--c-black);
    box-shadow: 0 0 0 1px #fff, 0 30px 80px -30px rgba(255, 255, 255, 0.35);
}
.price-card--featured:hover { box-shadow: 0 0 0 1px #fff, 0 40px 100px -30px rgba(255, 255, 255, 0.5); }
.price-card--featured .price-tag { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); color: var(--c-black); }
.price-card--featured .pricing-desc, .price-card--featured .price-per { color: #4a4a4a; }
.price-card--featured .btn-primary { background: var(--c-black); color: #fff; box-shadow: 0 0 0 1px #000, 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.price-card--featured .btn-primary::before { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 46%, transparent 60%); }
.price-card--featured::before { display: none; }

.hwid-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.hwid-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-3); color: #fff; }
.hwid-icon svg { width: 22px; height: 22px; }
.hwid-info { flex: 1; min-width: 0; }
.hwid-info h4 { font-size: 16px; letter-spacing: -0.02em; margin-bottom: 4px; }
.hwid-info p { color: var(--c-muted); font-size: 13.5px; }
.hwid-right { display: flex; align-items: center; gap: 16px; flex: none; }
.hwid-right .pricing-price { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--nav-h) + 60px); margin-bottom: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px var(--line-1);
    transition: background-color var(--t-base), box-shadow var(--t-base);
    overflow: hidden;
}
.faq-item:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.faq-item[open] { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-3); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
    font-size: 15.5px;
    font-weight: 500;
    letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
    width: 18px; height: 18px; flex: none;
    color: var(--c-muted);
    transition: transform 0.5s var(--ease-out), color var(--t-base);
}
.faq-item[open] summary svg { transform: rotate(135deg); color: #fff; }
.faq-body { overflow: hidden; color: var(--c-muted); font-size: 14.5px; line-height: 1.65; }
.faq-body p { padding: 0 22px 22px; max-width: 620px; }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; padding-block: clamp(40px, 6vw, 80px) var(--section-y); }
.final-cta-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 460px;
    padding: clamp(48px, 7vw, 88px) 24px;
    overflow: hidden;
    border-radius: var(--r-xl);
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, 0.11), transparent 70%),
        linear-gradient(180deg, #0f0f0f, #070707);
    box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 60px 140px -60px rgba(0, 0, 0, 1);
    isolation: isolate;
}
.final-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 85%);
}
.final-cta-glow {
    position: absolute;
    left: 50%; top: 100%;
    width: 700px; height: 400px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18), transparent 65%);
    filter: blur(20px);
    z-index: -1;
}
.final-cta-content { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; max-width: 640px; text-align: center; }
.final-cta-content h2 {
    font-size: var(--fs-h1);
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.05em;
}
.final-cta-content p { color: var(--c-muted); font-size: var(--fs-lead); max-width: 440px; }
.final-cta-actions { margin-top: 14px; }
.final-cta-art {
    position: absolute;
    top: 50%;
    width: clamp(160px, 22vw, 290px);
    height: auto;
    opacity: 0.75;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8));
    pointer-events: none;
    animation: float-y 7s var(--ease-in-out) infinite alternate;
}
.final-cta-art--left { left: -2%; transform: translateY(-50%) rotate(-10deg); }
.final-cta-art--right { right: -1%; width: clamp(130px, 17vw, 230px); transform: translateY(-46%) rotate(8deg); animation-delay: -3.5s; }
@keyframes float-y { to { translate: 0 -16px; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 72px 0 36px; border-top: 1px solid var(--line-1); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.footer-brand svg { width: 26px; height: 26px; fill: #fff; }
.footer-tagline { margin-top: 12px; color: var(--c-muted); font-size: 14px; }
.footer-col { display: grid; align-content: start; gap: 12px; }
.footer-col-title { color: var(--c-dim); font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a {
    justify-self: start;
    color: var(--c-light);
    font-size: 14px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.45s var(--ease-out), color var(--t-base);
}
.footer-col a:hover { color: #fff; background-size: 100% 1px; }
.footer-wordmark {
    margin: 64px 0 28px;
    font-size: clamp(64px, 17vw, 240px);
    font-weight: 600;
    letter-spacing: -0.075em;
    line-height: 0.8;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line-1);
    color: var(--c-dim);
    font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav-links .nav-link[data-scroll='modules'] { display: none; }
    .interface-grid { grid-template-columns: 1fr 1fr; }
    .spec-card--hud { grid-column: span 2; }
}
@media (max-width: 960px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento-card--wide { grid-column: span 2; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout .section-head { position: static; margin-bottom: 8px; }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
    .final-cta-art { opacity: 0.35; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .hero { padding-top: calc(var(--nav-h) + 84px); }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-stat:nth-child(3)::before { display: none; }
    .hero-stat:nth-child(n+3) { border-top: 1px solid var(--line-1); }
    .community-live-head { flex-direction: column; align-items: flex-start; }
    .community-live-total { justify-items: start; text-align: left; }
    .hwid-card { flex-wrap: wrap; }
    .hwid-right { width: 100%; justify-content: space-between; }
}
@media (max-width: 680px) {
    :root { --nav-h: 58px; }
    .navbar { top: 10px; padding-inline: 10px; }
    .navbar-inner, .navbar.is-scrolled .navbar-inner { height: var(--nav-h); padding: 0 8px 0 14px; width: 100%; }
    .nav-guest #btn-open-login { display: none; }
    .nav-account { max-width: 150px; height: 38px; padding-right: 12px; }
    .nav-account-avatar { width: 28px; height: 28px; }
    .nav-user #btn-logout { display: none; }
    .icon-btn { width: 38px; height: 38px; }
    .nav-actions { gap: 6px; }
    .nav-logo-word { display: none; }
    .mobile-drawer { top: calc(10px + var(--nav-h) + 8px); left: 10px; right: 10px; }
    .hero-title { margin: 24px 0 18px; }
    .hero-btns { width: 100%; }
    .hero-btns .btn { flex: 1 1 100%; }
    .hero-device { padding: 5px; border-radius: 16px; }
    .device-chrome { height: 26px; padding-bottom: 5px; }
    .device-title { display: none; }
    .device-screen { border-radius: 11px; }
    .bento { grid-template-columns: 1fr; }
    .bento-card, .bento-card--wide { grid-column: auto; min-height: 280px; padding: 24px; }
    .bento-art, .bento-card--wide .bento-art { width: 52%; right: -4%; bottom: -10%; }
    .interface-grid { grid-template-columns: 1fr; }
    .spec-card--hud { grid-column: auto; }
    .showcase-frame { padding: 6px; border-radius: 18px; }
    .showcase-bar { grid-template-columns: 1fr auto; padding: 2px 4px 8px; }
    .showcase-bar > span:nth-child(2) { display: none; }
    .showcase-screen { border-radius: 12px; }
    .hotspot { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
    .hotspot > i { inset: 6px; }
    .hotspot-label { display: none; }
    .segmented { display: flex; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .segmented::-webkit-scrollbar { display: none; }
    .segmented-btn { flex: none; padding: 0 14px; }
    .module-grid { grid-template-columns: 1fr; }
    .video-frame { border-radius: 18px; }
    .video-play { width: 72px; height: 72px; }
    .video-placeholder-mark { width: 64px; height: 64px; }
    .video-placeholder-mark svg { width: 24px; height: 24px; }
    .video-placeholder p { display: none; }
    .video-corners span { width: 14px; height: 14px; }
    .video-meta { left: 14px; right: 14px; bottom: 12px; font-size: 9.5px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-legal { flex-direction: column; }
    .final-cta-art { display: none; }
    .final-cta-panel { min-height: 0; }
    .final-cta-actions, .final-cta-actions .btn { width: 100%; }
    .hero-floor { opacity: 0.35; }
}
@media (max-width: 420px) {
    .hero-stats { margin-top: 44px; }
    .hero-stat { padding: 16px 8px; }
    .pricing-table { grid-template-columns: 1fr; }
}
html.motion-ok .hero-device-wrap { opacity: 0; }

body[data-view='dashboard'] #nav-btn-home { color: #fff; }
@media (min-width: 681px) and (max-width: 860px) {
    .mobile-drawer { left: auto; right: 24px; width: 380px; }
}
.is-authed #mob-register-btn { display: none; }

/* Spec cards: fill the space between the number and the caption */
.interface-grid .spec-num { margin-bottom: 0; padding-bottom: 0; }
.spec-bars, .spec-dock { list-style: none; display: grid; align-content: center; flex: 1; gap: 12px; margin: 26px 0 24px; }
.spec-bars li { display: grid; grid-template-columns: 92px 1fr 22px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--c-muted); }
.spec-bars i { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.spec-bars i::after {
    content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #fff); box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    transform-origin: left; transition: transform 1.1s var(--ease-out);
}
.spec-bars b { color: #fff; font: 600 12px var(--font-mono); text-align: right; }
.spec-dock { gap: 8px; }
.spec-dock li {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line-1);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.spec-dock li:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-3); }
.spec-dock-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.spec-dock-icon svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spec-dock b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.spec-dock small { display: block; color: var(--c-muted); font-size: 11.5px; }
/* ==========================================================================
   App surfaces: dashboard, modals, legal page, cosmetics shop, 2FA.
   ========================================================================== */

/* ---------- Dashboard ---------- */
.db-wrap { position: relative; min-height: 100vh; padding: calc(var(--nav-h) + 72px) 0 96px; }
.db-header { display: grid; gap: 14px; margin-bottom: 34px; }
.db-header .eyebrow b { border: 0; padding: 0; font-size: 10px; text-shadow: 0 0 10px #fff; }
.db-greeting { font-size: var(--fs-h1); letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.04em; }
.db-layout-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.db-sidebar { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 12px; }

.cabinet-header, .db-tabs, .db-card {
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.cabinet-header { display: grid; gap: 18px; padding: 20px; }
.cabinet-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cabinet-avatar {
    position: relative;
    display: grid; place-items: center;
    width: 52px; height: 52px;
    flex: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.4);
}
.cabinet-avatar svg { width: 26px; height: 26px; fill: var(--c-black); }
.cabinet-info { min-width: 0; }
.cabinet-name { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--c-muted); font: 500 11.5px var(--font-mono); }
.role-badge { padding: 2px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--c-light); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.btn-logout svg { width: 14px; height: 14px; }

.db-tabs { position: relative; display: grid; gap: 2px; padding: 8px; }
.db-tab-indicator {
    position: absolute;
    left: 8px; right: 8px; top: 0;
    height: var(--h, 44px);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.35);
    transform: translateY(var(--y, 8px));
    opacity: var(--o, 0);
    transition: transform 0.5s var(--ease-out), height 0.5s var(--ease-out), opacity 0.3s;
}
.db-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: color 0.4s var(--ease-out), background-color var(--t-base);
}
.db-tab svg { width: 17px; height: 17px; flex: none; transition: transform 0.5s var(--ease-out); }
.db-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.db-tab:hover svg { transform: translateX(2px); }
.db-tab.active { color: var(--c-black); background: transparent; }
.db-tabs:not(.has-indicator) .db-tab.active { background: #fff; }
.db-tab--admin { margin-top: 6px; border-top: 1px solid var(--line-1); border-radius: 0 0 12px 12px; padding-top: 6px; height: 50px; }

.db-content-area { position: relative; min-width: 0; }
.db-tab-content { display: none; }
.db-tab-content.active { display: block; }
.db-tab-content > .db-card + .db-card { margin-top: 12px; }
.db-card { position: relative; padding: clamp(22px, 3vw, 32px); }
.db-card--hero {
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.db-card-kicker { display: block; margin-bottom: 14px; color: var(--c-muted); font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.sub-no-active { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.sub-no-active[data-state='active']::before {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    margin-right: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 16px #fff;
    vertical-align: 0.15em;
}
.sub-no-active[data-state='expired'] { color: var(--c-light); }
.sub-no-active[data-state='expired']::before {
    content: '';
    display: inline-block;
    width: 10px; height: 10px;
    margin-right: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--c-danger);
    vertical-align: 0.15em;
}
.sub-no-active-desc { margin-top: 10px; color: var(--c-muted); font-size: 14.5px; max-width: 520px; }
.btn-buy-sub { margin-top: 24px; }
.db-card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.db-card-title svg { width: 18px; height: 18px; color: var(--c-muted); flex: none; }
.hwid-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hwid-row .db-card-title { margin-bottom: 8px; font-size: 14px; }
.hwid-row-copy { min-width: 0; flex: 1 1 320px; }
.hwid-row-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.hwid-row-actions .btn-buy-sub { margin-top: 0; }
.hwid-row-actions .pricing-price { font-weight: 600; font-variant-numeric: tabular-nums; }

.key-card-desc { margin: -8px 0 20px; color: var(--c-muted); font-size: 14px; }
.key-row { display: flex; gap: 10px; }
.key-input { font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.key-input::placeholder { letter-spacing: 0.12em; }
.btn-activate svg { width: 15px; height: 15px; }
#btn-change-password { margin-top: 6px; }

.launcher-card { display: flex; align-items: center; gap: 18px; }
.launcher-icon {
    display: grid; place-items: center;
    width: 60px; height: 60px; flex: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #1c1c1c, #0c0c0c);
    box-shadow: inset 0 0 0 1px var(--line-3), 0 14px 30px -12px rgba(0, 0, 0, 0.9);
}
.launcher-icon svg { width: 28px; height: 28px; fill: #fff; }
.launcher-info { flex: 1; min-width: 0; }
.launcher-info h4 { font: 600 16px var(--font-mono); letter-spacing: -0.01em; }
.launcher-info p { margin-top: 4px; color: var(--c-muted); font-size: 13.5px; }
.launcher-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; list-style: none; }
.launcher-steps li { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--c-light); font-size: 13px; line-height: 1.5; }
.launcher-steps b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-3); font: 500 11px var(--font-mono); }

/* ---------- Telegram 2FA ---------- */
.telegram-security-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.telegram-security-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: #fff; color: var(--c-black); }
.telegram-security-head h3 { font-size: 19px; letter-spacing: -0.03em; margin-top: 4px; }
.telegram-security-kicker { color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.telegram-link-badge {
    margin-left: auto;
    padding: 6px 11px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-3);
    color: var(--c-muted);
    font: 500 11px var(--font-mono);
    white-space: nowrap;
}
.telegram-link-badge.is-linked { background: #fff; color: var(--c-black); box-shadow: 0 0 20px -4px rgba(255, 255, 255, 0.6); }
.telegram-security-copy { color: var(--c-muted); font-size: 14px; max-width: 560px; margin-bottom: 22px; }
.telegram-link-form { display: grid; gap: 10px; }
.telegram-link-form > label { color: var(--c-muted); font-size: 12px; font-weight: 500; }
.telegram-link-controls { display: flex; gap: 10px; }
.telegram-link-options { display: grid; gap: 14px; margin-top: 12px; }
.telegram-link-options > p, .telegram-link-options small { color: var(--c-muted); font-size: 13px; }
.telegram-link-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.telegram-link-method { display: grid; align-content: start; gap: 8px; padding: 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line-2); }
.telegram-link-method > span:not(.telegram-method-label) { color: var(--c-muted); font-size: 13px; }
.telegram-method-label { color: var(--c-dim); font: 500 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.telegram-link-method strong { font-size: 15px; }
.telegram-link-method .btn { justify-self: start; margin-top: 6px; }
.telegram-link-method code { display: block; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 13px var(--font-mono); word-break: break-all; }
.telegram-link-ready { display: grid; gap: 6px; padding: 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-3); }
.telegram-link-ready span { color: var(--c-muted); font-size: 13.5px; }
.telegram-link-message:not(:empty) { margin-top: 12px; color: var(--c-light); font-size: 13px; }

/* ---------- Cosmetics shop ---------- */
.cosmetics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.cosmetics-head h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.045em; margin-bottom: 6px; }
.cosmetics-head p { color: var(--c-muted); font-size: 13.5px; }
#cosmetics-owned-count:not(:empty) { flex: none; padding: 7px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--c-light); font: 500 11px var(--font-mono); }
.cosmetics-category { display: inline-flex; margin-bottom: 18px; padding: 7px 12px; border-radius: var(--r-pill); background: #fff; color: var(--c-black); font-size: 12px; font-weight: 600; }
.cosmetics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cosmetic-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    animation: chip-in 0.6s var(--ease-out) both;
}
.cosmetic-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-4), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.cosmetic-cover {
    position: relative;
    display: grid;
    place-items: center;
    height: 190px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.1), transparent 50%), linear-gradient(180deg, #161616, #0b0b0b);
}
.cosmetic-cover::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.02), 0 0 0 52px rgba(255, 255, 255, 0.012);
}
.cosmetic-cover img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.7s var(--ease-out); }
.cosmetic-card:hover .cosmetic-cover img { transform: scale(1.07) translateY(-4px); }
.cosmetic-symbol { font-size: 64px; line-height: 1; color: #fff; text-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
.cosmetic-cover-label, .cosmetic-cover-owned {
    position: absolute;
    z-index: 2;
    top: 12px; left: 12px;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(5, 5, 5, 0.7);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--c-light);
    font: 500 10px var(--font-mono);
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cosmetic-cover-owned { left: auto; right: 12px; background: #fff; color: var(--c-black); box-shadow: none; }
.cosmetic-info { padding: 16px; }
.cosmetic-info h4 { font-size: 15px; letter-spacing: -0.02em; margin-bottom: 6px; }
.cosmetic-info p { min-height: 38px; margin-bottom: 14px; color: var(--c-muted); font-size: 12.5px; line-height: 1.55; }
.cosmetic-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cosmetic-bottom strong { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cosmetic-bottom span { color: var(--c-muted); font-size: 11.5px; text-align: right; }
.cosmetic-buy, .cosmetic-stage-purchase button {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--c-black);
    font-size: 12.5px;
    font-weight: 600;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.cosmetic-buy:hover, .cosmetic-stage-purchase button:hover { box-shadow: 0 8px 26px -6px rgba(255, 255, 255, 0.5); transform: translateY(-1px); }
.cosmetic-try {
    height: 34px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-3);
    color: var(--c-light);
    font-size: 12px;
    transition: background-color var(--t-base), box-shadow var(--t-base), color var(--t-base);
}
.cosmetic-try:hover { color: #fff; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-4); }
.cosmetic-bundle-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr); }
.cosmetic-bundle-card .cosmetic-info { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; }
.cosmetic-bundle-card .cosmetic-info h4 { font-size: 19px; letter-spacing: -0.03em; }
.cosmetic-bundle-cover { height: 100%; min-height: 230px; }
.cosmetic-cover.is-missing img { display: none; }
.cosmetic-bundle-cover img { max-height: 100%; object-fit: contain; }
.cosmetic-bundle-contents { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.cosmetic-bundle-contents span { padding: 4px 8px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--c-light); background: rgba(255, 255, 255, 0.03); font-size: 10.5px; }
.cosmetic-card.is-previewed { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 40px -12px rgba(255, 255, 255, 0.35); }
.cosmetics-empty { grid-column: 1 / -1; padding: 44px 20px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-2); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px); color: var(--c-muted); text-align: center; font-size: 14px; }

.cosmetic-showroom[hidden] { display: none; }
.cosmetic-showroom {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: radial-gradient(ellipse at 28% 40%, rgba(255, 255, 255, 0.07), transparent 45%), linear-gradient(135deg, #121212, #070707 70%);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.cosmetic-showroom-heading { display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px 0; color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.16em; }
.cosmetic-showroom-kicker::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; vertical-align: 1px; }
.cosmetic-showroom-counter { color: var(--c-dim); text-transform: uppercase; }
.cosmetic-showroom-layout { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(250px, 0.9fr); min-height: 420px; }
.cosmetic-stage { position: relative; min-height: 420px; isolation: isolate; overflow: hidden; }
.cosmetic-stage::before { content: ''; position: absolute; inset: 8% 8% 13%; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 50% 50% 42% 42%; transform: scaleX(0.88); }
.cosmetic-stage::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, transparent 49.85%, rgba(255, 255, 255, 0.04) 50%, transparent 50.15%), linear-gradient(0deg, transparent 49.85%, rgba(255, 255, 255, 0.03) 50%, transparent 50.15%);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.cosmetic-stage-halo { position: absolute; width: 320px; height: 320px; left: 50%; top: 42%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 50%, transparent 72%); }
.cosmetic-stage-floor { position: absolute; left: 50%; bottom: 42px; width: 230px; height: 38px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12), transparent 68%); box-shadow: 0 0 42px rgba(255, 255, 255, 0.06); }
.cosmetic-stage-model { position: absolute; z-index: 2; display: block; width: min(100%, 420px); aspect-ratio: 1; left: 50%; top: 49%; transform: translate(-50%, -50%); animation: cosmeticModelReveal 0.4s var(--ease-out) both; cursor: grab; touch-action: none; user-select: none; }
.cosmetic-stage-model.is-dragging { cursor: grabbing; }
.cosmetic-stage-model:focus-visible { outline: 2px solid #fff; outline-offset: -8px; border-radius: 20px; }
.cosmetic-stage-model img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, 0.4)); }
.cosmetic-stage-model .cosmetic-stage-animation, .cosmetic-stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cosmetic-stage-turntable { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cosmetic-stage-model img, .cosmetic-stage-model video { pointer-events: none; }
.cosmetic-stage-loading { position: absolute; z-index: 3; bottom: 38px; left: 20px; right: 20px; text-align: center; color: var(--c-light); font-size: 11.5px; }
@keyframes cosmeticModelReveal { from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.cosmetic-stage-caption { position: absolute; bottom: 14px; left: 21px; color: var(--c-dim); font: 500 9.5px var(--font-mono); letter-spacing: 0.12em; }
.cosmetic-stage-details { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px clamp(20px, 3vw, 40px) 32px 12px; }
.cosmetic-stage-eyebrow { color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.16em; }
.cosmetic-stage-details h4 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.055em; line-height: 1.05; }
.cosmetic-stage-details p { margin-bottom: 18px; color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }
.cosmetic-stage-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cosmetic-stage-chips span { padding: 6px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--c-light); background: rgba(255, 255, 255, 0.03); font-size: 11px; }
.cosmetic-stage-purchase { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cosmetic-stage-purchase strong { font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.cosmetic-stage-purchase span { color: var(--c-muted); font-size: 12.5px; }
.cosmetic-stage-details small { margin-top: 18px; color: var(--c-dim); font-size: 11px; line-height: 1.5; }

/* ---------- Modals (auth + purchase) ---------- */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 3, 3, 0.72);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    overflow-y: auto;
}
.modal-box {
    position: relative;
    margin: auto;
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.94), rgba(10, 10, 10, 0.96));
    box-shadow: inset 0 0 0 1px var(--line-3), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 80px 160px -40px rgba(0, 0, 0, 1), 0 0 120px -40px rgba(255, 255, 255, 0.14);
}
.auth-modal-box { display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 940px); min-height: 600px; overflow: hidden; }
.auth-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 5;
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    color: var(--c-muted);
    box-shadow: inset 0 0 0 1px var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    transition: color var(--t-base), background-color var(--t-base), transform 0.5s var(--ease-out);
}
.auth-modal-close svg { width: 16px; height: 16px; }
.auth-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); transform: rotate(90deg); }

.auth-promo-col { position: relative; overflow: hidden; margin: 10px; border-radius: 22px; background: #000; }
.auth-promo-slides { position: absolute; inset: 0; }
.auth-promo-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.2s var(--ease-in-out), transform 6s linear;
}
.auth-promo-img.active { opacity: 0.85; transform: scale(1.02); }
.auth-promo-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%, transparent 45%, rgba(0, 0, 0, 0.92)); }
.auth-promo-brand { position: absolute; top: 22px; left: 22px; display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.auth-promo-brand svg { width: 24px; height: 24px; fill: #fff; }
.auth-promo-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.auth-promo-title { font-size: 24px; letter-spacing: -0.04em; line-height: 1.15; margin-bottom: 18px; max-width: 340px; animation: promo-title 0.8s var(--ease-out); }
@keyframes promo-title { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.auth-promo-dots { display: flex; gap: 6px; }
.auth-dot { width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: width 0.5s var(--ease-out), background-color 0.4s; }
.auth-dot.active { width: 38px; background: #fff; }

.auth-form-col { position: relative; padding: 56px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-title { font-size: 30px; letter-spacing: -0.045em; margin-bottom: 8px; }
.auth-sub { color: var(--c-muted); font-size: 14px; margin-bottom: 26px; }
.auth-sub a { color: #fff; border-bottom: 1px solid var(--line-4); }
.auth-field-hint { color: var(--c-dim); font-size: 11.5px; }
.auth-submit-status { min-height: 0; color: var(--c-muted); font-size: 12.5px; text-align: center; transition: margin 0.3s; }
.auth-submit-status.is-visible { margin-bottom: 10px; }
.btn-auth-primary { margin-top: 4px; }
.auth-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; }
.auth-footer-left { display: flex; align-items: center; gap: 6px; }
.muted-txt { color: var(--c-muted); }
.auth-link-btn {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease-out), color var(--t-base);
}
.auth-link-btn:hover:not(:disabled) { background-size: 100% 1px; }
.auth-link-btn:disabled { color: var(--c-dim); cursor: default; }
.auth-link-btn.muted-link { color: var(--c-muted); }
.auth-link-btn.muted-link:hover { color: #fff; }
.telegram-login-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: #fff; }
.telegram-login-mark svg { width: 26px; height: 26px; fill: var(--c-black); }
.telegram-code-input { text-align: center; font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.5em; height: 58px; }
.telegram-login-back { margin-top: 16px; align-self: center; }
#btn-resend-code { display: block; margin: 14px auto 0; }

.verification-code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.verification-code-cell {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: #fff;
    font: 600 22px var(--font-mono);
    text-align: center;
    outline: none;
    transition: box-shadow var(--t-base), background-color var(--t-base), transform var(--t-base) var(--ease-spring);
}
.verification-code-cell:focus { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.06); transform: translateY(-2px); }
.verification-code-cell:not(:placeholder-shown), .verification-code-cell:valid { box-shadow: inset 0 0 0 1px var(--line-4); }

/* Purchase modal */
.purchase-modal-box { width: min(100%, 460px); padding: 36px 32px 28px; }
.purchase-title { margin: 10px 0 6px; font-size: 26px; letter-spacing: -0.045em; }
.purchase-copy { margin-bottom: 24px; color: var(--c-muted); font-size: 14px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .btn { flex: none; height: 48px; border-radius: var(--r-sm); }
.purchase-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 18px; }
.purchase-provider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    box-shadow: inset 0 0 0 1px var(--line-2);
    background: rgba(255, 255, 255, 0.02);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow var(--t-base), background-color var(--t-base);
}
.purchase-provider input { position: absolute; opacity: 0; pointer-events: none; }
.purchase-provider-radio { position: relative; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-4); transition: box-shadow var(--t-base); }
.purchase-provider-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.4s var(--ease-spring); }
.purchase-provider:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.purchase-provider:has(input:checked) { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.purchase-provider input:checked + .purchase-provider-radio { box-shadow: inset 0 0 0 1.5px #fff; }
.purchase-provider input:checked + .purchase-provider-radio::after { transform: scale(1); }
.purchase-provider input:focus-visible + .purchase-provider-radio { outline: 2px solid #fff; outline-offset: 3px; }
.purchase-summary { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line-1); }
.purchase-line { display: flex; justify-content: space-between; gap: 12px; color: var(--c-muted); font-size: 13.5px; }
.purchase-line strong { color: var(--c-light); font-weight: 500; font-variant-numeric: tabular-nums; }
.purchase-line--total { padding-top: 12px; border-top: 1px dashed var(--line-2); color: #fff; font-size: 15px; }
.purchase-line--total strong { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.purchase-note { margin: 16px 0; color: var(--c-dim); font-size: 12px; line-height: 1.55; }
.purchase-status { margin-bottom: 14px; padding: 11px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--c-light); font-size: 13px; }
.purchase-status[data-type='error'] { box-shadow: inset 0 0 0 1px var(--c-danger-line); color: #f5d6d6; }
.purchase-status[data-type='success'] { box-shadow: inset 0 0 0 1px var(--line-4); color: #fff; }
.purchase-result { margin-bottom: 14px; }
.purchase-result a { display: inline-flex; color: #fff; border-bottom: 1px solid var(--line-4); font-size: 14px; }
.purchase-login { margin-bottom: 14px; }
.purchase-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }

/* ---------- Legal page ---------- */
.legal-page { padding-top: calc(var(--nav-h) + 72px); padding-bottom: 96px; }
.legal-card {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--r-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
}
.legal-back { display: flex; width: max-content; align-items: center; gap: 8px; margin-bottom: 36px; color: var(--c-muted); font-size: 13px; transition: color var(--t-base), gap var(--t-base) var(--ease-out); }
.legal-back svg { width: 15px; height: 15px; transform: rotate(180deg); }
.legal-back:hover { color: #fff; gap: 12px; }
.legal-kicker { display: flex; margin-bottom: 16px; }
.legal-card h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.045em; margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--line-1); }
.legal-document { color: var(--c-light); font-size: 15px; line-height: 1.75; }
.legal-document h2 { margin: 36px 0 12px; font-size: 19px; letter-spacing: -0.02em; color: #fff; }
.legal-document p { margin-bottom: 12px; color: #bdbdbd; }
.legal-document p.legal-bullet { position: relative; padding-left: 22px; }
.legal-document p.legal-bullet::before { content: ''; position: absolute; left: 4px; top: 0.75em; width: 6px; height: 1px; background: var(--c-muted); }
.legal-document-error { padding: 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--c-danger-line); color: #f5d6d6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .db-layout-grid { grid-template-columns: 1fr; }
    .db-sidebar { position: static; grid-template-columns: 1fr; }
    .db-tabs {
        display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px;
        mask-image: linear-gradient(90deg, #000 85%, transparent);
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .db-tabs::-webkit-scrollbar { display: none; }
    .db-tab { flex: none; height: 40px; }
    .db-tab--admin { margin-top: 0; border-top: 0; border-radius: 12px; padding-top: 0; height: 40px; }
    .db-tab-indicator { display: none; }
    .db-tabs .db-tab.active { background: #fff; }
    .cosmetic-showroom-layout { grid-template-columns: 1fr; }
    .cosmetic-stage { min-height: 380px; }
    .cosmetic-stage-details { padding: 12px 26px 30px; }
}
@media (max-width: 760px) {
    .auth-modal { padding: 10px; align-items: flex-start; }
    .auth-modal-box { grid-template-columns: 1fr; min-height: 0; }
    .auth-promo-col { display: none; }
    .auth-form-col { padding: 52px 22px 28px; }
    .launcher-card { flex-wrap: wrap; }
    .launcher-card .btn { width: 100%; }
    .launcher-steps { grid-template-columns: 1fr; }
    .telegram-link-methods { grid-template-columns: 1fr; }
    .telegram-security-head { flex-wrap: wrap; }
    .telegram-link-badge { margin-left: 0; }
}
@media (max-width: 600px) {
    .db-wrap { padding-top: calc(var(--nav-h) + 48px); }
    .key-row, .telegram-link-controls { flex-direction: column; }
    .key-row .btn, .telegram-link-controls .btn { width: 100%; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .hwid-row-actions { width: 100%; justify-content: space-between; }
    .cosmetics-head { flex-direction: column; }
    .cosmetics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cosmetic-cover { height: 130px; }
    .cosmetic-bundle-card { grid-template-columns: 1fr; }
    .cosmetic-bundle-cover { height: 180px; min-height: 0; }
    .cosmetic-info { padding: 12px; }
    .cosmetic-bottom { align-items: flex-start; flex-direction: column; }
    .purchase-modal-box { padding: 30px 20px 20px; }
    .purchase-actions { grid-template-columns: 1fr; }
    .purchase-actions #purchase-cancel { order: 2; }
    .verification-code-inputs { gap: 6px; }
    .verification-code-cell { height: 52px; font-size: 20px; }
}
@media (max-width: 600px) {
    .cosmetic-showroom-heading { padding: 16px 18px 0; letter-spacing: 0.12em; }
    .cosmetic-showroom-counter { display: none; }
    .cosmetic-stage-caption { right: 18px; left: 18px; text-align: center; }
}
/* ==========================================================================
   Character tab (live 3D skin), avatars, cosmetic equip controls.
   ========================================================================== */

/* ---------- Avatars everywhere ---------- */
.nav-account-avatar, .cabinet-avatar, .character-avatar-current { position: relative; overflow: hidden; }
.avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}
.avatar-img.is-loaded { opacity: 1; }
.has-avatar > svg { opacity: 0; }
.has-avatar { background: #151515; }
.cabinet-avatar.has-avatar { box-shadow: 0 0 0 1px var(--line-3), 0 10px 30px -8px rgba(255, 255, 255, 0.3); }

/* ---------- Layout ---------- */
.character-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 12px;
    align-items: start;
}
.character-side { display: grid; gap: 12px; }
.character-viewer-card { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; }
.character-viewer-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.character-viewer-head .db-card-kicker { margin-bottom: 8px; }
.character-viewer-head h3 { font-size: 22px; letter-spacing: -0.035em; }

.character-stage {
    position: relative;
    height: clamp(380px, 52vh, 540px);
    border-radius: var(--r-md);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(60% 55% at 50% 42%, rgba(255, 255, 255, 0.09), transparent 70%),
        linear-gradient(180deg, #0f0f0f, #070707);
    box-shadow: inset 0 0 0 1px var(--line-2);
    touch-action: none;
    user-select: none;
}
.character-stage-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 65% 60% at 50% 70%, #000, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 70%, #000, transparent 80%);
}
.skin-viewer-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    outline: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.character-stage.is-ready .skin-viewer-canvas { opacity: 1; transform: none; }
.character-stage.is-dragging .skin-viewer-canvas { cursor: grabbing; }
.skin-viewer-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); border-radius: var(--r-md); }
.character-stage-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 14px;
    color: var(--c-muted);
    font-size: 13px;
    transition: opacity 0.4s;
    pointer-events: none;
}
.character-stage.is-ready .character-stage-loading, .character-stage.is-unsupported .character-stage-loading { opacity: 0; }
.character-stage-spinner {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--line-2);
    border-top-color: #fff;
    animation: spin 0.9s linear infinite;
}
.character-stage-fallback {
    position: absolute;
    inset: auto 24px 50% 24px;
    transform: translateY(50%);
    color: var(--c-muted);
    font-size: 13.5px;
    text-align: center;
    display: none;
}
.character-stage.is-unsupported .character-stage-fallback { display: block; }
.character-stage-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--c-muted);
    font: 500 10.5px var(--font-mono);
    letter-spacing: 0.04em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}
.character-stage.is-ready .character-stage-hint { opacity: 1; }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
    .hint-pointer { display: none; }
    .hint-touch { display: inline; }
}
.character-stage.is-ready.is-dragging .character-stage-hint { opacity: 0; }

.character-viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.character-viewer-actions { display: flex; align-items: center; gap: 10px; }

/* Small segmented control without the sliding thumb (aria-pressed driven). */
.segmented--sm { margin-bottom: 0; padding: 4px; }
.segmented--sm .segmented-btn { height: 32px; padding: 0 14px; font-size: 13px; }
.segmented--sm .segmented-btn[aria-pressed='true'] { background: #fff; color: var(--c-black); box-shadow: 0 6px 18px -6px rgba(255, 255, 255, 0.45); }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--c-light); font-size: 13px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
    position: relative;
    width: 36px; height: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px var(--line-3);
    transition: background-color var(--t-base);
}
.switch-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.35s var(--ease-spring);
}
.switch input:checked + .switch-track { background: #fff; }
.switch input:checked + .switch-track::after { transform: translateX(16px); background: var(--c-black); }
.switch input:focus-visible + .switch-track { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Skin source ---------- */
.skin-drop, .avatar-drop { transition: box-shadow var(--t-base), background-color var(--t-base); }
.skin-drop {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 22px 16px;
    border-radius: var(--r-md);
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px);
    box-shadow: inset 0 0 0 1px var(--line-2);
    text-align: center;
}
.skin-drop p { color: var(--c-muted); font-size: 13px; }
.skin-drop.is-over, .avatar-drop.is-over { background-color: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.skin-remove { display: block; margin-top: 14px; }

/* ---------- Avatar ---------- */
.avatar-row { display: flex; align-items: center; gap: 16px; border-radius: var(--r-md); }
.character-avatar-current {
    display: grid; place-items: center;
    width: 76px; height: 76px; flex: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px var(--line-3);
    color: var(--c-muted);
}
.character-avatar-current svg { width: 30px; height: 30px; transition: opacity var(--t-base); }
.avatar-row-copy p { color: var(--c-muted); font-size: 12.5px; margin-bottom: 10px; }
.avatar-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-editor { display: grid; gap: 14px; margin-top: 18px; animation: alert-in 0.45s var(--ease-out); }
.avatar-card.is-editing .avatar-row { opacity: 0.45; pointer-events: none; }
#avatar-crop {
    width: min(100%, 300px);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
    background: #111 repeating-conic-gradient(#181818 0 25%, #111 0 50%) 0 0 / 24px 24px;
    box-shadow: 0 0 0 1px var(--line-3), 0 0 0 6px rgba(255, 255, 255, 0.03), 0 20px 50px -20px rgba(0, 0, 0, 0.9);
    cursor: grab;
    touch-action: none;
}
#avatar-crop:active { cursor: grabbing; }
.avatar-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; color: var(--c-muted); font-size: 12px; }
.avatar-zoom input { accent-color: #fff; width: 100%; }
.avatar-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Equipped list ---------- */
.equipped-list { display: grid; gap: 10px; }
.equipped-empty { color: var(--c-muted); font-size: 13px; }
.equipped-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 12px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px var(--line-1);
}
.equipped-slot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.equipped-slot i { font-style: normal; color: var(--c-muted); }
.equipped-current { justify-self: end; color: var(--c-muted); font: 500 11px var(--font-mono); align-self: center; }
.equipped-options { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Shop: filters + equip ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip {
    height: 32px;
    padding: 0 13px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--c-muted);
    font-size: 12.5px;
    font-weight: 500;
    transition: color var(--t-base), background-color var(--t-base), box-shadow var(--t-base);
}
.chip:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--line-4); }
.chip.is-active { background: #fff; color: var(--c-black); box-shadow: none; }

.cosmetic-equip {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--c-black);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), background-color var(--t-base), color var(--t-base);
}
.cosmetic-equip:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 26px -6px rgba(255, 255, 255, 0.5); }
.cosmetic-equip.is-equipped { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line-4); }
.cosmetic-equip.is-equipped:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px #fff; }
.cosmetic-equip:disabled { opacity: 0.5; cursor: progress; }
/* Compact form: item chips inside bundles and the equipped list. */
.cosmetic-equip.is-compact {
    height: 28px;
    padding: 0 10px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--c-light);
    font-size: 11.5px;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px var(--line-2);
}
.cosmetic-equip.is-compact::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--line-4);
    transition: background-color var(--t-base), box-shadow var(--t-base);
}
.cosmetic-equip.is-compact.is-equipped { background: #fff; color: var(--c-black); box-shadow: none; }
.cosmetic-equip.is-compact.is-equipped::before { background: var(--c-black); box-shadow: none; }
.cosmetic-hint { display: block; margin: -6px 0 10px; color: var(--c-muted); font-size: 11.5px; }
.cosmetic-card.is-equipped { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 40px -14px rgba(255, 255, 255, 0.3); }
.cosmetic-cover-owned.is-muted { background: rgba(5, 5, 5, 0.7); color: var(--c-light); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .character-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .character-viewer-head { flex-direction: column; align-items: flex-start; }
    .character-stage { height: 400px; }
    .character-stage-hint { font-size: 9.5px; }
    .character-viewer-foot { flex-direction: column; align-items: flex-start; }
    .avatar-row { align-items: flex-start; }
}
/* ==========================================================================
   Cabinet → «Магазин»: fitting-room stage, catalog cards with live loops,
   and the character panel (skin + equipped). Black & white, like the site.
   ========================================================================== */

.shop { display: grid; gap: 22px; }

/* Header ----------------------------------------------------------------- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 2px 0; }
.shop-head .db-card-kicker { margin-bottom: 10px; }
.shop-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; }
.shop-sub { max-width: 58ch; margin-top: 12px; color: var(--c-muted); font-size: 14px; line-height: 1.6; }
.shop-owned {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, 0.03);
    color: var(--c-muted); font: 500 12px var(--font-mono); white-space: nowrap;
}
.shop-owned b { color: #fff; font-weight: 600; }

/* Stage ------------------------------------------------------------------ */
.shop-stage {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, #0d0d0d, #070707);
    box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 100px -50px rgba(0, 0, 0, 0.95);
    animation: shop-rise 0.6s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both;
}
.shop-stage[hidden] { display: none; }
@keyframes shop-rise { from { opacity: 0; transform: translateY(10px); } }

.shop-stage-view {
    position: relative; aspect-ratio: 1; max-height: 600px; width: 100%;
    overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; outline: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(70% 60% at 50% 40%, #1a1a1a, #080808 72%);
}
.shop-stage-view::after { /* fade the grid towards the edges */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(75% 70% at 50% 45%, transparent 40%, #080808 100%);
}
.shop-stage-view.is-dragging { cursor: grabbing; }
.shop-stage-view:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75); }
.shop-stage-light {
    position: absolute; left: 50%; top: 38%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 55%, transparent);
    filter: blur(6px); animation: shop-breathe 6s ease-in-out infinite; pointer-events: none;
}
@keyframes shop-breathe { 50% { opacity: 0.7; scale: 0.94; } }
.shop-stage-floor {
    position: absolute; left: 50%; bottom: 7%; width: 64%; height: 15%; translate: -50% 0; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none;
}
.shop-stage-poster, .shop-stage-video {
    position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain;
    transition: opacity 0.45s ease; pointer-events: none;
}
.shop-stage-video { opacity: 0; }
.shop-stage-view.is-live .shop-stage-video { opacity: 1; }
.shop-stage-view.is-live .shop-stage-poster { opacity: 0; }
.shop-stage-poster.is-fallback { padding: 14%; }
.shop-stage-view.is-missing .shop-stage-poster { display: none; }

.shop-stage-hud {
    position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none;
}
.shop-stage-badge, .shop-stage-hint {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
    background: rgba(8, 8, 8, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px var(--line-2); color: var(--c-muted); font: 500 11px var(--font-mono); letter-spacing: 0.04em;
}
.shop-stage-badge b { color: #fff; font-weight: 600; }
.shop-stage-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-stage-hint { transition: opacity 0.3s ease; }
.shop-stage-view.is-dragging .shop-stage-hint, .shop-stage-view:not(.is-live) .shop-stage-hint { opacity: 0; }

.shop-stage-nav {
    position: absolute; top: 50%; z-index: 3; translate: 0 -50%;
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px var(--line-3); color: #fff; cursor: pointer;
    opacity: 0; transition: opacity 0.25s ease, background-color 0.2s ease, scale 0.2s ease;
}
.shop-stage-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-stage-nav--prev { left: 14px; }
.shop-stage-nav--next { right: 14px; }
.shop-stage-view:hover .shop-stage-nav:not(:disabled), .shop-stage-nav:focus-visible { opacity: 1; }
.shop-stage-nav:hover { background: #fff; color: #000; scale: 1.06; }
.shop-stage-nav:disabled { cursor: default; }
@media (hover: none) { .shop-stage-nav:not(:disabled) { opacity: 1; } .shop-stage-nav:disabled { opacity: 0; } }

/* Stage details */
.shop-stage-info {
    display: flex; flex-direction: column; gap: 14px; min-width: 0;
    padding: clamp(24px, 3vw, 36px); border-left: 1px solid var(--line-1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%);
}
.shop-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-kicker { color: var(--c-muted); font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.shop-stage-count { color: var(--c-dim); font: 500 11px var(--font-mono); letter-spacing: 0.08em; }
.shop-stage-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }
.shop-stage-desc { color: var(--c-muted); font-size: 14px; line-height: 1.6; }

.shop-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.shop-part {
    position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px 5px 5px;
    border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-1);
    color: var(--c-light); font-size: 12px; line-height: 1.25; text-align: left; cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-part span:not(.shop-part-thumb) { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shop-part:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-3); }
.shop-part.is-active { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px #fff; color: #fff; }
.shop-part:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shop-part-thumb {
    flex: none; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; object-position: 50% 30%;
    background: radial-gradient(circle at 50% 35%, #222, #0b0b0b);
}
.shop-part-thumb--all { display: grid; place-items: center; color: #fff; font-size: 15px; }
.shop-part-thumb.is-missing { visibility: hidden; }
.shop-part-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.shop-part-equip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
    border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px;
}

.shop-buy {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-1);
}
.shop-buy-price { display: grid; gap: 4px; }
.shop-buy-price span { color: var(--c-dim); font: 500 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.shop-buy-price strong { font-size: 30px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; }
.shop-buy-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
    border-radius: var(--r-pill); background: #fff; color: #000; font-size: 14px; font-weight: 600; cursor: pointer; overflow: hidden;
    box-shadow: 0 10px 34px -10px rgba(255, 255, 255, 0.55); transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.shop-buy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; }
.shop-buy-btn::before {
    content: ''; position: absolute; inset: 0; translate: -120% 0;
    background: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, 0.12) 50%, transparent 70%); transition: translate 0.6s ease;
}
.shop-buy-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -10px rgba(255, 255, 255, 0.75); }
.shop-buy-btn:hover::before { translate: 120% 0; }
.shop-buy-btn:hover svg { transform: translateX(3px); }
.shop-buy-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shop-buy-soon, .shop-buy-note { color: var(--c-muted); font-size: 13px; }
.shop-buy-soon { height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-2); }

.shop-facts { display: grid; gap: 8px; list-style: none; color: var(--c-muted); font-size: 12.5px; }
.shop-facts li { display: flex; align-items: center; gap: 9px; }
.shop-facts svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }

/* Filters (stick under the site header while scrolling the catalog) */
.shop-filters {
    position: sticky; top: calc(var(--nav-h, 64px) + 10px); z-index: 5; margin: 6px 0 0; padding: 6px;
    width: fit-content; max-width: 100%; border-radius: var(--r-pill);
    background: rgba(8, 8, 8, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -20px rgba(0, 0, 0, 0.9);
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.shop-filters::-webkit-scrollbar { display: none; }
.shop-filters .chip { flex: none; }

/* Catalog ---------------------------------------------------------------- */
.shop-catalog { display: grid; gap: 34px; }
.shop-group { display: grid; gap: 14px; }
.shop-group-title {
    display: flex; align-items: center; gap: 10px; color: var(--c-light); font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
}
.shop-group-title::after { content: ''; flex: 1; height: 1px; background: var(--line-1); }
.shop-group-title span { color: var(--c-dim); font: 500 11px var(--font-mono); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.shop-grid--bundles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.shop-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(180deg, #0e0e0e, #090909); box-shadow: inset 0 0 0 1px var(--line-1);
    transition: transform 0.35s var(--ease-out, cubic-bezier(.16, 1, .3, 1)), box-shadow 0.3s ease;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-3), 0 30px 60px -34px rgba(0, 0, 0, 0.95); }
.shop-card.is-selected { box-shadow: inset 0 0 0 1px #fff, 0 0 0 4px rgba(255, 255, 255, 0.08), 0 30px 60px -34px rgba(0, 0, 0, 0.95); }

.shop-card-media {
    position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; cursor: pointer;
    background:
        radial-gradient(65% 55% at 50% 42%, rgba(255, 255, 255, 0.1), transparent 70%),
        linear-gradient(180deg, #141414, #0a0a0a);
}
.shop-card--bundle .shop-card-media { aspect-ratio: 5 / 4; }
.shop-card-media:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.shop-card-glow {
    position: absolute; left: 50%; bottom: 8%; width: 60%; height: 12%; translate: -50% 0; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), transparent); transition: opacity 0.3s ease;
}
.shop-card-poster, .shop-card-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
    transition: opacity 0.35s ease, transform 0.6s var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}
.shop-card-poster.is-fallback { padding: 12%; }
.shop-card-poster.is-missing { opacity: 0; }
.shop-card-video { opacity: 0; }
.shop-card-media.is-playing .shop-card-video { opacity: 1; }
.shop-card-media.is-playing .shop-card-poster { opacity: 0; }
.shop-card:hover .shop-card-poster { transform: scale(1.03); }

.shop-card-tag, .shop-card-state {
    position: absolute; top: 10px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
    border-radius: var(--r-pill); font: 500 10.5px var(--font-mono); letter-spacing: 0.04em;
    background: rgba(8, 8, 8, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2);
}
.shop-card-tag { left: 10px; color: var(--c-light); }
.shop-card-state { right: 10px; color: var(--c-muted); }
.shop-card-state.is-on { background: #fff; color: #000; box-shadow: 0 0 18px rgba(255, 255, 255, 0.4); }
.shop-card-play {
    position: absolute; left: 50%; bottom: 12px; z-index: 2; translate: -50% 6px;
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px 0 10px; border-radius: var(--r-pill);
    background: #fff; color: #000; font-size: 12px; font-weight: 600; opacity: 0;
    transition: opacity 0.25s ease, translate 0.3s var(--ease-out, cubic-bezier(.16, 1, .3, 1));
}
.shop-card-play svg { width: 12px; height: 12px; fill: currentColor; }
.shop-card-media:hover .shop-card-play, .shop-card-media:focus-visible .shop-card-play { opacity: 1; translate: -50% 0; }
@media (hover: none) { .shop-card-play { display: none; } }

.shop-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 14px 14px; }
.shop-card-body h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.shop-card-body p {
    color: var(--c-muted); font-size: 12.5px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-card-members { display: flex; gap: 4px; margin-top: 4px; }
.shop-card-members img {
    width: 30px; height: 30px; border-radius: 8px; object-fit: cover; object-position: 50% 30%;
    background: #141414; box-shadow: inset 0 0 0 1px var(--line-1);
}
.shop-card-members img.is-missing { display: none; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; min-height: 44px; }
.shop-card-foot strong { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.shop-card-buy {
    height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; color: #000; font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.shop-card-buy:hover { transform: translateY(-1px); box-shadow: 0 8px 26px -8px rgba(255, 255, 255, 0.6); }
.shop-card-buy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shop-card-muted { color: var(--c-muted); font-size: 12px; }
.shop-card-foot .cosmetic-equip { height: 34px; }

/* Character panel ----------------------------------------------------- */
.shop-me { display: grid; gap: 18px; margin-top: 10px; }
.shop-me-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.shop-me-head .db-card-kicker { margin-bottom: 8px; }
.shop-me-head h3 { font-size: 22px; letter-spacing: -0.035em; }
.shop-me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr); gap: 20px; align-items: start; }
.shop-me-viewer { display: grid; gap: 14px; }
.shop-me .character-stage { height: clamp(340px, 46vh, 460px); }
.shop-me-side { display: grid; gap: 22px; }
.shop-me-block { display: grid; gap: 10px; }
.shop-me-block .form-label { margin-top: 6px; }
.shop-me-label { color: var(--c-muted); font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* Settings: avatar card sits above the password card */
#tab-settings > .avatar-card + .db-card { margin-top: 12px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
    .shop-stage { grid-template-columns: 1fr; }
    .shop-stage-view { max-height: 520px; aspect-ratio: 1 / 0.86; }
    .shop-stage-info { border-left: 0; border-top: 1px solid var(--line-1); }
    .shop-me-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .shop { gap: 18px; }
    .shop-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .shop-stage { border-radius: var(--r-lg); }
    .shop-stage-view { aspect-ratio: 1; }
    .shop-stage-hint { display: none; }
    .shop-buy { align-items: stretch; }
    .shop-buy-btn { flex: 1; justify-content: center; }
    .shop-grid, .shop-grid--bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shop-card-body { padding: 12px; }
    .shop-card-body p { display: none; }
    .shop-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .shop-card-buy, .shop-card-foot .cosmetic-equip { width: 100%; }
    .shop-card-members img { width: 24px; height: 24px; }
    .shop-filters { top: calc(var(--nav-h, 64px) + 6px); }
}
@media (prefers-reduced-motion: reduce) {
    .shop-stage, .shop-stage-light { animation: none; }
    .shop-card, .shop-card-poster { transition: none; }
}
/* Media partners, video player, plans, partner programme and cabinet licence panels. */

/* ---------- Pricing: 30/60/90 main row + other plans ---------- */
.pricing-table { display: block; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-grid--three .price-card { padding: 32px 28px 28px; }
.plan-grid--three .price-card--featured { transform: translateY(-10px); }
.plan-grid--three .price-card--featured:hover { transform: translateY(-16px); }
.plan-grid--compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.plan-extra { margin-top: 44px; }
.plan-extra-title { margin-bottom: 16px; color: var(--c-muted); font: 500 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.price-features { flex: 1; display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--c-light); }
.price-features li { position: relative; padding-left: 22px; }
.price-features li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); opacity: 0.8; }
.price-card--featured .price-features { color: #1a1a1a; }
.price-card--soon .pricing-price { font-size: clamp(24px, 2.4vw, 30px); color: var(--c-muted); }
.price-card--featured.price-card--soon .pricing-price { color: #555; }
.price-card .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Media: "Нас рекомендуют" ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 18px; }
.media-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.media-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-4), 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 60px -24px rgba(255, 255, 255, 0.14); }
.media-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: radial-gradient(120% 120% at 30% 20%, #1d1d1d, #070707);
    color: #fff;
    cursor: pointer;
}
.media-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out); filter: grayscale(0.35) brightness(0.82); }
.media-card:hover .media-video-poster { transform: scale(1.05); filter: grayscale(0) brightness(0.9); }
.media-video-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-dim); font: 600 13px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.media-video-poster + .media-video-fallback { display: none; }
.media-video-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75)); }
.media-play {
    position: absolute;
    left: 50%; top: 50%;
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12), 0 20px 50px -10px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(0.92);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out);
}
.media-play svg { width: 24px; height: 24px; margin-left: 3px; }
.media-video:hover .media-play, .media-video:focus-visible .media-play { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.1), 0 20px 50px -10px rgba(0, 0, 0, 0.8); }
.media-video:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.media-video-title { position: absolute; left: 16px; right: 16px; bottom: 14px; overflow: hidden; text-align: left; font-size: 13.5px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.media-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(90% 120% at 50% 0%, #1f1f1f, #070707); }
.media-cover::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.06), transparent 40%); animation: media-cover-spin 14s linear infinite; }
@keyframes media-cover-spin { to { transform: rotate(360deg); } }
.media-cover-avatar { position: relative; display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border-radius: 50%; background: #161616; box-shadow: 0 0 0 1px var(--line-3), 0 0 0 10px rgba(255, 255, 255, 0.04), 0 30px 60px -20px rgba(0, 0, 0, 0.9); transition: transform 0.6s var(--ease-out); }
.media-cover-avatar img { width: 100%; height: 100%; object-fit: cover; }
.media-cover-avatar b { font-size: 30px; }
.media-card:hover .media-cover-avatar { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .media-cover::before { animation: none; } }
.media-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 20px 22px 22px; }
.media-head { display: flex; align-items: center; gap: 12px; }
.media-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: none; overflow: hidden; border-radius: 50%; background: #161616; box-shadow: inset 0 0 0 1px var(--line-3); }
.media-card--novideo .media-head .media-avatar { display: none; }
.media-avatar img { width: 100%; height: 100%; object-fit: cover; }
.media-avatar b { font-size: 15px; letter-spacing: 0.02em; }
.media-name { min-width: 0; }
.media-name h3 { overflow: hidden; font-size: 16.5px; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.media-platform { color: var(--c-muted); font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.media-desc { flex: 1; color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }
.media-links { display: flex; flex-wrap: wrap; gap: 8px; }
.media-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: var(--r-pill);
    box-shadow: inset 0 0 0 1px var(--line-2);
    color: var(--c-light);
    font-size: 12.5px;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.media-link svg { width: 13px; height: 13px; transition: transform 0.35s var(--ease-out); }
.media-link:hover { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #fff; }
.media-link:hover svg { transform: translate(2px, -2px); }
.media-foot { margin-top: 30px; text-align: center; color: var(--c-muted); font-size: 14px; }
.media-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Video modal ---------- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 40px);
    background: rgba(3, 3, 3, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
}
.video-modal.is-open { opacity: 1; }
.video-modal-box { display: flex; flex-direction: column; gap: 12px; width: min(100%, 1100px); transform: translateY(16px) scale(0.98); transition: transform 0.5s var(--ease-out); }
.video-modal.is-open .video-modal-box { transform: none; }
.video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.video-modal-title { overflow: hidden; font-size: 16px; letter-spacing: -0.02em; text-overflow: ellipsis; white-space: nowrap; }
.video-modal-close { position: static; flex: none; }
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 160px); overflow: hidden; border-radius: var(--r-lg); background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 60px 140px -40px rgba(0, 0, 0, 1); }
.video-modal-frame iframe, .video-modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-modal-frame.is-loading::before { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: #fff; animation: video-spin 0.9s linear infinite; }
@keyframes video-spin { to { transform: rotate(360deg); } }
.video-unavailable { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--c-muted); font-size: 14px; }
.video-unavailable strong { color: #fff; font-size: 18px; }
.video-modal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--c-dim); font-size: 12.5px; }
body.has-video-modal { overflow: hidden; }

/* ---------- FAQ states ---------- */
.faq-empty { padding: 22px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--c-muted); font-size: 14px; }
.faq-list[aria-busy='true'] .faq-empty { animation: faq-pulse 1.4s ease-in-out infinite; }
@keyframes faq-pulse { 50% { opacity: 0.45; } }

/* ---------- Partner programme ---------- */
.nav-link.is-current { color: #fff; }
.partners-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(80px, 12vw, 150px)) 0 clamp(70px, 9vw, 120px); text-align: center; }
.partners-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.partners-hero-bg i { position: absolute; left: 50%; top: 46%; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-1); transform: translate(-50%, -50%); animation: partners-ring 9s var(--ease-in-out) infinite; }
.partners-hero-bg i:nth-child(1) { width: 520px; height: 520px; }
.partners-hero-bg i:nth-child(2) { width: 820px; height: 820px; animation-delay: -3s; }
.partners-hero-bg i:nth-child(3) { width: 1120px; height: 1120px; animation-delay: -6s; }
.partners-hero-bg::after { content: ''; position: absolute; left: 50%; top: 30%; width: 700px; height: 420px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.11), transparent); transform: translate(-50%, -50%); }
@keyframes partners-ring { 50% { transform: translate(-50%, -50%) scale(1.04); box-shadow: inset 0 0 0 1px var(--line-2); } }
.partners-hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.partners-title { max-width: 900px; margin: 18px 0 22px; font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; }
.partners-lead { max-width: 640px; color: var(--c-muted); font-size: var(--fs-lead); line-height: 1.6; }
.partners-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.partners-contact { margin-top: 16px; color: var(--c-dim); font: 500 12px var(--font-mono); letter-spacing: 0.04em; }
[data-partner-cta].is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: auto; }
.partners-section { padding: clamp(56px, 8vw, 110px) 0; }
.partners-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.partner-card, .partner-step {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: inset 0 0 0 1px var(--line-2);
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.partner-card:hover, .partner-step:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-4), 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.partner-card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line-3); }
.partner-card-icon svg { width: 21px; height: 21px; }
.partner-card h3, .partner-step h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -0.02em; }
.partner-card p, .partner-step p { color: var(--c-muted); font-size: 13.5px; line-height: 1.6; }
.partners-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.partners-terms { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.partners-terms li { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 20px 22px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-1); transition: box-shadow 0.3s, background 0.3s; }
.partners-terms li:hover { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-3); }
.partners-terms b { font-size: 14.5px; }
.partners-terms span { color: var(--c-muted); font-size: 14px; line-height: 1.55; }
.partners-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.partner-step span { display: block; margin-bottom: 26px; color: var(--c-dim); font: 500 12px var(--font-mono); letter-spacing: 0.14em; }
.partners-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 30px 32px; border-radius: var(--r-xl); background: linear-gradient(180deg, #fff, #e8e8e8); color: #000; }
.partners-final h3 { font-size: 24px; letter-spacing: -0.03em; }
.partners-final p { color: #4a4a4a; font-size: 14px; }
.partners-final .btn-primary { background: #000; color: #fff; box-shadow: 0 0 0 1px #000; }

/* ---------- Cabinet: subscription period ---------- */
.sub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0; }
.sub-stats dt, .device-grid dt { margin-bottom: 6px; color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.sub-stats dd, .device-grid dd { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sub-progress { position: relative; height: 4px; margin-top: 22px; overflow: hidden; border-radius: 4px; background: var(--line-1); }
.sub-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), #fff); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 1s var(--ease-out); }
.history-list { display: grid; margin: 0; padding: 0; list-style: none; }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-1); }
.history-row:first-child { border-top: 0; padding-top: 0; }
.history-main, .history-side { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.history-side { align-items: flex-end; text-align: right; flex: none; }
.history-main b, .history-side b { font-size: 14px; font-weight: 600; }
.history-row small { color: var(--c-muted); font-size: 12px; }
.history-empty { color: var(--c-muted); font-size: 13.5px; }

/* ---------- Cabinet: device / HWID ---------- */
.device-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.device-head .db-card-title { margin-bottom: 0; }
.device-status { padding: 5px 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--c-muted); font: 500 10.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.device-status[data-state='bound'] { background: #fff; color: #000; box-shadow: none; }
.device-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin: 0; }
.device-grid dd[data-state='ok'] { color: #fff; }
.device-grid dd[data-state='wait'] { color: var(--c-light); font-weight: 500; }
.device-note { margin-top: 16px; color: var(--c-muted); font-size: 13px; line-height: 1.55; }
.device-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.device-paid { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--c-muted); font-size: 13px; }
.device-paid b { color: #fff; }
.device-confirm { margin-top: 16px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(242, 167, 167, 0.06); box-shadow: inset 0 0 0 1px var(--c-danger-line); animation: device-confirm-in 0.45s var(--ease-out); }
.device-confirm strong { display: block; margin-bottom: 6px; font-size: 15px; }
.device-confirm p { color: var(--c-light); font-size: 13px; line-height: 1.6; }
.device-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@keyframes device-confirm-in { from { opacity: 0; transform: translateY(-6px); } }
.device-history { margin-top: 18px; border-top: 1px solid var(--line-1); padding-top: 14px; }
.device-history summary { cursor: pointer; color: var(--c-muted); font-size: 13px; }
.device-history summary:hover { color: #fff; }
.device-history ol { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.device-history li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.device-history li small { color: var(--c-muted); }

@media (max-width: 1080px) {
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .plan-grid--three { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .plan-grid--three .price-card--featured, .plan-grid--three .price-card--featured:hover { transform: none; }
    .partners-split { grid-template-columns: 1fr; }
    .partners-steps { grid-template-columns: 1fr; }
    .device-grid, .sub-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .media-grid { grid-template-columns: minmax(0, 1fr); }
    .partners-grid { grid-template-columns: 1fr; }
    .partners-terms li { grid-template-columns: 1fr; gap: 6px; }
    .partners-final { padding: 24px 22px; }
    .partners-final .btn { width: 100%; }
    .partners-actions .btn { width: 100%; }
    .media-play { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .partners-hero-bg i { animation: none; }
    .media-card, .partner-card, .partner-step, .video-modal, .video-modal-box { transition: none; }
}
.partner-application-wrap{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr);gap:30px;align-items:start}.partner-application-wrap>div:first-child p{color:#a7a7ad;line-height:1.6}.partner-application-form,.partner-application-card{background:#151519;border:1px solid #303036;border-radius:20px;padding:24px}.partner-application-form{display:grid;gap:18px}.partner-application-form label{display:grid;gap:9px;font-size:13px;color:#c8c8ce}.partner-application-form input,.partner-application-form textarea{width:100%;box-sizing:border-box;background:#0d0d10;color:#fff;border:1px solid #3a3a40;border-radius:12px;padding:13px 15px;font:inherit;resize:vertical}.partner-application-form :is(input,textarea):focus{outline:2px solid #fff;outline-offset:1px}.partner-application-history{grid-column:2;display:grid;gap:12px}.partner-application-card p{overflow-wrap:anywhere;color:#b8b8bf}.partner-application-reply{background:#222228;border-radius:12px;padding:14px;color:#fff!important;white-space:pre-wrap}@media(max-width:720px){.partner-application-wrap{grid-template-columns:1fr}.partner-application-history{grid-column:1}}
/* «Внутри клиента» — real in-game screenshots */
.shots { margin-top: clamp(64px, 8vw, 104px); }
.shots-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.shots-head h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 600; }
.shots-head p { max-width: 46ch; color: var(--c-muted); font-size: 14px; line-height: 1.6; }

.shot-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shot { grid-column: span 2; }
.shot--wide { grid-column: span 3; }
.shot-btn {
    display: block; width: 100%; padding: 0; text-align: left; cursor: zoom-in; color: inherit;
    border-radius: var(--r-lg); overflow: hidden;
    background: #0a0a0a; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card);
    transition: transform 0.45s var(--ease-out), box-shadow 0.3s ease;
}
.shot-btn:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-4), 0 40px 80px -40px rgba(0, 0, 0, 0.95); }
.shot-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.shot-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #050505; }
.shot-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter 0.4s ease; filter: saturate(0.92); }
.shot-btn:hover .shot-media img { transform: scale(1.045); filter: none; }
.shot-media::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}
.shot-zoom {
    position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 50%; background: rgba(8, 8, 8, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px var(--line-3); opacity: 0; transform: scale(0.9); transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
}
.shot-zoom svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.shot-btn:hover .shot-zoom, .shot-btn:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot-copy { display: grid; gap: 4px; padding: 14px 16px 16px; }
.shot-copy b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; }
.shot-copy span { color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }

/* Viewer */
.shot-viewer {
    width: min(96vw, 1500px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-lg);
    background: #070707; color: #fff; box-shadow: 0 0 0 1px var(--line-3), 0 60px 160px -40px #000; overflow: hidden;
}
.shot-viewer::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); }
.shot-viewer[open] { animation: shot-in 0.35s var(--ease-out) both; }
@keyframes shot-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
.shot-viewer-img { display: block; width: 100%; height: auto; max-height: calc(94vh - 64px); object-fit: contain; background: #000; }
.shot-viewer-bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 20px; border-top: 1px solid var(--line-1); }
.shot-viewer-copy { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.shot-viewer-title { font-size: 14px; font-weight: 600; }
.shot-viewer-text { color: var(--c-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-viewer-btn {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: #fff;
    box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.2s ease;
}
.shot-viewer-btn:hover { background: rgba(255, 255, 255, 0.08); }
.shot-viewer-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .shot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot, .shot--wide { grid-column: span 1; }
    .shots-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
    .shot-gallery { grid-template-columns: 1fr; }
    .shot-viewer-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .shot-btn, .shot-media img { transition: none; }
}
