/* ─────────────────────────────────────────
   PULSAR CORP v2 — Design System
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── v1 CSS variable aliases (so v1 content pages render in v2 shell) ── */
:root {
    --primary:      var(--red);
    --primary-dim:  var(--red-dim);
    --accent:       var(--text-1);
    --accent-dim:   rgba(240,244,255,0.06);
    --font-header:  var(--font-display);
    --text:         var(--text-1);
    --text-dim:     var(--text-3);
    --surface:      rgba(13,22,40,0.6);
    --surface-dark: rgba(6,9,17,0.9);
    --blur:         blur(16px);
    --radius:       4px;
    --transition:   0.25s ease;
}

/* ── Tokens ── */
:root {
    --bg-0:       #060911;
    --bg-1:       #09101e;
    --bg-2:       #0d1628;
    --bg-3:       #111e34;
    --bg-4:       #162340;

    --border-1:   rgba(255,255,255,0.04);
    --border-2:   rgba(255,255,255,0.08);
    --border-3:   rgba(255,255,255,0.14);
    --border-red: rgba(214,48,49,0.3);

    --text-1:     #f0f4ff;
    --text-2:     #8892b0;
    --text-3:     #4a5568;

    --red:        #D63031;
    --red-hi:     #f04040;
    --red-dim:    rgba(214,48,49,0.12);
    --red-glow:   rgba(214,48,49,0.2);

    --nav-h:      68px;
    --max-w:      1200px;
    --pad-x:      clamp(20px, 5vw, 72px);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:   cubic-bezier(0, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 2px;
}
.tag::before { content: '['; color: var(--red); }
.tag::after  { content: ']'; color: var(--red); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(6,9,17,0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-1);
    z-index: 1000;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
    background: rgba(6,9,17,0.95);
    border-color: var(--border-2);
}
.nav-inner {
    width: 100%; max-width: calc(var(--max-w) + var(--pad-x) * 2);
    margin: 0 auto; padding: 0 var(--pad-x);
    display: flex; align-items: center; gap: 40px;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-1); letter-spacing: 0.5px;
    flex-shrink: 0;
    display: flex; align-items: center; gap: 2px;
}
.nav-logo .logo-dot { color: var(--red); }
.nav-logo img { height: 28px; width: auto; }

.nav-links {
    display: flex; align-items: center; gap: 2px;
    flex: 1;
}
.nav-links a, .nav-links button {
    font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
    color: var(--text-2); background: none; border: none; cursor: pointer;
    padding: 8px 14px; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links button:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text-1); }

/* Nav dropdown */
.nav-drop-wrap { position: relative; }
.nav-drop {
    position: absolute; top: 100%; left: 0;
    min-width: 200px;
    padding-top: 8px;
    opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
}
.nav-drop-inner {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.nav-drop-wrap.open .nav-drop { opacity: 1; pointer-events: all; transform: none; }
.nav-drop a {
    display: block; padding: 10px 14px; border-radius: 6px;
    font-size: 0.875rem; color: var(--text-2);
}
.nav-drop a:hover { color: var(--text-1); background: var(--bg-3); }
.nav-drop-label {
    font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 2px;
    padding: 8px 14px 4px;
}

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions a {
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
    padding: 8px 16px; border-radius: 7px;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.btn-outline {
    color: var(--text-1); border: 1px solid var(--border-3);
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.25); }
.btn-primary {
    background: var(--red); color: #fff;
    border: 1px solid transparent;
}
.btn-primary:hover { background: var(--red-hi); box-shadow: 0 0 20px var(--red-glow); }

/* Logged-in user inline display */
.nav-user-inline {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--border-2); border-radius: 8px;
    font-size: 0.82rem;
}
.nav-user-avatar {
    width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
    border: 1.5px solid var(--border-2); flex-shrink: 0;
}
.nav-user-name { color: var(--text-1); font-weight: 500; white-space: nowrap; }
.nav-user-role {
    font-family: var(--font-mono); font-size: 0.55rem;
    color: var(--red); letter-spacing: 1.5px;
    padding: 2px 6px; border: 1px solid var(--border-red);
    border-radius: 3px;
}
.nav-user-logout {
    color: var(--text-3); font-size: 0.78rem;
    padding-left: 8px; border-left: 1px solid var(--border-1);
    transition: color 0.2s; white-space: nowrap;
}
.nav-user-logout:hover { color: var(--text-1); }

