/* ══════════════════════════════════════════════════════
   KENTAURUS — Design System
   Concept: Arcade Brutalist
   Fonts: Bebas Neue · Space Grotesk · DM Mono
   ══════════════════════════════════════════════════════ */

/* ─── TOKEN: DARK (DEFAULT) ─── */
:root {
    --bg:        #0A0908;
    --surface:   #111110;
    --card:      #161614;
    --fg:        #EDE8D8;
    --accent:    #D4FF00;
    --accent-bg: rgba(212, 255, 0, 0.08);
    --accent-bd: rgba(212, 255, 0, 0.22);
    --muted:     #5A5750;
    --border:    #1E1D1B;
    --border-2:  #2C2B28;
    --shadow:    rgba(0, 0, 0, 0.6);
    --logo-filter: brightness(6);
    --grain-opacity: 0.028;
    --font-display: 'Oswald', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;
    --font-mono:    'DM Mono', monospace;
    --radius:   2px;
    --radius-md: 4px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── TOKEN: LIGHT ─── */
[data-theme="light"] {
    --bg:        #F7F3EA;
    --surface:   #EDE8DB;
    --card:      #E4DFD0;
    --fg:        #1A1814;
    --accent:    #6B7200;
    --accent-bg: rgba(107, 114, 0, 0.08);
    --accent-bd: rgba(107, 114, 0, 0.22);
    --muted:     #7A7568;
    --border:    #D4CEBC;
    --border-2:  #BEB7A4;
    --shadow:    rgba(0, 0, 0, 0.15);
    --logo-filter: brightness(0.25);
    --grain-opacity: 0.018;
}

/* ─── TRANSITION ON THEME SWITCH ─── */
html {
    transition: background-color 0.35s var(--ease-out),
                color 0.35s var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none; /* replaced by custom cursor */
}
/* Force cursor:none on ALL elements (fine pointer) so cursor:pointer doesn't leak native cursor */
@media (pointer: fine) { *, *::before, *::after { cursor: none !important; } }
@media (pointer: coarse) { *, *::before, *::after { cursor: auto !important; } }

@media (pointer: fine) {
    :where(
        input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
        textarea,
        [contenteditable="true"]
    ) {
        cursor: text !important;
        caret-color: currentColor;
    }

    :where(
        select,
        input[type="color"],
        input[type="file"],
        input[type="date"],
        input[type="datetime-local"],
        input[type="month"],
        input[type="time"],
        input[type="week"]
    ) {
        cursor: auto !important;
    }

    body.using-native-cursor .cursor-dot,
    body.using-native-cursor .cursor-ring {
        opacity: 0 !important;
    }
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: var(--grain-opacity);
    pointer-events: none;
    z-index: 9000;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
}

/* ─── CUSTOM CURSOR (crosshair dot + trailing ring) ─── */
.cursor-dot {
    position: fixed;
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: 0; left: 0;
    will-change: transform;
    opacity: 0;
    box-shadow: 0 0 0 2px rgba(212,255,0,0.25),
                0 0 12px 2px rgba(212,255,0,0.55),
                0 0 28px 4px rgba(212,255,0,0.2);
    transition: width 0.15s var(--ease-out),
                height 0.15s var(--ease-out),
                box-shadow 0.2s,
                background 0.2s;
}
.cursor-dot.visible { opacity: 1; }
.cursor-ring {
    position: fixed;
    width: 40px; height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    top: 0; left: 0;
    will-change: transform;
    opacity: 0;
    box-shadow: 0 0 8px rgba(212,255,0,0.3),
                inset 0 0 8px rgba(212,255,0,0.05);
    transition: width 0.38s var(--ease-out),
                height 0.38s var(--ease-out),
                border-color 0.2s,
                box-shadow 0.25s;
}
.cursor-ring.visible { opacity: 0.75; }
/* cross ticks inside ring */
.cursor-ring::before,
.cursor-ring::after {
    content: '';
    position: absolute;
    background: var(--accent);
    opacity: 0.6;
    border-radius: 1px;
    transition: opacity 0.2s;
}
.cursor-ring::before {
    width: 6px; height: 1.5px;
    top: 50%; left: -9px;
    transform: translateY(-50%);
    box-shadow: 43px 0 0 var(--accent);
}
.cursor-ring::after {
    width: 1.5px; height: 6px;
    left: 50%; top: -9px;
    transform: translateX(-50%);
    box-shadow: 0 43px 0 var(--accent);
}
.cursor-ring.hovering {
    width: 58px; height: 58px;
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(212,255,0,0.5),
                inset 0 0 12px rgba(212,255,0,0.08);
}
.cursor-ring.visible.hovering { opacity: 1; }
.cursor-ring.pressing {
    width: 26px; height: 26px;
    box-shadow: 0 0 20px rgba(212,255,0,0.8);
}
.cursor-ring.visible.pressing { opacity: 1; }
.cursor-dot.pressing {
    width: 6px; height: 6px;
    box-shadow: 0 0 20px 4px rgba(212,255,0,0.9);
}
[data-theme="light"] .cursor-dot {
    box-shadow: 0 0 0 2px rgba(107,114,0,0.2),
                0 0 10px 2px rgba(107,114,0,0.4);
}
[data-theme="light"] .cursor-ring {
    box-shadow: 0 0 6px rgba(107,114,0,0.25);
}

/* ─── SCROLL REVEALS ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view {
    opacity: 1;
    transform: none;
}

/* ─── PAGE-LOAD STAGGER (hero, no observer needed) ─── */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}
@keyframes reveal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes glow-accent {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 255, 0, 0.35)); }
    50%       { filter: drop-shadow(0 0 28px rgba(212, 255, 0, 0.7)); }
}
@keyframes char-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
@keyframes scan {
    from { transform: translateX(-100%); }
    to   { transform: translateX(400%); }
}

.anim-float  { animation: float 3.5s ease-in-out infinite; }
.anim-glow   { animation: glow-accent 2.5s ease-in-out infinite; }

/* Split text chars */
.split-chars .ch {
    display: inline-block;
    opacity: 0;
    animation: char-in 0.5s var(--ease-out) forwards;
}

/* ─── SITE LAYOUT ─── */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site > main { flex: 1; padding-top: 60px; }

/* ─── NAVIGATION ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: rgba(10, 9, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s;
}
[data-theme="light"] .nav {
    background: rgba(247, 243, 234, 0.88);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.14em;
    color: var(--fg);
    transition: color 0.2s, letter-spacing 0.3s;
}
.nav-brand:hover { color: var(--accent); letter-spacing: 0.18em; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0.85rem; right: 0.85rem;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.9rem !important;
    transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── THEME TOGGLE ─── */
.theme-toggle {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-left: 0.8rem;
}
.theme-btn {
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    cursor: none;
    padding: 0 0.7rem;
    height: 28px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.theme-btn:last-child { border-right: none; }
.theme-btn:hover { color: var(--fg); background: var(--card); }
.theme-btn.active {
    background: var(--fg);
    color: var(--bg);
    font-weight: 700;
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.9rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius);
    cursor: none;
    will-change: transform;
    transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-primary--disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
    filter: grayscale(0.4);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.9rem;
    background: transparent;
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    cursor: none;
    will-change: transform;
    transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--fg); }

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.9rem;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius);
    cursor: none;
    will-change: transform;
    transition: opacity 0.2s;
}
.btn-dark:hover { opacity: 0.82; }

/* ─── SECTION DEFAULTS ─── */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -0.01em;
    color: var(--fg);
    line-height: 1;
    white-space: pre-line;
}

.section-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 520px;
    margin-top: 1.2rem;
}

/* ══════════════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Subtle grid background */
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
}
/* Radial vignette to fade grid at center */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--bg) 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) 2rem clamp(2rem, 4vw, 3rem);
    max-width: 900px;
    width: 100%;
}

