/* ─── reset / base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, video { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }

/* ─── tokens — Runelith ───────────────────────────────────────────────── */
:root {
    /* Surfaces — pulled from the runelith branding (deep night → mid navy) */
    --bg-0:  #050a18;
    --bg-1:  #0a1530;
    --bg-2:  #11203f;
    --bg-3:  #182d52;
    --line:  #1c2c4a;
    --line-strong: #2a3e63;

    /* Type */
    --text:      #e6edf7;
    --text-dim:  #92a3c0;
    --text-mute: #5b6c8c;

    /* Accent — glowing rune cyan (replaces electric blue everywhere) */
    --accent:        #4ec0ff;
    --accent-soft:   #9be0ff;
    --accent-deep:   #1e7fff;
    --accent-glow:   rgba(78, 192, 255, 0.45);
    --accent-glow-2: rgba(78, 192, 255, 0.18);

    /* Brand-specific surfaces */
    --stone:         #6b6f78;
    --stone-dark:    #2e323a;
    --moss:          #5a8a3a;
    --moss-bright:   #7eb04a;
    --gem:           #1e7fff;

    /* Roles */
    --danger:    #fb4d6d;
    --danger-bg: rgba(251, 77, 109, 0.12);
    --ok:        #4ade80;
    --ok-bg:     rgba(74, 222, 128, 0.10);
    --warn:      #ffb454;
    --warn-bg:   rgba(255, 180, 84, 0.12);

    /* Geometry */
    --r: 4px;
    --r-md: 6px;
    --r-lg: 10px;
    --r-pill: 0;

    --easing: cubic-bezier(.2, .8, .2, 1);
    --shadow-soft:  0 14px 40px rgba(0, 0, 0, 0.55);
    --shadow-card:  0 10px 32px rgba(0, 0, 0, 0.5);

    --side-w: 64px;
    --top-h: 60px;

    /* Type families */
    --f-display: 'Cinzel', 'Inter', serif;
    --f-mono:    'VT323', ui-monospace, "JetBrains Mono", monospace;
}

/* ─── theme background — aurora-over-pines vibe ───────────────────────── */
body.theme-dark {
    background:
        radial-gradient(1400px 700px at 20% -10%, rgba(78, 192, 255, 0.16), transparent 60%),
        radial-gradient(1000px 500px at 85% 5%, rgba(30, 127, 255, 0.10), transparent 60%),
        radial-gradient(700px 400px at 50% 100%, rgba(78, 192, 255, 0.08), transparent 60%),
        var(--bg-0);
    color: var(--text);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ─── shell (topbar + icon sidebar + main + sticky footer) ──────────── */
.app-shell {
    display: grid;
    grid-template-areas:
        "topbar topbar"
        "side   main"
        "footer footer";
    grid-template-columns: var(--side-w) 1fr;
    grid-template-rows: var(--top-h) 1fr auto;
    min-height: 100vh;
    position: relative; z-index: 1;
}

/* ─── topbar ──────────────────────────────────────────────────────────── */
.site-top {
    grid-area: topbar;
    position: sticky; top: 0; z-index: 20;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 18px;
    padding: 0 20px;
}
.top-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s var(--easing);
}
.top-brand:hover { opacity: 0.85; }
.brand-cube {
    width: 30px; height: 30px;
    color: var(--accent);
    transition: transform 0.4s var(--easing), filter 0.3s var(--easing);
    filter: drop-shadow(0 2px 8px var(--accent-glow-2));
}
.top-brand:hover .brand-cube {
    transform: rotate(-12deg) scale(1.05);
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}

/* Single LOGIN button (replaces split sign-in/register) */
.login-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    letter-spacing: 0.14em;
}
.login-btn .ic { width: 14px; height: 14px; }
.top-spacer { flex: 1; }

.top-account { display: flex; align-items: center; gap: 12px; }

/* Avatar dropdown menu (replaces the standalone sign-out button) */
.user-menu { position: relative; }
.user-menu-trigger {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    cursor: pointer;
    color: inherit;
    transition: border-color 0.2s var(--easing), background 0.2s var(--easing);
}
.user-menu-trigger:hover { border-color: var(--accent); background: var(--bg-3); }
.user-menu-trigger img {
    width: 30px; height: 30px;
    image-rendering: pixelated;
    box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--accent);
}
.user-menu-trigger .user-name {
    font-family: var(--f-display);
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.02em;
}
.user-menu-trigger .chevron {
    width: 14px; height: 14px;
    color: var(--text-mute);
    transition: transform 0.2s var(--easing);
}
.user-menu.open .user-menu-trigger { border-color: var(--accent); }
.user-menu.open .chevron { transform: rotate(180deg); color: var(--accent); }

.user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s var(--easing), transform 0.18s var(--easing);
    z-index: 100;
    padding: 6px;
}
.user-menu.open .user-menu-panel {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.user-menu-panel .menu-header {
    padding: 10px 12px 12px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--line);
    margin: -6px -6px 6px;
}
.user-menu-panel .menu-header img {
    width: 36px; height: 36px;
    image-rendering: pixelated;
    box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--accent);
}
.user-menu-panel .menu-header-name {
    font-family: var(--f-display);
    font-size: 14px; line-height: 1;
}
.user-menu-panel .menu-header-role {
    font-family: var(--f-mono);
    font-size: 11px; color: var(--text-mute);
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-top: 4px;
}
.user-menu-divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: var(--r);
    transition: background 0.15s var(--easing), color 0.15s var(--easing);
    font-family: inherit;
}
.menu-item:hover { background: var(--bg-3); color: var(--text); }
.menu-item.danger:hover { background: rgba(251, 77, 109, 0.12); color: var(--danger); }
.menu-item .ic { width: 14px; height: 14px; flex: 0 0 auto; }

/* ─── icon sidebar ────────────────────────────────────────────────────── */
.site-side {
    grid-area: side;
    position: sticky; top: var(--top-h); align-self: start;
    height: calc(100vh - var(--top-h));
    background: var(--bg-1);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    padding: 14px 0;
    gap: 4px;
}
.avatar {
    width: 34px; height: 34px;
    image-rendering: pixelated;
    box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--accent);
    flex: 0 0 auto;
}
.avatar.small { width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--bg-2); }
.avatar.lg    { width: 56px; height: 56px; }