/* Mobile nav toggle */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: 0.3s; }

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-start;
    margin-top: calc(-1 * var(--nav-h));
    padding: calc(var(--nav-h) + 32px) 0 56px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center 30%;
}
.hero-bg-gradient {
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(6,9,17,0.92) 40%, rgba(6,9,17,0.4) 100%),
        linear-gradient(to top, rgba(6,9,17,1) 0%, transparent 50%);
}
/* Fallback gradient when no image */
.hero-bg-fallback {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(214,48,49,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(30,60,120,0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-0) 0%, var(--bg-2) 100%);
}
/* Subtle star field */
.hero-bg-fallback::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 55% 60%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 100%);
}

.hero-content {
    position: relative; z-index: 1;
    max-width: calc(var(--max-w) + var(--pad-x) * 2);
    margin: 0 auto; padding: 0 var(--pad-x);
    width: 100%;
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 24px;
}
.hero-crumb {
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 2px;
}
.hero-crumb-sep { color: var(--border-3); font-size: 0.7rem; }
.hero-status {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: #4ade80; letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid rgba(74,222,128,0.2);
    padding: 3px 10px; border-radius: 100px;
    display: flex; align-items: center; gap: 6px;
    margin-left: 4px;
}
.hero-status::before {
    content: '';
    display: block; width: 5px; height: 5px;
    background: #4ade80; border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700; line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-1);
    max-width: 680px; margin-bottom: 24px;
}
.hero-title .accent { color: var(--red); }
.hero-sub {
    font-size: 1.05rem; color: var(--text-1); line-height: 1.7;
    max-width: 520px; margin-bottom: 40px;
}
.hero-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.hero-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
    background: var(--red); color: #fff;
    padding: 14px 28px; border-radius: 8px;
    transition: all 0.2s var(--ease); border: 1px solid transparent;
    letter-spacing: 0.01em;
}
.hero-btn-primary:hover { background: var(--red-hi); box-shadow: 0 8px 32px var(--red-glow); transform: translateY(-1px); }
.hero-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    color: var(--text-1); border: 1px solid var(--border-3);
    padding: 14px 28px; border-radius: 8px;
    transition: all 0.2s var(--ease);
}
.hero-btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }

.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0.4;
}
.hero-scroll span { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; }
.hero-scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--text-3), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line { 0%, 100% { transform: scaleY(1); opacity: 0.4; } 50% { transform: scaleY(0.5); opacity: 0.1; } }

/* ─────────────────────────────────────────
   STATS BAR
   ───────────────────────────────────────── */
