@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap");

:root {
    --bg:         #050508;
    --bg-soft:    #08090f;
    --surface:    #0c0e18;
    --surface-2:  #111428;
    --cyan:       #00f5ff;
    --cyan-dim:   rgba(0,245,255,0.08);
    --cyan-glow:  rgba(0,245,255,0.25);
    --cyan-mid:   rgba(0,245,255,0.55);
    --magenta:    #ff00c8;
    --mag-dim:    rgba(255,0,200,0.07);
    --mag-glow:   rgba(255,0,200,0.2);
    --yellow:     #ffe600;
    --border:     rgba(0,245,255,0.12);
    --border-hot: rgba(0,245,255,0.35);
    --text:       #e8eeff;
    --muted:      #6b7590;
    --muted-2:    #3a4060;
    --radius-xl:  4px;
    --radius-lg:  3px;
    --radius-md:  2px;
    --ease:       cubic-bezier(0.22,1,0.36,1);
}

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

body {
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Scanlines overlay ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 4px
    );
    pointer-events: none;
    z-index: 9998;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    from { background-position: 0 0; }
    to   { background-position: 0 100px; }
}

/* ── Ambient neon bg ── */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(0,245,255,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 70%, rgba(255,0,200,0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 50% 100%, rgba(0,245,255,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }

/* ── Page shells ── */
.page-shell,
.status-layout,
.key-layout {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 80px;
}

.status-layout,
.key-layout {
    width: min(900px, calc(100% - 40px));
}

/* ── Nav ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    border-top: 1px solid var(--cyan-mid);
    background: rgba(8,9,15,0.92);
    backdrop-filter: blur(20px);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    animation: slideDown 0.6s var(--ease) both;
    box-shadow: 0 0 30px rgba(0,245,255,0.06), inset 0 1px 0 rgba(0,245,255,0.15);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: relative;
    background: var(--cyan-mid);
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--cyan);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    filter: drop-shadow(0 0 6px var(--cyan-glow));
    transition: filter 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 1px; /* 1px border thickness */
    background: var(--surface-2);
    /* Calculate inner clip path to maintain 45 degree angle: 8 - 1 = 7px */
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
    z-index: -1;
}

.brand:hover .brand-mark {
    filter: drop-shadow(0 0 12px var(--cyan-glow));
}

.brand-copy { display: flex; flex-direction: column; gap: 1px; }

.brand-copy strong {
    font-family: "Orbitron", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.brand-copy span { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }

.nav-links { display: flex; gap: 2px; }

.nav-links a {
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    box-shadow: 0 0 6px var(--cyan);
}

.nav-links a:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan-glow); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Social links ── */
.social-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s var(--ease);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.social-link:hover {
    color: var(--cyan);
    border-color: var(--cyan-mid);
    box-shadow: 0 0 14px var(--cyan-glow);
    transform: translateY(-2px);
}

.social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ── Buttons ── */
.primary-button,
.ghost-button,
.secondary-button,
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.primary-button {
    background: transparent;
    color: var(--cyan);
    border-color: var(--cyan-mid);
    box-shadow: 0 0 16px var(--cyan-glow), inset 0 0 16px rgba(0,245,255,0.04);
}

.primary-button:hover {
    background: rgba(0,245,255,0.08);
    box-shadow: 0 0 30px var(--cyan-glow), 0 0 60px rgba(0,245,255,0.1), inset 0 0 20px rgba(0,245,255,0.06);
    transform: translateY(-1px);
    text-shadow: 0 0 8px var(--cyan);
}

.primary-button:active { transform: scale(0.98); }

.ghost-button, .secondary-button, .copy-button {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}

.ghost-button:hover, .secondary-button:hover, .copy-button:hover {
    color: var(--text);
    border-color: var(--border-hot);
    box-shadow: 0 0 12px rgba(0,245,255,0.1);
}

.copy-button[data-state="success"] {
    color: var(--cyan);
    border-color: var(--cyan-mid);
    box-shadow: 0 0 14px var(--cyan-glow);
}

/* ── HOW TO GET KEY button ── */
.howto-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid rgba(255,0,200,0.4);
    background: transparent;
    color: var(--magenta);
    box-shadow: 0 0 14px var(--mag-glow), inset 0 0 14px rgba(255,0,200,0.03);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.25s ease;
    text-decoration: none;
}