/* Logo with parallax target */
.hero-logo-wrap {
    width: min(700px, 88vw);
    margin-bottom: -1rem; /* compensate transparent padding in PNG */
}
.hero-logo {
    width: 100%;
    filter: var(--logo-filter);
    display: block;
    transition: filter 0.35s;
    will-change: transform;
}

.hero-text-content {
    will-change: transform;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.8vw, 1.15rem);
    letter-spacing: 0.32em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: reveal-up 0.6s 0.2s var(--ease-out) forwards;
}

.hero-divider {
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 1.8rem;
    opacity: 0;
    animation: reveal-in 0.5s 0.35s var(--ease-out) forwards;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: reveal-up 0.7s 0.45s var(--ease-out) forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: reveal-up 0.6s 0.6s var(--ease-out) forwards;
}

/* Scan line decoration on hero */
.hero-scan {
    position: absolute;
    bottom: 5rem;
    left: 0; right: 0;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    animation: reveal-in 0.6s 1.2s var(--ease-out) forwards;
}
.hero-scan::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 3.5s 1.5s linear infinite;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: reveal-in 0.6s 1s var(--ease-out) forwards;
}
.scroll-arrow {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ─── STATS STRIP ─── */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    divide-x: 1px solid var(--border);
}
.stat-block {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: background 0.2s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: var(--card); }
.stat-val {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.04em;
    color: var(--accent);
    line-height: 1;
}
.stat-key {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ─── FEATURED GAME ─── */
.featured {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}
.featured-grid:hover { border-color: var(--border-2); }

.featured-visual {
    background: linear-gradient(145deg, #0f2a42 0%, #1a4a72 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}
.featured-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(212,255,0,0.07) 0%, transparent 60%);
}
/* Animated scan line in visual */
.featured-visual::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    animation: scan 4s 2s linear infinite;
}
.featured-bird {
    width: 180px;
    z-index: 1;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
}
.featured-platform-tag {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius);
    z-index: 2;
}

.featured-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    border-left: 1px solid var(--border);
    background: var(--bg);
}
.game-number {
    font-family: var(--font-display);
    font-size: 7rem;
    color: var(--border-2);
    line-height: 1;
    margin-bottom: -1rem;
    user-select: none;
    transition: color 0.3s;
}
.featured-grid:hover .game-number { color: var(--border); }

.game-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.game-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.game-desc {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.78;
    margin-bottom: 2rem;
}
.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.gs-item { display: flex; flex-direction: column; gap: 0.2rem; }
.gs-num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.04em;
    line-height: 1;
}
.gs-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ─── STUDIO TEASER ─── */
.studio-teaser { position: relative; }
.studio-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
}
.values-list { display: flex; flex-direction: column; }
.value-row {
    display: flex;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.3s var(--ease-out);
}
.value-row:first-child { border-top: 1px solid var(--border); }
.value-row:hover { padding-left: 0.5rem; }
.vr-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    padding-top: 0.25rem;
    flex-shrink: 0;
    width: 1.8rem;
}
.vr-body h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}
.value-row:hover .vr-body h4 { color: var(--accent); }
.vr-body p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ─── CTA STRIP ─── */
.cta-strip {
    background: var(--accent);
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}
.cta-strip::after {
    content: 'KENTAURUS';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 14rem);
    letter-spacing: 0.08em;
    color: rgba(0,0,0,0.06);
    pointer-events: none;
    white-space: nowrap;
}
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 6rem);
    letter-spacing: 0.06em;
    color: var(--bg);
    line-height: 0.95;
}

/* ══════════════════════════════════════════════════════
   GAMES PAGE
   ══════════════════════════════════════════════════════ */

.page-header {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    letter-spacing: 0.06em;
    line-height: 1;
}
.page-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 320px;
}

.game-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: border-color 0.3s;
}
.game-hero-card:hover { border-color: var(--border-2); }

.ghc-visual {
    background: linear-gradient(145deg, #0f2a42, #1a4a72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    min-height: 440px;
}
.ghc-visual::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: scan 5s 1s linear infinite;
}
.ghc-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212,255,0,0.07) 0%, transparent 60%);
}
.ghc-bird {
    width: 170px;
    z-index: 1;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.5));
}

.ghc-info {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
    background: var(--surface);
}

.game-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-bd);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    width: fit-content;
}
.game-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.ghc-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.ghc-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.78;
    margin-bottom: 2rem;
}
.ghc-meta {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.ghc-m-item { display: flex; flex-direction: column; gap: 0.15rem; }
.ghc-m-val {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    line-height: 1;
}
.ghc-m-key {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Promo code reveal */
.promo-reveal {
    background: var(--accent-bg);
    border: 1px solid var(--accent-bd);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.8rem;
    margin-bottom: 2rem;
}
.promo-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.promo-code {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    color: var(--fg);
    display: block;
    margin-bottom: 0.4rem;
    word-break: break-all;
}
.promo-note {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Shop grid */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}
.shop-item {
    background: var(--surface);
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    transition: background 0.2s;
}
.shop-item:hover { background: var(--card); }
.shop-item img {
    width: 60px; height: 60px;
    object-fit: contain;
}
.shop-item-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--fg);
}
.shop-item-price {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.shop-item-price.free { color: #4ade80; }
.shop-item-price.promo { color: var(--accent); }

/* Skins row */
.skins-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.skin-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s var(--ease-out);
}
.skin-thumb:hover { transform: translateY(-4px); }
.skin-thumb img {
    width: 56px; height: 56px;
    object-fit: contain;
}
.skin-thumb span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    text-transform: uppercase;
}

/* Coming soon */
.coming-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.coming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.coming-card {
    background: var(--surface);
    padding: 2.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}
.coming-card:hover { background: var(--card); }
.coming-card::after {
    content: '?';
    position: absolute;
    right: 1.5rem;
    bottom: -0.5rem;
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--border);
    letter-spacing: 0;
    transition: color 0.3s;
}
.coming-card:hover::after { color: var(--border-2); }
.coming-idx {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}
.coming-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: var(--border-2);
}
.coming-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius);
    width: fit-content;
}

/* ══════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════ */

.about-intro {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}
.about-big {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 7rem);
    letter-spacing: 0.06em;
    line-height: 0.93;
    color: var(--fg);
    margin-bottom: 2rem;
}
.about-body {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.82;
}
.about-body p { margin-bottom: 1.1rem; }
.about-body strong { color: var(--fg); font-weight: 600; }

.about-nums {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 3rem;
}
.an-cell {
    background: var(--surface);
    padding: 2.2rem 1.8rem;
    transition: background 0.2s;
}
.an-cell:hover { background: var(--card); }
.an-val {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}
.an-label {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Principles */
.principles { padding: clamp(4rem, 8vw, 7rem) 0; }
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 3rem;
}
.pc {
    background: var(--surface);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: background 0.25s;
}
.pc:hover { background: var(--card); }
.pc::after {
    content: attr(data-n);
    position: absolute;
    right: 1rem; bottom: -1rem;
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--border);
    letter-spacing: 0;
    transition: color 0.3s, bottom 0.3s;
}
.pc:hover::after { color: var(--border-2); bottom: -0.5rem; }
.pc-n {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
}
.pc h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}
.pc p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.7;
}

/* Tech */
.tech-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2.5rem;
}
.tech-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--border-2);
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
    cursor: default;
}
.tech-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════ */