/* Portrait 3D bust — head + shoulders. Aspect ~2:3 to match mc-heads.net /bust/. */
.avatar-bust {
    width: 38px;
    height: 58px;
    image-rendering: pixelated;
    object-fit: contain;
    object-position: top center;
    background: transparent;
    flex: 0 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.avatar-bust.lg { width: 70px; height: 105px; }
.avatar-bust.xl { width: 130px; height: 195px; }
.account-name {
    font-weight: 700; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-actions { display: flex; gap: 6px; margin-top: 8px; }
.account-actions .btn { flex: 1; }

.side-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 auto; overflow: visible; }
.side-divider {
    width: 28px; height: 1px;
    background: var(--line);
    margin: 8px 0 4px;
}
.side-link {
    position: relative;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: var(--r-md);
    transition: background 0.2s var(--easing), color 0.2s var(--easing), transform 0.15s var(--easing);
}
.side-link:hover { background: var(--bg-2); color: var(--text); }
.side-link.active {
    color: var(--accent);
    background: var(--accent-glow-2);
}
.side-link.active::before {
    /* small accent bar on the left edge of the icon */
    content: ''; position: absolute;
    left: -10px; top: 10px; bottom: 10px;
    width: 3px; background: var(--accent); border-radius: 0 2px 2px 0;
}
.side-link .ic { width: 20px; height: 20px; }

/* Floating tooltip on the right of each icon */
.side-link::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px); top: 50%;
    transform: translate(-6px, -50%);
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 6px 12px;
    border-radius: var(--r);
    white-space: nowrap;
    font-family: var(--f-mono);
    font-size: 14px; letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s var(--easing), transform 0.15s var(--easing);
    z-index: 30;
    box-shadow: var(--shadow-card);
}
.side-link:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.side-foot {
    padding-top: 10px;
    font-family: var(--f-mono);
    font-size: 14px; color: var(--text-mute); letter-spacing: 0.06em;
    text-align: center;
}

/* ─── page area ───────────────────────────────────────────────────────── */
.page {
    grid-area: main;
    width: 100%;
    display: flex; flex-direction: column;
    /* No max-width here — sections decide whether to be full-bleed or constrained. */
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 60px;
    display: flex; flex-direction: column; gap: 28px;
}
.container-flashes { padding: 16px 40px 0; }
.container-flashes .alert + .alert { margin-top: 8px; }
@media (max-width: 760px) {
    .container { padding: 24px 16px 60px; }
    .container-flashes { padding: 12px 16px 0; }
}

/* ─── shared text ─────────────────────────────────────────────────────── */
.section-title {
    font-family: var(--f-display);
    font-weight: 900; letter-spacing: 0.01em;
    font-size: 36px;
    line-height: 1;
    text-transform: none;
}
.muted { color: var(--text-dim); }
.muted.small { font-size: 13px; color: var(--text-mute); }
.mono { font-family: var(--f-mono); }
.small { font-size: 13px; }
.inline { display: inline-block; }
code {
    font-family: ui-monospace, "JetBrains Mono", monospace;
    background: var(--bg-2); padding: 1px 6px; border-radius: var(--r);
    font-size: 0.9em; border: 1px solid var(--line);
}

/* ─── HOME — hero (full-bleed, centered, decorative) ────────────────── */
.hero-large {
    position: relative; overflow: hidden;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 380px at 50% 100%, rgba(59, 130, 255, 0.18), transparent 65%),
        radial-gradient(600px 300px at 50% 0%,   rgba(29, 78, 216, 0.14), transparent 65%),
        linear-gradient(180deg, var(--bg-2), var(--bg-1));
    padding: 64px 0 60px;
    text-align: center;
}
.hero-stack {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
/* Decorative floating cubes drifting in the background */
.hero-cube {
    position: absolute; z-index: 0;
    width: 84px; height: 84px;
    border: 2px solid rgba(59, 130, 255, 0.18);
    box-shadow: inset 0 0 24px rgba(59, 130, 255, 0.06);
    transform: rotate(15deg);
    pointer-events: none;
}
.hero-cube::after {
    content: ''; position: absolute; inset: 8px;
    border: 1px solid rgba(59, 130, 255, 0.10);
}
.hero-cube.c1 { top: 22%; left: 8%;  width: 70px; height: 70px; animation: cubeFloat 11s ease-in-out infinite; opacity: 0.7; }
.hero-cube.c2 { display: none; }
.hero-cube.c3 { display: none; }
.hero-cube.c4 { top: 58%; right: 10%; width: 92px; height: 92px; animation: cubeFloat 14s ease-in-out -4s infinite; transform: rotate(-12deg); opacity: 0.7; }
@keyframes cubeFloat {
    0%, 100% { transform: rotate(15deg)  translateY(0); }
    50%      { transform: rotate(22deg)  translateY(-14px); }
}
@media (max-width: 720px) {
    .hero-cube { display: none; }
}
.hero-large .container,
.cta-bar .container,
.streamers-section .container { padding-top: 0; padding-bottom: 0; gap: 0; }

/* Asymmetric hero: text on the left, big logo on the right. */
.hero-grid-row {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 40px; align-items: center;
}
.hero-content { display: flex; flex-direction: column; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(13, 17, 26, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: var(--f-mono);
    font-size: 13px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.status-badge .dot {
    width: 8px; height: 8px;
    background: var(--ok);
    box-shadow: 0 0 10px var(--ok);
    animation: pulse 1.6s ease-in-out infinite;
}
.status-badge.live {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(59, 130, 255, 0.10);
}
.status-badge.live .dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-headline {
    font-family: var(--f-display);
    font-weight: 900; letter-spacing: -0.015em;
    font-size: clamp(40px, 5.6vw, 68px);
    line-height: 0.98;
    margin: 0;
}
.hero-headline .ink {
    color: var(--accent);
    text-shadow: 0 0 28px var(--accent-glow-2);
    animation: ink-pulse 3.5s ease-in-out infinite;
    background: linear-gradient(120deg, var(--accent-soft), var(--accent), var(--accent-soft));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ink-shimmer 6s linear infinite, ink-pulse 3.5s ease-in-out infinite;
}
@keyframes ink-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes ink-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow-2)); }
    50%      { filter: drop-shadow(0 0 18px var(--accent-glow)); }
}

.hero-tagline-mark {
    display: none; /* dropped — the tag list cluttered the centered stack */
}

