/* =====================================================================
   SamGlavn v3 — "Ultraviolet studio"
   Vivid violet hero with a chrome 3D key, light lilac store below,
   colour-skinned product tiles. One system for every page.
   ===================================================================== */

:root {
    /* colour */
    --uv-950: #1A0647;
    --uv-900: #26096A;
    --uv-800: #3510A3;
    --uv-700: #4A14C8;
    --uv-600: #6424EE;
    --uv-500: #8045FF;
    --uv-300: #C4AEFF;
    --uv-100: #E9E2FF;
    --lilac: #F3F0FF;
    --paper: #FFFFFF;
    --ink: #1C1236;
    --ink-2: #5A5182;
    --ink-3: #8C84AD;
    --line: #E3DCF8;
    --mint: #0E9F6E;
    --mint-bg: #DDF6EC;
    --amber: #B86A00;
    --amber-bg: #FFF1D6;
    --rose: #D93A55;
    --rose-bg: #FDE6EA;

    /* type */
    --font-d: 'Unbounded', 'Arial Black', system-ui, sans-serif;
    --font-b: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* shape */
    --r-xl: 36px;
    --r-lg: 26px;
    --r-md: 18px;
    --r-sm: 12px;
    --pill: 999px;
    --shadow-1: 0 1px 2px rgba(38, 9, 106, .06), 0 10px 30px -14px rgba(74, 20, 200, .22);
    --shadow-2: 0 2px 4px rgba(38, 9, 106, .06), 0 24px 50px -20px rgba(74, 20, 200, .35);

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 72px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
    margin: 0;
    background: var(--lilac);
    color: var(--ink);
    font-family: var(--font-b);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--uv-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--uv-300); color: var(--uv-950); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border: 0; border-radius: var(--pill);
    font-family: var(--font-b); font-size: 16px; font-weight: 600; letter-spacing: -.005em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--uv-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(100, 36, 238, .7); }
.btn-primary:hover { background: var(--uv-700); }
.btn-light { background: #fff; color: var(--uv-900); box-shadow: 0 10px 30px -10px rgba(16, 0, 60, .55); }
.btn-light:hover { background: var(--uv-100); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--uv-900); }
.btn[disabled], .btn.is-disabled { background: #E4E0F0; color: #9A94B3; box-shadow: none; cursor: not-allowed; }

.round-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); cursor: pointer;
}
.round-btn:hover { color: var(--uv-600); }
.round-btn svg { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav-shell {
    pointer-events: auto;
    max-width: var(--wrap); margin: 0 auto; height: 60px;
    display: flex; align-items: center; gap: 24px;
    padding: 0 10px 0 16px;
    border-radius: var(--pill);
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled .nav-shell,
.site-header.menu-open .nav-shell,
.site-header.tone-light .nav-shell {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 0 0 1px rgba(74, 20, 200, .08), 0 12px 30px -16px rgba(38, 9, 106, .35);
}
.site-header.tone-dark:not(.is-scrolled):not(.menu-open) { color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: auto; filter: drop-shadow(0 2px 6px rgba(38, 9, 106, .35)); }
.brand-name { font-family: var(--font-d); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }

.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--pill); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; transition: opacity .2s, background-color .2s; }
.nav-links a:hover { opacity: 1; background: rgba(128, 69, 255, .12); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-toggle { display: inline-flex; padding: 3px; border-radius: var(--pill); background: rgba(128, 69, 255, .1); }
.tone-dark:not(.is-scrolled):not(.menu-open) .lang-toggle { background: rgba(255, 255, 255, .14); }
.lang-toggle button { border: 0; background: none; padding: 5px 10px; border-radius: var(--pill); font-size: 13px; font-weight: 600; cursor: pointer; opacity: .65; }
.lang-toggle button.is-active { background: var(--paper); color: var(--uv-800); opacity: 1; box-shadow: 0 1px 3px rgba(38, 9, 106, .2); }

.nav-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
    border: 0; border-radius: var(--pill); background: transparent; cursor: pointer;
    font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-support:hover { background: rgba(128, 69, 255, .12); }
.nav-login { background: var(--uv-600); color: #fff; }
.nav-login:hover { background: var(--uv-700); }
.tone-dark:not(.is-scrolled):not(.menu-open) .nav-login { background: #fff; color: var(--uv-800); }
.nav-login svg { width: 20px; height: 16px; stroke: none; }

.account { position: relative; }
.account-btn { padding: 0 12px 0 6px; background: rgba(128, 69, 255, .1); }
.tone-dark:not(.is-scrolled) .account-btn { background: rgba(255, 255, 255, .14); }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn .chev { width: 16px; height: 16px; transition: transform .2s; }
.account.is-open .chev { transform: rotate(180deg); }
.account-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px;
    background: var(--paper); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow-2);
    opacity: 0; transform: translateY(-6px); visibility: hidden; transition: .18s var(--ease);
}
.account.is-open .account-menu { opacity: 1; transform: none; visibility: visible; }
.account-menu a, .account-menu button {
    display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none;
    border-radius: var(--r-sm); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: var(--lilac); }
.account-menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.account-menu .danger { color: var(--rose); }

.nav-burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(128, 69, 255, .1); cursor: pointer; position: relative; }
.tone-dark:not(.is-scrolled):not(.menu-open) .nav-burger { background: rgba(255, 255, 255, .14); }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.nav-burger span:first-child { top: 17px; }
.nav-burger span:last-child { top: 23px; }
.menu-open .nav-burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .nav-burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
    pointer-events: auto; max-width: var(--wrap); margin: 8px auto 0; padding: 8px;
    background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
    display: grid; color: var(--ink);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a, .mobile-menu button {
    padding: 14px 16px; border: 0; background: none; text-align: left; border-radius: var(--r-sm);
    font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: var(--lilac); }