.contact-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
}
.contact-big {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.06em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
}
.contact-lead {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 360px;
    margin-bottom: 3rem;
}
.contact-links { display: flex; flex-direction: column; }
.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s var(--ease-out);
}
.contact-link:first-child { border-top: 1px solid var(--border); }
.contact-link:hover { color: var(--accent); padding-left: 0.4rem; }
.contact-arr { transition: transform 0.2s var(--ease-out); }
.contact-link:hover .contact-arr { transform: translateX(4px); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-input, .form-textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
    cursor: none;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    background: var(--card);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-success {
    background: var(--accent-bg);
    border: 1px solid var(--accent-bd);
    border-radius: var(--radius);
    padding: 1rem;
    font-size: 0.88rem;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.8rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.14em;
}
.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.btn-privacy {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    padding: 0.38rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-privacy:hover { border-color: var(--border-2); color: var(--fg); }

/* ══════════════════════════════════════════════════════
   PRIVACY MODAL
   ══════════════════════════════════════════════════════ */

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadein 0.2s ease;
}
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: slide-up 0.3s var(--ease-out);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 2rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.06em;
}
.modal-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
    cursor: none;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}
.modal-close:hover { border-color: var(--border-2); color: var(--fg); }
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    line-height: 1.78;
    color: var(--muted);
    font-size: 0.9rem;
}
.modal-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--fg);
    margin: 1.5rem 0 0.5rem;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 0.7rem; }
.modal-body a { color: var(--accent); text-decoration: underline; }
.modal-body strong { color: var(--fg); }
.policy-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════
   LANGUAGE TOGGLE (nav)
   ══════════════════════════════════════════════════════ */

.lang-toggle {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-left: 0.5rem;
}
.lang-btn {
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    cursor: none;
    padding: 0 0.65rem;
    height: 28px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover { color: var(--fg); background: var(--card); }
.lang-btn.active {
    background: var(--fg);
    color: var(--bg);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   LANGUAGE SELECTION MODAL (first visit)
   ══════════════════════════════════════════════════════ */

.lang-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
}
.lang-modal-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 50%, var(--bg) 35%, transparent 100%);
    pointer-events: none;
}
.lang-modal {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: slide-up 0.5s var(--ease-out);
}
.lang-modal-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.lang-modal-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    letter-spacing: 0.06em;
    line-height: 0.95;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.lang-modal-title span {
    display: block;
    color: var(--muted);
    font-size: 0.55em;
}
.lang-modal-sub {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3rem;
}
.lang-options {
    display: flex;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.lang-option {
    flex: 1;
    background: var(--surface);
    border: none;
    cursor: none;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.2s, transform 0.2s var(--ease-out);
}
.lang-option:hover { background: var(--card); transform: translateY(-2px); }
.lo-code {
    font-family: var(--font-display);
    font-size: 3.5rem;
    letter-spacing: 0.08em;
    color: var(--accent);
    line-height: 1;
}
.lo-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   POPPY BIRD DEDICATED PAGE
   ══════════════════════════════════════════════════════ */

.pb-hero {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.pb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.4;
    pointer-events: none;
}
.pb-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.pb-hero-left { display: flex; flex-direction: column; gap: 1.2rem; }
.pb-game-num {
    font-family: var(--font-display);
    font-size: 6rem;
    letter-spacing: 0.04em;
    color: var(--border-2);
    line-height: 1;
    margin-bottom: -0.8rem;
}
.pb-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    letter-spacing: -0.01em;
    line-height: 0.95;
}
.pb-genre {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}
.pb-lead {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.78;
    max-width: 500px;
}
.pb-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.pb-visual {
    position: relative;
    background: linear-gradient(145deg, #0f2a42 0%, #1a4a72 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
}
.pb-visual::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: scan 4s 1s linear infinite;
}
.pb-visual-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(212,255,0,0.08) 0%, transparent 60%);
}
.pb-platform-tag {
    position: absolute;
    top: 1.5rem; left: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius);
    z-index: 2;
}
.pb-bird-hero {
    width: 200px;
    z-index: 1;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
    position: relative;
}
.pb-stats {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.pb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.pb-stat {
    padding: 2.2rem 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: background 0.2s;
}
.pb-stat:last-child { border-right: none; }
.pb-stat:hover { background: var(--card); }
.pb-stat-val {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: 0.04em;
    color: var(--accent);
    line-height: 1;
}
.pb-stat-key {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.pb-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
}
.pb-section-dark { background: var(--surface); }
.section-header { margin-bottom: 3.5rem; }
.section-header .section-title { margin-top: 0.6rem; white-space: pre-line; }

.pb-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.pb-step {
    background: var(--surface);
    padding: 3rem 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: background 0.2s;
}
.pb-step:hover { background: var(--card); }
.pb-step-num {
    font-family: var(--font-display);
    font-size: 4rem;
    letter-spacing: 0.04em;
    color: var(--border-2);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}
.pb-step:hover .pb-step-num { color: var(--accent); }
.pb-step-body h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.pb-step-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

.pb-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.pb-shop-card {
    background: var(--bg);
    display: grid;
    grid-template-columns: 140px 1fr;
    transition: background 0.2s;
}
.pb-shop-card--gold { position: relative; }
.pb-shop-card--gold::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--accent-bd);
    pointer-events: none;
}
.pb-shop-card:hover { background: var(--card); }
.pb-shop-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}
.pb-shop-visual--base { background: linear-gradient(145deg, #1a2e1a, #0d1a0d); }
.pb-shop-visual--cool { background: linear-gradient(145deg, #1a1a2e, #0d0d1a); }
.pb-shop-visual--ny   { background: linear-gradient(145deg, #1a0d0d, #2e1a1a); }
.pb-shop-visual--gold { background: linear-gradient(145deg, #1a1400, #2e2600); }
.pb-shop-bird { width: 80px; height: 80px; object-fit: contain; }
.pb-shop-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid var(--border);
}
.pb-shop-idx {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--accent);
}
.pb-shop-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    line-height: 1;
}
.pb-shop-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.65; flex: 1; }
.pb-shop-price {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: auto;
}
.pb-shop-price--free { color: #4ade80; }

.pb-promo {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}
.pb-promo-left { display: flex; flex-direction: column; gap: 1rem; }
.pb-promo-desc { font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 400px; }
.pb-promo-right { display: flex; flex-direction: column; gap: 2rem; }
.pb-promo-bird {
    width: 100px;
    align-self: center;
    filter: drop-shadow(0 10px 30px rgba(212,255,0,0.3));
}

/* ══════════════════════════════════════════════════════
   MINING SIMULATOR PAGE
   ══════════════════════════════════════════════════════ */

.ms-hero {
    padding: clamp(4rem, 8vw, 7rem) 0;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--bg) 0%, #050a14 100%);
    position: relative;
    overflow: hidden;
}
.ms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212,255,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,255,0,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.ms-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ms-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent-bd);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius);
    width: fit-content;
    margin-top: 0.5rem;
}
.ms-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-accent 1.5s ease-in-out infinite;
}
@keyframes pulse-accent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}
.ms-visual {
    background: #050a14;
    border: 1px solid rgba(212,255,0,0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ms-visual-inner { padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.ms-ticker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
}
.ms-ticker-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.4); }
.ms-ticker-val { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.04em; color: #fff; }
.ms-ticker-chg { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.ms-ticker-up { color: #4ade80; }
.ms-hashrate { display: flex; flex-direction: column; gap: 0.2rem; }
.ms-hr-label { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; color: rgba(212,255,0,0.6); }
.ms-hr-val { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.04em; color: var(--accent); line-height: 1; }
.ms-hr-unit { font-size: 0.5em; color: rgba(212,255,0,0.6); }
.ms-miners-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
}
.ms-miner-slot { background: #0a1628; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.2rem; }
.ms-miner-slot--active { background: #0d1f38; }
.ms-miner-icon { font-size: 0.9rem; color: var(--accent); line-height: 1; }
.ms-miner-name { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
.ms-miner-hash { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; color: rgba(212,255,0,0.6); }
.ms-balances { display: flex; gap: 1rem; flex-wrap: wrap; }
.ms-balance-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
}
.ms-bal-label { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.35); }
.ms-bal-val { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em; color: #fff; }

.ms-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 3rem;
}
.ms-feature { background: var(--surface); padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: 1rem; transition: background 0.2s; }
.ms-feature:hover { background: var(--card); }
.ms-feat-icon { font-size: 1.8rem; }
.ms-feat-body h3 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.ms-feat-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.ms-feat-body code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); background: var(--accent-bg); padding: 0.1em 0.4em; border-radius: 2px; }

.ms-hw-grid { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-top: 3rem; }
.ms-hw-header, .ms-hw-row { display: grid; grid-template-columns: 60px 1fr 1fr 1fr; }
.ms-hw-header { background: var(--surface); border-bottom: 1px solid var(--border-2); padding: 0.9rem 1.5rem; }
.ms-hw-header span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ms-hw-row { background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.9rem 1.5rem; transition: background 0.15s; }
.ms-hw-row:last-child { border-bottom: none; }
.ms-hw-row:hover { background: var(--surface); }
.ms-hw-row span { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--fg); }
.ms-hw-row--accent { background: var(--accent-bg); border-color: var(--accent-bd); }
.ms-hw-row--accent span { color: var(--accent); }