.hero-sub {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-dim);
    font-size: 17px; line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    max-width: 56ch;
}
.hero-cta-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

@media (max-width: 720px) {
    .hero-large { padding: 40px 0 36px; }
}

/* ─── HOME — features strip ───────────────────────────────────────────── */
.features-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feature-card {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 22px 20px;
    transition: transform 0.25s var(--easing), border-color 0.25s var(--easing), background 0.25s var(--easing);
}
.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
}
.feature-icon {
    width: 36px; height: 36px; display: grid; place-items: center;
    color: var(--accent);
    margin-bottom: 14px;
    background: rgba(59, 130, 255, 0.10);
    border: 1px solid rgba(59, 130, 255, 0.32);
    border-radius: var(--r);
}
.feature-icon .ic { width: 18px; height: 18px; }
.feature-card h3 {
    font-family: var(--f-display);
    font-size: 16px; letter-spacing: 0.02em;
    margin-bottom: 6px;
}
.feature-card p {
    color: var(--text-dim);
    font-size: 13px; line-height: 1.55;
}

@media (max-width: 900px) { .features-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-strip { grid-template-columns: 1fr; } }

/* ─── HOME — final CTA card ──────────────────────────────────────────── */
.final-cta {
    text-align: center;
    padding: 48px 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        radial-gradient(600px 200px at 50% 0%, rgba(59,130,255,0.16), transparent 70%),
        var(--bg-2);
    position: relative; overflow: hidden;
}
.final-cta::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.final-cta h2 {
    font-family: var(--f-display);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}
.final-cta p {
    color: var(--text-dim);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px; line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 50ch;
}
.final-cta .actions-row { justify-content: center; }
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 255, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 75%);
    pointer-events: none;
    animation: gridDrift 90s linear infinite;
}
@keyframes gridDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(32px, 32px); }
}
.hero-mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-display);
    font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text);
    margin-bottom: 26px;
    position: relative; z-index: 1;
}
.hero-mark img { width: 28px; height: 28px; image-rendering: pixelated; }

.hero-tags {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono);
    font-size: 16px; letter-spacing: 0.18em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 18px;
    position: relative; z-index: 1;
}
.hero-tags .sep { color: var(--text-mute); }

.hero-headline {
    font-family: var(--f-display);
    font-weight: 900; letter-spacing: -0.01em;
    font-size: clamp(46px, 7vw, 84px);
    line-height: 0.95;
    margin-bottom: 24px;
    position: relative; z-index: 1;
    max-width: 18ch;
}
.hero-headline .ink {
    color: var(--accent);
}

.hero-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; position: relative; z-index: 1; }

.stat-pill {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 10px 18px;
    min-width: 0;
}
.stat-pill .icon-tile {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--bg-3);
    border-radius: var(--r);
    color: var(--accent);
}
.stat-pill .icon-tile .ic { width: 18px; height: 18px; }
.stat-pill .label {
    font-family: var(--f-mono);
    font-size: 14px; color: var(--text-mute);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.stat-pill .value { font-weight: 700; font-size: 16px; }
.stat-pill .value.ok { color: var(--ok); }

/* CTA row — bright accent strip, full-bleed, animated diagonal stripes */
.cta-bar {
    background: var(--accent);
    color: #050609;
    padding: 18px 0;
    border-radius: 0;
    box-shadow: 0 14px 50px var(--accent-glow);
    position: relative; overflow: hidden;
}
/*
 * Diagonal flowing stripes. We can't shift a 135° repeating-linear-gradient
 * by an integer-pixel period (the natural period along its axis is 18×√2 ≈
 * 25.456 px → fractional). Instead we render a *vertical* stripe pattern on
 * an oversized layer, rotate that layer 45°, and animate background-position
 * by exactly one period (18 px) along Y. That loops perfectly and looks
 * diagonal once rotated.
 */
.cta-bar::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.10) 0 8px, transparent 8px 18px);
    transform: rotate(-45deg);
    transform-origin: center;
    pointer-events: none;
    animation: cta-stripes 4s linear infinite;
    will-change: background-position;
}
@keyframes cta-stripes {
    from { background-position: 0 0; }
    to   { background-position: 0 18px; }
}
.cta-bar .container {
    display: flex; align-items: center; gap: 18px;
    position: relative; z-index: 1;
    flex-direction: row;
    justify-content: center;
}
.cta-bar .cta-icon {
    width: 22px; height: 22px;
    color: rgba(0, 0, 0, 0.7);
    flex: 0 0 auto;
}
.cta-bar .ip-block {
    display: flex; align-items: baseline; gap: 14px;
}
.cta-bar .ip-label {
    font-family: var(--f-mono);
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 700;
}
.cta-bar .ip {
    font-family: var(--f-display);
    font-size: 26px; letter-spacing: 0.01em; font-weight: 900;
    color: #0a0a0a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.20);
}
.cta-bar .copy-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #050609; color: #fff;
    padding: 10px 18px; font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.14em;
    border-radius: var(--r);
    transition: transform 0.15s var(--easing), box-shadow 0.15s var(--easing);
    cursor: pointer;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.cta-bar .copy-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.cta-bar .copy-btn .ic { width: 14px; height: 14px; }
@media (max-width: 640px) {
    .cta-bar .container { gap: 12px; flex-wrap: wrap; }
    .cta-bar .ip { font-size: 22px; }
    .cta-bar .ip-label { display: none; }
    .cta-bar .cta-icon { display: none; }
}

/* ─── streamers (full-bleed band) ─────────────────────────────────────── */
.streamers-section {
    background:
        radial-gradient(800px 280px at 50% 0%, rgba(59,130,255,0.12), transparent 70%),
        var(--bg-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 48px 0;
}
.streamers-section .container {
    flex-direction: column;
    gap: 14px;
}
.streamers-section .head {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-bottom: 14px;
}
.streamer-card.offline {
    opacity: 0.6;
    filter: grayscale(0.85);
    transition: opacity 0.25s var(--easing), filter 0.25s var(--easing), transform 0.25s var(--easing), border-color 0.25s var(--easing);
}
.streamer-card.offline:hover {
    opacity: 0.9;
    filter: grayscale(0.4);
    border-color: var(--line-strong);
}
.streamer-card.offline .streamer-link { color: var(--text-mute); }
.streamer-card.offline .avatar-bust { box-shadow: none; }
.streamer-status {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-mute);
}
.streamer-status.live { color: var(--accent); }
.streamer-status .dot { width: 7px; height: 7px; background: currentColor; }
.streamer-status.live .dot { animation: pulse 1.4s ease-in-out infinite; }
.live-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: #050609;
    padding: 4px 10px;
    font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.18em;
    text-transform: uppercase; font-weight: 700;
    box-shadow: 0 0 16px var(--accent-glow);
}
.live-pill .dot {
    width: 7px; height: 7px; background: #050609;
    animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.7); }
}

.streamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.streamer-card {
    display: flex; gap: 14px; align-items: center;
    background: var(--bg-2); border: 1px solid var(--line);
    padding: 14px; border-radius: var(--r-md);
    text-decoration: none; color: inherit;
    transition: transform 0.25s var(--easing), border-color 0.25s var(--easing), background 0.25s var(--easing);
    position: relative;
}
.streamer-card:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--bg-3); }
.streamer-card .avatar { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 3px var(--accent); }
.streamer-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.streamer-mc { font-family: var(--f-display); font-size: 18px; font-weight: 900; letter-spacing: 0.01em; }
.streamer-tt { color: var(--accent); font-size: 14px; font-family: var(--f-mono); }
.streamer-link {
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
    color: var(--text-dim);
}

.empty-card {
    background: var(--bg-2); border: 1px dashed var(--line-strong);
    padding: 28px; text-align: center; border-radius: var(--r-md);
    color: var(--text-dim);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
}

/* ─── featured effects ────────────────────────────────────────────────── */
.featured-section .head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    margin-bottom: 14px;
}
.featured-section .head a {
    font-family: var(--f-mono);
    color: var(--accent); text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 14px; font-weight: 700;
}
.featured-section .head a:hover { text-decoration: underline; }

.effect-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.effect-card {
    position: relative; overflow: hidden;
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px;
    transition: transform 0.25s var(--easing), border-color 0.25s var(--easing);
}
.effect-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.effect-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.65;
}
.effect-monogram {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #fff;
    font-family: var(--f-display); font-size: 22px;
    box-shadow: 0 6px 20px var(--accent-glow-2);
    margin-bottom: 14px;
}
.effect-name {
    font-family: var(--f-display);
    font-size: 22px; letter-spacing: 0.01em;
    margin-bottom: 6px;
}
.effect-desc {
    font-size: 13px; line-height: 1.55; color: var(--text-dim);
    min-height: 40px;
}
.effect-tag {
    display: inline-block; margin-top: 12px;
    font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: var(--bg-3); border: 1px solid var(--line);
    color: var(--accent);
}

/* ─── how-it-works ─────────────────────────────────────────────────────── */
.how-it-works .steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
    margin-top: 14px;
}
.step {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 22px;
}
.step-num {
    font-family: var(--f-mono);
    font-size: 18px; letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}
.step h3 { font-family: var(--f-display); font-size: 18px; margin-bottom: 6px; letter-spacing: 0.01em; }

/* ─── general cards ────────────────────────────────────────────────────── */
.card {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 24px;
}
.card.no-pad { padding: 0; overflow: hidden; }
.card.narrow { max-width: 520px; margin: 0 auto; }
.card h2 { margin-bottom: 12px; font-family: var(--f-display); font-size: 20px; letter-spacing: 0.01em; }

/* ─── gifts catalogue ──────────────────────────────────────────────────── */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gift-card {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 18px;
    transition: transform 0.25s var(--easing), border-color 0.25s var(--easing);
}
.gift-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.gift-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gift-name { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.01em; }
.gift-id { font-family: var(--f-mono); font-size: 14px; color: var(--text-mute); letter-spacing: 0.06em; }
.gift-action { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.gift-desc { font-size: 14px; line-height: 1.6; }

.action-tag {
    display: inline-block; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 10px;
    background: var(--bg-3); border: 1px solid var(--line); color: var(--text-dim);
    font-family: var(--f-mono);
}
.action-tag.accent { color: var(--accent); border-color: var(--accent); background: rgba(59, 130, 255, 0.08); }

/* ─── auth — split panel "Player Portal" ──────────────────────────────── */
.portal-shell {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 40px 16px;
    background: var(--bg-0);
}
.portal-card {
    width: 100%; max-width: 920px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 540px;
    position: relative;
}
.portal-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.portal-left {
    padding: 32px 36px;
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    background:
        radial-gradient(600px 320px at 0% 100%, rgba(59,130,255,0.12), transparent 60%),
        var(--bg-1);
    position: relative;
}
.portal-back {
    font-family: var(--f-mono);
    color: var(--text-mute); font-size: 16px;
    text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.08em;
    transition: color 0.2s var(--easing);
}
.portal-back:hover { color: var(--accent); }

.portal-left .icon-tile {
    width: 44px; height: 44px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--accent);
    display: grid; place-items: center;
    margin-top: 36px;
}
.portal-left .icon-tile .ic { width: 22px; height: 22px; }

.portal-title {
    font-family: var(--f-mono);
    font-size: 64px; font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
    margin-top: 28px;
}
.portal-title .ink { color: var(--accent); display: block; }
.portal-blurb {
    font-family: var(--f-mono);
    color: var(--text-dim);
    font-size: 18px;
    margin-top: 18px;
    max-width: 32ch;
}

.portal-foot {
    margin-top: auto;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.portal-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.2s var(--easing), border-color 0.2s var(--easing);
}
.portal-pill:hover { color: var(--accent); border-color: var(--accent); }
.portal-pill .ic { width: 14px; height: 14px; }

.portal-right {
    padding: 32px 36px;
    display: flex; flex-direction: column; justify-content: center;
}
.portal-right h1 {
    font-family: var(--f-mono);
    font-weight: 400; font-size: 36px;
    text-transform: capitalize;
    margin-bottom: 6px;
}
.portal-right .sub {
    font-family: var(--f-mono);
    color: var(--text-dim); font-size: 16px;
    margin-bottom: 22px;
}
.portal-right .alert { margin-bottom: 16px; }
.portal-form { display: grid; gap: 14px; }
.portal-form label {
    display: flex; flex-direction: column; gap: 6px;
    font-family: var(--f-mono);
    font-size: 14px; color: var(--text-dim);
    letter-spacing: 0.08em; text-transform: uppercase;
}
.portal-form input {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: 14px 16px; color: var(--text);
    font-family: var(--f-mono); font-size: 16px;
    transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}
