/* =====================================================================
   ByteStudio — site styles (hand-written, no framework)
   ===================================================================== */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2-variations"), url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fira Code"; src: url("/assets/fonts/fira-code-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Code"; src: url("/assets/fonts/fira-code-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
    --bg: #050507;
    --surface: #0a0a0f;
    --surface-2: #101017;
    --surface-3: #16161f;
    --border: #1a1a24;
    --border-2: #262634;
    --text: #f0f0f5;
    --text-2: #8888a0;
    --text-3: #555568;
    --accent: #6366f1;
    --accent-2: #a5b4fc;
    --green: #22c55e;
    --mint: #32f08c;
    --discord: #5865f2;
    --warn: #eab308;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 11px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --mono: "Fira Code", ui-monospace, "Cascadia Code", Menlo, monospace;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --gutter: clamp(20px, 4.5vw, 64px);
    --mx: -999px;
    --my: -999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(99, 102, 241, .35); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: .6rem 1rem; background: #fff; color: #000; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { flex-shrink: 0; }

/* ------------------------------------------------------------ backdrop */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop__code {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    filter: blur(10px); opacity: .32; transform: translate3d(0, calc(var(--scrollY, 0) * -0.08px), 0);
}
.code-text {
    white-space: pre; margin: 0; padding: 3rem; color: #d4d4d4;
    font-family: var(--mono); font-size: clamp(14px, 1.8vw, 22px); line-height: 1.7;
}
.code-kw { color: #569cd6; } .code-tp { color: #4ec9b0; } .code-vr { color: #9cdcfe; }
.code-fn { color: #dcdcaa; } .code-st { color: #ce9178; } .code-cm { color: #6a9955; } .code-an { color: #c586c0; }
.code-caret { display: inline-block; width: .55em; height: 1.15em; vertical-align: text-bottom; background: var(--green); box-shadow: 0 0 12px var(--green); }
.backdrop__grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(136, 136, 160, .55) 1px, transparent 1px);
    background-size: 32px 32px; opacity: .06;
}
.backdrop__grid--lit {
    opacity: .55;
    background-image: radial-gradient(rgba(165, 180, 252, .9) 1.2px, transparent 1.3px);
    -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, transparent 70%);
    mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, transparent 70%);
    transition: opacity .4s;
}
.backdrop__vignette { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(5, 5, 7, .85) 100%); }
main, .footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; padding: 16px 16px 0; pointer-events: none; }
.nav__inner {
    pointer-events: auto; position: relative;
    display: flex; align-items: center; gap: 12px; width: 100%; max-width: 980px;
    padding: 9px 10px 9px 10px; border-radius: 18px;
    border: 1px solid transparent; background: transparent;
    transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), max-width .6s var(--ease);
}
.nav.is-scrolled .nav__inner {
    background: rgba(10, 10, 14, .86); border-color: var(--border);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .03);
    max-width: 900px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; padding-right: 6px; }
.brand__avatar {
    position: relative; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: var(--surface-2); border: 1px solid var(--border-2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .02), 0 6px 18px rgba(0, 0, 0, .4);
    transition: transform .4s var(--ease-spring), border-color .3s;
}
.brand__avatar img { width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
.brand__avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 45%); mix-blend-mode: overlay; }
.brand:hover .brand__avatar { transform: rotate(-6deg) scale(1.06); border-color: var(--accent-2); }
.brand__name { font-size: .82rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

.nav__links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; }
.nav__links a { position: relative; z-index: 1; padding: 7px 13px; font-size: .86rem; font-weight: 500; color: var(--text-2); border-radius: 9px; transition: color .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__pill {
    position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 9px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06);
    opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

.nav__cta {
    position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 9px;
    height: 38px; padding: 0 8px 0 14px; border-radius: 12px;
    font-size: .84rem; font-weight: 650; color: var(--text); white-space: nowrap;
    background: #0c0c12;
}
.nav__cta::before { /* rotating light border */
    content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: 13px;
    background: conic-gradient(from var(--ang, 0deg), rgba(255,255,255,.08) 0deg, rgba(165,180,252,.9) 60deg, rgba(255,255,255,.08) 120deg, rgba(255,255,255,.08) 360deg);
    animation: spin-ang 4s linear infinite;
}
.nav__cta::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 12px; background: linear-gradient(180deg, #13131b, #0a0a0f); }
.nav__cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: dot-pulse 2.2s infinite; }
.nav__cta-arrow { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff; color: #000; overflow: hidden; transition: transform .35s var(--ease); }
.nav__cta-arrow .ico { transition: transform .35s var(--ease); }
.nav__cta:hover .nav__cta-arrow .ico { animation: arrow-out .5s var(--ease); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
@keyframes arrow-out { 0% { transform: translate(0,0); } 45% { transform: translate(14px,-14px); } 46% { transform: translate(-14px,14px); } 100% { transform: translate(0,0); } }

.nav__burger { display: none; width: 40px; height: 38px; border-radius: 11px; border: 1px solid var(--border-2); background: #0c0c12; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 14px; } .nav__burger span:last-child { top: 22px; }
.nav.is-open .nav__burger span:first-child { top: 18px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 18px; transform: rotate(-45deg); }

/* XP-bar scroll progress: segmented like Minecraft's experience bar */
.nav__xp { pointer-events: none; width: 100%; max-width: 900px; height: 4px; margin-top: 6px; padding: 0 14px; opacity: 0; transition: opacity .4s; }
.nav.is-scrolled .nav__xp { opacity: 1; }
.nav__xp-fill {
    display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--progress, 0));
    background: repeating-linear-gradient(90deg, #7cff4f 0 calc(5.55% - 2px), transparent calc(5.55% - 2px) 5.55%);
    filter: drop-shadow(0 0 4px rgba(124, 255, 79, .55));
    border-radius: 2px;
}

.sheet {
    position: fixed; inset: 0; z-index: 55; padding: 110px 24px 32px; display: flex; flex-direction: column; justify-content: space-between;
    background: rgba(5, 5, 7, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; transition: opacity .35s var(--ease);
}
.sheet.is-open { opacity: 1; }
.sheet__links { display: flex; flex-direction: column; }
.sheet__links a {
    display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border);
    font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em;
    opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease);
    transition-delay: calc(var(--i) * 60ms + 80ms);
}
.sheet.is-open .sheet__links a { opacity: 1; transform: none; }
.sheet__num { font-family: var(--mono); font-size: .8rem; color: var(--text-3); font-weight: 400; }
.sheet__cta { justify-content: center; }

/* ------------------------------------------------------------- buttons */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 48px; padding: 0 22px; border-radius: 13px; font-weight: 650; font-size: .95rem; white-space: nowrap;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
    will-change: transform;
}
.btn--sm { height: 40px; padding: 0 16px; font-size: .86rem; border-radius: 11px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 1rem; border-radius: 15px; }
.btn--chrome {
    color: #050507;
    background: linear-gradient(135deg, #fff, #e0e7ff, #fff, #c7d2fe, #fff) 0 0 / 300% 300%;
    animation: chrome-shift 6s ease infinite;
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 30px rgba(165, 180, 252, .14);
}
.btn--chrome:hover { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 40px rgba(165, 180, 252, .32); }
.btn--chrome .ico { transition: transform .35s var(--ease); }
.btn--chrome:hover .ico { transform: translateX(3px); }
.btn--chrome:disabled { filter: grayscale(1) brightness(.45); cursor: not-allowed; box-shadow: none; }
.btn--ghost { color: var(--text); border: 1px solid var(--border-2); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: #34344a; }
@keyframes chrome-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border-2); background: rgba(255,255,255,.02); color: var(--text-2); transition: color .2s, background .2s, border-color .2s, transform .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn:active { transform: scale(.94); }

/* copy state icons (shared) */
[data-copy] .i-check { display: none; }
[data-copy].is-copied .i-copy { display: none; }
[data-copy].is-copied .i-check { display: block; color: var(--green); animation: pop-in .45s var(--ease-spring); }
@keyframes pop-in { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* pixel burst particles */
.px-burst { position: fixed; z-index: 999; width: 6px; height: 6px; pointer-events: none; background: var(--c, #fff); animation: px-fly .7s var(--ease) forwards; }
@keyframes px-fly { to { transform: translate(var(--tx), var(--ty)) rotate(var(--r)); opacity: 0; } }

/* ------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 140px; }
.anchor-top { position: absolute; top: 0; }
.hero__inner { position: relative; }
.hero__status { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 5vw, 48px); }
.avatar-tile {
    position: relative; width: 58px; height: 58px; border-radius: 16px; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border-2);
    box-shadow: 0 0 0 4px rgba(255,255,255,.02), 0 14px 40px rgba(0,0,0,.5);
    transform-style: preserve-3d; transition: transform .3s var(--ease);
}
.avatar-tile img { width: 100%; height: 100%; image-rendering: pixelated; }
.avatar-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.25), transparent 40%); mix-blend-mode: overlay; pointer-events: none; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 550; color: var(--green); }
.ping { position: relative; display: inline-flex; width: 9px; height: 9px; }
.ping::before, .ping span { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.ping span { animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; opacity: .75; }
.ping--sm { width: 7px; height: 7px; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.hero__title { font-size: clamp(4.1rem, 15vw, 14rem); font-weight: 900; line-height: .9; letter-spacing: -.045em; margin-bottom: clamp(20px, 3vw, 32px); white-space: nowrap; }
.hero__type { display: inline; }
.hero__type .word { display: inline-block; white-space: nowrap; }
.hero__type .ch { display: inline-block; font-variation-settings: "wght" var(--w, 900); font-weight: 900; transform: translateY(var(--ty, 0)); transition: transform .15s linear; }
.hero__cursor { display: inline-block; width: .09em; height: .78em; margin-left: .06em; background: var(--text-3); vertical-align: -.02em; animation: blink 1s step-end infinite; transition: opacity .6s; }
.hero__cursor.is-done { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }
.hero__sub { font-size: clamp(1.2rem, 3vw, 2.4rem); line-height: 1.2; color: var(--text-2); max-width: 30ch; margin-bottom: clamp(36px, 6vw, 56px); letter-spacing: -.015em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: clamp(24px, 5vw, 56px); margin: clamp(44px, 7vw, 72px) 0 0; padding: 0; }
.hero__stats div { position: relative; padding-left: 14px; }
.hero__stats div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent-2), transparent); }
.hero__stats dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.hero__stats dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.marquee { position: absolute; left: 0; right: 0; bottom: 64px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 10px; margin: 0; padding: 0 10px 0 0; list-style: none; }
.marquee__list li { font-family: var(--mono); font-size: .78rem; color: var(--text-2); padding: 6px 12px; border: 1px solid var(--border); border-radius: 9px; background: rgba(10,10,15,.6); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid var(--border-2); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(90px, 13vw, 160px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); }
.eyebrow span { color: var(--accent-2); }
.eyebrow span::after { content: " /"; color: var(--text-3); }
.eyebrow--sm { margin-bottom: 6px; font-size: .68rem; }
.section-title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.section-lead { margin-top: 20px; font-size: 1.08rem; color: var(--text-2); max-width: 56ch; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }
.scramble-char { color: var(--accent-2); opacity: .85; }

/* reveal: blur-lift with stagger */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* mouse-follow spotlight on cards */
.spot { position: relative; isolation: isolate; }
.spot::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
    background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 0%), rgba(165, 180, 252, .55), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .4s;
}
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 0%), rgba(99, 102, 241, .07), transparent 40%); opacity: 0; transition: opacity .4s; }
.spot:hover::before, .spot:hover::after { opacity: 1; }