.ms-cases {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.ms-case { background: var(--surface); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; transition: background 0.2s; }
.ms-case:hover { background: var(--card); }
.ms-case-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.ms-case h4 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; }
.ms-case p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

.ms-rarities { margin-top: 1rem; }
.ms-rarity-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.ms-rarity { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: var(--radius); border: 1px solid; }
.ms-r-common    { color: #9ca3af; border-color: #374151; background: rgba(156,163,175,0.06); }
.ms-r-uncommon  { color: #4ade80; border-color: #166534; background: rgba(74,222,128,0.06); }
.ms-r-rare      { color: #60a5fa; border-color: #1e3a8a; background: rgba(96,165,250,0.06); }
.ms-r-epic      { color: #c084fc; border-color: #6b21a8; background: rgba(192,132,252,0.06); }
.ms-r-legendary { color: #fbbf24; border-color: #92400e; background: rgba(251,191,36,0.08); }

.ms-coming-banner {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: clamp(4rem, 8vw, 6rem) 0;
}
.ms-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.ms-banner-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -0.01em; line-height: 0.95; white-space: pre-line; margin: 0.6rem 0 1rem; }
.ms-banner-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.7; max-width: 400px; }

.ms-hero-icon { font-family: var(--font-display); font-size: 6rem; color: rgba(212,255,0,0.25); line-height: 1; z-index: 1; position: relative; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — new pages
   ══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .pb-hero-inner  { grid-template-columns: 1fr; gap: 3rem; }
    .pb-visual      { min-height: 280px; }
    .pb-stats-grid  { grid-template-columns: 1fr 1fr; }
    .pb-stat:nth-child(2) { border-right: none; }
    .pb-steps       { grid-template-columns: 1fr; }
    .pb-shop-grid   { grid-template-columns: 1fr; }
    .pb-promo       { grid-template-columns: 1fr; gap: 2rem; }
    .ms-hero-inner  { grid-template-columns: 1fr; gap: 3rem; }
    .ms-features    { grid-template-columns: 1fr; }
    .ms-cases       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .pb-stats-grid  { grid-template-columns: 1fr 1fr; }
    .pb-stat:nth-child(even) { border-right: none; }
    .pb-shop-card   { grid-template-columns: 100px 1fr; }
    .pb-shop-visual { min-height: 120px; }
    .ms-cases       { grid-template-columns: 1fr; }
    .ms-hw-header, .ms-hw-row { grid-template-columns: 50px 1fr 1fr; }
    .ms-hw-header span:last-child, .ms-hw-row span:last-child { display: none; }
    .ms-features    { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   MISSING GRID CHILD CLASSES
   ══════════════════════════════════════════════════════ */

.pb-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ms-hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
}
.ms-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════
   NAV UTILITIES
   ══════════════════════════════════════════════════════ */

/* Muted nav link that still shows active state */
.nav-dim { color: var(--muted) !important; }
.nav-links a.nav-dim.active { color: var(--fg) !important; }

/* ══════════════════════════════════════════════════════
   MOBILE HAMBURGER BUTTON
   ══════════════════════════════════════════════════════ */

.nav-hamburger {
    display: none; /* shown via @media (max-width: 768px) above */
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--border-2); }
.hb-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--fg);
    transition: transform 0.35s var(--ease-out), opacity 0.2s;
    transform-origin: center;
}
.nav-hamburger.open .hb-bar:nth-child(1) { transform: rotate(45deg) translate(0, 6.5px); }
.nav-hamburger.open .hb-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .hb-bar:nth-child(3) { transform: rotate(-45deg) translate(0, -6.5px); }

/* ══════════════════════════════════════════════════════
   MOBILE FULL-SCREEN MENU (Arcade Brutalist)
   ══════════════════════════════════════════════════════ */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 490; /* nav stays on top at z-index: 500 */
    background: var(--bg);
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}
.mobile-menu.open { transform: none; }
.mobile-menu::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 110% 80% at 50% 25%, var(--bg) 35%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
/* Scan line decoration */
.mobile-menu::after {
    content: '';
    position: fixed;
    bottom: 30%;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: scan 5s 0.5s linear infinite;
}

.mobile-menu-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 80px 2rem 2rem; /* 80px to clear the fixed nav */
}
.mobile-menu-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Nav links */
.mobile-nav-links { display: flex; flex-direction: column; flex: 1; }
.mobile-nav-sep {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    opacity: 0;
    transform: translateX(30px);
    transition: padding-left 0.25s var(--ease-out);
}
.mobile-nav-link:first-child { border-top: 1px solid var(--border); }
.mobile-nav-link:hover,
.mobile-nav-link:hover .mnl-num,
.mobile-nav-link:hover .mnl-name,
.mobile-nav-link:hover .mnl-arr { color: var(--fg); }
.mobile-nav-link:hover { padding-left: 0.5rem; }
.mobile-nav-link.active .mnl-name { color: var(--fg); }

/* Staggered reveal when menu opens */
.mobile-menu.open .mobile-nav-link {
    animation: reveal-from-right 0.45s var(--ease-out) forwards;
}
.mobile-menu.open .mobile-nav-link:nth-child(1)  { animation-delay: 0.10s; }
.mobile-menu.open .mobile-nav-link:nth-child(2)  { animation-delay: 0.16s; }
.mobile-menu.open .mobile-nav-link:nth-child(3)  { animation-delay: 0.22s; }
.mobile-menu.open .mobile-nav-link:nth-child(4)  { animation-delay: 0.28s; }
.mobile-menu.open .mobile-nav-link:nth-child(5)  { animation-delay: 0.34s; }
.mobile-menu.open .mobile-nav-link:nth-child(6)  { animation-delay: 0.40s; }
.mobile-menu.open .mobile-nav-link:nth-child(7)  { animation-delay: 0.46s; }

.mnl-num {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    flex-shrink: 0;
    width: 1.8rem;
    transition: color 0.2s;
}
.mnl-name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--muted);
    flex: 1;
    transition: color 0.2s;
}
.mnl-arr {
    font-size: 1rem;
    color: var(--border-2);
    transition: transform 0.2s var(--ease-out), color 0.2s;
}
.mobile-nav-link:hover .mnl-arr { transform: translateX(4px); }
.mobile-nav-link--accent .mnl-name { color: var(--accent); }
.mobile-nav-link--accent:hover .mnl-name { color: var(--accent); opacity: 0.8; }
.mobile-nav-link--dim { opacity: 0; } /* reanimated by stagger */

/* Mobile menu footer */
.mobile-menu-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
/* Override hide rules — always show these inside mobile menu */
.mobile-menu .lang-toggle,
.mobile-menu .theme-toggle {
    display: flex !important;
    height: 36px;
}
.mobile-menu .lang-btn,
.mobile-menu .theme-btn {
    padding: 0 1.1rem;
    font-size: 0.7rem;
    height: 36px;
}
.mobile-menu-copy {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
}