.portal-form input::placeholder { color: var(--text-mute); }
.portal-form input:focus {
    outline: 0; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow-2);
}
.portal-submit {
    background: #fff; color: #050609;
    padding: 14px 18px;
    border-radius: var(--r);
    font-family: var(--f-mono);
    font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 8px;
    transition: transform 0.15s var(--easing), box-shadow 0.15s var(--easing);
}
.portal-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,0.10); }
.portal-aside {
    margin-top: 16px;
    font-family: var(--f-mono);
    font-size: 14px; color: var(--text-dim);
    text-align: center;
}
.portal-aside a { color: var(--accent); text-decoration: none; }
.portal-aside a:hover { text-decoration: underline; }

/* OR divider between credential form and OAuth button */
.portal-or {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0;
    font-family: var(--f-mono); font-size: 14px;
    color: var(--text-mute);
    letter-spacing: 0.16em; text-transform: uppercase;
}
.portal-or::before, .portal-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* "Continue with TikTok" button — black with cyan/red TikTok marks */
.btn-tiktok {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: #000;
    color: #fff;
    border: 1px solid #2c2c2c;
    border-radius: var(--r);
    font-family: var(--f-mono);
    font-size: 16px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    text-decoration: none;
    transition: transform 0.15s var(--easing), border-color 0.15s var(--easing);
    position: relative;
}
.btn-tiktok:hover { transform: translateY(-1px); border-color: #fff; }
.btn-tiktok .tt-mark { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-tiktok.disabled {
    background: #1a1a1a;
    color: var(--text-mute);
    border-color: var(--line);
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.85);
}
.btn-tiktok .soon-pill {
    position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
    background: var(--bg-3); color: var(--text-mute);
    padding: 3px 8px; font-size: 10px; letter-spacing: 0.16em;
    border: 1px solid var(--line); border-radius: 2px;
}

/* ─── forms (admin etc) ──────────────────────────────────────────────── */
.form-grid { display: grid; gap: 16px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.form-grid.narrow { max-width: 440px; }
.form-grid label {
    display: flex; flex-direction: column; gap: 6px;
    font-family: var(--f-mono);
    font-size: 14px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r); padding: 12px 14px; color: var(--text);
    font-size: 14px; letter-spacing: normal; text-transform: none; font-weight: normal;
    transition: border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow-2);
}
.form-grid textarea { resize: vertical; min-height: 120px; font-family: ui-monospace, monospace; line-height: 1.5; }
.form-grid label small { font-weight: normal; letter-spacing: normal; text-transform: none; color: var(--text-mute); font-family: 'Inter', sans-serif; font-size: 12px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid .form-actions { display: flex; gap: 12px; }
.form-grid h2 { font-family: var(--f-display); letter-spacing: 0.01em; margin-top: 12px; font-size: 22px; }
.form-grid section { display: contents; }
.form-grid section h2 + p { grid-column: 1 / -1; }
.inline-fields { border: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.check {
    display: flex !important; flex-direction: row !important; align-items: center; gap: 10px;
    cursor: pointer; text-transform: none !important; letter-spacing: normal !important; font-weight: normal !important;
    color: var(--text) !important; font-family: 'Inter', sans-serif !important;
}
.check input { accent-color: var(--accent); }

/* ─── buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: var(--r); font-weight: 700; font-size: 13px;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--bg-3); color: var(--text);
    transition: transform 0.15s var(--easing), background 0.2s var(--easing), border-color 0.2s var(--easing), box-shadow 0.15s var(--easing);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--accent); color: #050609; border-color: transparent;
    box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 32px var(--accent-glow); filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: #050609; border-color: transparent; }
.btn-light:hover { box-shadow: 0 6px 22px rgba(255,255,255,0.18); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(251,77,109,0.4); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-small { padding: 6px 12px; font-size: 11px; }

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ─── alerts ──────────────────────────────────────────────────────────── */
.alert {
    padding: 12px 16px; border-radius: var(--r);
    font-size: 14px;
    border: 1px solid var(--line);
    animation: slideIn 0.4s var(--easing);
}
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(251,77,109,0.4); }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(31,223,145,0.4); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(255,180,84,0.4); }
.alert ul { margin: 4px 0 0 1em; }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── tables ──────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th {
    font-family: var(--f-mono);
    font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-mute); font-weight: 600; background: var(--bg-1);
}
.data-table tr { transition: background 0.2s var(--easing); }
.data-table tbody tr:hover { background: rgba(59, 130, 255, 0.04); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.actions-col { white-space: nowrap; }
.actions-col .btn + form, .actions-col form + form { margin-left: 6px; }

.pill {
    padding: 4px 10px; border-radius: 0; font-size: 13px;
    font-family: var(--f-mono); letter-spacing: 0.1em;
    border: 1px solid var(--line); cursor: pointer;
    text-transform: uppercase; font-weight: 700;
    transition: all 0.2s var(--easing);
}
.pill-on { background: rgba(31,223,145,0.1); color: var(--ok); border-color: rgba(31,223,145,0.4); }
.pill-off { background: rgba(85, 90, 108, 0.12); color: var(--text-mute); }

/* ─── admin shell ─────────────────────────────────────────────────────── */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.bullets { padding-left: 1.2em; line-height: 1.8; }

.stats-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.stat-card {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 22px;
    transition: transform 0.25s var(--easing), border-color 0.25s var(--easing);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.stat-num {
    font-family: var(--f-display);
    font-size: 44px; line-height: 1; color: var(--accent);
    text-shadow: 0 0 24px var(--accent-glow-2);
}
.stat-label { font-family: var(--f-mono); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); margin-top: 6px; }
.stat-sub { font-size: 12px; margin-top: 4px; color: var(--text-dim); }

/* ─── footer (multi-column with grouped links) ──────────────────────── */
.site-footer {
    grid-area: footer;
    padding: 28px 32px 22px;
    background: transparent;
    border-top: 1px solid var(--line);
    color: var(--text-mute);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    display: flex; flex-direction: column; gap: 8px;
}
.footer-brand-row {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--f-display);
    font-size: 17px; letter-spacing: 0.04em;
    color: var(--text);
}
.footer-brand-row svg { width: 22px; height: 22px; color: var(--accent); }
.footer-brand-tag {
    font-family: 'Inter', sans-serif;
    color: var(--text-dim);
    font-size: 13px; line-height: 1.5;
    max-width: 32ch;
}
.footer-col h4 {
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 10px;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--easing);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
    font-size: 12px;
    color: var(--text-mute);
}
.footer-bottom .legal a { color: var(--text-mute); text-decoration: none; margin-right: 14px; }
.footer-bottom .legal a:hover { color: var(--accent); }
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ─── topbar online pill (auto-polled count) ─────────────────────────── */
.online-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-2);
    color: var(--text-dim);
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.online-pill .dot {
    width: 6px; height: 6px; background: var(--ok);
    box-shadow: 0 0 6px var(--ok);
    border-radius: 50%;
    animation: pulse 1.6s ease-in-out infinite;
}
@media (max-width: 600px) { .online-pill { display: none !important; } }