.howto-button:hover {
    background: rgba(255,0,200,0.07);
    box-shadow: 0 0 28px var(--mag-glow), 0 0 50px rgba(255,0,200,0.08);
    text-shadow: 0 0 8px var(--magenta);
    transform: translateY(-1px);
}

/* ── Panel base ── */
.panel, .key-card, .info-card, .status-card, .feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.panel::before, .key-card::before, .info-card::before, .status-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,245,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.panel-body, .key-card, .status-card { padding: 32px; }
.info-card { padding: 24px; }

.info-card, .feature-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover, .feature-card:hover {
    border-color: var(--border-hot);
    box-shadow: 0 0 24px rgba(0,245,255,0.08);
}

/* ── Hero layout ── */
.hero, .status-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 16px;
    align-items: start;
}

.hero-aside { display: flex; flex-direction: column; gap: 14px; }

/* ── Typography ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Orbitron", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

h1, .section-title {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--text);
    text-shadow: 0 0 40px rgba(0,245,255,0.15);
}

h2 {
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    color: var(--text);
}

p, .hero-copy, .muted {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hero-copy { margin-top: 16px; max-width: 540px; }

/* ── Status boxes ── */
.status-box, .status-value, .key-display {
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    background: rgba(0,245,255,0.02);
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.status-label {
    display: block;
    font-family: "Orbitron", sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 8px;
}

.status-box[data-state="working"], .status-value[data-state="working"] {
    border-color: rgba(0,245,255,0.3);
    box-shadow: 0 0 20px rgba(0,245,255,0.1);
    color: var(--cyan);
}

.status-box[data-state="error"], .status-value[data-state="error"] {
    border-color: rgba(255,0,80,0.4);
    box-shadow: 0 0 16px rgba(255,0,80,0.15);
    color: #ff3a5e;
}

.status-box[data-state="success"], .status-value[data-state="success"] {
    border-color: rgba(0,245,255,0.4);
    box-shadow: 0 0 20px rgba(0,245,255,0.15);
    color: var(--cyan);
}

/* ── Key display ── */
.key-display {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    padding: 28px 24px;
    background: var(--surface-2);
    border-color: var(--border-hot);
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
    box-shadow: inset 0 0 30px rgba(0,245,255,0.05);
}

/* ── Actions ── */
.hero-actions, .status-actions, .key-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ── Step list ── */
.step-list { display: flex; flex-direction: column; gap: 8px; }

.step-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(0,245,255,0.015);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
    border-color: rgba(0,245,255,0.25);
    box-shadow: 0 0 12px rgba(0,245,255,0.06);
}

.step-index {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-hot);
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.step-copy { display: flex; flex-direction: column; gap: 2px; }
.step-copy strong { color: var(--text); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; }
.step-copy span { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ── Grids ── */
.badge-row, .feature-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 20px;
}

.stat-grid, .key-meta {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 18px;
}

.badge, .mini-stat, .key-meta-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover, .mini-stat:hover {
    border-color: var(--border-hot);
    box-shadow: 0 0 16px rgba(0,245,255,0.08);
}

.badge strong, .mini-stat strong, .key-meta-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--text);
    font-family: "Orbitron", sans-serif;
}

.badge span, .mini-stat span, .key-meta-value, .feature-card p {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.feature-index, .route-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--border-hot);
    background: rgba(0,245,255,0.04);
    font-family: "Orbitron", sans-serif;
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* ── Signal / relay ── */
.status-hero {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    align-items: center;
}