@keyframes reveal-from-right {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════
   NOT FOUND PAGE
   ══════════════════════════════════════════════════════ */

.notfound-section {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
}
.notfound-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--bg) 30%, transparent 100%);
    pointer-events: none;
}
.notfound-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    animation: slide-up 0.5s var(--ease-out);
}
.nf-code {
    font-family: var(--font-display);
    font-size: clamp(7rem, 20vw, 16rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--border-2);
    display: block;
    margin-bottom: -1rem;
}
.nf-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.06em;
    color: var(--fg);
    margin-bottom: 1rem;
}
.nf-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════
   CONTACT PAGE (no form version)
   ══════════════════════════════════════════════════════ */

.contact-email-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 2rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    transition: opacity 0.2s;
}
.contact-email-cta:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════
   BLAZOR INTERNALS
   ══════════════════════════════════════════════════════ */

#blazor-error-ui {
    background: #7f1d1d;
    color: #fef2f2;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 0.6rem 2rem;
    display: none;
    z-index: 999;
    font-size: 0.85rem;
}
#blazor-error-ui .dismiss { float: right; }

/* ─── BLAZOR RECONNECT MODAL ─── */
#components-reconnect-modal {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(8px) !important;
}
#components-reconnect-modal.components-reconnect-hide { display: none !important; }
#components-reconnect-modal > div,
#components-reconnect-modal .components-reconnect-dialog,
#components-reconnect-modal .modal-content {
    background: var(--surface) !important;
    border: 1px solid var(--border-2) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6) !important;
    padding: 2.5rem 2rem !important;
    text-align: center !important;
    max-width: 300px !important;
    width: 100% !important;
    color: var(--fg) !important;
}
/* Spinner SVG circle */
#components-reconnect-modal circle,
#components-reconnect-modal svg circle { stroke: var(--accent) !important; fill: none !important; }
/* All text inside reconnect modal */
#components-reconnect-modal p,
#components-reconnect-modal span,
#components-reconnect-modal .lead {
    color: var(--muted) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
}
/* Hide bootstrap modal wrappers if present */
#components-reconnect-modal .modal-backdrop,
#components-reconnect-modal .modal-dialog {
    display: none !important;
}
#components-reconnect-modal .modal-footer .btn {
    background: var(--accent) !important;
    color: var(--bg) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    padding: 0.5rem 1.2rem !important;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 6rem; height: 6rem;
    inset: 22vh 0 auto 0;
    margin: 0 auto;
}
.loading-progress circle {
    fill: none;
    stroke: var(--border-2);
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    color: var(--muted);
    inset: calc(22vh + 3.5rem) 0 auto 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}
.loading-progress-text::after { content: var(--blazor-load-percentage-text, "LOADING"); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .studio-inner { gap: 4rem; }
}

@media (max-width: 900px) {
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat-block:nth-child(2) { border-right: none; }
    .stat-block:nth-child(3) { border-top: 1px solid var(--border); }

    .featured-grid { grid-template-columns: 1fr; }
    .featured-visual { min-height: 280px; }
    .featured-info { border-left: none; border-top: 1px solid var(--border); padding: 3rem 2rem; }

    .studio-inner { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }

    .game-hero-card { grid-template-columns: 1fr; }
    .ghc-visual { min-height: 260px; }
    .ghc-info { border-left: none; border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }

    .coming-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .principles-grid { grid-template-columns: 1fr; }

    .contact-layout { grid-template-columns: 1fr; gap: 3.5rem; }
    .page-header .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 768px) {
    /* Desktop nav links hidden — hamburger takes over */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

@media (max-width: 640px) {
    .about-nums { grid-template-columns: 1fr; }
    .hero-logo-wrap { width: 95vw; }
    .footer-inner { flex-direction: column; gap: 1rem; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .stat-block:nth-child(even) { border-right: none; }
    .stat-block:nth-child(3),
    .stat-block:nth-child(4) { border-top: 1px solid var(--border); }
}

/* ══════════════════════════════════════════════════════
   CONTACT FORM — error state
   ══════════════════════════════════════════════════════ */

.form-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #f87171;
}

/* ══════════════════════════════════════════════════════
   ADMIN LOGIN PAGE
   ══════════════════════════════════════════════════════ */

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    position: relative;
}
.admin-login-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, var(--bg) 40%, transparent 100%);
    pointer-events: none;
}
.admin-login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    animation: slide-up 0.4s var(--ease-out);
}
.admin-login-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.14em;
    color: var(--fg);
    margin-bottom: 0.2rem;
}
.admin-login-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0.2rem 0 1.5rem;
}
.admin-error-msg {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #f87171;
    margin-bottom: 0.25rem;
}
.admin-login-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-field { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-field label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.admin-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
}
.admin-input:focus { border-color: var(--accent); background: var(--card); }

/* ══════════════════════════════════════════════════════
   ADMIN PANEL — DARK THEME
   ══════════════════════════════════════════════════════ */

/* ── Panel-scoped dark theme variables ── */
.panel-wrap {
    --p-bg:       #0f0f14;
    --p-surface:  #16161e;
    --p-card:     #1c1c26;
    --p-fg:       #e4e2db;
    --p-muted:    #64627a;
    --p-border:   #24233a;
    --p-border-2: #32314d;
    --p-purple:   #8b5cf6;
    --p-yellow:   #eab308;
    --p-blue:     #3b82f6;
    --p-red:      #f87171;
    --p-green:    #22c55e;
    --p-purple-bg: rgba(139, 92, 246, 0.08);
    --p-yellow-bg: rgba(234, 179, 8, 0.08);
    --p-blue-bg:   rgba(59, 130, 246, 0.08);
    --p-red-bg:    rgba(248, 113, 113, 0.08);
    --p-green-bg:  rgba(34, 197, 94, 0.08);

    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
    background: var(--p-bg);
    color: var(--p-fg);
    font-family: var(--font-body);
}

/* ── ALERT BANNER (auto-alert at top) ── */
.panel-alert {
    grid-column: 1 / -1;
    background: var(--p-red-bg);
    border-bottom: 1px solid rgba(248,113,113,0.25);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--p-red);
    animation: alert-pulse 2s ease-in-out infinite;
}
.panel-alert-dot {
    width: 6px; height: 6px;
    background: var(--p-red);
    border-radius: 50%;
    flex-shrink: 0;
}
@keyframes alert-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── SIDEBAR ── */
.panel-sidebar {
    grid-row: 2;
    background: var(--p-surface);
    border-right: 1px solid var(--p-border);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
}
.panel-sidebar-section {
    padding: 0 0 0.5rem;
}
.panel-sidebar-label {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--p-muted);
    padding: 0.5rem 1.25rem 0.4rem;
}
.panel-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--p-muted);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: color 0.15s, background 0.15s;
    border-left: 2px solid transparent;
}
.panel-nav-item:hover {
    color: var(--p-fg);
    background: rgba(139, 92, 246, 0.04);
}
.panel-nav-item.active {
    color: var(--p-purple);
    background: var(--p-purple-bg);
    border-left-color: var(--p-purple);
}
.panel-nav-icon {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.panel-nav-badge {
    margin-left: auto;
    background: var(--p-purple);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius);
    line-height: 1.3;
}
.panel-nav-badge.warn {
    background: var(--p-red);
}