/* ─── live activity ticker ───────────────────────────────────────────── */
.activity-section .head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.activity-list {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 6px;
    max-height: 360px;
    overflow: hidden;
}
.activity-row {
    display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 12px;
    padding: 10px 12px;
    background: var(--bg-1);
    border-radius: var(--r);
    transition: background 0.2s var(--easing);
    animation: activitySlide 0.45s var(--easing);
}
.activity-row:hover { background: var(--bg-3); }
.activity-row .gift-tile {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #fff;
    font-family: var(--f-display);
    font-size: 18px;
    border-radius: var(--r);
    flex: 0 0 auto;
}
.activity-row .summary { font-size: 14px; line-height: 1.4; }
.activity-row .summary .gift-name { font-weight: 700; color: var(--text); }
.activity-row .summary .count { color: var(--accent); font-weight: 700; }
.activity-row .summary .streamer { color: var(--text); font-weight: 700; }
.activity-row .summary .sender { color: var(--text-dim); }
.activity-row .ago {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
@keyframes activitySlide {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
.activity-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-mute);
    font-family: var(--f-mono); font-size: 13px;
    letter-spacing: 0.06em;
}

/* ─── community / discord callout card ───────────────────────────────── */
.community-card {
    position: relative; overflow: hidden;
    background:
        radial-gradient(500px 200px at 100% 0%, rgba(88, 101, 242, 0.18), transparent 60%),
        var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.community-card .copy h2 {
    font-family: var(--f-display);
    font-size: 22px; letter-spacing: 0.01em;
    margin: 0 0 6px;
}
.community-card .copy p {
    color: var(--text-dim);
    font-size: 15px; line-height: 1.5; margin: 0;
}
.community-card .ic-block {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    background: rgba(88, 101, 242, 0.18);
    color: #a3acff;
    flex: 0 0 auto;
    margin-bottom: 8px;
}
.community-card .ic-block svg { width: 28px; height: 28px; }
.community-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .community-card { grid-template-columns: 1fr; }
    .community-card .actions { width: 100%; }
    .community-card .actions .btn { flex: 1; }
}

/* ─── streamer detail page ───────────────────────────────────────────── */
.streamer-profile {
    display: grid; grid-template-columns: auto 1fr; gap: 32px;
    align-items: start;
}
.streamer-profile .bust-card {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    min-width: 220px;
}
.streamer-profile .bust-card .avatar-bust { width: 140px; height: 210px; }
.streamer-profile .bust-card .name {
    font-family: var(--f-display);
    font-size: 22px;
}
.streamer-profile .bust-card .handle {
    font-family: var(--f-mono);
    color: var(--accent);
    font-size: 14px;
}
.streamer-profile .info { display: flex; flex-direction: column; gap: 16px; }
.profile-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.profile-stat {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 14px 16px;
}
.profile-stat .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.profile-stat .value { font-family: var(--f-display); font-size: 20px; margin-top: 4px; color: var(--text); }
.profile-stat .value.live { color: var(--accent); }
@media (max-width: 720px) {
    .streamer-profile { grid-template-columns: 1fr; }
}

/* ─── featured streamer (full-bleed band) ────────────────────────────── */
.featured-streamer-section {
    padding: 36px 0;
    background:
        radial-gradient(700px 200px at 30% 0%, rgba(59,130,255,0.18), transparent 70%),
        var(--bg-1);
    border-bottom: 1px solid var(--line);
}
.featured-card {
    display: grid; grid-template-columns: auto 1fr; gap: 32px;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--accent);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    box-shadow: 0 14px 40px var(--accent-glow-2);
    position: relative; overflow: hidden;
}
.featured-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-deep));
}
.featured-bust { display: grid; place-items: center; }
.featured-bust .avatar-bust { width: 130px; height: 195px; box-shadow: 0 14px 28px rgba(0,0,0,0.5); }
.featured-tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 10px;
    margin-bottom: 10px;
}
.featured-name { font-family: var(--f-display); font-size: 36px; line-height: 1; margin: 0; }
.featured-handle { font-family: var(--f-mono); color: var(--accent); font-size: 14px; margin-top: 4px; }
.featured-bio { color: var(--text-dim); margin: 12px 0 16px; line-height: 1.55; max-width: 60ch; }
.featured-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
    .featured-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    .featured-bust { display: none; }
    .featured-name { font-size: 28px; }
}