.stats-bar {
    border-top: 1px solid var(--border-1);
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-1);
}
.stats-inner {
    max-width: calc(var(--max-w) + var(--pad-x) * 2);
    margin: 0 auto; padding: 0 var(--pad-x);
    display: grid; grid-template-columns: repeat(4, 1fr);
    divide-columns: 1px solid var(--border-1);
}
.stat-item {
    padding: 36px 32px;
    border-right: 1px solid var(--border-1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 700;
    color: var(--text-1); line-height: 1;
    margin-bottom: 6px;
}
.stat-num .unit { font-size: 1.6rem; color: var(--red); }
.stat-label {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 4px;
}
.stat-sub { font-size: 0.8rem; color: var(--text-3); }

/* ─────────────────────────────────────────
   SECTIONS — General
   ───────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-eyebrow {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--red); text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::after { content: ''; flex: 1; max-width: 48px; height: 1px; background: var(--border-red); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700; line-height: 1.15;
    letter-spacing: -0.02em; color: var(--text-1);
    margin-bottom: 20px;
}
.section-body {
    font-size: 1rem; color: var(--text-1); line-height: 1.75;
    max-width: 560px;
}

/* ─────────────────────────────────────────
   ABOUT SPLIT SECTION
   ───────────────────────────────────────── */
.about-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.about-text { }
.about-text .section-body { max-width: none; margin-bottom: 32px; }
.about-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.875rem; font-weight: 600; color: var(--red);
    transition: gap 0.2s;
}
.about-cta:hover { gap: 14px; }
.about-image {
    position: relative; border-radius: 12px; overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-3);
    border: 1px solid var(--border-2);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(214,48,49,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.about-image-tag {
    position: absolute; bottom: 16px; left: 16px;
    font-family: var(--font-mono); font-size: 0.58rem;
    color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase;
    background: rgba(6,9,17,0.7); padding: 6px 12px; border-radius: 4px;
    border: 1px solid var(--border-2);
}

/* ─────────────────────────────────────────
   OPERATIONS CARDS
   ───────────────────────────────────────── */
.ops-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 56px;
}
.op-card {
    position: relative; border-radius: 12px; overflow: hidden;
    aspect-ratio: 4/5; background: var(--bg-3);
    border: 1px solid var(--border-2);
    display: flex; flex-direction: column; justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.op-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.op-card-img {
    position: absolute; inset: 0;
}
.op-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.op-card:hover .op-card-img img { transform: scale(1.04); }
.op-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,9,17,0.95) 0%, rgba(6,9,17,0.3) 50%, transparent 100%);
    transition: opacity 0.3s;
}
.op-card-content {
    position: relative; z-index: 1;
    padding: 24px;
}
.op-card-tag {
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--red); text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 8px;
}
.op-card-title {
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
    color: var(--text-1); line-height: 1.2; margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.op-card-body {
    font-size: 0.82rem; color: var(--text-1); line-height: 1.6;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.op-card:hover .op-card-body { opacity: 1; transform: none; }

/* Placeholder image gradients */
.op-img-placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--c1, var(--bg-3)), var(--c2, var(--bg-2)));
}

/* ─────────────────────────────────────────
   INFO BLOCK (like VNGD [w] blocks)
   ───────────────────────────────────────── */
.info-block {
    background: var(--bg-2);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    overflow: hidden;
}
.info-block-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border-1);
}
.info-block-tag {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 2px;
    display: flex; align-items: center; gap: 8px;
}
.info-block-tag::before { content: '[w]'; color: var(--red); }
.info-block-priority {
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--text-3); letter-spacing: 1.5px; text-transform: uppercase;
}
.info-block-body {
    padding: 24px 20px;
    font-size: 0.9rem; color: var(--text-1); line-height: 1.75;
}
.info-block-source {
    padding: 10px 20px;
    border-top: 1px solid var(--border-1);
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 1.5px;
}

/* ─────────────────────────────────────────
   JOIN CTA SECTION
   ───────────────────────────────────────── */
.join-section {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--border-1);
    border-bottom: 1px solid var(--border-1);
    background: var(--bg-1);
}
.join-section .section-title { max-width: 560px; margin: 0 auto 12px; font-size: clamp(1.4rem, 3vw, 2rem); }
.join-section .section-body { max-width: 480px; margin: 0 auto 28px; text-align: center; }
.join-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border-1);
    padding: 64px 0 32px;
}
.footer-inner {
    max-width: calc(var(--max-w) + var(--pad-x) * 2);
    margin: 0 auto; padding: 0 var(--pad-x);
}
.footer-top {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 64px; padding-bottom: 48px;
    border-bottom: 1px solid var(--border-1);
    margin-bottom: 32px;
}
.footer-brand { }
.footer-logo {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    color: var(--text-1); display: block; margin-bottom: 12px;
}
.footer-logo img { height: 28px; }
.footer-tagline { font-size: 0.82rem; color: var(--text-3); line-height: 1.6; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text-3); transition: all 0.2s;
}
.footer-social:hover { background: var(--bg-3); color: var(--text-1); border-color: var(--border-3); }
.footer-social svg { width: 16px; height: 16px; }