.signal-wrap {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    position: relative;
}

.signal-wrap::before, .signal-wrap::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(0,245,255,0.2);
    animation: pulseRing 2.4s ease-out infinite;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    width: 100%;
    height: 100%;
}

.signal-wrap::after { animation-delay: 0.6s; }

.signal-core {
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border: 1px solid var(--cyan-mid);
    box-shadow: 0 0 20px var(--cyan-glow), inset 0 0 10px rgba(0,245,255,0.08);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ── Footer band ── */
.footer-band {
    margin-top: 48px;
    padding: 20px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--cyan-mid);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 0 20px rgba(0,245,255,0.04);
}

.footer-left { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.footer-left strong {
    color: var(--cyan);
    font-family: "Orbitron", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2px;
    text-shadow: 0 0 8px var(--cyan-glow);
}

.footer-links { display: flex; gap: 8px; }
.footer-note { display: none; }

/* ── Cursor glow ── */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: 0; top: 0;
    transform: translate3d(-50%,-50%,0);
    background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

body.cursor-ready .cursor-glow { opacity: 1; }
body.cursor-hover .cursor-glow {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0,245,255,0.09) 0%, rgba(255,0,200,0.03) 40%, transparent 65%);
}

/* ── Animations ── */
@keyframes slideDown {
    from { opacity:0; transform:translateY(-20px); }
    to   { opacity:1; transform:translateY(0); }
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
}

@keyframes pulseRing {
    0%   { transform:scale(0.8); opacity:0.8; }
    100% { transform:scale(1.4); opacity:0; }
}

@keyframes neonFlicker {
    0%,100% { opacity:1; }
    92%     { opacity:1; }
    93%     { opacity:0.4; }
    94%     { opacity:1; }
    96%     { opacity:0.6; }
    97%     { opacity:1; }
}

.page-shell > *, .status-layout > *, .key-layout > * {
    animation: fadeUp 0.7s var(--ease) both;
}

.page-shell > *:nth-child(2), .status-layout > *:nth-child(2), .key-layout > *:nth-child(2) { animation-delay:0.08s; }
.page-shell > *:nth-child(3), .status-layout > *:nth-child(3), .key-layout > *:nth-child(3) { animation-delay:0.16s; }
.page-shell > *:nth-child(4), .status-layout > *:nth-child(4), .key-layout > *:nth-child(4) { animation-delay:0.22s; }

/* ══════════════════════════════════════════════════════
   HOME PAGE — Hero split
   ══════════════════════════════════════════════════════ */

.hero-main {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 48px 40px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    overflow: hidden;
}

.hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,245,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Corner decorations */
.corner-tl,
.corner-br {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.corner-tl {
    top: 0;
    left: 0;
    border-top: 2px solid var(--cyan-mid);
    border-left: 2px solid var(--cyan-mid);
    opacity: 0.5;
}

.corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--magenta);
    border-right: 2px solid var(--magenta);
    opacity: 0.35;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Orbitron", sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.hero-eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.hero-title .line1 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--text);
    text-shadow: 0 0 40px rgba(0,245,255,0.15);
}

.hero-title .line2 {
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-sub {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Hero sidebar — stat cards */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 22px 24px;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-hot);
    box-shadow: 0 0 20px rgba(0,245,255,0.08);
}

.stat-num {
    font-family: "Orbitron", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan);
    text-shadow: 0 0 14px var(--cyan-glow);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Section labels
   ══════════════════════════════════════════════════════ */