/* ─── achievements ───────────────────────────────────────────────────── */
.achievements-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px;
}
.achievement {
    display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
    padding: 12px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.achievement svg { width: 22px; height: 22px; }
.achievement.tier-bronze { border-color: rgba(180, 130, 80, 0.4); }
.achievement.tier-bronze svg { color: #c08a55; }
.achievement.tier-silver { border-color: rgba(160, 170, 200, 0.4); }
.achievement.tier-silver svg { color: #a8b3cc; }
.achievement.tier-gold   { border-color: rgba(255, 200, 80, 0.45); background: rgba(255, 200, 80, 0.04); }
.achievement.tier-gold   svg { color: #ffc94f; filter: drop-shadow(0 0 8px rgba(255, 200, 80, 0.35)); }
.ach-name { font-family: var(--f-display); font-size: 14px; color: var(--text); letter-spacing: 0.01em; }
.ach-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }

/* ─── top-supporters list ────────────────────────────────────────────── */
.supporter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.supporter-row {
    display: grid; grid-template-columns: 36px 1fr auto;
    align-items: center; gap: 12px;
    padding: 10px 12px;
    background: var(--bg-1);
    border-radius: var(--r);
}
.supporter-row .rank {
    font-family: var(--f-display);
    font-size: 18px; color: var(--text-mute);
    text-align: center;
}
.supporter-row:nth-child(1) .rank { color: var(--accent); }
.supporter-row:nth-child(2) .rank { color: var(--text-dim); }
.supporter-row:nth-child(3) .rank { color: var(--text-dim); }
.supporter-row .name { font-family: var(--f-mono); color: var(--text); }
.supporter-row .meta { color: var(--text-dim); font-size: 13px; }

/* ─── news / changelog list ──────────────────────────────────────────── */
.news-entry {
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 24px;
    display: flex; flex-direction: column; gap: 8px;
    transition: border-color 0.25s var(--easing), transform 0.25s var(--easing);
}
.news-entry:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-entry .meta {
    display: flex; gap: 10px; align-items: center;
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-mute);
}
.news-entry .meta .tag {
    padding: 2px 8px;
    border: 1px solid var(--line);
    color: var(--accent);
    border-radius: 999px;
}
.news-entry h3 {
    font-family: var(--f-display);
    font-size: 20px; letter-spacing: 0.01em;
    margin: 0;
}
.news-entry p { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0; }

/* ─── about page ─────────────────────────────────────────────────────── */
.prose { max-width: 64ch; }
.prose h2 {
    font-family: var(--f-display);
    font-size: 24px; letter-spacing: 0.01em;
    margin-top: 28px; margin-bottom: 8px;
}
.prose p { color: var(--text-dim); line-height: 1.65; margin-bottom: 12px; font-size: 15px; }
.prose ul { padding-left: 1.2em; }
.prose ul li { color: var(--text-dim); margin-bottom: 6px; font-size: 15px; line-height: 1.55; }

/* ─── reveal animation ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); animation: reveal 0.6s var(--easing) forwards; }
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }
.reveal:nth-child(5) { animation-delay: 0.45s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ─── analytics + admin extras ────────────────────────────────────────── */
.inline-range { display: flex; align-items: center; gap: 8px; }
.inline-range select {
    background: var(--bg-1); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 6px 10px; font: inherit;
}
.chart-wrap { width: 100%; overflow: hidden; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-empty { padding: 24px 0; text-align: center; }

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
@media (max-width: 760px) { .two-col-grid { grid-template-columns: 1fr; } }

.audit-table td.mono { font-family: var(--f-mono); font-size: 12px; }
.audit-table td code {
    background: var(--bg-1); border: 1px solid var(--line);
    border-radius: 6px; padding: 2px 6px; font-size: 12px;
}

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-ghost.danger { color: var(--danger); border-color: rgba(251, 77, 109, 0.3); }
.btn-ghost.danger:hover { background: rgba(251, 77, 109, 0.08); }
.danger { color: var(--danger); }

.pager {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin-top: 22px;
}

/* admin supporter list — reuse home styling but stretch to fill the card */
.supporter-list li {
    display: grid; grid-template-columns: 36px 1fr auto auto;
    align-items: center; gap: 12px;
    padding: 8px 12px; background: var(--bg-1); border-radius: var(--r);
}
.supporter-list .rank { font-family: var(--f-display); color: var(--text-mute); text-align: center; }
.supporter-list li:nth-child(1) .rank { color: var(--accent); }
.supporter-list .who { font-family: var(--f-mono); color: var(--text); }
.supporter-list .coins { font-weight: 600; color: var(--accent); }

/* ─── Runelith brand chrome ───────────────────────────────────────────── */

/* Topbar wordmark — sits where the cube SVG used to. */
.brand-wordmark {
    height: 36px;
    width: auto;
    display: block;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transition: filter 0.25s var(--easing), transform 0.25s var(--easing);
}
.top-brand:hover .brand-wordmark {
    filter: drop-shadow(0 4px 10px var(--accent-glow));
    transform: translateY(-1px);
}

/* Footer emblem replaces the old cube SVG. */
.footer-emblem {
    width: 28px; height: 28px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* The rune glyph (ᚱ) used as a punctuation flourish. */
.rune-glyph {
    color: var(--accent);
    font-weight: 700;
    margin: 0 6px;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Section divider — a horizontal line broken by a glowing rune. */
.rune-divider {
    display: flex; align-items: center; gap: 16px;
    margin: 56px auto;
    color: var(--text-mute);
}
.rune-divider::before, .rune-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rune-divider span {
    font-family: var(--f-display);
    font-size: 26px;
    color: var(--accent);
    text-shadow: 0 0 16px var(--accent-glow);
    letter-spacing: 0.05em;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.rune-hero {
    position: relative;
    padding: 96px 24px 72px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.rune-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(78, 192, 255, 0.18), transparent 60%),
        radial-gradient(600px 300px at 80% 80%, rgba(30, 127, 255, 0.10), transparent 60%);
    pointer-events: none;
}
.rune-hero-aurora {
    position: absolute; inset: -10% -5% auto -5%; height: 60%; z-index: 0;
    background:
        radial-gradient(60% 80% at 30% 50%, rgba(78, 192, 255, 0.08), transparent 70%),
        radial-gradient(50% 80% at 70% 40%, rgba(126, 176, 74, 0.05), transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}
.rune-hero-stack {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
    text-align: center; max-width: 880px;
}

.rune-status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-2);
    font-family: var(--f-mono);
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}
.rune-status-pill .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-mute);
}
.rune-status-pill.live { color: var(--accent); border-color: var(--accent); }
.rune-status-pill.live .dot {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.25); }
}

.rune-headline {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--text);
}
.rune-headline .ink {
    color: var(--accent);
    text-shadow: 0 0 22px var(--accent-glow);
}
.rune-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0;
}

/* IP bar — chunky stone-look pill */
.ip-bar {
    width: 100%; max-width: 540px;
    margin-top: 8px;
}
.ip-bar-inner {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px 12px 18px;
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), var(--shadow-card);
}
.ip-bar .ip-label {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--text-mute);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.ip-bar .ip {
    font-family: var(--f-mono);
    font-size: 22px;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
    flex: 1;
    text-align: left;
}
.ip-bar .copy-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    color: var(--text-dim);
    border-radius: var(--r);
    font-size: 13px; font-weight: 600;
    transition: border-color .2s var(--easing), color .2s var(--easing), background .2s var(--easing);
}
.ip-bar .copy-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--bg-2); }
.ip-bar .copy-btn .ic { width: 14px; height: 14px; }