/* ---------------------------------------------------------- experience */
.exp { position: relative; height: calc(var(--count) * 100vh); }
.exp__wrap { display: flex; height: 100%; }
.exp__rail { position: sticky; top: 0; height: 100vh; width: 30%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding-right: 48px; }
.exp__title { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: 28px; }
.exp__counter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 26px; }
.exp__current { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: inline-block; }
.exp__current.is-flip { animation: num-flip .45s var(--ease); }
@keyframes num-flip { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-40%); opacity: 0; } 41% { transform: translateY(40%); } 100% { transform: none; opacity: 1; } }
.exp__total { font-size: .9rem; color: var(--text-3); }
.exp__index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.exp__index button { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: .9rem; color: var(--text-3); transition: color .3s; text-align: left; }
.exp__index button:hover { color: var(--text-2); }
.exp__index-bar { width: 14px; height: 2px; border-radius: 2px; background: var(--border-2); transition: width .45s var(--ease), background .3s; }
.exp__index button.is-active { color: var(--text); }
.exp__index button.is-active .exp__index-bar { width: 34px; background: var(--accent-2); box-shadow: 0 0 10px rgba(165,180,252,.6); }
.exp__live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.exp__slides { width: 70%; }
.exp-slide { position: relative; height: 100vh; display: flex; align-items: center; padding-left: 16px; }
.exp-slide__num {
    position: absolute; right: -2%; top: 50%; transform: translateY(-50%) translateY(var(--par, 0px));
    font-size: clamp(9rem, 22vw, 20rem); font-weight: 900; letter-spacing: -.06em; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); pointer-events: none; user-select: none;
}
.exp-card { position: relative; width: 100%; max-width: 720px; opacity: .25; transform: translateY(30px) scale(.98); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.no-js .exp-card, .exp-slide.is-in .exp-card { opacity: 1; transform: none; filter: none; }
.exp-card__head { display: flex; align-items: center; gap: 26px; margin-bottom: 26px; }
.exp-card__name { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.exp-card__role { font-weight: 700; color: #6d8cff; background: linear-gradient(90deg, #6d8cff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.exp-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.exp-card__period { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--text-2); }
.exp-card__desc { font-size: 1.1rem; line-height: 1.7; color: var(--text-2); max-width: 58ch; margin-bottom: 30px; }
.exp-card__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 650; color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--border-2); }
.badge--live { color: var(--green); background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); }

/* logo tile: fit/scale per entry + pixel dissolve reveal */
.logo-tile {
    --size: 118px; --glow: 99, 102, 241;
    position: relative; flex-shrink: 0; width: var(--size); height: var(--size); border-radius: 28px; overflow: hidden;
    display: grid; place-items: center;
    background: radial-gradient(120% 120% at 30% 20%, rgba(var(--glow), .28), rgba(var(--glow), .05) 55%, rgba(10,10,15,1) 100%), var(--surface-2);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 0 0 5px rgba(255,255,255,.015), 0 18px 50px rgba(var(--glow), .18), inset 0 1px 0 rgba(255,255,255,.06);
}
.logo-tile img { image-rendering: auto; transition: transform .6s var(--ease); }
.logo-tile.is-contain img { width: calc(80% * var(--scale, 1)); height: calc(80% * var(--scale, 1)); max-width: none; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.logo-tile.is-cover img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--scale, 1)); }
.exp-card:hover .logo-tile.is-contain img { transform: scale(1.06) rotate(-2deg); }
.exp-card:hover .logo-tile.is-cover img { transform: scale(calc(var(--scale, 1) * 1.06)); }
.logo-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, rgba(255,255,255,.14), transparent 35%); pointer-events: none; }
.logo-tile__fallback { font-size: 3rem; font-weight: 900; }
.logo-tile__pixels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); pointer-events: none; z-index: 2; }
.logo-tile__pixels i { background: var(--surface-3); transition: opacity .25s steps(2), transform .25s; transition-delay: var(--pd, 0ms); }
.exp-slide.is-in .logo-tile__pixels i { opacity: 0; transform: scale(.4); }