/* ── TOP BAR ── */
.panel-topbar {
    grid-column: 1 / -1;
    background: var(--p-surface);
    border-bottom: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 52px;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.panel-topbar-left { display: flex; align-items: center; gap: 1rem; }
.panel-topbar-right { display: flex; align-items: center; gap: 0.65rem; }
.panel-brand {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--p-fg);
    text-decoration: none;
}
.panel-role {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: var(--p-purple);
    text-transform: uppercase;
}
.panel-badge {
    background: var(--p-purple);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius);
}
.panel-maint-btn {
    background: none;
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    color: var(--p-muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.panel-maint-btn:hover { border-color: var(--p-border-2); color: var(--p-fg); }
.panel-maint-btn.active {
    background: var(--p-yellow-bg);
    border-color: rgba(234, 179, 8, 0.4);
    color: var(--p-yellow);
}
.panel-logout-btn {
    background: none;
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    color: var(--p-muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.panel-logout-btn:hover { border-color: var(--p-border-2); color: var(--p-fg); }
.panel-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    color: var(--p-muted);
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

/* ── MAIN CONTENT ── */
.panel-main {
    grid-row: 2;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    min-height: calc(100vh - 52px);
}
.panel-page-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: var(--p-fg);
    margin-bottom: 0.4rem;
}
.panel-page-desc {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--p-muted);
    margin-bottom: 2rem;
}

/* ── STATS ROW ── */
.panel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.panel-stat-card {
    background: var(--p-surface);
    border: 1px solid var(--p-border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    transition: border-color 0.2s;
}
.panel-stat-card:hover { border-color: var(--p-border-2); }
.panel-stat-val {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--p-fg);
}
.panel-stat-val.purple { color: var(--p-purple); }
.panel-stat-val.yellow { color: var(--p-yellow); }
.panel-stat-val.blue   { color: var(--p-blue); }
.panel-stat-val.red    { color: var(--p-red); }
.panel-stat-val.green  { color: var(--p-green); }
.panel-stat-key {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--p-muted);
    margin-top: 0.35rem;
}

/* ── SECTION ── */
.panel-section {
    margin-bottom: 2rem;
}
.panel-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.panel-section-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--p-muted);
}
.panel-empty {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--p-muted);
    padding: 2rem 0;
}

/* ── TABLE (dark panel) ── */
.panel-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--p-border);
    border-radius: var(--radius-md);
    background: var(--p-surface);
}
.panel-table { width: 100%; border-collapse: collapse; }
.panel-table thead tr {
    background: var(--p-card);
    border-bottom: 1px solid var(--p-border-2);
}
.panel-table th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--p-muted);
    white-space: nowrap;
}
.panel-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--p-border);
    font-size: 0.86rem;
    vertical-align: top;
    color: var(--p-fg);
}
.panel-table tbody tr:last-child td { border-bottom: none; }
.panel-table tbody tr { transition: background 0.12s; }
.panel-table tbody tr:hover { background: var(--p-card); }
.panel-row-highlight { background: var(--p-purple-bg); }
.panel-row-highlight:hover { background: rgba(139, 92, 246, 0.12) !important; }
.panel-row-muted { opacity: 0.4; }

.panel-td-date { white-space: nowrap; }
.panel-td-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--p-muted);
    margin-top: 0.15rem;
}
.panel-td-name { font-weight: 600; white-space: nowrap; }
.panel-td-msg { max-width: 300px; }
.panel-td-actions { white-space: nowrap; }

.panel-email-link { color: var(--p-purple); text-decoration: underline; font-size: 0.86rem; }
.panel-email-link:hover { opacity: 0.8; }
.panel-msg-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    color: var(--p-muted);
    line-height: 1.5;
    max-width: 280px;
}

/* ── STATUS BADGES ── */
.panel-status {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.panel-status.new     { color: var(--p-purple); }
.panel-status.read    { color: var(--p-muted); }
.panel-status.draft   { color: var(--p-muted); border: 1px solid var(--p-border); }
.panel-status.published { color: var(--p-green); border: 1px solid rgba(34,197,94,0.3); background: var(--p-green-bg); }
.panel-status.hidden  { color: var(--p-yellow); border: 1px solid rgba(234,179,8,0.3); background: var(--p-yellow-bg); }
.panel-status.archived { color: var(--p-muted); border: 1px solid var(--p-border); background: var(--p-surface); }
.panel-status.open    { color: var(--p-purple); border: 1px solid rgba(139,92,246,0.3); background: var(--p-purple-bg); }
.panel-status.inprogress { color: var(--p-blue); border: 1px solid rgba(59,130,246,0.3); background: var(--p-blue-bg); }
.panel-status.resolved { color: var(--p-green); border: 1px solid rgba(34,197,94,0.3); background: var(--p-green-bg); }
.panel-status.closed  { color: var(--p-muted); border: 1px solid var(--p-border); }

/* ── BUTTONS (dark panel) ── */
.panel-btn {
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    background: none;
    padding: 0.3rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.3rem;
    text-decoration: none;
}
.panel-btn.primary  { color: var(--p-purple); border-color: rgba(139,92,246,0.3); }
.panel-btn.primary:hover { background: var(--p-purple-bg); }
.panel-btn.ghost    { color: var(--p-muted); }
.panel-btn.ghost:hover { border-color: var(--p-border-2); color: var(--p-fg); }
.panel-btn.danger   { color: var(--p-red); border-color: rgba(248,113,113,0.25); }
.panel-btn.danger:hover { background: var(--p-red-bg); border-color: rgba(248,113,113,0.5); }
.panel-btn.success  { color: var(--p-green); border-color: rgba(34,197,94,0.25); }
.panel-btn.success:hover { background: var(--p-green-bg); }

/* ── INPUT (dark panel) ── */
.panel-input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    color: var(--p-fg);
    font-family: var(--font-body);
    font-size: 0.86rem;
    transition: border-color 0.2s;
}
.panel-input:focus { outline: none; border-color: var(--p-purple); }
.panel-input::placeholder { color: var(--p-muted); }
.panel-textarea {
    width: 100%;
    resize: vertical;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    color: var(--p-fg);
    font-family: var(--font-body);
    font-size: 0.86rem;
    padding: 0.55rem 0.8rem;
    transition: border-color 0.2s;
}
.panel-textarea:focus { outline: none; border-color: var(--p-purple); }

/* ── TICKET CODE (dark panel) ── */
.panel-ticket-code {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--p-purple);
}

/* ── MODAL (dark panel) ── */
.panel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadein 0.15s ease;
}
.panel-modal {
    background: var(--p-surface);
    border: 1px solid var(--p-border-2);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    animation: slide-up 0.25s var(--ease-out);
}

/* ── TICKET CHAT (dark panel) ── */
.panel-chat-box {
    background: var(--p-surface);
    border: 1px solid var(--p-border-2);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 660px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slide-up 0.25s var(--ease-out);
}
.panel-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--p-border);
}
.panel-chat-header .panel-btn { margin-left: auto; }
.panel-chat-info {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.78rem;
    color: var(--p-muted);
    border-bottom: 1px solid var(--p-border);
}
.panel-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 420px;
}
.panel-chat-msg {
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    line-height: 1.6;
    max-width: 85%;
}
.panel-chat-msg.user { background: var(--p-card); align-self: flex-start; }
.panel-chat-msg.bot  { background: var(--p-card); align-self: flex-start; border-left: 2px solid var(--p-muted); }
.panel-chat-msg.helper { background: var(--p-blue-bg); align-self: flex-end; border-right: 2px solid var(--p-blue); }
.panel-chat-msg.admin { background: var(--p-purple-bg); align-self: flex-end; border-right: 2px solid var(--p-purple); }
.panel-chat-role {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p-muted);
    display: block;
    margin-bottom: 0.15rem;
}
.panel-chat-msg time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.66rem;
    color: var(--p-muted);
}
.panel-chat-reply {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--p-border);
}
.panel-chat-reply textarea {
    flex: 1;
    resize: none;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    border-radius: var(--radius);
    color: var(--p-fg);
    font-family: var(--font-body);
    font-size: 0.86rem;
    padding: 0.5rem 0.7rem;
}
.panel-chat-reply textarea:focus { outline: none; border-color: var(--p-purple); }