.rune-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* ─── How it works ────────────────────────────────────────────────────── */
.how-section {
    padding: 48px 0;
}
.section-head {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
    margin-bottom: 32px;
}
.section-head .section-title {
    font-family: var(--f-display);
    font-size: clamp(26px, 3.5vw, 36px);
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 0;
}
.how-steps {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.how-step {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 18px;
    position: relative;
    transition: border-color .25s var(--easing), transform .25s var(--easing);
}
.how-step:hover { border-color: var(--accent); transform: translateY(-2px); }
.how-step .step-num {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 10px;
}
.how-step h3 {
    font-family: var(--f-display);
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--text);
    letter-spacing: 0.02em;
}
.how-step p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

/* ─── Explainer ───────────────────────────────────────────────────────── */
.explainer-section { padding: 32px 0 48px; }
.explainer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
}
.explainer-tag {
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 8px;
}
.explainer-copy .section-title {
    text-align: left;
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 14px;
}
.explainer-copy p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
.explainer-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.explainer-list li {
    color: var(--text-dim);
    font-size: 14px; line-height: 1.55;
    padding-left: 20px;
    position: relative;
}
.explainer-list li::before {
    content: 'ᚱ';
    position: absolute; left: 0; top: 0;
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 6px var(--accent-glow);
}
.explainer-list strong { color: var(--text); font-weight: 600; }

.explainer-art {
    display: grid; place-items: center;
}
.explainer-art img {
    width: 100%; max-width: 320px;
    image-rendering: pixelated;
    filter: drop-shadow(0 16px 30px rgba(0,0,0,0.6));
    transition: transform 0.5s var(--easing);
}
.explainer-art img:hover { transform: rotate(-1deg) scale(1.02); }

@media (max-width: 760px) {
    .explainer-grid { grid-template-columns: 1fr; }
    .rune-divider { margin: 36px auto; }
}

/* ─── auth shell (login + setup gate) ─────────────────────────────────── */
.auth-shell {
    display: grid; place-items: center;
    padding: 64px 20px;
    min-height: calc(100vh - var(--top-h) - 200px);
}
.auth-card {
    width: 100%; max-width: 480px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.auth-card::before {
    /* glowing rune accent on the top edge */
    content: ''; position: absolute; top: -1px; left: 16%; right: 16%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 12px var(--accent-glow);
}
.auth-emblem {
    width: 96px; height: 96px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
}
.auth-emblem img {
    width: 100%; height: 100%; image-rendering: pixelated;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
}
.auth-title {
    font-family: var(--f-display);
    font-size: clamp(24px, 3.4vw, 32px);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}
.auth-title .ink { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); }
.auth-sub {
    color: var(--text-dim); font-size: 14.5px; line-height: 1.5;
    margin: 0 0 24px;
}
.auth-fineprint {
    margin-top: 16px;
    color: var(--text-mute);
    font-size: 12px; line-height: 1.55;
}

/* Discord brand button — used both in topbar (small) and login card (big). */
.btn-discord {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #5865F2;
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s var(--easing), transform 0.15s var(--easing), box-shadow 0.2s var(--easing);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}
.btn-discord:hover { background: #4752C4; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45); }
.btn-discord svg { width: 22px; height: 22px; }

/* ─── /setup gate ─────────────────────────────────────────────────────── */
.setup-card .auth-emblem { width: 72px; height: 72px; margin-bottom: 12px; }

.setup-steps {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; gap: 8px; justify-content: center;
}
.setup-steps li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    color: var(--text-mute);
    font-family: var(--f-mono);
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.setup-steps li .num {
    display: inline-grid; place-items: center;
    width: 18px; height: 18px;
    background: var(--bg-3);
    color: var(--text-dim);
    border-radius: 50%; font-size: 11px;
}
.setup-steps li.active   { color: var(--accent); border-color: var(--accent); }
.setup-steps li.active .num { background: var(--accent); color: var(--bg-0); }
.setup-steps li.done     { color: var(--ok); border-color: rgba(74, 222, 128, 0.4); }
.setup-steps li.done .num { background: var(--ok); color: var(--bg-0); }

.setup-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.setup-form label { font-weight: 600; font-size: 13px; color: var(--text-dim); display: block; }
.setup-form input {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    color: var(--text);
    border-radius: var(--r);
    font-family: var(--f-mono);
    font-size: 16px;
    transition: border-color 0.15s var(--easing);
}
.setup-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow-2); }
.setup-form .btn { margin-top: 4px; }

.setup-codebox {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 16px;
}
.setup-codebox .setup-mc {
    flex: 1;
    font-family: var(--f-mono);
    font-size: 18px;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
    text-align: left;
}
.setup-codebox p { margin: 0; }

.setup-instructions {
    text-align: left;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 16px 14px 32px;
    margin-bottom: 18px;
}
.setup-instructions ol { margin: 0; padding-left: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.7; }
.setup-instructions code { color: var(--accent); }

.setup-cancel { margin-top: 18px; }
.link-btn {
    background: none; border: 0; padding: 0;
    color: inherit; cursor: pointer;
    font: inherit; text-decoration: underline;
}

/* ─── installer page ──────────────────────────────────────────────────── */
.install-page { background: var(--bg-0); color: var(--text); min-height: 100vh; padding: 40px 20px; }
.install-shell { max-width: 720px; margin: 0 auto; }
.install-card {
    background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 40px; box-shadow: var(--shadow-soft); position: relative;
}
.install-card::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.install-brand { text-align: center; margin-bottom: 32px; }
.install-brand .brand-mark {
    font-family: var(--f-display);
    font-size: 32px; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--accent);
}

/* ─── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .top-chip-name { display: none; }
    .form-grid.two-col { grid-template-columns: 1fr; }
    .page { padding: 24px 16px 60px; }
    .portal-card { grid-template-columns: 1fr; min-height: auto; }
    .portal-left { border-right: 0; border-bottom: 1px solid var(--line); }
    .hero-large { padding: 36px 20px 24px; }
    /* Hide side tooltips on touch — would stick after a tap. */
    .side-link::after { display: none; }
}