.footer-links {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col { }
.footer-col-title {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 2.5px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block; font-size: 0.875rem; color: var(--text-2);
    padding: 5px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.78rem; color: var(--text-3);
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text-2); }
.footer-sc-badge {
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--text-3); letter-spacing: 1.5px;
}

/* ─────────────────────────────────────────
   PAGE TRANSITIONS
   ───────────────────────────────────────── */
#page-content { transition: opacity 0.25s var(--ease); padding-top: var(--nav-h); }
#page-content.loading { opacity: 0; }

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-split { grid-template-columns: 1fr; gap: 48px; }
    .ops-grid { grid-template-columns: 1fr 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-top: 1px solid var(--border-1); }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-links, .nav-spacer { display: none; }
    .nav-actions .btn-ghost, .nav-actions .btn-outline { display: none; }
    .nav-toggle { display: flex; }
    .ops-grid { grid-template-columns: 1fr; }
    .op-card { aspect-ratio: 16/9; }
    .op-card-body { opacity: 1; transform: none; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.4rem; }
}
@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─────────────────────────────────────────
   MOBILE NAV DRAWER
   ───────────────────────────────────────── */
.nav-drawer {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(6,9,17,0.98);
    display: flex; flex-direction: column; padding: 100px var(--pad-x) 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
}
.nav-drawer.open { transform: none; }
.nav-drawer a {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
    color: var(--text-1); padding: 14px 0;
    border-bottom: 1px solid var(--border-1);
}
.nav-drawer a:hover { color: var(--red); }
.nav-drawer-actions { margin-top: 32px; display: flex; gap: 12px; }

/* ─────────────────────────────────────────
   VIDEO BACKGROUND
   ───────────────────────────────────────── */
.v-bg {
    position: fixed; right: 0; bottom: 0;
    min-width: 100%; min-height: 100%;
    z-index: -2; object-fit: cover;
}
.v-overlay {
    position: fixed; inset: 0;
    background: radial-gradient(circle, rgba(6,9,17,0.4) 0%, rgba(6,9,17,0.88) 100%);
    z-index: -1;
}

/* ─────────────────────────────────────────
   NAV UTILITY DOCK (Music + RSI)
   ───────────────────────────────────────── */