.section-label {
    font-family: "Orbitron", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Features section
   ══════════════════════════════════════════════════════ */

.features-section {
    margin-bottom: 28px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-block {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 24px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    border-color: var(--border-hot);
    box-shadow: 0 0 20px rgba(0,245,255,0.08);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border-hot);
    margin-bottom: 16px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.feature-block h3 {
    margin-bottom: 8px;
}

.feature-block p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Stats pills
   ══════════════════════════════════════════════════════ */

.stats-section {
    margin-bottom: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 14px 16px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-pill:hover {
    border-color: var(--border-hot);
    box-shadow: 0 0 14px rgba(0,245,255,0.06);
}

.stat-pill-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.stat-pill-name {
    font-family: "Orbitron", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
}

.stat-pill-note {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 1px;
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Tabs & Tab panels
   ══════════════════════════════════════════════════════ */

.tables-section {
    margin-bottom: 28px;
}

.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

.tab {
    padding: 9px 18px;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--text);
    border-color: var(--border-hot);
}

.tab.active {
    background: var(--surface-2);
    color: var(--cyan);
    border-color: var(--cyan-mid);
    box-shadow: 0 0 12px var(--cyan-glow);
    text-shadow: 0 0 6px var(--cyan-glow);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tab-slide-in 0.4s var(--ease) forwards;
}

@keyframes tab-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Player lists
   ══════════════════════════════════════════════════════ */

.position-block {
    background: var(--surface);
    border: 1px solid var(--border);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    overflow: hidden;
}

.position-header {
    padding: 14px 20px;
    font-family: "Orbitron", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.position-header span {
    color: var(--muted);
    font-family: "Rajdhani", sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-left: 8px;
}

.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0,245,255,0.05);
    transition: background 0.15s ease;
}

.player-item:hover {
    background: rgba(0,245,255,0.03);
}

.player-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.player-rank {
    font-family: "Orbitron", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

/* Rank color variants */
.rank-s-plus {
    color: #ffe600;
    border-color: rgba(255,230,0,0.35);
    background: rgba(255,230,0,0.06);
    text-shadow: 0 0 8px rgba(255,230,0,0.4);
}

.rank-s {
    color: #ff9d00;
    border-color: rgba(255,157,0,0.3);
    background: rgba(255,157,0,0.06);
    text-shadow: 0 0 6px rgba(255,157,0,0.3);
}

.rank-s-minus {
    color: #ff6b7a;
    border-color: rgba(255,107,122,0.3);
    background: rgba(255,107,122,0.06);
}

.rank-a-plus {
    color: #7eb0ff;
    border-color: rgba(126,176,255,0.3);
    background: rgba(126,176,255,0.06);
}

.rank-a {
    color: #a0a8c0;
    border-color: rgba(160,168,192,0.2);
    background: rgba(160,168,192,0.05);
}

.rank-a-minus {
    color: var(--muted);
    border-color: rgba(107,117,144,0.2);
    background: rgba(107,117,144,0.05);
}

.rank-none {
    color: var(--muted-2);
    border-color: var(--border);
    background: rgba(0,245,255,0.02);
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Get Script section
   ══════════════════════════════════════════════════════ */

#get-script-section .panel {
    text-align: center;
}

#get-script-section .panel-body {
    padding: 48px 32px;
}

/* Danger text color helper */
:root {
    --danger: #ff3a5e;
}

/* ── Responsive ── */
@media (max-width:960px) {
    .hero, .status-grid, .badge-row, .feature-grid, .stat-grid, .key-meta { grid-template-columns:1fr; }
    .status-hero { grid-template-columns:1fr; }
    #main-hero-area { grid-template-columns:1fr !important; }
    .features-grid { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width:640px) {
    .page-shell, .status-layout, .key-layout { width:calc(100% - 24px); }
    .nav { clip-path:none; flex-direction:column; align-items:stretch; padding:16px; }
    .nav-links, .hero-actions, .status-actions, .key-actions, .hero-cta { flex-direction:column; }
    .nav-links a, .ghost-button, .primary-button, .secondary-button, .copy-button, .howto-button { width:100%; justify-content:center; clip-path:none; }
    h1, .section-title { font-size:1.8rem; }
    .hero-title .line1, .hero-title .line2 { font-size: 1.8rem; }
    .hero-main { padding: 28px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .player-list { grid-template-columns: 1fr; }
    .tabs { flex-wrap: wrap; }
    .tab { flex: 1; min-width: 100px; text-align: center; font-size: 0.75rem; padding: 10px 12px; }
    .stat-card { padding: 16px 18px; }
    .stat-num { font-size: 1.3rem; }
    .footer-band { flex-direction: column; text-align: center; gap: 12px; clip-path: none; }
    .footer-links { justify-content: center; }
    .section-label { font-size: 0.62rem; }
    .cursor-glow { display:none; }
}

/* Cyberpunk Warning Marquee */
.warning-banner {
    background: rgba(255, 0, 60, 0.1);
    border-top: 1px solid #ff003c;
    border-bottom: 1px solid #ff003c;
    padding: 10px 0;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.warning-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

.warning-text {
    color: #ff003c;
    font-family: monospace;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 40px;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.warning-text span {
    color: #fff;
    animation: glitch-flicker 3s infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes glitch-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; }
}

/* ── Live Counter Glitch ── */
.stat-num.updating {
    animation: counter-glitch 0.4s ease;
    color: var(--yellow);
    text-shadow: 0 0 15px var(--yellow);
}

@keyframes counter-glitch {
    0% { transform: translateY(0) skew(0); opacity: 1; }
    20% { transform: translateY(-2px) skew(10deg); opacity: 0.7; color: var(--magenta); }
    40% { transform: translateY(2px) skew(-10deg); opacity: 0.8; color: var(--cyan); }
    60% { transform: translateY(-1px) skew(5deg); opacity: 0.9; }
    80% { transform: translateY(1px) skew(-5deg); opacity: 1; }
    100% { transform: translateY(0) skew(0); opacity: 1; }
}

/* Highlight Flash Animation */
.highlight-flash {
    animation: flash-highlight 1.5s ease-out;
}

@keyframes flash-highlight {
    0% { background-color: transparent; }
    30% { background-color: rgba(0, 255, 255, 0.15); border: 1px solid #0ff; }
    100% { background-color: transparent; }
}

/* ══════════════════════════════════════════════════════
   DYNAMIC ANNOUNCEMENT BAR
   ══════════════════════════════════════════════════════ */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: linear-gradient(90deg, #050508, #111428, #050508);
    border-bottom: 2px solid var(--cyan-mid);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.15);
    visibility: hidden;
}

.announcement-bar.show {
    transform: translateY(0);
    visibility: visible;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Orbitron", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    text-align: center;
}

.announcement-tag {
    background: var(--cyan-mid);
    color: var(--bg);
    padding: 2px 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.announcement-bar[data-type="warning"] .announcement-tag { background: #ff3a5e; color: #fff; animation: pulseRing 1.5s infinite; }
.announcement-bar[data-type="warning"] { border-bottom-color: #ff3a5e; box-shadow: 0 4px 20px rgba(255, 58, 94, 0.2); }

.announcement-bar[data-type="important"] .announcement-tag { background: var(--yellow); color: #000; }
.announcement-bar[data-type="important"] { border-bottom-color: var(--yellow); box-shadow: 0 4px 20px rgba(255, 230, 0, 0.15); }

.announcement-bar[data-type="update"] .announcement-tag { background: var(--magenta); color: #fff; }
.announcement-bar[data-type="update"] { border-bottom-color: var(--magenta); box-shadow: 0 4px 20px rgba(255, 0, 200, 0.15); }

.announcement-bar[data-type="notice"] .announcement-tag { background: var(--cyan-mid); color: #000; }
.announcement-bar[data-type="notice"] { border-bottom-color: var(--cyan-mid); }

.announcement-close {
    position: absolute;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.announcement-close:hover {
    color: var(--cyan);
}

@media (max-width: 640px) {
    .announcement-content { font-size: 0.75rem; }
    .announcement-tag { display: none; }
}