/* ── BANNER CARDS (dark panel) ── */
.panel-banner-card {
    padding: 1rem 1.2rem;
    border: 1px solid var(--p-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.65rem;
    background: var(--p-surface);
}
.panel-banner-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.panel-banner-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--p-border-2);
    border-radius: var(--radius-md);
    background: var(--p-card);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* ── TICKET CARD LIST (helper) ── */
.panel-ticket-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.65rem;
}
.panel-ticket-card {
    border: 1px solid var(--p-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.12s;
    background: var(--p-surface);
}
.panel-ticket-card:hover { border-color: var(--p-border-2); background: var(--p-card); }
.panel-ticket-card.open { border-left: 3px solid var(--p-purple); }
.panel-ticket-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}
.panel-ticket-card-mid {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.86rem;
    margin-bottom: 0.45rem;
}
.panel-ticket-card-bot {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--p-muted);
}

/* ── HELPER CHAT VIEW (inside panel) ── */
.panel-chat-view {
    display: flex;
    flex-direction: column;
    max-width: 700px;
}
.panel-chat-back {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.panel-chat-view-info {
    display: flex;
    gap: 2rem;
    font-size: 0.82rem;
    color: var(--p-muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--p-border);
    margin-bottom: 1rem;
}
.panel-chat-view-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}
.panel-chat-view-reply {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid var(--p-border);
}
.panel-chat-view-actions {
    display: flex;
    gap: 0.5rem;
}

/* ── RESPONSIVE (dark panel) ── */
@media (max-width: 900px) {
    .panel-wrap {
        grid-template-columns: 1fr;
    }
    .panel-sidebar {
        position: fixed;
        top: 52px;
        left: -260px;
        width: 240px;
        height: calc(100vh - 52px);
        z-index: 200;
        transition: left 0.25s var(--ease-out);
        border-right: 1px solid var(--p-border);
    }
    .panel-sidebar.open { left: 0; }
    .panel-mobile-toggle { display: block; }
    .panel-main { padding: 1.5rem 1rem; }
    .panel-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .panel-stats { grid-template-columns: 1fr; }
    .panel-topbar { padding: 0 1rem; }
}

/* ── Legacy classes kept for shared sub-components ── */
.adm-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
.adm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    gap: 1rem;
    flex-wrap: wrap;
}
.adm-header-left { display: flex; align-items: center; gap: 1.2rem; }
.adm-header-right { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.adm-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--fg);
    text-decoration: none;
}
.adm-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
}
.adm-badge {
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
}
.adm-maint-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.adm-maint-btn:hover { border-color: var(--border-2); color: var(--fg); }
.adm-maint-btn.active {
    background: rgba(224, 184, 0, 0.1);
    border-color: rgba(224, 184, 0, 0.45);
    color: #e0b800;
}
.adm-logout-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.adm-logout-btn:hover { border-color: var(--border-2); color: var(--fg); }

.adm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.adm-stat {
    padding: 1.8rem 2rem;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: background 0.15s;
}
.adm-stat:last-child { border-right: none; }
.adm-stat:hover { background: var(--card); }
.adm-stat-val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--fg);
}
.adm-stat-key {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.text-warn { color: #e0b800 !important; }

.adm-section {
    padding: 2rem;
    flex: 1;
}
.adm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.adm-empty-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.adm-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table thead tr {
    background: var(--surface);
    border-bottom: 1px solid var(--border-2);
}
.adm-table th {
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.adm-table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    vertical-align: top;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr { transition: background 0.15s; }
.adm-table tbody tr:hover { background: var(--surface); }
.adm-row-unread { background: var(--accent-bg); }
.adm-row-unread:hover { background: rgba(212, 255, 0, 0.12) !important; }

.adm-td-date { white-space: nowrap; }
.adm-td-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 0.2rem;
}
.adm-td-name { font-weight: 600; white-space: nowrap; }
.adm-td-msg { max-width: 320px; }
.adm-td-actions { white-space: nowrap; }

.adm-email-link { color: var(--accent); text-decoration: underline; font-size: 0.88rem; }
.adm-email-link:hover { opacity: 0.8; }
.adm-msg-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 300px;
}
.adm-status-new {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--accent);
    white-space: nowrap;
}
.adm-status-read {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    white-space: nowrap;
}

.adm-btn-read, .adm-btn-unread, .adm-btn-delete {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: none;
    padding: 0.3rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
}
.adm-btn-read { color: var(--accent); border-color: var(--accent-bd); }
.adm-btn-read:hover { background: var(--accent-bg); }
.adm-btn-unread { color: var(--muted); }
.adm-btn-unread:hover { border-color: var(--border-2); color: var(--fg); }
.adm-btn-delete { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.adm-btn-delete:hover { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.55); }

.adm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadein 0.15s ease;
}
.adm-modal {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    animation: slide-up 0.25s var(--ease-out);
}

@media (max-width: 768px) {
    .adm-stats { grid-template-columns: 1fr 1fr; }
    .adm-stat:nth-child(2) { border-right: none; }
    .adm-stat:nth-child(3) { border-top: 1px solid var(--border); }
    .adm-header { height: auto; padding: 0.75rem 1rem; }
    .adm-section { padding: 1rem; }
}

/* ── ADMIN TABS ── */
.adm-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    overflow-x: auto;
}
.adm-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.adm-tab:hover { color: var(--fg); }
.adm-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.adm-tab-badge {
    background: var(--accent);
    color: var(--bg);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius);
    line-height: 1.3;
}
.adm-tab-count {
    color: var(--muted);
    font-size: 0.58rem;
}

/* ── ADMIN INPUT ── */
.adm-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.2s;
}
.adm-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── ARTICLE STATUS BADGES ── */
.adm-article-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.adm-article-status--draft { color: var(--muted); border: 1px solid var(--border); }
.adm-article-status--published { color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); }
.adm-article-status--hidden { color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); background: rgba(234, 179, 8, 0.06); }
.adm-article-status--archived { color: var(--muted); border: 1px solid var(--border); background: var(--surface); }
.adm-row-deleted { opacity: 0.45; }

/* ── TICKET STATUS BADGES ── */
.adm-ticket-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.adm-ticket-status--open { color: var(--accent); border: 1px solid var(--accent-bd); background: var(--accent-bg); }
.adm-ticket-status--inprogress { color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.06); }
.adm-ticket-status--resolved { color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); }
.adm-ticket-status--closed { color: var(--muted); border: 1px solid var(--border); }
.adm-ticket-code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--accent);
}

/* ── TICKET CHAT MODAL ── */
.adm-ticket-chat {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slide-up 0.25s var(--ease-out);
}
.adm-ticket-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.adm-ticket-chat-header .adm-btn-unread { margin-left: auto; }
.adm-ticket-info {
    display: flex;
    gap: 1.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.adm-ticket-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
}
.adm-chat-msg {
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 85%;
}
.adm-chat-msg--user { background: var(--card); align-self: flex-start; }
.adm-chat-msg--bot { background: var(--card); align-self: flex-start; border-left: 2px solid var(--muted); }
.adm-chat-msg--helper { background: rgba(59, 130, 246, 0.08); align-self: flex-end; border-right: 2px solid #3b82f6; }
.adm-chat-msg--admin { background: rgba(139, 92, 246, 0.08); align-self: flex-end; border-right: 2px solid #8b5cf6; }
.adm-chat-role {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.2rem;
}
.adm-chat-msg time {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.68rem;
    color: var(--muted);
}
.adm-ticket-reply {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}
.adm-ticket-reply textarea {
    flex: 1;
    resize: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
}
.adm-ticket-reply textarea:focus { outline: none; border-color: var(--accent); }

/* ── BANNER CARDS (admin) ── */
.adm-banner-card {
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}
.adm-banner-card-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.adm-banner-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: var(--card);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* ══════════════════════════════════════════════════════
   NEWS EDITOR
   ══════════════════════════════════════════════════════ */

.editor-wrap {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}
.editor-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 50px;
    gap: 1rem;
}
.editor-back {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.editor-back:hover { color: var(--fg); }
.editor-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.editor-autosave-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.editor-btn {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
}
.editor-btn.ghost {
    background: none;
    color: var(--muted);
}
.editor-btn.ghost:hover { border-color: var(--border-2); color: var(--fg); }
.editor-btn.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}
.editor-btn.primary:hover { opacity: 0.85; }

.editor-title-wrap {
    padding: 2rem 2rem 0;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}
.editor-title-input {
    width: 100%;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--fg);
}
.editor-title-input::placeholder { color: var(--border-2); }
.editor-title-input:focus { outline: none; }