.nav-utility-dock { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.nav-utility-btn {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 0.58rem;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 1.5px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px; padding: 6px 10px; cursor: pointer; white-space: nowrap;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.nav-utility-btn:hover { color: var(--text-2); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.nav-drop-wrap.open > .nav-utility-btn { color: var(--text-1); border-color: rgba(255,255,255,0.2); }
.nav-utility-drop .nav-drop-inner { padding: 0; }
.nav-utility-drop--right { left: auto; right: 0; }

/* Music player panel */
#mp-panel {
    width: 295px; padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
}
.mp-panel-header {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border-1);
}
.mp-vinyl {
    width: 38px; height: 38px; border-radius: 50%;
    background: radial-gradient(circle, var(--bg-3) 30%, var(--bg-1) 31%, var(--bg-2) 50%, var(--bg-1) 51%, var(--bg-2) 100%);
    border: 2px solid var(--red); flex-shrink: 0;
    animation: mp-spin 4s linear infinite; animation-play-state: paused;
}
.mp-vinyl.playing { animation-play-state: running; }
@keyframes mp-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.mp-track-info { flex: 1; min-width: 0; }
.mp-panel-track { font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-track-sub { font-family: var(--font-mono); font-size: 0.52rem; color: var(--text-3); margin-top: 3px; text-transform: uppercase; letter-spacing: 1.5px; }

.mp-controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.mp-btn { background: transparent; border: none; cursor: pointer; padding: 4px; transition: opacity 0.2s; opacity: 0.6; }
.mp-btn:hover { opacity: 1; }
.mp-btn img { filter: invert(1) brightness(0.7); transition: filter 0.2s; }
.mp-btn:hover img { filter: invert(1) brightness(1); }

.mp-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.mp-progress { width: 100%; height: 3px; background: var(--border-2); cursor: pointer; border-radius: 2px; overflow: hidden; transition: height 0.15s; }
.mp-progress:hover { height: 5px; }
.mp-progress-bar { height: 100%; background: var(--red); width: 0%; pointer-events: none; border-radius: 2px; }
.mp-time { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-3); }

.mp-volume-row { display: flex; align-items: center; gap: 8px; padding-top: 4px; border-top: 1px solid var(--border-1); }
.mp-vol-icon { color: var(--text-3); font-size: 0.85rem; cursor: pointer; flex-shrink: 0; transition: color 0.2s; }
.mp-vol-icon:hover { color: var(--text-2); }
#mp-panel input[type=range] {
    flex: 1; -webkit-appearance: none; height: 3px;
    background: var(--border-2); outline: none; cursor: pointer; border-radius: 2px;
}
#mp-panel input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    background: var(--red); border-radius: 50%; cursor: pointer;
}
.mp-track-num { font-family: var(--font-mono); font-size: 0.52rem; color: var(--text-3); text-align: center; letter-spacing: 1px; }

/* RSI status panel */
#rsi-content {
    width: 260px; padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
    max-height: 70vh; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