@media (max-width: 960px) {
    .nav-links, .nav-support { display: none; }
    .nav-burger { display: block; }
}
@media (max-width: 560px) {
    .site-header { padding-top: 8px; }
    .nav-shell { gap: 8px; padding: 0 6px 0 12px; height: 56px; }
    .brand-name { font-size: 16px; }
    .nav-login span, .account-name, .account-btn .chev { display: none; }
    .nav-login { width: 42px; padding: 0; justify-content: center; }
    .account-btn { padding: 0 6px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff;
    padding: calc(var(--header-h) + 56px) 0 28px;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    background:
        radial-gradient(60% 70% at 78% 42%, rgba(196, 174, 255, .55) 0%, rgba(196, 174, 255, 0) 60%),
        radial-gradient(50% 60% at 10% 100%, rgba(255, 120, 220, .28) 0%, rgba(255, 120, 220, 0) 70%),
        linear-gradient(160deg, #3A0FB0 0%, #5A1EEA 45%, #7438FF 100%);
}
/* Roblox-style studs as a faint texture */
.hero-studs {
    position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .13) 0 5px, rgba(255, 255, 255, 0) 6px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 10%, transparent 75%);
    mask-image: radial-gradient(80% 80% at 70% 40%, #000 10%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: min(640px, 72vh); }
.hero-copy { position: relative; z-index: 2; padding: 24px 0; }
.hero-live {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 7px 14px 7px 12px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    font-size: 14px; font-weight: 500;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5CF2B0; box-shadow: 0 0 0 0 rgba(92, 242, 176, .6); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(92, 242, 176, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(92, 242, 176, 0); } }

.hero-title {
    font-family: var(--font-d); font-weight: 600;
    font-size: clamp(36px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -.035em;
    text-wrap: balance;
    max-width: 14ch;
}
html[lang="ru"] .hero-title { max-width: 12ch; font-size: clamp(34px, 4.6vw, 64px); }
.hero-sub { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stage { position: relative; height: min(620px, 70vh); margin-right: calc(var(--gutter) * -1); }
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .8s; }
.hero-stage.is-ready canvas { opacity: 1; }
.hero-fallback { position: absolute; top: 50%; left: 50%; width: 46%; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 30px 40px rgba(16, 0, 60, .5)); opacity: 0; transition: opacity .4s; }
.hero-stage.no-webgl .hero-fallback { opacity: 1; }

.hero-facts {
    list-style: none; margin-top: 8px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.hero-facts li {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-facts svg { width: 26px; height: 26px; flex-shrink: 0; color: #fff; }
.hero-facts strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.hero-facts span { display: block; font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.35; }

/* single orchestrated entrance */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .9s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; }
    .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .hero-copy > :nth-child(4) { animation-delay: .24s; }
    .hero-facts { animation: rise .9s .4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .hero { padding-top: calc(var(--header-h) + 8px); border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
    .hero-stage { order: -1; height: clamp(250px, 62vw, 420px); margin: 0 calc(var(--gutter) * -1); }
    .hero-copy { padding: 0 0 8px; }
    .hero-live { margin-bottom: 18px; }
    .hero-title, html[lang="ru"] .hero-title { max-width: 14ch; }
    .hero-facts { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
    .hero-facts li { padding: 12px 16px; }
}
@media (max-width: 480px) {
    .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 112px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-title { font-family: var(--font-d); font-weight: 600; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.section-lead { margin-top: 12px; max-width: 36em; color: var(--ink-2); font-size: 17px; }

/* ---------- Catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 16px;
    border: 0; border-radius: var(--pill); background: var(--paper); cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--ink-2);
    box-shadow: 0 0 0 1px var(--line);
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.filter span { min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--pill); background: var(--lilac); font-size: 13px; }
.filter:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--uv-300); }
.filter.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.filter.is-active span { background: rgba(255, 255, 255, .16); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.tile {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--paper); border-radius: var(--r-lg); padding: 8px;
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-1);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile-well {
    position: relative; aspect-ratio: 1 / .86; border-radius: calc(var(--r-lg) - 8px);
    display: grid; place-items: center; overflow: hidden;
    background: radial-gradient(120% 90% at 30% 15%, var(--w1, #ECE7FF) 0%, var(--w2, #D5CCFF) 100%);
}
.tile-well::after { /* soft gloss */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%);
}
.tile-well.is-dark::after { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 45%); }
.tile-well img {
    width: calc(var(--logo, .6) * 100%); height: calc(var(--logo, .6) * 100%); object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(20, 4, 60, .22));
    transition: transform .5s var(--ease);
}
a.tile:hover .tile-well img { transform: scale(1.06) rotate(-2deg); }
.tile.is-out .tile-well { filter: grayscale(.9); opacity: .55; }

.chip {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .92); color: var(--ink);
    font-size: 12.5px; font-weight: 600; line-height: 1.4;
    box-shadow: 0 2px 8px rgba(20, 4, 60, .12);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip-ok i { background: var(--mint); }
.chip-warn i { background: #F0A000; }

.tile-body { display: flex; flex-direction: column; flex: 1; padding: 14px 10px 8px; }
.tile-name { font-family: var(--font-d); font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.tile-term { margin-top: 4px; font-size: 14px; color: var(--ink-3); min-height: 1.4em; }
.tile-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-price { font-family: var(--font-d); font-weight: 600; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.tile-price small { font-family: var(--font-b); font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.tile-price .usd { font-family: var(--font-b); font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tile-stock { font-size: 13.5px; font-weight: 600; }
.stock-ok { color: var(--mint); }
.stock-warn { color: var(--amber); }
.stock-out { color: var(--ink-3); }
.tile.is-out .tile-price { color: var(--ink-3); }

.tile-skeleton { min-height: 340px; }
.tile-skeleton .tile-well { background: linear-gradient(100deg, #EEEAFB 30%, #F7F5FE 50%, #EEEAFB 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
.tile-skeleton .tile-body span { display: block; height: 14px; border-radius: 7px; background: #EEEAFB; margin-top: 10px; width: 70%; }
.tile-skeleton .tile-body span + span { width: 45%; }
@keyframes shimmer { to { background-position: -300% 0; } }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-2); }

@media (max-width: 560px) {
    .tile { padding: 6px; border-radius: 22px; }
    .tile-well { border-radius: 16px; }
    .tile-body { padding: 10px 6px 6px; }
    .tile-name { font-size: 15px; }
    .tile-term { font-size: 13px; }
    .tile-price { font-size: 17px; }
    .tile-price .usd { display: block; font-size: 13px; }
    .tile-stock { font-size: 12.5px; }
    .chip { top: 7px; left: 7px; font-size: 11.5px; padding: 3px 8px 3px 7px; }
    .tile-skeleton { min-height: 260px; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .filter { flex-shrink: 0; }
}

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pay-logos { display: flex; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.pay-logos img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow-1); }
.pay-logos span { margin-left: 4px; font-size: 14px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps li { position: relative; background: var(--paper); border-radius: var(--r-lg); padding: 26px 22px 24px; box-shadow: var(--shadow-1); }
.step-n {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 40px;
    border-radius: 14px; background: var(--uv-600); color: #fff;
    font-family: var(--font-d); font-weight: 600; font-size: 18px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 8px 16px -6px rgba(100, 36, 238, .6);
}
.steps li:nth-child(2) .step-n { background: var(--uv-500); }
.steps li:nth-child(3) .step-n { background: var(--mint); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 8px 16px -6px rgba(14, 159, 110, .6); }
.steps h3 { font-family: var(--font-d); font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }
.steps p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 960px) {
    .how-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 10px; }
    .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
    .step-n { margin: 0; grid-row: span 2; }
    .steps p { margin-top: 4px; }
}

/* ---------- Reviews ---------- */
.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 48px) / 4)); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(50% - 50vw); padding: 4px max(var(--gutter), calc(50vw - var(--wrap) / 2)) 20px;
    scroll-padding-left: max(var(--gutter), calc(50vw - var(--wrap) / 2));
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (max-width: 1080px) { .rail { grid-auto-columns: minmax(270px, 42%); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 84%; } }
.review {
    scroll-snap-align: start;
    display: flex; flex-direction: column; gap: 14px;
    background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: #E2DDF2; stroke: none; }
.stars svg.on { fill: #FFB020; }
.review-text { font-size: 16.5px; line-height: 1.5; flex: 1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-text.is-empty { color: var(--ink-3); font-style: italic; }
.review-product { align-self: flex-start; padding: 4px 10px; border-radius: var(--pill); background: var(--lilac); color: var(--uv-800); font-size: 13px; font-weight: 600; }
.review-foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-foot img, .av-fallback { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.av-fallback { display: grid; place-items: center; background: var(--uv-100); color: var(--uv-800); font-weight: 700; font-size: 15px; }
.review-foot div { min-width: 0; flex: 1; }
.review-foot strong { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-foot div span { display: block; font-size: 13px; color: var(--ink-3); }
.review-verified { width: 26px; height: 26px; border-radius: 50%; display: grid !important; place-items: center; background: var(--mint-bg); color: var(--mint) !important; flex-shrink: 0; }
.review-verified svg { width: 15px; height: 15px; stroke-width: 2.6; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav[hidden] { display: none; }
@media (max-width: 760px) { .rail-nav { display: none; } }

.proof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.proof { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); text-decoration: none; color: #fff; transition: transform .3s var(--ease); }
.proof:hover { transform: translateY(-3px); }
.proof svg { width: 34px; height: 34px; flex-shrink: 0; }
.proof strong { display: block; font-size: 17px; font-weight: 600; }
.proof span { display: block; font-size: 14.5px; opacity: .8; }
.proof-funpay { background: linear-gradient(135deg, #1E2A4A, #2E4A85); }
.proof-funpay svg { fill: #FFB020; stroke: none; }
.proof-discord { background: linear-gradient(135deg, #4752C4, #5865F2); }
@media (max-width: 760px) { .proof-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Referral ---------- */
.referral {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 48px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--r-xl); color: #fff;
    background: linear-gradient(120deg, var(--uv-800), var(--uv-600) 60%, #A44BFF);
}
.referral::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 0 5px, transparent 6px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.referral-num { font-family: var(--font-d); font-weight: 700; font-size: clamp(64px, 9vw, 120px); line-height: .9; letter-spacing: -.05em; color: #fff; text-shadow: 0 6px 0 rgba(26, 6, 71, .35); }
.referral h2 { font-family: var(--font-d); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.referral p { margin-top: 10px; color: rgba(255, 255, 255, .8); max-width: 34em; }
@media (max-width: 860px) {
    .referral { grid-template-columns: 1fr; text-align: left; }
    .referral .btn { justify-self: start; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid > div:first-child .btn { margin-top: 24px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 22px; cursor: pointer; list-style: none;
    font-size: 17px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--uv-600); transition: transform .25s var(--ease); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 22px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--uv-950); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.brand-light { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 24em; font-size: 15px; }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h2 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 15px; text-decoration: none; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Modal ---------- */
.modal {
    position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px;
    background: rgba(26, 6, 71, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .2s;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-card {
    position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
    background: var(--paper); border-radius: var(--r-xl); padding: 32px 28px 24px; box-shadow: var(--shadow-2);
    transform: translateY(12px) scale(.98); transition: transform .25s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-card h2 { font-family: var(--font-d); font-weight: 600; font-size: 24px; letter-spacing: -.025em; padding-right: 36px; }
.modal-lead { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--lilac); cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.steps-mini { list-style: none; counter-reset: s; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
.steps-mini li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--uv-100); color: var(--uv-800); font-weight: 700; font-size: 15px; }
.steps-mini strong { font-size: 16px; }
.steps-mini span { font-size: 14.5px; color: var(--ink-2); }
.modal-foot { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-2); }
.modal-foot a { color: var(--uv-700); font-weight: 600; }

/* ---------- Cookie note & toast ---------- */
.cookie-note {
    position: fixed; left: 16px; bottom: 16px; z-index: 250; max-width: 380px;
    display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px;
    background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-2);
    font-size: 14px; color: var(--ink-2);
    opacity: 0; transform: translateY(12px); transition: .3s var(--ease);
}
.cookie-note.is-in { opacity: 1; transform: none; }
.cookie-note[hidden] { display: none; }
@media (max-width: 560px) { .cookie-note { left: 8px; right: 8px; bottom: 8px; max-width: none; } }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 20px); opacity: 0;
    padding: 14px 20px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
    box-shadow: var(--shadow-2); transition: .3s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.toast-error { background: var(--rose); }

/* =====================================================================
   Inner pages
   ===================================================================== */
.page-main { padding: calc(var(--header-h) + 36px) 0 clamp(64px, 9vw, 112px); min-height: 70vh; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; padding: 8px 14px 8px 10px; border-radius: var(--pill); background: var(--paper); box-shadow: var(--shadow-1); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 18px; height: 18px; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product[hidden] { display: none; }
.product-visual { position: sticky; top: calc(var(--header-h) + 24px); }
.product-well {
    position: relative; aspect-ratio: 1 / .92; border-radius: var(--r-xl); overflow: hidden;
    display: grid; place-items: center;
    background: radial-gradient(120% 90% at 30% 15%, var(--w1, #ECE7FF) 0%, var(--w2, #D5CCFF) 100%);
    box-shadow: var(--shadow-2);
}
.product-well::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 45%); }
.product-well.is-dark::after { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 45%); }
.product-well img { width: calc(var(--logo, .6) * 100%); height: calc(var(--logo, .6) * 100%); object-fit: contain; filter: drop-shadow(0 24px 30px rgba(20, 4, 60, .28)); }
.product-well .chip { top: 18px; left: 18px; font-size: 14px; padding: 6px 14px 6px 10px; }
.product-well .chip i { width: 8px; height: 8px; }
.product-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.product-trust li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; font-size: 15px; color: var(--ink-2); }
.product-trust svg { width: 22px; height: 22px; color: var(--uv-600); flex-shrink: 0; }

.product-cat { font-size: 15px; font-weight: 600; color: var(--uv-700); }
.product-title { margin-top: 6px; font-family: var(--font-d); font-weight: 600; font-size: clamp(32px, 4vw, 50px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.product-lead { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 34em; }

.notice { margin-top: 24px; padding: 16px 18px; border-radius: var(--r-md); font-size: 15.5px; display: grid; gap: 8px; justify-items: start; }
.notice strong { font-size: 17px; }
.notice-warn { background: var(--amber-bg); color: #6B4300; }
.notice-out { background: var(--paper); box-shadow: var(--shadow-1); color: var(--ink-2); }
.notice-out strong { color: var(--ink); }
.notice .btn { margin-top: 4px; }

.buy-form { margin-top: 28px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.field-msg { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.field-msg.is-error { color: var(--rose); font-weight: 500; }
.field-msg.is-ok { color: var(--mint); font-weight: 600; }
p.field-msg.is-error:not(.field *) { margin: -12px 0 18px; }

.input {
    width: 100%; height: 54px; padding: 0 18px;
    border: 0; border-radius: var(--r-md); background: var(--paper);
    box-shadow: inset 0 0 0 1.5px var(--line);
    font: inherit; font-size: 17px; color: var(--ink);
    transition: box-shadow .2s;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { box-shadow: inset 0 0 0 1.5px var(--uv-300); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--uv-600), 0 0 0 4px rgba(128, 69, 255, .15); }
.input.is-error { box-shadow: inset 0 0 0 2px var(--rose); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.plan {
    position: relative; display: grid; gap: 2px; padding: 16px 18px; cursor: pointer;
    border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
    transition: box-shadow .2s, background-color .2s;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:hover { box-shadow: inset 0 0 0 1.5px var(--uv-300); }
.plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--uv-600); background: #FAF8FF; }
.plan:has(input:focus-visible) { outline: 3px solid var(--uv-500); outline-offset: 2px; }
.plan-name { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.plan-price { font-family: var(--font-d); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.plan-sub { font-size: 14px; color: var(--ink-3); }
.plan.is-out .plan-price { color: var(--ink-3); }

.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-big { font-family: var(--font-d); font-weight: 600; font-size: clamp(32px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.1; }
.price-big span { font-family: var(--font-b); font-size: 18px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-big s { font-size: .55em; color: var(--ink-3); font-weight: 500; }
.price-stock { font-size: 15px; font-weight: 600; }

.methods { display: grid; gap: 10px; border-radius: var(--r-md); }
.methods.has-error .method { box-shadow: inset 0 0 0 1.5px rgba(217, 58, 85, .55); }
.method {
    position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 14px 18px 14px 14px; border-radius: var(--r-md); cursor: pointer;
    background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
    transition: box-shadow .2s, background-color .2s;
}
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method img { width: 36px; height: 36px; border-radius: 10px; }
.method:hover { box-shadow: inset 0 0 0 1.5px var(--uv-300); }
.method:has(input:checked) { box-shadow: inset 0 0 0 2px var(--uv-600); background: #FAF8FF; }
.method:has(input:focus-visible) { outline: 3px solid var(--uv-500); outline-offset: 2px; }
.method-text strong { display: block; font-size: 16px; font-weight: 600; }
.method-text small { display: block; font-size: 14px; color: var(--ink-3); }
.method-price { font-weight: 700; font-size: 16px; white-space: nowrap; }

.promo { margin: 0 0 18px; }
.promo summary { display: inline-flex; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--uv-700); padding: 4px 0; }
.promo summary::-webkit-details-marker { display: none; }
.promo summary:hover { text-decoration: underline; }
.promo-row { display: flex; gap: 8px; margin-top: 10px; }
.promo-row .input { height: 48px; text-transform: uppercase; }
.promo-row .btn { min-height: 48px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--uv-600); flex-shrink: 0; cursor: pointer; }
.check a { color: var(--uv-700); font-weight: 600; }

.pay-btn { min-height: 60px; font-size: 18px; }
.pay-btn.is-loading { opacity: .8; pointer-events: none; }
.guest-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-3); }
.guest-note a { color: var(--uv-700); font-weight: 600; }

.product-details { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.product-details[hidden] { display: none; }
.features-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-1); }
.features-card[hidden] { display: none; }
.features-card h2 { font-family: var(--font-d); font-weight: 600; font-size: 24px; letter-spacing: -.025em; }
.features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; }
.features li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.features svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--uv-100); color: var(--uv-700); stroke-width: 2.6; }
.features strong { display: block; font-size: 16px; font-weight: 600; }
.features span { display: block; font-size: 15px; color: var(--ink-2); }
.dev-link { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); text-decoration: none; color: #fff; background: linear-gradient(135deg, #4752C4, #5865F2); }
.dev-link[hidden] { display: none; }
.dev-link > svg:first-child { width: 34px; height: 34px; flex-shrink: 0; }
.dev-link div { flex: 1; min-width: 0; }
.dev-link strong { display: block; font-size: 16.5px; }
.dev-link span { display: block; font-size: 14px; opacity: .8; }
.dev-arrow { width: 22px; height: 22px; flex-shrink: 0; }

.not-found { text-align: center; padding: 80px 0; display: grid; gap: 14px; justify-items: center; }
.not-found[hidden] { display: none; }
.not-found h1 { font-family: var(--font-d); font-weight: 600; font-size: 32px; letter-spacing: -.03em; }
.not-found p { color: var(--ink-2); }

@media (max-width: 900px) {
    .product { grid-template-columns: 1fr; }
    .product-visual { position: static; }
    .product-well { aspect-ratio: 16 / 11; border-radius: var(--r-lg); }
    .product-trust { display: none; }
}
@media (max-width: 480px) {
    .method { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 12px; }
    .method img { width: 32px; height: 32px; }
    .method-text small { font-size: 13px; }
}

/* ---------- Order / status pages ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--uv-300); }

.order-main { display: flex; align-items: flex-start; }
.order-wrap { max-width: calc(720px + var(--gutter) * 2); display: grid; gap: 16px; }
.order-card {
    position: relative; overflow: hidden;
    background: var(--paper); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-2);
}
.order-card::before { /* colour band that changes with state */
    content: ""; position: absolute; inset: 0 0 auto; height: 6px;
    background: linear-gradient(90deg, var(--uv-700), var(--uv-500));
    transition: background .6s;
}
.order-card[data-state="ok"]::before { background: linear-gradient(90deg, var(--uv-600), var(--mint)); }
.order-card[data-state="err"]::before { background: linear-gradient(90deg, #F0A000, var(--rose)); }

.order-top { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.order-badge { position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--uv-100); color: var(--uv-700); }
.order-badge > * { grid-area: 1 / 1; }
.order-badge svg { width: 32px; height: 32px; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: .45s var(--ease); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(100, 36, 238, .2); border-top-color: var(--uv-600); animation: spin 0.9s linear infinite; transition: opacity .3s; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-card[data-state="ok"] .order-badge { background: var(--mint-bg); color: var(--mint); }
.order-card[data-state="ok"] .ic-ok { opacity: 1; transform: none; }
.order-card[data-state="err"] .order-badge { background: var(--amber-bg); color: var(--amber); }
.order-card[data-state="err"] .ic-err { opacity: 1; transform: none; }
.order-card:not([data-state="wait"]) .spinner { opacity: 0; animation: none; }
.order-title { font-family: var(--font-d); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.order-sub { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.order-note { margin-top: 20px; font-size: 15px; color: var(--ink-3); }

.key-box { margin-top: 28px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, #F5F1FF, #EAF9F3); box-shadow: inset 0 0 0 1.5px rgba(14, 159, 110, .25); }
@media (prefers-reduced-motion: no-preference) {
    .order-card[data-state="ok"] .key-box { animation: keyIn .7s var(--ease) both; }
}
@keyframes keyIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.key-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.key-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.key-value {
    flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper);
    font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace; font-size: clamp(16px, 2.2vw, 20px); font-weight: 600;
    color: var(--ink); word-break: break-all; line-height: 1.4; user-select: all;
    box-shadow: 0 1px 2px rgba(38, 9, 106, .08);
}
.key-copy { flex-shrink: 0; min-height: 54px; }
.key-copy svg { width: 20px; height: 20px; }
.key-copy.is-done { background: var(--mint); box-shadow: none; }
.key-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .key-row { flex-direction: column; align-items: stretch; } }

.wait-bar { margin-top: 28px; height: 6px; border-radius: 3px; background: var(--uv-100); overflow: hidden; }
.wait-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--uv-600); animation: waitbar 1.6s var(--ease) infinite; }
@keyframes waitbar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.order-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.order-meta dt { font-size: 13px; color: var(--ink-3); }
.order-meta dd { margin: 2px 0 0; font-weight: 600; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; word-break: break-all; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 480px) { .order-actions .btn { flex: 1 1 100%; } .order-top { grid-template-columns: 1fr; gap: 16px; } }
.order-card .notice { margin-top: 20px; }

.review-card { background: var(--paper); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-1); }
.review-card h2 { font-family: var(--font-d); font-weight: 600; font-size: 24px; letter-spacing: -.025em; }
.review-card > p { margin-top: 8px; color: var(--ink-2); }
.rate { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 20px 0 16px; padding: 0; border: 0; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { cursor: pointer; padding: 2px; border-radius: 8px; }
.rate svg { width: 38px; height: 38px; fill: #E6E1F4; stroke: none; transition: fill .15s, transform .15s; }
.rate label:hover svg, .rate label:hover ~ label svg, .rate input:checked ~ label svg { fill: #FFB020; }
.rate label:hover svg { transform: scale(1.1); }
.rate input:focus-visible + label { outline: 3px solid var(--uv-500); }
.textarea { height: auto; min-height: 100px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
#review-form .btn { margin-top: 14px; }
#review-form.is-sent .rate, #review-form.is-sent textarea, #review-form.is-sent .btn { display: none; }
.site-header.tone-light .brand img, .site-header.is-scrolled .brand img, .site-header.menu-open .brand img { filter: drop-shadow(0 1px 1px rgba(38, 9, 106, .55)) drop-shadow(0 4px 10px rgba(38, 9, 106, .3)); }

/* =====================================================================
   Shared page header, docs, tables, account & panels
   ===================================================================== */
html:not([lang="ru"]) [data-only="ru"], html[lang="ru"] [data-only="en"] { display: none !important; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-title { font-family: var(--font-d); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.page-lead { margin-top: 10px; color: var(--ink-2); max-width: 40em; }
.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.card-title { font-family: var(--font-d); font-weight: 600; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.card-sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); font-size: 15.5px; font-weight: 500; margin-bottom: 20px; overflow-wrap: anywhere; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke-width: 2.4; }
.alert-ok { background: var(--mint-bg); color: #075E42; }
.alert-err { background: var(--rose-bg); color: #8E1D33; }

/* ---------- Docs ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.doc-nav a { padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.doc-nav a:hover { background: var(--paper); color: var(--ink); }
.doc-nav a[aria-current="page"] { background: var(--paper); color: var(--uv-700); box-shadow: var(--shadow-1); }
.doc { max-width: 72ch; }
.doc-meta { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.doc-body { margin-top: 28px; display: grid; gap: 28px; }
.doc-body section { display: grid; gap: 10px; }
.doc-body h2 { font-family: var(--font-d); font-weight: 600; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--uv-700); font-weight: 600; }
.legal-list { display: grid; gap: 0; margin: 0; }
.legal-list div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.legal-list div:last-child { border-bottom: 0; }
.legal-list dt { font-size: 15px; color: var(--ink-3); }
.legal-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
    .doc-nav a { white-space: nowrap; }
    .legal-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 0 14px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAF8FF; }
.table .muted, .muted { color: var(--ink-3); font-size: 13.5px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.table td.mono { white-space: nowrap; overflow-wrap: normal; }
.pos { color: var(--mint); font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; background: var(--lilac); color: var(--uv-800); white-space: nowrap; }
.tag-ok { background: var(--mint-bg); color: #075E42; }
.tag-warn { background: var(--amber-bg); color: #6B4300; }
.tag-out { background: var(--rose-bg); color: #8E1D33; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 16px; }
.empty-state svg { width: 40px; height: 40px; color: var(--uv-300); }
.empty-state h3 { font-family: var(--font-d); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.empty-state p { color: var(--ink-2); max-width: 30em; }
.empty-state .btn { margin-top: 6px; }

/* ---------- Account ---------- */
.account-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.account-hero img { width: 76px; height: 76px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-1); background: var(--uv-100); }
.account-hero .page-title { font-size: clamp(28px, 3.6vw, 42px); }
.account-hero .tag { margin-top: 8px; background: #E8EAFD; color: #3C45B5; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--lilac); }
.stat dt { font-size: 13px; color: var(--ink-2); }
.stat dd { margin: 4px 0 0; font-family: var(--font-d); font-weight: 600; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.is-main { background: var(--uv-600); color: #fff; }
.stat.is-main dt { color: rgba(255, 255, 255, .8); }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr 1fr; } .stats .is-main { grid-column: 1 / -1; } }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { height: 48px; font-size: 14.5px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; min-width: 0; }
.copy-field .btn { min-height: 48px; }
.hint { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.hint a, .hint button { color: var(--uv-700); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; text-decoration: underline; }
.shop-list { display: grid; gap: 6px; margin-top: 16px; max-height: 420px; overflow: auto; padding-right: 4px; }
.shop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: var(--r-md); background: var(--lilac); }
.shop-row strong { display: block; font-size: 15px; font-weight: 600; }
.shop-row span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.shop-row .btn { min-height: 38px; }
.orders { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-1); }
.order-row strong { display: block; font-size: 15.5px; font-weight: 600; }
.order-row .muted { display: block; margin-top: 2px; }
.order-key { display: flex; align-items: center; gap: 8px; min-width: 0; }
.order-key code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--lilac); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.icon-btn { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 12px; display: grid; place-items: center; background: var(--lilac); color: var(--ink-2); cursor: pointer; box-shadow: 0 1px 2px rgba(38, 9, 106, .08); }
.icon-btn:hover { color: var(--uv-600); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-done { color: var(--mint); }
@media (max-width: 700px) { .order-row { grid-template-columns: 1fr; gap: 10px; } }
.section-sm { margin-top: clamp(32px, 5vw, 48px); }
.section-sm > h2 { font-family: var(--font-d); font-weight: 600; font-size: 24px; letter-spacing: -.025em; margin-bottom: 14px; }

/* ---------- Guides ---------- */
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-steps li { background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); }
.guide-steps .step-n { margin-bottom: 28px; }
.guide-steps h3 { font-family: var(--font-d); font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.25; }
.guide-steps p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .guide-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guide-steps { grid-template-columns: 1fr; } }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dev-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: transform .25s var(--ease); }
a.dev-card:hover { transform: translateY(-2px); }
.dev-card .tile-well { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 16px; flex-shrink: 0; }
.dev-card .tile-well img { filter: none; }
.dev-card strong { display: block; font-size: 15.5px; font-weight: 600; }
.dev-card span { display: block; font-size: 13.5px; color: var(--ink-3); }
.dev-card .dev-arrow { margin-left: auto; color: var(--ink-3); }

/* ---------- Panels (admin / support) ---------- */
.panel-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.panel-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.panel-col { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1000px) { .panel-grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 16px; border-radius: var(--r-md); background: var(--lilac); }
.kpi dt { font-size: 13px; color: var(--ink-2); }
.kpi dd { margin: 4px 0 0; font-family: var(--font-d); font-weight: 600; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }
.stock-list { display: grid; gap: 2px; }
.stock-item { border-radius: var(--r-sm); }
.stock-item summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; }
.stock-item summary::-webkit-details-marker { display: none; }
.stock-item summary:hover { background: var(--lilac); }
.stock-item[open] summary { background: var(--lilac); }
.stock-item ul { list-style: none; margin: 6px 0 10px; padding: 0 0 0 12px; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.stock-item li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 10px; border-radius: 10px; background: #FAF8FF; }
.stock-item li .mono { color: var(--ink); }
.field-row { display: grid; gap: 8px; margin-bottom: 14px; }
.field-row label { font-size: 14px; font-weight: 600; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235A5182' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; cursor: pointer; }
.input-sm { height: 46px; font-size: 15px; }
.textarea.mono-in { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; min-height: 120px; }
.btn-danger { background: var(--rose); color: #fff; }
.btn-danger:hover { background: #B92E46; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 13px; }
.ban-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.ban-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--rose-bg); }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .promo-grid { grid-template-columns: 1fr; } }
.promo-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.promo-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--r-md); background: var(--lilac); }
.promo-item strong { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }
.promo-item .muted { display: block; margin-top: 4px; }
.subtle-box { padding: 18px; border-radius: var(--r-md); background: var(--lilac); }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.order-row .tag { justify-self: start; }