/* copy chip for server IPs */
.copy-chip {
    position: relative; display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 10px;
    border-radius: 14px; border: 1px solid var(--border-2);
    background: linear-gradient(180deg, rgba(22,22,31,.9), rgba(12,12,18,.9));
    text-align: left; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.copy-chip:hover { border-color: #3a3a52; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.copy-chip:active { transform: translateY(0) scale(.98); }
.copy-chip__lead { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(124,255,79,.08); color: #7cff4f; border: 1px solid rgba(124,255,79,.2); }
.copy-chip__text { display: flex; margin-right: 6px; flex-direction: column; line-height: 1.2; }
.copy-chip__label { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.copy-chip__value { font-family: var(--mono); font-size: .92rem; font-weight: 500; color: var(--text); }
.copy-chip__state { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.04); color: var(--text-2); margin-left: auto; transition: background .2s, color .2s; }
.copy-chip:hover .copy-chip__state { background: rgba(255,255,255,.08); color: var(--text); }
.copy-chip.is-copied { border-color: rgba(34,197,94,.55); box-shadow: 0 0 0 4px rgba(34,197,94,.08); }
.copy-chip.is-copied .copy-chip__state { background: rgba(34,197,94,.12); }
.copy-chip::after { /* "Copied!" tag */
    content: "Copied!"; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px);
    padding: 4px 9px; border-radius: 7px; background: var(--green); color: #031a0b; font-size: .72rem; font-weight: 800;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease-spring);
}
.copy-chip.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

.split-btn { display: inline-flex; height: 54px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(255,255,255,.02); overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.split-btn:hover { border-color: #3a3a52; transform: translateY(-2px); }
.split-btn__main { display: inline-flex; align-items: center; gap: 9px; padding: 0 14px 0 16px; font-size: .9rem; font-weight: 600; transition: background .2s; }
.split-btn__main:hover { background: rgba(255,255,255,.05); }
.split-btn__ext { color: var(--text-3); transition: transform .3s var(--ease), color .2s; }
.split-btn__main:hover .split-btn__ext { transform: translate(2px, -2px); color: var(--text); }
.split-btn__copy { display: grid; place-items: center; width: 48px; border-left: 1px solid var(--border-2); color: var(--text-2); transition: background .2s, color .2s; }
.split-btn__copy:hover { background: rgba(255,255,255,.06); color: var(--text); }
.btn-discord { display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 18px; border-radius: 14px; font-weight: 650; font-size: .9rem; color: #fff; background: rgba(88,101,242,.14); border: 1px solid rgba(88,101,242,.4); transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.btn-discord:hover { background: var(--discord); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(88,101,242,.35); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: clamp(56px, 8vw, 88px) 0 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--border-2), var(--border-2)) no-repeat; }
.steps::after { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--mint)); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; }
.step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--accent-2); }
.step__n { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.step h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.step p { color: var(--text-2); font-size: .92rem; }
.pricing__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: clamp(56px, 8vw, 80px); }
.pricing__fine { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; color: var(--text-3); font-size: .82rem; text-align: center; }
.pricing__fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
/* ------------------------------------------------------------- contact */
.contact { border-top: 1px solid var(--border); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.direct { display: grid; gap: 10px; margin-top: 34px; max-width: 440px; }
.direct__item { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(12,12,18,.8); transition: border-color .3s, transform .3s var(--ease); }
.direct__item:hover { transform: translateX(4px); }
.direct__item b { display: block; font-size: .95rem; }
.direct__item small { display: block; color: var(--text-2); font-size: .84rem; }
.direct__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border-2); }
.direct__item--discord .direct__icon { color: #fff; background: rgba(88,101,242,.2); border-color: rgba(88,101,242,.45); }
.direct__go { margin-left: auto; color: var(--text-3); }
.direct__mail { flex: 1; min-width: 0; }
.direct__mail small { overflow: hidden; text-overflow: ellipsis; }
.contact__hint { display: flex; align-items: center; gap: 7px; margin-top: 20px; color: var(--text-3); font-size: .84rem; }

.cform { padding: clamp(22px, 3.5vw, 34px); border-radius: 22px; background: linear-gradient(180deg, rgba(16,16,23,.92), rgba(10,10,15,.92)); border: 1px solid var(--border); }
.cform__fields { display: grid; gap: 16px; }
.cform__submit { justify-self: start; }
.cform__error { padding: 10px 14px; border-radius: 11px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; font-size: .88rem; }
.cform__state { text-align: center; padding: 40px 10px; }
.cform__state h3 { font-size: 1.5rem; margin: 16px 0 8px; }
.cform__state p { color: var(--text-2); margin-bottom: 22px; }
.cform__check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: var(--green); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); animation: pop-in .6s var(--ease-spring); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- fields */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field__label { display: flex; justify-content: space-between; gap: 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.field__label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-3); }
.field__count.is-ok { color: var(--green); }
.field input, .field select, .field textarea, .money-input {
    width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
    background: rgba(5,5,7,.7); border: 1px solid var(--border-2); color: var(--text); font-size: .95rem;
    transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select option { background: #0f0f15; }
.field input::placeholder, .field textarea::placeholder { color: #3f3f52; }
.field input:focus, .field select:focus, .field textarea:focus, .money-input:focus-within { border-color: rgba(165,180,252,.7); box-shadow: 0 0 0 4px rgba(99,102,241,.14); background: rgba(5,5,7,.95); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: rgba(239,68,68,.6); }
.money-input { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.money-input span { color: var(--text-3); font-weight: 600; }
.money-input input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 0; outline: none; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: .88rem; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--border-2); background: rgba(5,5,7,.8); color: transparent; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease-spring); }
.check input:checked + .check__box { background: var(--accent-2); border-color: var(--accent-2); color: #050507; transform: scale(1.08); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- order modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s; }
.modal__panel {
    position: relative; width: 100%; max-width: 720px; max-height: min(92vh, 860px); overflow: auto; overscroll-behavior: contain;
    border-radius: 24px; background: linear-gradient(180deg, #0f0f16, #0a0a0f); border: 1px solid var(--border-2);
    box-shadow: 0 40px 120px rgba(0,0,0,.6);
    clip-path: inset(50% 0 50% 0 round 24px); transition: clip-path .6s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { clip-path: inset(0 0 0 0 round 24px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; font-size: .86rem; font-weight: 550; color: var(--text-2); border: 1px solid var(--border-2); background: rgba(255,255,255,.02); transition: all .2s; }
.chip:hover span { color: var(--text); border-color: #3a3a52; }
.chip input:checked + span { color: #050507; background: var(--accent-2); border-color: var(--accent-2); }
.chip input:checked + span b { color: #050507; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.chip b { font-weight: 700; color: var(--text); }

/* -------------------------------------------------------------- footer */
.footer { padding: 40px 0 34px; border-top: 1px solid var(--border); overflow: hidden; }
.footer__mark { font-size: clamp(4rem, 17vw, 15rem); font-weight: 900; letter-spacing: -.06em; line-height: .85; text-align: center; margin-bottom: 36px; user-select: none; }
.footer__mark span {
    color: rgba(255,255,255,.025); -webkit-text-stroke: 1px rgba(255,255,255,.1);
    background: linear-gradient(100deg, transparent 0%, rgba(165,180,252,.75) 40%, #fff 50%, rgba(165,180,252,.75) 60%, transparent 100%) no-repeat;
    background-size: 35% 100%; background-position: -100% 0; -webkit-background-clip: text; background-clip: text;
}
.footer__mark.is-in span { animation: sweep 2.8s var(--ease) .2s both; }
.footer__mark:hover span { animation: sweep 1.6s var(--ease) both; }
@keyframes sweep { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer__id { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .86rem; margin-right: auto; }
.footer__id img { border-radius: 7px; image-rendering: pixelated; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { font-size: .86rem; color: var(--text-2); transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__top { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border-2); color: var(--text-2); transition: all .25s; }
.footer__top:hover { color: #050507; background: #fff; transform: translateY(-3px); }
.footer__fine { margin-top: 22px; font-size: .74rem; color: var(--text-3); }

/* --------------------------------------------------------------- toast */
.toast-stack { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 13px; background: rgba(16,16,23,.96); border: 1px solid var(--border-2); box-shadow: 0 18px 50px rgba(0,0,0,.5); font-size: .88rem; animation: toast-in .5s var(--ease-spring); }
.toast.is-out { animation: toast-out .35s var(--ease) forwards; }
.toast__icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(34,197,94,.15); color: var(--green); }
.toast code { font-family: var(--mono); color: var(--text); }
.toast small { color: var(--text-3); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.95); } }

/* ------------------------------------------------------- simple pages */
.page { position: relative; z-index: 1; min-height: 100vh; padding: 130px 0 90px; }
.page__narrow { max-width: 860px; }
.page-title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: 12px; }
.page-lead { color: var(--text-2); font-size: 1.05rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: .84rem; font-weight: 600; color: var(--text-2); transition: color .2s, gap .3s var(--ease); }
.back-link:hover { color: var(--text); gap: 12px; }
.lang-toggle { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(10,10,15,.8); margin: 26px 0 8px; }
.lang-toggle button { padding: 7px 14px; border-radius: 9px; font-size: .82rem; font-weight: 650; color: var(--text-2); transition: all .25s; }
.lang-toggle button.is-active { background: #fff; color: #050507; }
.legal { margin-top: 26px; }
.legal [data-lang] { display: none; }
.legal[data-show="de"] [data-lang="de"], .legal[data-show="en"] [data-lang="en"] { display: block; animation: step-in .45s var(--ease); }
.legal-card { padding: clamp(22px, 4vw, 40px); border-radius: 22px; border: 1px solid var(--border); background: rgba(10,10,15,.88); }
.legal h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 12px; scroll-margin-top: 110px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 750; margin: 22px 0 8px; }
.legal p, .legal li { color: #b4b4c6; font-size: .95rem; line-height: 1.75; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 1.2rem; margin: 8px 0; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.legal .muted { color: var(--text-3); font-size: .85rem; }
.legal .boxed { margin: 14px 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(255,255,255,.02); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--border-2); font-size: .8rem; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: #3a3a52; }

/* -------------------------------------------------------------- mobile */
@media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before, .steps::after { display: none; }
}
@media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: block; }
    .exp { height: auto; }
    .exp__wrap { display: block; }
    .exp__rail { position: static; height: auto; width: auto; padding: 100px 0 10px; }
    .exp__counter, .exp__index { display: none; }
    .exp__slides { width: auto; display: grid; gap: 18px; padding-bottom: 80px; }
    .exp-slide { height: auto; padding: 26px 22px; border-radius: 22px; border: 1px solid var(--border); background: rgba(10,10,15,.85); overflow: hidden; }
    .exp-slide__num { font-size: 7rem; right: 10px; top: 60px; }
    .exp-card { opacity: 1; transform: none; filter: none; }
    .contact__grid { grid-template-columns: 1fr; }
    .hero__title { white-space: normal; }
}
@media (max-width: 600px) {
    .logo-tile { --size: 84px; border-radius: 22px; }
    .exp-card__head { gap: 18px; }
    .exp-card__name { font-size: 2.1rem; }
    .exp-card__actions > * { width: 100%; }
    .split-btn__main { flex: 1; }
    .steps { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero__stats dd { font-size: 1.3rem; }
    .marquee { bottom: 60px; }
    .modal { padding: 0; align-items: flex-end; }
    .modal__panel { max-height: 94vh; border-radius: 24px 24px 0 0; }
    .footer__row { justify-content: center; }
    .footer__id { margin: 0; width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; filter: none; }
    .logo-tile__pixels { display: none; }
}

/* ------------------------------------------------- centered status pages */
.center-screen { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 18px; }
.center-card { position: relative; width: 100%; max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-card--wide { max-width: 600px; padding: clamp(28px, 5vw, 48px); border-radius: 26px; border: 1px solid var(--border); background: rgba(10,10,15,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.center-card h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 850; letter-spacing: -.03em; margin: 14px 0 12px; }
.center-card > p { color: var(--text-2); }
.center-card__img { width: 190px; margin-bottom: 8px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.center-card .status-pill { margin-top: 22px; }
.center-card__links { display: flex; gap: 18px; margin-top: 34px; font-size: .8rem; color: var(--text-3); }
.center-card__links a:hover { color: var(--text); }
.center-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.center-card__fine { margin-top: 18px; font-size: .82rem; color: var(--text-3); }
.center-card code, .co-unavailable code { font-family: var(--mono); color: var(--text); background: rgba(255,255,255,.05); padding: 2px 6px; border-radius: 6px; }
.avatar-tile--sm { width: 44px; height: 44px; border-radius: 13px; display: none; }
.status-pill--warn { color: var(--warn); }
.status-pill--warn .ping::before, .status-pill--warn .ping span { background: var(--warn); }
@keyframes float { 50% { transform: translateY(-6px); } }
.result-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; margin-bottom: 10px; animation: pop-in .7s var(--ease-spring); }
.result-icon--ok { color: var(--green); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); box-shadow: 0 0 60px rgba(34,197,94,.2); }
.result-icon--wait { color: var(--warn); background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.3); }
.result-icon--fail { color: var(--danger); background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); }
.next-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: left; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,.02); color: var(--text-2); font-size: .92rem; }
.next-steps li > span { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(165,180,252,.12); color: var(--accent-2); font-family: var(--mono); font-size: .8rem; }
.next-steps b { color: var(--text); }

/* ------------------------------------------------------------ checkout */
.checkout-head { margin-bottom: 30px; }
.checkout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.co-card { padding: clamp(22px, 3vw, 32px); border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(16,16,23,.94), rgba(10,10,15,.94)); }
.co-summary { position: sticky; top: 100px; }
.co-summary__head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.co-summary__head h2 { font-size: 1.35rem; font-weight: 800; word-break: break-word; }
.co-summary__head p { color: var(--text-2); font-size: .88rem; }
.co-summary__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; color: var(--accent-2); background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25); }
.co-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .92rem; color: var(--text-2); }
.co-lines small { color: var(--text-3); }
.co-lines b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.co-lines__tip span { color: var(--accent-2); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; }
.co-total span { font-weight: 600; }
.co-total strong { font-size: 2rem; letter-spacing: -.03em; }
.co-vat { font-size: .8rem; color: var(--text-3); }
.co-brief { margin-top: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.015); }
.co-brief summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; }
.co-brief summary::-webkit-details-marker { display: none; }
.co-brief summary small { margin-left: auto; color: var(--text-3); font-weight: 500; }
.co-brief p { padding: 0 14px 14px; color: var(--text-2); font-size: .88rem; max-height: 260px; overflow: auto; }
.co-who { display: grid; gap: 8px; margin: 18px 0 0; }
.co-who div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.co-who dt { color: var(--text-3); }
.co-who dd { margin: 0; text-align: right; word-break: break-all; }
.co-pay__title { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; }
.co-test { margin-bottom: 16px; padding: 10px 14px; border-radius: 11px; font-size: .84rem; color: #fde68a; background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.3); }
.co-element { min-height: 180px; }
.co-skeleton { display: grid; gap: 12px; }
.co-skeleton span { height: 46px; border-radius: 12px; background: linear-gradient(90deg, #101017 0%, #191924 50%, #101017 100%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.co-error { margin-top: 14px; padding: 10px 14px; border-radius: 11px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; font-size: .88rem; }
.co-legal { margin: 18px 0 14px; font-size: .8rem; color: var(--text-3); line-height: 1.55; }
.co-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.co-submit { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
.co-form.is-busy .co-submit { animation: chrome-shift 1s ease infinite; }
.co-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 9px; }
.co-trust li { display: flex; gap: 9px; align-items: flex-start; font-size: .83rem; color: var(--text-2); }
.co-trust .ico { margin-top: 2px; color: var(--accent-2); }
.co-unavailable { padding: 16px; border-radius: 14px; border: 1px dashed var(--border-2); color: var(--text-2); display: grid; gap: 8px; font-size: .92rem; }
.co-unavailable a { color: var(--accent-2); }
.error-list { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 8px; }
.error-list li { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; color: #fca5a5; background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.25); font-size: .92rem; }
.muted-note { margin-top: 14px; color: var(--text-3); font-size: .84rem; }
@media (max-width: 900px) {
    .checkout { grid-template-columns: 1fr; }
    .co-summary { position: static; }
}

/* ------------------------------------------------------------ withdraw */
.btn--danger { color: #fff; background: #dc2626; border: 1px solid #ef4444; }
.btn--danger:hover { background: #b91c1c; box-shadow: 0 10px 30px rgba(239,68,68,.3); }
.withdraw h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; }
.withdraw h2 small { font-size: .95rem; font-weight: 500; color: var(--text-2); }
.withdraw .legal-p { color: var(--text-2); margin: 12px 0; }
.withdraw__form { display: grid; gap: 16px; }
.withdraw__form .btn { justify-self: start; }
.withdraw__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.withdraw .boxed { margin: 14px 0; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(255,255,255,.02); }
.withdraw .muted { color: var(--text-3); font-size: .85rem; }
.footer__withdraw { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--border-2); color: var(--text) !important; }
.no-js .legal [data-lang] { display: block; }
.nf-code { font-size: clamp(6rem, 22vw, 11rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(165,180,252,.5); background: repeating-linear-gradient(0deg, rgba(165,180,252,.18) 0 4px, transparent 4px 8px); -webkit-background-clip: text; background-clip: text; animation: glitch 3.5s steps(1) infinite; }
@keyframes glitch { 0%, 92%, 100% { transform: none; } 93% { transform: translate(3px, -2px) skewX(8deg); } 95% { transform: translate(-3px, 1px); } 97% { transform: translate(2px, 2px) skewX(-6deg); } }

/* --------------------------------------------------------- maintenance */
.page-maint { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.maint-preview { position: relative; z-index: 70; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; font-size: .84rem; color: #fde68a; background: rgba(234,179,8,.1); border-bottom: 1px solid rgba(234,179,8,.3); }
.maint-preview a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.maint-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px var(--gutter); }
.maint-nav .brand { margin: 0; }
.maint-badge { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: 12px; font-size: .84rem; font-weight: 650; color: var(--warn); background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.3); }
.maint-badge .ping::before, .maint-badge .ping span { background: var(--warn); }
.maint { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; padding: 20px 0 60px; }
.maint::before { content: ""; position: absolute; left: -10%; top: 10%; width: 60%; height: 70%; background: radial-gradient(closest-side, rgba(234,179,8,.07), transparent); pointer-events: none; }
.maint__copy { position: relative; }
.maint__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.maint__title .hero__cursor.is-done { display: none; }
.maint__title { font-size: clamp(2.8rem, 7vw, 6.4rem); white-space: normal; line-height: .92; margin-bottom: 26px; }
.maint__msg { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text-2); margin-bottom: 30px; }
.maint__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.maint__facts > div { display: flex; flex-direction: column; gap: 3px; min-width: 130px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(12,12,18,.75); }
.maint__facts > div > span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.maint__facts b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.maint__facts small { font-size: .72rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.maint__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scene { position: relative; padding-top: 186px; }
.scene__art { position: absolute; z-index: 2; top: 0; right: 26px; width: 230px; animation: float 5s ease-in-out infinite; }
.scene__art { height: 200px; }
.scene__art .rack { position: absolute; z-index: 1; right: 0; bottom: 0; width: 150px; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.65)) drop-shadow(0 0 18px rgba(99,102,241,.18)); }
.scene__head { position: absolute; z-index: 3; left: 0; bottom: -4px; width: 104px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 18px 22px rgba(0,0,0,.6)); transform-origin: 50% 90%; animation: head-work 2.4s ease-in-out infinite; }
@keyframes head-work { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
.wrench { position: absolute; z-index: 4; left: 84px; bottom: 56px; width: 54px; height: 54px; image-rendering: pixelated; transform-origin: 20% 85%; animation: wrench-turn .8s steps(3) infinite alternate; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
@keyframes wrench-turn { from { transform: rotate(-18deg); } to { transform: rotate(22deg); } }
.rk-led { animation: led 1.4s steps(2) infinite; animation-delay: var(--d, 0s); }
.rk-led--g { fill: #7cff4f; } .rk-led--b { fill: #60a5fa; } .rk-led--p { fill: #c084fc; }
.scene__glow { position: absolute; inset: -20% -30%; background: radial-gradient(closest-side, rgba(99,102,241,.28), transparent 70%); filter: blur(10px); animation: glow-pulse 4s ease-in-out infinite; }
@keyframes glow-pulse { 50% { opacity: .55; transform: scale(.92); } }
.spark { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 5px; height: 5px; background: #ffe58a; box-shadow: 0 0 8px #ffd23f; opacity: 0; animation: spark 1.6s steps(6) infinite; animation-delay: var(--d); }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(calc((var(--x) - 44%) * 3 - 14px), -26px); } }
@keyframes led { 50% { opacity: .15; } }

.term { position: relative; border-radius: 22px; border: 1px solid var(--border-2); background: linear-gradient(180deg, rgba(16,16,23,.96), rgba(8,8,12,.96)); box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.015); }
.term__bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.term__dots { display: flex; gap: 6px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; }
.term__dots i:nth-child(1) { background: #ef4444; } .term__dots i:nth-child(2) { background: #eab308; } .term__dots i:nth-child(3) { background: #22c55e; }
.term__name { font-family: var(--mono); font-size: .74rem; color: var(--text-3); }
.term__live { display: inline-flex; align-items: center; gap: 7px; padding: 2px 8px; border-radius: 7px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); }
.term__body { height: 228px; padding: 16px 18px; overflow: hidden; font-family: var(--mono); font-size: .8rem; line-height: 1.9; display: flex; flex-direction: column; justify-content: flex-start; }
.term__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c8c8d6; animation: step-in .35s var(--ease); }
.term__time { color: var(--text-3); }
.term__prompt { color: var(--green); }
.term__lvl { display: inline-block; min-width: 4.4ch; font-weight: 500; }
.term__line--info .term__lvl { color: #60a5fa; }
.term__line--warn .term__lvl { color: var(--warn); }
.term__line--done .term__lvl { color: #7cff4f; }
.term__line--cmd .term__lvl { color: var(--green); min-width: 0; }
.term__line.is-typing .term__txt::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--text); animation: blink 1s step-end infinite; }
.term__xp { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.term__lvl-num { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; font-family: var(--mono); font-weight: 700; font-size: .85rem; color: #7cff4f; background: rgba(124,255,79,.08); border: 1px solid rgba(124,255,79,.25); text-shadow: 0 0 6px rgba(124,255,79,.5); }
.term__lvl-num.is-up { animation: pop-in .6s var(--ease-spring); }
.term__xp-bar { position: relative; height: 10px; border-radius: 3px; background: #15151e; box-shadow: inset 0 0 0 1px #000; overflow: hidden; }
.term__xp-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #050507 calc(10% - 2px) 10%); }
.term__xp-bar span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(180deg, #a6ff6b, #4fd61c); box-shadow: 0 0 10px rgba(124,255,79,.5); transition: transform .6s var(--ease); }
.term__xp-label { font-family: var(--mono); font-size: .72rem; color: var(--text-3); white-space: nowrap; }
.term__xp-label b { display: inline-block; min-width: 4ch; text-align: right; color: var(--text); font-weight: 500; }

.maint-foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, var(--border-2) 20%, var(--border-2) 80%, transparent); }
.maint-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px var(--gutter) 26px; font-size: .82rem; color: var(--text-3); }
.maint-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.maint-foot a { color: var(--text-2); transition: color .2s; }
.maint-foot a:hover { color: var(--text); }

@media (max-width: 900px) {
    .maint__grid { grid-template-columns: 1fr; }
    .scene { padding-top: 186px; margin-top: 10px; }
    .scene__art { right: 0; }
    .term__name { display: none; }
    .maint__facts small { display: none; }
    .maint-foot { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .maint-badge { height: 32px; padding: 0 10px; font-size: .78rem; }
    .brand__name { font-size: .74rem; }
    .maint__facts > div { flex: 1; min-width: 0; padding: 10px 12px; }
    .maint__facts b { font-size: .98rem; }
    .maint__facts > div > span { font-size: .6rem; }
    .term__time { display: none; }
}


/* =====================================================================
   ByteStudio store additions (same tokens as the portfolio)
   ===================================================================== */

/* ------------------------------------------------- nav: account area */
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__signin { padding: 8px 12px; border-radius: 10px; font-size: .86rem; font-weight: 600; color: var(--text-2); transition: color .2s, background .2s; }
.nav__signin:hover { color: var(--text); background: rgba(255,255,255,.04); }
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 3px 9px 3px 3px; border-radius: 12px; border: 1px solid var(--border-2); background: #0c0c12; transition: border-color .2s, background .2s; }
.acct__btn:hover, .acct__btn[aria-expanded="true"] { border-color: #34344a; background: #12121a; }
.acct__btn .ico:last-child { color: var(--text-3); transition: transform .3s var(--ease); }
.acct__btn[aria-expanded="true"] .ico:last-child { transform: rotate(180deg); }
.avatar { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text-3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.avatar--lg { width: 44px; height: 44px; border-radius: 12px; }
.avatar--xl { width: 88px; height: 88px; border-radius: 20px; }
.avatar--sm { width: 26px; height: 26px; border-radius: 8px; }
.acct__menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 268px; padding: 6px;
    border-radius: 16px; border: 1px solid var(--border-2); background: rgba(12,12,18,.98);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform-origin: top right; animation: menu-in .22s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.acct__head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.acct__head b { display: block; font-size: .92rem; line-height: 1.25; }
.acct__head small { display: block; font-size: .76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.acct__menu a, .acct__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; font-size: .88rem; font-weight: 550; color: var(--text-2); text-align: left; transition: background .15s, color .15s; }
.acct__menu a:hover, .acct__menu button:hover, .acct__menu a:focus-visible, .acct__menu button:focus-visible { background: rgba(255,255,255,.05); color: var(--text); outline: none; }
.acct__menu em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--text-3); }
.acct__menu em.is-warn { color: var(--warn); }
.acct__sep { height: 1px; margin: 5px 6px; background: var(--border); }
.acct__menu .acct__logout:hover { color: #fca5a5; background: rgba(239,68,68,.07); }
.role-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-family: var(--mono); font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px; color: var(--accent-2); background: rgba(165,180,252,.1); }
.sheet__acct { display: grid; gap: 4px; margin-top: 18px; }
.sheet__acct a, .sheet__acct button { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 1rem; color: var(--text-2); }
.sheet__actions { display: grid; gap: 10px; }

/* --------------------------------------------- banners & flash toasts */
.topnote { position: relative; z-index: 61; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 16px; font-size: .82rem; text-align: center; color: var(--text-2); background: rgba(16,16,23,.95); border-bottom: 1px solid var(--border); }
.topnote a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.topnote--warn { color: #fde68a; background: rgba(40,32,6,.95); border-color: rgba(234,179,8,.3); }
body.has-topnote .nav { top: 36px; }
.flash-stack { position: fixed; z-index: 200; left: 50%; top: 86px; transform: translateX(-50%); display: grid; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 13px; font-size: .9rem; line-height: 1.45; background: rgba(16,16,23,.97); border: 1px solid var(--border-2); box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: toast-in .5s var(--ease-spring); }
.flash > .ico { margin-top: 1px; }
.flash span { flex: 1; }
.flash--success { border-color: rgba(34,197,94,.35); } .flash--success > .ico { color: var(--green); }
.flash--error { border-color: rgba(239,68,68,.4); color: #fecaca; } .flash--error > .ico { color: var(--danger); }
.flash--info { border-color: rgba(165,180,252,.35); } .flash--info > .ico { color: var(--accent-2); }
.flash--warning { border-color: rgba(234,179,8,.35); color: #fde68a; } .flash--warning > .ico { color: var(--warn); }
.flash__x { color: var(--text-3); } .flash__x:hover { color: var(--text); }
.flash.is-out { animation: toast-out .35s var(--ease) forwards; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.5; color: var(--text-2); border: 1px solid var(--border-2); background: rgba(255,255,255,.02); }
.notice > .ico { margin-top: 2px; color: var(--accent-2); }
.notice b { color: var(--text); }
.notice a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.notice--warn { border-color: rgba(234,179,8,.3); background: rgba(234,179,8,.05); } .notice--warn > .ico { color: var(--warn); }
.notice--error { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.05); } .notice--error > .ico { color: var(--danger); }
.notice--ok { border-color: rgba(34,197,94,.3); background: rgba(34,197,94,.05); } .notice--ok > .ico { color: var(--green); }

/* ------------------------------------------------------- form extras */
.field__error { margin: 0; font-size: .8rem; color: #fca5a5; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: rgba(239,68,68,.6); }
.field__help { font-size: .78rem; color: var(--text-3); }
.field input[type="file"] { padding: 9px 12px; font-size: .85rem; color: var(--text-2); }
.field input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-3); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.pw-field { position: relative; }
.pw-field input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--text-3); }
.pw-toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 4px; margin-top: 2px; }
.pw-meter span { border-radius: 2px; background: var(--border-2); transition: background .3s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #84cc16; }
.pw-meter[data-score="4"] span { background: var(--green); }
.form-grid { display: grid; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; }
.btn--danger-ghost { color: #fca5a5; border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.05); }
.btn--danger-ghost:hover { background: rgba(239,68,68,.14); color: #fff; }
.link { color: var(--accent-2); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--text-3); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* --------------------------------------------------------- auth pages */
.auth { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 18px 70px; }
.auth-card { width: 100%; max-width: 460px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(16,16,23,.94), rgba(10,10,15,.94)); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.auth-card--wide { max-width: 560px; }
.auth-card__head { margin-bottom: 24px; }
.auth-card__head h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 850; letter-spacing: -.035em; margin-bottom: 8px; }
.auth-card__head p { color: var(--text-2); font-size: .95rem; }
.auth-card__foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--text-2); text-align: center; }
.auth-card__foot a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .84rem; }
.auth-row a { color: var(--text-2); } .auth-row a:hover { color: var(--text); }
.auth-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; color: var(--accent-2); background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; height: 58px; padding: 0; border-radius: 13px; text-align: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 500; background: rgba(5,5,7,.7); border: 1px solid var(--border-2); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-spring); }
.otp input:focus { border-color: rgba(165,180,252,.7); box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.otp input.is-filled { border-color: #3a3a52; transform: translateY(-2px); }
.otp.is-error input { border-color: rgba(239,68,68,.6); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.resend { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-size: .86rem; color: var(--text-3); }
.resend button { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.resend button:disabled { color: var(--text-3); text-decoration: none; cursor: default; }
.recovery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.recovery li { padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--border-2); font-family: var(--mono); font-size: .92rem; text-align: center; }

/* ---------------------------------------------------- page headers */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.page-head .section-lead { margin-top: 12px; }

/* ----------------------------------------------------------- store */
.store-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.chip--link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 10px; font-size: .86rem; font-weight: 550; color: var(--text-2); border: 1px solid var(--border-2); background: rgba(255,255,255,.02); transition: all .2s; }
.chip--link:hover { color: var(--text); border-color: #3a3a52; }
.chip--link.is-active { color: #050507; background: var(--accent-2); border-color: var(--accent-2); }
.chip--link small { font-size: .74rem; opacity: .7; }
.searchbox { display: flex; align-items: center; gap: 8px; height: 42px; min-width: min(280px, 100%); padding: 0 12px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(5,5,7,.7); color: var(--text-3); transition: border-color .2s; }
.searchbox:focus-within { border-color: rgba(165,180,252,.7); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font-size: 16px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(16,16,23,.88), rgba(10,10,15,.88)); transition: transform .4s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-3px); }
.pcard__top { display: flex; align-items: center; gap: 14px; }
.pcard__top .logo-tile { --size: 58px; border-radius: 16px; }
.pcard__name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.pcard__cat { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.pcard__tag { color: var(--text-2); font-size: .92rem; flex: 1; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__meta span { font-family: var(--mono); font-size: .7rem; padding: 3px 8px; border-radius: 7px; color: var(--text-2); border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.price { display: inline-flex; align-items: baseline; gap: 8px; font-size: 1.35rem; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price s { font-size: .9rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.price--lg { font-size: 2.4rem; }
.price--free { color: var(--green); }
.badge--owned { color: var(--green); background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); }
.badge--sale { color: #fde68a; background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.3); }
.pcard__go { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 650; color: var(--accent-2); }
.pcard__go .ico { transition: transform .3s var(--ease); }
.pcard:hover .pcard__go .ico { transform: translateX(4px); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 54px 20px; border-radius: 20px; border: 1px dashed var(--border-2); text-align: center; color: var(--text-2); }
.empty-state .ico { color: var(--text-3); }
.empty-state h3 { font-size: 1.15rem; color: var(--text); }
.empty-state p { max-width: 46ch; font-size: .92rem; }

/* ---------------------------------------------------- product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.product__head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.product__head .logo-tile { --size: 104px; border-radius: 26px; }
.product__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.product__tagline { color: var(--text-2); font-size: 1.1rem; }
.prose { color: #b4b4c6; font-size: 1rem; line-height: 1.75; }
.prose h3 { margin: 26px 0 10px; font-size: 1.15rem; color: var(--text); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { margin: 10px 0; padding-left: 1.2rem; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 28px 0; }
.specs div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(12,12,18,.75); }
.specs dt { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 4px; }
.specs dd { margin: 0; font-weight: 650; font-size: .95rem; }
.versions { display: grid; gap: 8px; }
.version { border-radius: 14px; border: 1px solid var(--border); background: rgba(12,12,18,.8); }
.version summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
.version summary::-webkit-details-marker { display: none; }
.version summary b { font-family: var(--mono); font-weight: 500; }
.version summary small { margin-left: auto; color: var(--text-3); font-size: .8rem; }
.version summary .ico { color: var(--text-3); transition: transform .3s var(--ease); }
.version[open] summary .ico { transform: rotate(180deg); }
.version .prose { padding: 0 16px 16px; font-size: .92rem; }
.buy { position: sticky; top: 100px; }
.buy__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.buy__note { font-size: .8rem; color: var(--text-3); margin-bottom: 18px; }
.buy__list { list-style: none; margin: 0 0 20px; padding: 16px 0; display: grid; gap: 9px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.buy__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.buy__list .ico { color: var(--green); margin-top: 3px; }
.buy form { display: grid; gap: 14px; }
.buy .check { font-size: .82rem; }

/* ------------------------------------------------- account layout */
.account { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 100px; display: grid; gap: 2px; }
.side__user { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.side__user b { display: block; line-height: 1.2; }
.side__user small { color: var(--text-3); font-size: .78rem; }
.side a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; font-size: .9rem; font-weight: 550; color: var(--text-2); transition: background .2s, color .2s; }
.side a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side a.is-active { background: rgba(255,255,255,.07); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.side a.is-active::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-2); }
.side em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(165,180,252,.14); color: var(--accent-2); }
.panel-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.panel-title h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; letter-spacing: -.04em; }
.panel-title p { color: var(--text-2); margin-top: 6px; }
.box { padding: clamp(18px, 3vw, 26px); border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(16,16,23,.9), rgba(10,10,15,.9)); }
.box + .box { margin-top: 16px; }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.box__head h2 { font-size: 1.08rem; font-weight: 750; }
.box__head p { color: var(--text-3); font-size: .86rem; }
.box--danger { border-color: rgba(239,68,68,.25); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: rgba(12,12,18,.85); transition: border-color .25s, transform .3s var(--ease); }
a.stat:hover { border-color: #34344a; transform: translateY(-2px); }
.stat span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.stat b { font-size: 1.8rem; font-weight: 850; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--text-2); font-size: .8rem; }

/* status pills (shared with admin) */
.s-pending, .s-open, .s-awaiting_staff { --c: #a5b4fc; }
.s-paid, .s-active, .s-closed_ok, .s-published { --c: #22c55e; }
.s-refunded, .s-partially_refunded, .s-cancelled, .s-closed, .s-archived, .s-hidden, .s-draft { --c: #8888a0; }
.s-failed, .s-revoked, .s-disputed, .s-urgent { --c: #f87171; }
.s-review, .s-suspended, .s-awaiting_customer, .s-high { --c: #eab308; }
.s-low, .s-normal { --c: #8888a0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; white-space: nowrap; color: var(--c, var(--text-2)); background: color-mix(in srgb, var(--c, #8888a0) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c, #8888a0) 30%, transparent); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); background: rgba(10,10,15,.85); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { position: sticky; top: 0; padding: 11px 14px; text-align: left; font-family: var(--mono); font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); background: rgba(16,16,23,.98); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.table b, .table a.row-link { color: var(--text); font-weight: 600; }
.table a.row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .user-cell { display: flex; align-items: center; gap: 10px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: .84rem; color: var(--text-3); }
.pager div { display: flex; gap: 8px; }

/* licenses */
.lics { display: grid; gap: 14px; }
.lic { padding: 20px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(16,16,23,.9), rgba(10,10,15,.9)); }
.lic.is-new { border-color: rgba(34,197,94,.45); box-shadow: 0 0 0 4px rgba(34,197,94,.07); }
.lic.is-inactive { opacity: .7; }
.lic__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.lic__head .logo-tile { --size: 50px; border-radius: 14px; }
.lic__head h3 { font-size: 1.12rem; font-weight: 800; }
.lic__head small { color: var(--text-3); font-size: .8rem; }
.lic__head .pill { margin-left: auto; }
.lic__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.keychip { flex: 1 1 340px; min-width: 0; }
.keychip .copy-chip__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.keychip.is-hidden .copy-chip__value { filter: blur(5px); user-select: none; }
.lic__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: .84rem; color: var(--text-2); }
.lic__meta span { display: inline-flex; align-items: center; gap: 7px; }
.lic__meta .ico { color: var(--text-3); }
.dl-menu { position: relative; }
.dl-menu summary { list-style: none; }
.dl-menu summary::-webkit-details-marker { display: none; }
.dl-menu__list { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); min-width: 240px; padding: 6px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(12,12,18,.98); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.dl-menu__list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px; font-size: .86rem; color: var(--text-2); }
.dl-menu__list a:hover { background: rgba(255,255,255,.05); color: var(--text); }

/* tickets */
.thread { display: grid; gap: 14px; }
.tmsg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.tmsg__body { padding: 14px 16px; border-radius: 4px 16px 16px 16px; border: 1px solid var(--border); background: rgba(12,12,18,.85); }
.tmsg.is-staff .tmsg__body { border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.06); }
.tmsg.is-internal .tmsg__body { border-style: dashed; border-color: rgba(234,179,8,.4); background: rgba(234,179,8,.04); }
.tmsg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .8rem; color: var(--text-3); }
.tmsg__meta b { color: var(--text); font-size: .88rem; }
.tmsg__text { color: #c8c8d6; font-size: .93rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.staff-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid rgba(99,102,241,.35); }
.staff-mark img { width: 100%; height: 100%; image-rendering: pixelated; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: .84rem; color: var(--text-2); }
.ticket-meta span { display: inline-flex; align-items: center; gap: 6px; }
.reply-box { display: grid; gap: 12px; margin-top: 20px; }

/* home: FAQ, why, support */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; border: 1px solid var(--border); background: rgba(12,12,18,.8); transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--border-2); background: rgba(16,16,23,.95); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex-shrink: 0; color: var(--text-3); transition: transform .35s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--accent-2); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); font-size: .95rem; line-height: 1.7; max-width: 70ch; }
.faq details a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.exp-card__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.exp-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.exp-card__tags span { font-family: var(--mono); font-size: .74rem; padding: 4px 9px; border-radius: 8px; color: var(--text-2); border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.hero__stats dd small { font-size: .9rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }

/* stagger delays (no inline styles: CSP) */
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; } .d4 { --d: .32s; } .d5 { --d: .4s; }

@media (max-width: 1000px) {
    .product { grid-template-columns: 1fr; }
    .buy { position: static; }
    .account { grid-template-columns: 1fr; }
    .side { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .side::-webkit-scrollbar { display: none; }
    .side__user { display: none; }
    .side a { flex-shrink: 0; border: 1px solid var(--border); }
    .side a.is-active::before { display: none; }
}
@media (max-width: 900px) {
    .nav__right .nav__signin, .nav__right .nav__cta { display: none; }
    .flash-stack { top: 76px; }
}
@media (max-width: 600px) {
    .stat-row { grid-template-columns: 1fr; }
    .otp { gap: 6px; }
    .otp input { height: 50px; font-size: 1.25rem; }
    .recovery { grid-template-columns: 1fr; }
    .product__head .logo-tile { --size: 76px; }
    .lic__head .pill { margin-left: 0; }
    .acct__menu { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; }
    .table th, .table td { padding: 10px 12px; }
}

/* confirm dialog */
.modal__panel--sm { max-width: 430px; }
.confirm { padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.confirm__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 15px; color: var(--warn); background: rgba(234,179,8,.08); border: 1px solid rgba(234,179,8,.3); }
.confirm h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.confirm p { color: var(--text-2); font-size: .92rem; margin-bottom: 22px; }
.confirm__actions { display: flex; gap: 10px; justify-content: center; }

/* home extras */
.exp__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; }
.how, .faq-section { border-top: 1px solid var(--border); }
.cform--cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cform--cta .auth-icon { margin-bottom: 4px; }
.cform--cta h3 { font-size: 1.5rem; font-weight: 850; letter-spacing: -.03em; }
.cform--cta p { color: var(--text-2); max-width: 46ch; margin-bottom: 8px; }
a.status-pill:hover { text-decoration: underline; text-underline-offset: 4px; }

/* installer */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--border); font-size: .88rem; }
.checks li small { color: var(--text-3); font-size: .78rem; text-align: right; }
.checks .is-ok .ico { color: var(--green); }
.checks .is-bad { border-color: rgba(239,68,68,.35); } .checks .is-bad .ico { color: var(--danger); }
.checks .is-optional .ico { color: var(--warn); }
.form-title { font-size: 1.1rem; font-weight: 800; }

/* account extras */
.account__main { min-width: 0; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; }
.mini li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mini li:last-child { border-bottom: 0; }
.mini li > div { flex: 1; min-width: 0; }
.mini li b { display: block; }
.mini li small { color: var(--text-3); font-size: .8rem; }
.mini .logo-tile { --size: 44px; border-radius: 12px; }
.mini .logo-tile__fallback { font-size: 1.2rem; }
.lic .logo-tile__fallback, .pcard .logo-tile__fallback { font-size: 1.6rem; }
.icon-btn--tall { width: 54px; height: 54px; border-radius: 14px; }
button.link { font-size: inherit; display: inline-flex; align-items: center; gap: 6px; }
.sub-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 14px; }
.pcard__sale { position: absolute; top: 16px; right: 16px; }
.avatar-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.avatar-edit__form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; flex: 1; min-width: 240px; }
.avatar-edit__form .field { flex: 1; min-width: 200px; }
.kv { display: grid; gap: 8px; margin: 0; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: .9rem; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-word; color: var(--text-2); }
.kv dd b { color: var(--text); }
.field--narrow { max-width: 240px; }
.box--ok { border-color: rgba(34,197,94,.35); }
.totp-setup { display: grid; grid-template-columns: 196px 1fr; gap: 24px; align-items: start; }
.qr { width: 196px; height: 196px; padding: 10px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.totp-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; color: var(--text-2); font-size: .92rem; }
.secret { display: inline-block; margin-top: 4px; padding: 4px 8px; border-radius: 8px; font-family: var(--mono); font-size: .88rem; letter-spacing: .06em; color: var(--text); background: rgba(255,255,255,.05); word-break: break-all; }
code { font-family: var(--mono); font-size: .88em; }
.panel-title code, .section-lead code, .next-steps code, .field__help code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text); }
@media (max-width: 600px) {
    .totp-setup { grid-template-columns: 1fr; }
    .kv div { grid-template-columns: 1fr; gap: 2px; }
}
.is-in .logo-tile__pixels i { opacity: 0; transform: scale(.4); }
.flash-stack { z-index: 58; }
.keychip { max-width: 100%; }
.keychip .copy-chip__text { min-width: 0; overflow: hidden; }
@media (max-width: 600px) {
    .keychip { flex-basis: 100%; }
    .lic { padding: 16px; }
}
.lics, .lic, .lic__row { min-width: 0; } .lics { grid-template-columns: minmax(0, 1fr); }