#rsi-content::-webkit-scrollbar { width: 3px; }
#rsi-content::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.rsi-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border-1); }
.rsi-title { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; }
.rsi-updated { font-family: var(--font-mono); font-size: 0.52rem; color: var(--text-3); }
.rsi-overall { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bg-3); border: 1px solid var(--border-1); border-radius: 6px; }
.rsi-overall-text { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; }
.rsi-loading { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3); text-align: center; padding: 12px 0; animation: rsi-blink 1s infinite; }
@keyframes rsi-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.rsi-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.rsi-dot.operational    { background: #4ade80; box-shadow: 0 0 5px #4ade80; }
.rsi-dot.degraded, .rsi-dot.partial_outage { background: #fbbf24; box-shadow: 0 0 5px #fbbf24; }
.rsi-dot.major_outage   { background: var(--red); box-shadow: 0 0 5px var(--red); }
.rsi-dot.maintenance    { background: #38bdf8; box-shadow: 0 0 5px #38bdf8; }
.rsi-dot.unknown        { background: var(--text-3); }
.rsi-badge { font-family: var(--font-mono); font-size: 0.5rem; text-transform: uppercase; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }
.rsi-badge.operational    { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.rsi-badge.degraded, .rsi-badge.partial_outage { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
.rsi-badge.major_outage   { background: var(--red-dim); color: var(--red-hi); border: 1px solid var(--border-red); }
.rsi-badge.maintenance    { background: rgba(56,189,248,0.1); color: #38bdf8; border: 1px solid rgba(56,189,248,0.2); }
.rsi-badge.unknown        { background: var(--border-1); color: var(--text-3); border: 1px solid var(--border-2); }
.rsi-incidents-title { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; padding: 8px 0 4px; border-top: 1px solid var(--border-1); margin-top: 4px; }
.rsi-incident-item { display: block; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--border-1); transition: opacity 0.2s; }
.rsi-incident-item:hover { opacity: 0.85; }
.rsi-incident-top { display: flex; align-items: flex-start; gap: 6px; }
.rsi-incident-title { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3); line-height: 1.3; flex: 1; }
.rsi-incident-item:hover .rsi-incident-title { color: var(--text-2); }
.rsi-incident-date { font-family: var(--font-mono); font-size: 0.52rem; color: var(--text-3); display: block; margin-left: 12px; margin-top: 2px; }
.rsi-status-link { display: block; text-align: center; font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-3); text-decoration: none; padding-top: 8px; border-top: 1px solid var(--border-1); transition: color 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.rsi-status-link:hover { color: var(--text-2); }
.rsi-stat-row { display: flex; flex-direction: column; gap: 8px; }
.rsi-stat-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--bg-3); border-left: 2px solid var(--border-2); }
.rsi-stat-label { font-family: var(--font-mono); font-size: 0.52rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.rsi-stat-value { font-family: var(--font-display); font-size: 0.85rem; color: var(--text-2); font-weight: 600; }
.rsi-stat-item.live { border-left-color: #4ade80; } .rsi-stat-item.live .rsi-stat-value { color: #4ade80; }
.rsi-stat-item.ptu  { border-left-color: #fbbf24; } .rsi-stat-item.ptu  .rsi-stat-value { color: #fbbf24; }

@media (max-width: 900px) { .nav-utility-dock { display: none; } }

/* ─────────────────────────────────────────
   HOME WIDGET (Bulletin / Giveaway)
   ───────────────────────────────────────── */

/* ── Hero two-column layout (home page with bulletin) ── */
.hero-2col {
    position: relative; z-index: 1;
    display: flex; align-items: flex-start; gap: 28px;
    max-width: calc(var(--max-w) + var(--pad-x) * 2);
    padding: 0 var(--pad-x); width: 100%;
    margin: 0 auto;
}
.hero-2col > .hero-content { flex: 1; min-width: 0; max-width: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .hero-2col { flex-direction: column; } }

#home-widget {
    flex-shrink: 0; width: 520px; position: relative;
    font-family: var(--font-mono);
    background: rgba(9,16,30,0.88);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    display: flex; flex-direction: column;
}
#home-widget::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-dim) 30%, rgba(214,48,49,0.5) 50%, var(--red-dim) 70%, transparent);
    z-index: 1;
}
#widget-body {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(214,48,49,0.3) transparent;
}
#widget-body::-webkit-scrollbar { width: 4px; }
#widget-body::-webkit-scrollbar-track { background: transparent; }
#widget-body::-webkit-scrollbar-thumb { background: rgba(214,48,49,0.3); border-radius: 2px; }
@media (max-width: 960px) { #home-widget { width: 100%; } }
.widget-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-1); }
.widget-title-text { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; color: var(--text-1); text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.widget-title-text::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; box-shadow: 0 0 6px var(--red); animation: pulse-dot 2s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
#widget-toggle-btn { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 0.7rem; transition: transform 0.3s; padding: 4px; }
#widget-body { }
.widget-giveaway { padding: 12px 16px; border-bottom: 1px solid var(--border-1); background: linear-gradient(135deg, var(--red-dim), transparent); }
.widget-giveaway-title { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; color: var(--red-hi); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.widget-giveaway-prize { font-size: 0.78rem; color: var(--text-1); margin-bottom: 10px; }
.widget-giveaway-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.widget-giveaway-timer { font-size: 1.1rem; color: var(--text-1); font-weight: 700; font-family: var(--font-display); }
.widget-giveaway-status { font-size: 0.62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.widget-giveaway-recruiters { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.widget-recruiter { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; color: var(--text-2); }
.widget-recruiter-rank { font-family: var(--font-mono); color: var(--red); width: 16px; flex-shrink: 0; }
.widget-items { padding: 8px 0; }
.widget-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border-1); }
.widget-item:last-child { border-bottom: none; }
.widget-item-bullet { color: var(--red); font-size: 0.5rem; margin-top: 5px; flex-shrink: 0; }
.widget-item-text { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }
.widget-item-text a { color: var(--red-hi); }
.widget-item-text a:hover { text-decoration: underline; }
.widget-empty { padding: 16px; font-size: 0.72rem; color: var(--text-3); text-align: center; }

/* ─────────────────────────────────────────
   HOME PAGE GALLERY (v2 styles)
   ───────────────────────────────────────── */
.v2-gallery-section {
    padding: 0 0 80px;
}
.v2-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 32px;
}
.v2-gallery-item {
    position: relative; aspect-ratio: 16/10; overflow: hidden;
    cursor: pointer; background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: 6px; transition: border-color 0.2s, transform 0.2s;
}
.v2-gallery-item:hover { border-color: var(--border-red); transform: scale(1.01); }
.v2-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; display: block; }
.v2-gallery-item:hover img { transform: scale(1.05); }
.v2-gallery-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(6,9,17,0.9));
    padding: 24px 12px 10px;
    opacity: 0; transition: opacity 0.2s;
}
.v2-gallery-item:hover .v2-gallery-overlay { opacity: 1; }
.v2-gallery-uploader { font-family: var(--font-display); font-size: 0.6rem; font-weight: 600; color: var(--text-1); letter-spacing: 1px; text-transform: uppercase; }
.v2-gallery-caption { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-gallery-empty { text-align: center; padding: 48px 20px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }

/* Lightbox */
#pubGalleryLb { position: fixed; inset: 0; background: rgba(6,9,17,0.96); z-index: 2000; display: none; align-items: center; justify-content: center; }
#pubGalleryLb.open { display: flex; }
.pub-lb-close { position: fixed; top: 16px; right: 20px; background: none; border: none; color: var(--text-3); font-size: 1.8rem; cursor: pointer; z-index: 2001; transition: color 0.2s; }
.pub-lb-close:hover { color: var(--text-1); }
.pub-lb-arrow { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); color: var(--text-3); font-size: 1.5rem; width: 48px; height: 72px; cursor: pointer; transition: all 0.2s; z-index: 2001; }
.pub-lb-arrow:hover { background: rgba(255,255,255,0.08); color: var(--text-1); }
.pub-lb-prev { left: 4px; } .pub-lb-next { right: 4px; }
.pub-lb-inner { display: flex; flex-direction: column; align-items: center; max-width: 92vw; }
.pub-lb-img { max-width: 88vw; max-height: 82vh; object-fit: contain; display: block; border: 1px solid var(--border-2); border-radius: 4px; }
.pub-lb-meta { padding: 12px 0 0; text-align: center; }
.pub-lb-caption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.pub-lb-uploader { font-family: var(--font-display); font-size: 0.6rem; font-weight: 600; color: var(--red); letter-spacing: 2px; margin-top: 4px; text-transform: uppercase; }
@media (max-width: 768px) { .pub-lb-arrow { display: none; } }