.editor-cover-section {
    padding: 1rem 2rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}
.editor-cover-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 320px;
}
.editor-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.editor-cover-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editor-cover-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px dashed var(--border-2);
    border-radius: var(--radius);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.editor-cover-upload:hover { border-color: var(--accent); color: var(--fg); }
.editor-cover-upload input { display: none; }

.editor-toolbar {
    position: sticky;
    top: 50px;
    z-index: 90;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}
.editor-tool {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.editor-tool:hover {
    border-color: var(--border-2);
    color: var(--fg);
    background: var(--card);
}
.editor-tool-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 0.3rem;
}

.editor-content {
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem 2rem 4rem;
    min-height: 400px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--fg);
    outline: none;
}
.editor-content:empty::before {
    content: attr(data-placeholder);
    color: var(--border-2);
    pointer-events: none;
}
.editor-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    margin: 2rem 0 0.8rem;
    line-height: 1.2;
}
.editor-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    margin: 1.5rem 0 0.6rem;
}
.editor-content p { margin-bottom: 1rem; }
.editor-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1rem 0;
}
.editor-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    color: var(--muted);
    font-style: italic;
}
.editor-content a { color: var(--accent); text-decoration: underline; }
.editor-content ul, .editor-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
}

.editor-statusbar {
    margin-top: auto;
    padding: 0.6rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   PUBLIC NEWS LIST
   ══════════════════════════════════════════════════════ */

.news-section {
    min-height: calc(100vh - 60px);
    padding: clamp(4rem, 8vw, 8rem) 0;
}
.news-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.news-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin-top: 0.5rem;
}
.news-hero-desc {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 1rem;
    max-width: 480px;
}
.news-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--muted);
    font-size: 1rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s var(--ease-out);
    text-decoration: none;
    color: inherit;
}
.news-card:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
}
.news-card-cover {
    height: 200px;
    overflow: hidden;
    background: var(--surface);
}
.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}
.news-card:hover .news-card-cover img { transform: scale(1.04); }
.news-card-body {
    padding: 1.2rem 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card-date {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.news-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin: 0.4rem 0 0.6rem;
}
.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}
.news-card-arrow {
    padding: 0.8rem 1.4rem;
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--muted);
    transition: color 0.2s, padding-left 0.3s;
}
.news-card:hover .news-card-arrow { color: var(--accent); padding-left: 1.8rem; }

/* ══════════════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.article-page {
    padding: clamp(3rem, 6vw, 6rem) 0;
}
.article-back {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }
.article-header {
    margin-bottom: 2rem;
}
.article-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.6rem;
}
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.article-cover {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 480px;
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--fg);
}
.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    margin: 2.5rem 0 1rem;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem;
}
.article-body p { margin-bottom: 1.2rem; }
.article-body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 0.5rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-style: italic;
}
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body ul, .article-body ol {
    margin: 0.5rem 0 1.2rem 1.5rem;
}
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   GLOBAL BANNERS (public site)
   ══════════════════════════════════════════════════════ */

.global-banners {
    position: relative;
    z-index: 50;
}
.global-banner {
    padding: 0.6rem 1.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}
.global-banner strong {
    font-weight: 700;
    margin-right: 0.4rem;
}

/* ══════════════════════════════════════════════════════
   MAINTENANCE PAGE
   ══════════════════════════════════════════════════════ */

.maintenance-section {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
}
.maintenance-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--bg) 35%, transparent 100%);
    pointer-events: none;
}
.maintenance-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: slide-up 0.5s var(--ease-out);
}
.maint-icon {
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.maint-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin: 0.5rem 0 0;
}
.maint-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════
   SUPPORT PAGE
   ══════════════════════════════════════════════════════ */

.support-section {
    min-height: calc(100vh - 60px);
    padding: clamp(4rem, 8vw, 8rem) 0;
}
.support-header { margin-bottom: 2rem; }
.support-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.04em;
    line-height: 0.95;
    margin-top: 0.5rem;
}
.support-desc {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 1rem;
    max-width: 480px;
}

/* ── Lookup ── */
.support-lookup {
    margin-bottom: 1.5rem;
}
.support-lookup-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.5rem;
}
.support-lookup-row {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
}
.support-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* ── Inputs ── */
.support-input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.support-input:focus { outline: none; border-color: var(--accent); }
.support-input::placeholder { color: var(--muted); }

.support-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
}
.support-textarea:focus { outline: none; border-color: var(--accent); }
.support-textarea::placeholder { color: var(--muted); }

.support-error {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #f87171;
}

/* ── Chat Wizard ── */
.support-wizard {
    max-width: 640px;
}
.support-chat {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.support-msg {
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: slide-up 0.3s var(--ease-out);
}
.support-msg--bot {
    background: var(--card);
    align-self: flex-start;
    border-left: 2px solid var(--muted);
}
.support-msg--user {
    background: var(--accent-bg);
    align-self: flex-end;
    border-right: 2px solid var(--accent);
}
.support-msg--helper {
    background: rgba(59, 130, 246, 0.08);
    align-self: flex-start;
    border-left: 2px solid #3b82f6;
}
.support-msg--admin {
    background: rgba(139, 92, 246, 0.08);
    align-self: flex-start;
    border-left: 2px solid #8b5cf6;
}
.support-msg-role {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.2rem;
}
.support-msg-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.65rem;
    color: var(--muted);
}
.support-msg p { margin: 0; }

.support-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 1rem;
    animation: slide-up 0.3s var(--ease-out);
}
.support-option {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--fg);
    cursor: pointer;
    transition: all 0.2s;
}
.support-option:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: var(--accent);
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1rem;
    animation: slide-up 0.3s var(--ease-out);
    max-width: 480px;
}

/* ── Success ── */
.support-success {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.support-ticket-code-display {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    padding: 1rem 0;
}
.support-success-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

.support-empty {
    padding: 4rem 0;
}

/* ── Ticket View ── */
.ticket-view {
    max-width: 680px;
}
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ticket-code {
    font-family: var(--font-mono);
    font-size: 2rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-top: 0.3rem;
}
.ticket-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.ticket-reply {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.ticket-reply .btn-primary { align-self: flex-start; }
.ticket-closed-notice {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════
   HELPER DASHBOARD
   ══════════════════════════════════════════════════════ */

.helper-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
.active-filter {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.helper-ticket-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}
.helper-ticket-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.15s;
}
.helper-ticket-card:hover { border-color: var(--border-2); background: var(--surface); }
.helper-ticket-card--open { border-left: 3px solid var(--accent); }
.helper-ticket-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.helper-ticket-card-mid {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}
.helper-ticket-card-bot {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.helper-chat-view {
    display: flex;
    flex-direction: column;
    max-width: 700px;
}
.helper-chat-back {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.helper-chat-info {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.helper-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}
.helper-chat-reply {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.helper-chat-actions {
    display: flex;
    gap: 0.5rem;
}