/* ═══════════════════════════════════════════
   MODERN MEMBER PAGE COMPONENTS (v2.2)
   ═══════════════════════════════════════════ */

/* ── Page header for member/inner pages ── */
.page-hdr {
    padding: 28px var(--pad-x) 40px;
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border-1);
}
.page-hdr::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at -5% 50%, rgba(214,48,49,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.page-hdr-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-hdr-eyebrow { font-family: var(--font-mono); font-size: 0.62rem; color: var(--red); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 10px; }
.page-hdr-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--text-1); line-height: 1.1; margin-bottom: 8px; }
.page-hdr-sub { color: var(--text-2); font-size: 0.9rem; max-width: 480px; line-height: 1.6; }
.page-hdr-stats { display: flex; gap: 36px; flex-wrap: wrap; align-items: flex-end; }
.page-stat { display: flex; flex-direction: column; }
.page-stat-val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--text-1); line-height: 1; }
.page-stat-lbl { font-family: var(--font-mono); font-size: 0.53rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.page-stat + .page-stat { padding-left: 36px; border-left: 1px solid var(--border-2); }

/* ── Glass panel ── */
.glass-panel {
    background: rgba(13, 22, 40, 0.55);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* ── Floating card ── */
.f-card {
    background: var(--bg-2); border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 28px rgba(0,0,0,0.28);
    overflow: hidden;
}
.f-card-red { border-top: 2px solid var(--red); }
.f-card-header { padding: 20px 24px 18px; border-bottom: 1px solid var(--border-1); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.f-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text-1); }
.f-card-sub { font-family: var(--font-mono); font-size: 0.53rem; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.f-card-body { padding: 20px 24px; }

/* ── Pill buttons ── */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 100px; color: var(--text-2);
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
    padding: 6px 14px; cursor: pointer;
    transition: all 0.18s; text-transform: uppercase; letter-spacing: 1px;
    white-space: nowrap; outline: none;
}
.pill:hover { background: rgba(255,255,255,0.1); color: var(--text-1); border-color: rgba(255,255,255,0.18); }
.pill.active { background: rgba(214,48,49,0.12); border-color: rgba(214,48,49,0.35); color: var(--red); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── Modern form inputs ── */
.v2-input, .v2-select, .v2-area {
    width: 100%; background: rgba(13,22,40,0.7);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
    padding: 12px 16px; color: var(--text-1);
    font-family: var(--font-body); font-size: 0.9rem;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.v2-input:focus, .v2-area:focus, .v2-select:focus {
    border-color: rgba(214,48,49,0.5);
    box-shadow: 0 0 0 3px rgba(214,48,49,0.1);
}
.v2-input::placeholder, .v2-area::placeholder { color: var(--text-3); }
.v2-select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.v2-area { resize: vertical; min-height: 100px; font-family: var(--font-body); }
.v2-label { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.v2-field { margin-bottom: 20px; }
.v2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
    background: var(--red); color: #fff; border: none;
    padding: 13px 28px; border-radius: 10px; cursor: pointer;
    transition: all 0.2s; letter-spacing: 0.01em;
}
.v2-btn:hover { background: var(--red-hi); box-shadow: 0 6px 24px rgba(214,48,49,0.3); transform: translateY(-1px); }
.v2-btn:disabled { background: var(--bg-3); color: var(--text-3); cursor: not-allowed; transform: none; box-shadow: none; }
.v2-btn-ghost {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-2); border-radius: 10px;
    padding: 11px 22px; font-family: var(--font-mono); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: all 0.2s;
}
.v2-btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-1); }

/* ── Loading state ── */
@keyframes v2-shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.v2-loading-bar { width: 100%; height: 2px; background: var(--border-2); border-radius: 2px; overflow: hidden; }
.v2-loading-bar::after { content:''; display:block; width:40%; height:100%; background:linear-gradient(90deg,transparent,var(--red),transparent); animation: v2-shimmer 1.2s infinite; }

/* ── Empty / state blocks ── */
.v2-state { text-align: center; padding: 80px 20px; }
.v2-state-icon { font-size: 2.5rem; opacity: 0.15; margin-bottom: 16px; }
.v2-state-text { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 2px; line-height: 2; }

/* ── Section divider ── */
.v2-divider { border: none; border-top: 1px solid var(--border-1); margin: 0; }

/* ── Badge ── */
.v2-badge { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 2px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; border: 1px solid; }
.v2-badge-red { color: var(--red); border-color: var(--border-red); background: var(--red-dim); }
.v2-badge-green { color: #4ade80; border-color: rgba(74,222,128,0.25); background: rgba(74,222,128,0.08); }
.v2-badge-gray { color: var(--text-2); border-color: var(--border-2); background: var(--border-1); }

/* ── Scroll area ── */
.v2-scroll::-webkit-scrollbar { width: 4px; }
.v2-scroll::-webkit-scrollbar-track { background: transparent; }
.v2-scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.v2-scroll::-webkit-scrollbar-thumb:hover { background: var(--border-3); }
