/* ============================================================
   FREE FIRE MATCH HUB — TOXIC VOLT NEUMORPHIC SYSTEM
   Aesthetic: Obsidian Surface / Radioactive Depth / Lightning
   Fonts: Plus Jakarta Sans (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&family=DM+Sans:wght@300;400;500;700&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

ul {
    list-style: none;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #020203, 0 0 0 4px #a8ff1a;
    border-radius: 16px;
}

/* ============================================================
   ROOT TOKENS — TOXIC VOLT SYSTEM
   ============================================================ */
:root {
    /* Fonts */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* ── BASE SURFACE — Deep Obsidian ── */
    --bg-base: #101014;
    --bg-surface: #17171d;
    --bg-inset: #0a0a0c;

    /* ── ACCENT — Intense Volt Green ── */
    --accent: #a8ff1a;
    --accent-light: #c2ff4d;
    --accent-dim: rgba(168, 255, 26, 0.6);
    --accent-secondary: #84cc16;

    /* ── TEXT ── */
    --text-1: #ffffff;
    --text-2: #ecfccb;
    --text-3: #a3e635;
    --text-4: rgba(255, 255, 255, 0.6);

    /* ── STATUS COLORS ── */
    --green: #4ade80;
    --green-soft: rgba(74, 222, 128, 0.12);
    --orange: #fb923c;
    --orange-soft: rgba(251, 146, 60, 0.12);
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.12);
    --blue: #60a5fa;
    --blue-soft: rgba(96, 165, 250, 0.12);
    --purple: #c084fc;
    --purple-soft: rgba(192, 132, 252, 0.12);

    /* ── SHADOW PHYSICS — TOXIC VOLT LIGHT SOURCE ── */
    --shadow-extruded:
        10px 10px 20px rgba(0, 0, 0, 0.85),
        -5px -5px 15px rgba(168, 255, 26, 0.08);

    --shadow-extruded-hover:
        15px 15px 30px rgba(0, 0, 0, 0.95),
        -8px -8px 25px rgba(168, 255, 26, 0.15),
        0 0 0 1px rgba(168, 255, 26, 0.1);

    --shadow-extruded-sm:
        5px 5px 10px rgba(0, 0, 0, 0.8),
        -2px -2px 8px rgba(168, 255, 26, 0.05);

    --shadow-inset:
        inset 6px 6px 12px rgba(0, 0, 0, 0.9),
        inset -4px -4px 10px rgba(168, 255, 26, 0.05);

    --shadow-inset-deep:
        inset 12px 12px 24px rgba(0, 0, 0, 0.95),
        inset -6px -6px 16px rgba(168, 255, 26, 0.08);

    --shadow-inset-sm:
        inset 3px 3px 6px rgba(0, 0, 0, 0.8),
        inset -2px -2px 4px rgba(168, 255, 26, 0.04);

    --shadow-accent:
        0 0 25px rgba(168, 255, 26, 0.5),
        0 0 10px rgba(168, 255, 26, 0.3);

    /* Legacy aliases */
    --shadow-sm: var(--shadow-extruded-sm);
    --shadow-md: var(--shadow-extruded);
    --shadow-lg: var(--shadow-extruded-hover);
    --shadow-cyan: var(--shadow-accent);
    --shadow-purple: var(--shadow-extruded);

    /* ── RADIUS ── */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* ── SPACING ── */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 18px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* ── ANIMATION ── */
    --dur-fast: 0.18s;
    --dur-mid: 0.3s;
    --dur-slow: 0.5s;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* ── TYPE SCALE ── */
    --text-h1: clamp(2.4rem, 5vw + 0.8rem, 4.2rem);
    --text-h2: clamp(1.7rem, 3vw + 0.6rem, 2.8rem);
    --text-h3: clamp(1.1rem, 1.5vw + 0.6rem, 1.5rem);

    /* ── GRADIENTS ── */
    --grad-brand: linear-gradient(135deg, #a8ff1a 0%, #84cc16 100%);
    --grad-brand-alt: linear-gradient(135deg, #84cc16 0%, #a8ff1a 60%, #c2ff4d 100%);
    --grad-teal: linear-gradient(135deg, #4ade80, #16a34a);
    --grad-violet: linear-gradient(135deg, #c084fc, #7c3aed);
    --grad-dark: linear-gradient(180deg, rgba(168, 255, 26, 0.08), rgba(168, 255, 26, 0.02));
    --grad-header-text: linear-gradient(135deg, #ffffff 0%, #a8ff1a 100%);

    /* Layout aliases used by a few inline styles/templates */
    --bg-card: var(--bg-surface);
    --border-soft: rgba(168, 255, 26, 0.12);
    --page-gutter: clamp(16px, 4vw, 48px);
    --container-max: 1220px;
}

/* ============================================================
   GLOBAL BACKGROUND — OBSIDIAN + LIGHTNING GRID
   ============================================================ */
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-1);
    min-height: 100vh;
    background-color: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 50% 50% at 0% 30%, rgba(168, 255, 26, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 100% 70%, rgba(168, 255, 26, 0.08) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cpath d='M-50,250 L80,290 L120,230 L250,300 L310,260 L450,340 L500,280 L650,370' stroke='%23a8ff1a' stroke-width='1.5' fill='none' opacity='0.35' filter='blur(2px)'/%3E%3Cpath d='M-50,250 L80,290 L120,230 L250,300 L310,260 L450,340 L500,280 L650,370' stroke='%23ffffff' stroke-width='0.5' fill='none' opacity='0.6'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cpath d='M1050,700 L900,660 L850,720 L720,630 L660,680 L520,590 L460,650 L300,560' stroke='%23a8ff1a' stroke-width='1.5' fill='none' opacity='0.35' filter='blur(2px)'/%3E%3Cpath d='M1050,700 L900,660 L850,720 L720,630 L660,680 L520,590 L460,650 L300,560' stroke='%23ffffff' stroke-width='0.5' fill='none' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px);
    opacity: 0.5;
}

/* ── HEADINGS ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.3px;
    text-wrap: balance;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-4);
}

.container {
    width: min(var(--container-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================
   NEUMORPHIC CARD BASE — OBSIDIAN MOLDING
   ============================================================ */
.glass-card,
.stat-card,
.feature-card,
.match-card,
.step-card,
.cta-box,
.details-card,
.dashboard-card,
.main-details-card,
.side-details-card,
.my-match-card,
.admin-stat-card,
.admin-panel-card,
.empty-state-card,
.notification-item {
    position: relative;
    background: var(--bg-surface);
    border: none;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-extruded);
    overflow: hidden;
}

.glass-card::before,
.feature-card::before,
.match-card::before,
.step-card::before,
.details-card::before,
.dashboard-card::before,
.main-details-card::before,
.side-details-card::before,
.my-match-card::before,
.admin-stat-card::before,
.admin-panel-card::before,
.empty-state-card::before,
.notification-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(168, 255, 26, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.glass-card::after,
.feature-card::after,
.match-card::after,
.step-card::after,
.details-card::after,
.dashboard-card::after,
.main-details-card::after,
.side-details-card::after,
.my-match-card::after,
.admin-stat-card::after,
.admin-panel-card::after,
.empty-state-card::after,
.notification-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
        linear-gradient(145deg, rgba(168, 255, 26, 0.25) 0%, transparent 50%) border-box;
    pointer-events: none;
    z-index: 0;
}

.glass-card>*,
.stat-card>*,
.feature-card>*,
.match-card>*,
.step-card>*,
.cta-box>*,
.details-card>*,
.dashboard-card>*,
.main-details-card>*,
.side-details-card>*,
.my-match-card>*,
.admin-stat-card>*,
.admin-panel-card>*,
.empty-state-card>*,
.notification-item>* {
    position: relative;
    z-index: 1;
}

/* ============================================================
   APP PROMO BANNER (Download APK Neon Tube)
   ============================================================ */
.app-promo-section {
    padding: 30px 0 0;
    position: relative;
    z-index: 10;
}

.app-promo-card {
    position: relative;
    border: 2px solid var(--accent);
    box-shadow: 0 0 25px rgba(168, 255, 26, 0.35), inset 0 0 25px rgba(168, 255, 26, 0.2);
    background: linear-gradient(90deg, rgba(168, 255, 26, 0.15) 0%, var(--bg-base) 40%);
    border-radius: 16px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeUp 0.6s var(--ease) both;
}

.app-promo-card::before {
    content: none;
}

.promo-content {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 2;
}

.promo-content h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 900;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    color: var(--text-1);
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.promo-content p {
    color: var(--text-4);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.promo-actions {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .app-promo-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .promo-content h2 {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .promo-actions {
        width: 100%;
    }

    .promo-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(168, 255, 26, 0.1);
}

.site-header::after {
    content: none;
}

.site-header::before {
    content: none;
}

/* ── User Avatar ── */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.avatar-btn {
    width: 44px;
    height: 44px;
    background: var(--grad-brand);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-extruded-sm), 0 0 15px rgba(168, 255, 26, 0.3);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.avatar-btn:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: var(--shadow-extruded-hover), 0 0 25px rgba(168, 255, 26, 0.5);
}

.avatar-btn:active {
    transform: translateY(0.5px);
    box-shadow: var(--shadow-inset-sm);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    background: var(--bg-surface);
    min-width: 220px;
    border: none;
    border-radius: var(--r-lg);
    z-index: 1300;
    padding: 10px;
    box-shadow: var(--shadow-extruded-hover), 0 0 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(168, 255, 26, 0.1);
    animation: fadeIn 0.22s var(--ease);
}

.dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 8px 10px 10px;
}

.dropdown-header span {
    display: block;
    font-size: 12px;
    color: var(--text-4);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-display);
    font-weight: 700;
}

.dropdown-header strong {
    display: block;
    color: var(--text-1);
    font-size: 14px;
    font-weight: 700;
}

.dropdown-content hr {
    border: 0;
    border-top: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 255, 26, 0.2), transparent);
    margin: 8px 0;
}

.dropdown-content a {
    color: var(--text-4);
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    transition: all var(--dur-fast) var(--ease);
}

.dropdown-content a:hover,
.dropdown-content a.active-link {
    color: var(--accent);
    background: rgba(168, 255, 26, 0.08);
    box-shadow: var(--shadow-inset-sm);
}

.dropdown-content .logout-link {
    color: var(--red);
}

.dropdown-content .logout-link:hover {
    color: var(--red) !important;
    background: var(--red-soft) !important;
}

/* Legacy alias */
.logout-link:hover {
    color: var(--red) !important;
    background: var(--red-soft) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 14px 0;
    position: relative;
}

.logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(168, 255, 26, 0.4));
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-menu>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-4);
    border: none;
    transition: all var(--dur-fast) var(--ease);
    white-space: nowrap;
}

.nav-menu>a:hover {
    color: var(--accent);
    box-shadow: var(--shadow-extruded-sm);
    transform: translateY(-1px);
}

.nav-menu>a:active {
    transform: translateY(0.5px);
    box-shadow: var(--shadow-inset-sm);
}

.nav-menu>a.active-link {
    color: var(--accent);
    box-shadow: var(--shadow-inset-sm);
    font-weight: 700;
}

.nav-menu .nav-btn {
    background: var(--grad-brand);
    color: #000;
    border: none;
    box-shadow: var(--shadow-extruded-sm), 0 0 14px rgba(168, 255, 26, 0.2);
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-weight: 900;
}

.nav-menu .nav-btn:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 24px rgba(168, 255, 26, 0.4);
}

.nav-menu .nav-btn:active {
    transform: translateY(0.5px);
    box-shadow: var(--shadow-inset-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 0 80px;
    overflow: hidden;
}

/* Radioactive concentric ring art */
.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(168, 255, 26, 0.12),
        0 0 0 60px rgba(168, 255, 26, 0.02),
        0 0 0 61px rgba(132, 204, 22, 0.08),
        0 0 0 130px rgba(168, 255, 26, 0.01),
        0 0 0 131px rgba(132, 204, 22, 0.05),
        0 0 80px 0px rgba(132, 204, 22, 0.08);
    pointer-events: none;
    animation: float 6s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 30%, rgba(132, 204, 22, 0.08), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(132, 204, 22, 0.04), transparent 35%);
}

@keyframes ambientGlow {
    from {
        opacity: 0.8;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 1;
        transform: scale(1.04) translateY(-8px);
    }
}

@keyframes float {
    from {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) scale(1.04) rotate(6deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 42px;
    border-radius: var(--r-xl);
    background: var(--bg-surface);
    box-shadow: var(--shadow-extruded-hover), 0 0 60px rgba(132, 204, 22, 0.06);
    animation: fadeUp 0.75s var(--ease) both;
}

/* Volt sheen highlight */
.hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(132, 204, 22, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: var(--r-pill);
    margin-bottom: 24px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    box-shadow: var(--shadow-inset-sm);
    background: var(--bg-base);
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grad-brand);
    box-shadow: 0 0 10px rgba(168, 255, 26, 0.8), 0 0 20px rgba(168, 255, 26, 0.4);
    animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(168, 255, 26, 0.8), 0 0 20px rgba(168, 255, 26, 0.4);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.78);
        box-shadow: 0 0 4px rgba(168, 255, 26, 0.4);
    }
}

.hero h1 {
    font-size: var(--text-h1);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.02;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.hero h1 span,
.hero h1 em {
    font-style: italic;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(168, 255, 26, 0.5));
}

.hero p {
    max-width: 680px;
    margin: 0 auto 34px;
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-4);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ============================================================
   BUTTONS (Pill Shaped, Intensely Glowing)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 28px;
    border-radius: var(--r-pill);
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.18) 50%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.55s var(--ease);
}

.btn:hover::after {
    transform: translateX(120%);
}

/* PRIMARY — Volt Green, Black text, Neon halo */
.btn-primary {
    background: var(--accent);
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 25px rgba(168, 255, 26, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(168, 255, 26, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.5);
}

/* SECONDARY — Dark obsidian, volt text */
.btn-secondary {
    background: var(--bg-base);
    color: var(--accent);
    box-shadow: var(--shadow-extruded-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 16px rgba(168, 255, 26, 0.2);
    color: var(--text-1);
}

.btn-secondary:active {
    transform: translateY(0.5px);
    box-shadow: var(--shadow-inset-sm);
}

/* PURPLE */
.btn-purple {
    background: var(--grad-violet);
    color: #fff;
    box-shadow: var(--shadow-extruded-sm);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 18px rgba(192, 132, 252, 0.3);
}

.btn-purple:active {
    transform: translateY(0.5px);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.6), inset -4px -4px 8px rgba(192, 132, 252, 0.1);
}

/* DANGER */
.btn-danger {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    box-shadow: var(--shadow-extruded-sm);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 18px rgba(248, 113, 113, 0.3);
}

.btn-danger:active {
    transform: translateY(0.5px);
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.6), inset -4px -4px 8px rgba(248, 113, 113, 0.1);
}

/* OUTLINE */
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(168, 255, 26, 0.2), inset 0 0 10px rgba(168, 255, 26, 0.2);
}

.btn-outline:hover {
    background: rgba(168, 255, 26, 0.1);
    box-shadow: 0 0 20px rgba(168, 255, 26, 0.4), inset 0 0 15px rgba(168, 255, 26, 0.3);
    transform: translateY(-1px);
}

.btn-outline:active {
    box-shadow: var(--shadow-inset);
    transform: translateY(0.5px);
}

.small-btn {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 12px;
}

.full-btn {
    width: 100%;
}

/* Tactical ops button */
.btn-ops {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--bg-base);
    color: var(--accent);
    border: none;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-extruded-sm), 0 0 0 1px rgba(168, 255, 26, 0.1);
    transition: all var(--dur-fast) var(--ease);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-ops:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 24px rgba(168, 255, 26, 0.3);
    color: #000;
    background: var(--grad-brand);
}

.btn-ops:active {
    transform: translateY(0.5px);
    box-shadow: var(--shadow-inset-sm);
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.floating-stats,
.features-section,
.matches-preview,
.how-it-works,
.cta-section,
.dashboard-section,
.my-matches-section,
.auth-section,
.matches-list-section {
    padding: 42px 0;
}

.section-title-wrap {
    margin-bottom: 28px;
}

.section-title-wrap.center {
    text-align: center;
}

.mini-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    background: none;
    -webkit-text-fill-color: unset;
}

.mini-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--grad-brand);
    box-shadow: 0 0 8px rgba(168, 255, 26, 0.5), 0 0 16px rgba(168, 255, 26, 0.2);
}

.section-title-wrap h2,
.section-header h2,
.cta-box h2 {
    font-size: var(--text-h2);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.view-all {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), filter var(--dur-fast);
    background: none;
    -webkit-text-fill-color: unset;
}

.view-all:hover {
    gap: 10px;
    opacity: 0.8;
    filter: drop-shadow(0 0 6px rgba(168, 255, 26, 0.5));
}

/* ============================================================
   STATS (With "Ram" Borders)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    box-shadow: var(--shadow-extruded);
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-extruded-hover);
}

/* Top Ram Border */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 0 0 4px 4px;
    z-index: 2;
}

/* Bottom Ram Border */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    border-radius: 4px 4px 0 0;
    border: none;
    z-index: 2;
}

.stat-card h3 {
    font-size: 36px;
    font-weight: 900;
    font-style: italic;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-1);
    background: none;
    -webkit-text-fill-color: unset;
}

.stat-card p {
    color: var(--text-4);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-display);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px 24px;
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-extruded-hover), 0 0 24px rgba(132, 204, 22, 0.07);
}

/* Icon well: deeply inset, carved into obsidian */
.feature-icon,
.feature-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: var(--r-md);
    background: var(--bg-base);
    font-size: 22px;
    box-shadow: var(--shadow-inset-deep);
    color: var(--accent);
    filter: drop-shadow(0 0 4px rgba(168, 255, 26, 0.3));
}

.feature-card h3 {
    font-size: var(--text-h3);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-4);
}

/* ============================================================
   MATCH CARDS
   ============================================================ */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 20px;
}

.match-card {
    padding: 24px;
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-extruded-hover), 0 0 30px rgba(132, 204, 22, 0.08);
}

.match-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.match-card h3 {
    font-size: var(--text-h3);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.match-card p {
    font-size: 14px;
    color: var(--text-4);
}

.match-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: none;
    box-shadow: 0 -1px 0 rgba(168, 255, 26, 0.08), 0 -2px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-4);
    font-size: 13px;
}

/* ============================================================
   BADGES — INSET PILL SHAPES
   ============================================================ */
.mode-badge,
.status-badge,
.mini-badge,
.status-pill,
.admin-badge,
.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 13px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-inset-sm);
    color: var(--text-4);
}

.mode-badge.solo {
    color: var(--blue);
    box-shadow: var(--shadow-inset-sm);
}

.mode-badge.duo {
    color: var(--green);
    box-shadow: var(--shadow-inset-sm);
}

.mode-badge.squad {
    color: var(--purple);
    box-shadow: var(--shadow-inset-sm);
}

.status-badge.open,
.admin-status.upcoming,
.info-pill,
.mini-badge,
.admin-badge {
    color: var(--accent);
    box-shadow: var(--shadow-inset-sm), 0 0 8px rgba(168, 255, 26, 0.12);
}

.status-badge.full,
.admin-status.full,
.warning-pill {
    color: var(--orange);
    box-shadow: var(--shadow-inset-sm);
}

.success-pill,
.admin-status.completed {
    color: var(--green);
    box-shadow: var(--shadow-inset-sm);
}

.danger-pill,
.admin-status.cancelled {
    color: var(--red);
    box-shadow: var(--shadow-inset-sm);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.step-card {
    padding: 28px 24px;
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-extruded-hover), 0 0 20px rgba(132, 204, 22, 0.07);
}

/* Step number: extruded volt disc */
.step-number {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-brand);
    color: #000;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 18px;
    box-shadow: var(--shadow-extruded-sm), 0 0 16px rgba(168, 255, 26, 0.3);
}

.step-card h3 {
    font-size: 17px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-4);
}

/* ============================================================
   TACTICAL CTA BOX (Striped Warning)
   ============================================================ */
.cta-section {
    padding-bottom: 56px;
}

.cta-box {
    margin: 40px 0;
    padding: 56px 40px;
    text-align: center;
    background: var(--bg-surface);
    border-radius: 16px;
    border-top: 4px solid var(--accent);
    border-bottom: 4px solid var(--accent);
    position: relative;
    box-shadow: var(--shadow-extruded), 0 0 30px rgba(168, 255, 26, 0.15);
}

/* Top Left Stripes */
.cta-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 30px;
    width: 80px;
    height: 4px;
    background: repeating-linear-gradient(45deg, #000, #000 6px, var(--accent) 6px, var(--accent) 12px);
    z-index: 10;
}

/* Top Right Stripes */
.cta-box::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 30px;
    width: 80px;
    height: 4px;
    background: repeating-linear-gradient(45deg, #000, #000 6px, var(--accent) 6px, var(--accent) 12px);
    z-index: 10;
    border: none;
}

.cta-box h2 {
    margin-bottom: 14px;
}

.cta-box p {
    max-width: 560px;
    margin: 0 auto 28px;
    color: var(--text-4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    margin-top: 60px;
    background: var(--bg-base);
    border-top: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(168, 255, 26, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    padding: 48px 0 30px;
}

.footer-content h3 {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-content h4 {
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-content p,
.footer-content a {
    font-size: 14px;
    color: var(--text-4);
}

.footer-content a:hover {
    color: var(--accent);
    filter: drop-shadow(0 0 4px rgba(168, 255, 26, 0.4));
}

.footer-content li+li {
    margin-top: 10px;
}

.footer-bottom {
    padding: 18px 0 24px;
    box-shadow: 0 -1px 0 rgba(168, 255, 26, 0.06);
    text-align: center;
    font-size: 13px;
    color: var(--text-4);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 58px 0 24px;
    position: relative;
}

.page-hero.small-page-hero .page-hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 38px 30px;
    border-radius: var(--r-xl);
    background: var(--bg-base);
    box-shadow: var(--shadow-extruded);
}

.page-hero-content h1 {
    font-size: clamp(26px, 4vw + 8px, 38px);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.page-hero-content p {
    font-size: 15px;
    color: var(--text-4);
}

/* ============================================================
   FILTER BAR / TABS
   ============================================================ */
.filter-section {
    padding: 8px 0 28px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn,
.tab-btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: var(--bg-base);
    color: var(--text-4);
    border: none;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: var(--shadow-extruded-sm);
    transition: all var(--dur-fast) var(--ease);
}

.filter-btn:hover,
.tab-btn:hover {
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-extruded), 0 0 12px rgba(168, 255, 26, 0.1);
}

.filter-btn.active,
.tab-btn.active {
    background: var(--grad-brand);
    color: #000;
    font-weight: 900;
    box-shadow: var(--shadow-inset-sm), 0 0 16px rgba(168, 255, 26, 0.25);
    transform: translateY(0.5px);
}

/* ============================================================
   AUTH / FORMS
   ============================================================ */
.auth-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.auth-grid .main-details-card,
.auth-grid .side-details-card,
.admin-page .admin-form-card {
    padding: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-4);
}

/* Inputs: carved obsidian wells */
.form-group input,
.form-group select,
.form-group textarea,
.result-input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: var(--r-md);
    border: none;
    background: var(--bg-inset);
    color: var(--text-1);
    outline: none;
    box-shadow: var(--shadow-inset);
    transition: box-shadow var(--dur-fast) var(--ease);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
    padding: 16px 18px;
}

.result-input {
    min-height: 42px;
    padding: 0 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-4);
    opacity: 0.5;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.result-input:hover {
    box-shadow: var(--shadow-inset-deep);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.result-input:focus {
    box-shadow: var(--shadow-inset-deep), 0 0 0 1px rgba(168, 255, 26, 0.3), 0 0 12px rgba(168, 255, 26, 0.1);
}

.form-group select option {
    background: var(--bg-surface);
    color: var(--text-1);
}

.form-note {
    font-size: 12px;
    color: var(--text-4);
}

/* Shared heading style */
.auth-grid .side-details-card h3,
.dashboard-card h3,
.main-details-card h2,
.side-details-card h3,
.my-match-card h3,
.details-card h3,
.admin-panel-head h3,
.admin-page .admin-form-head h3,
.empty-state-card h3,
.notification-item h4 {
    font-size: var(--text-h3);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.auth-grid .rules-list {
    padding-left: 18px;
    margin-bottom: 24px;
}

.auth-grid .rules-list li {
    list-style: disc;
    color: var(--text-4);
    margin-bottom: 10px;
    font-size: 14px;
}

/* Info box: inset well */
.auth-grid .info-box {
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset);
}

.auth-grid .info-box h4 {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 10px;
}

.auth-grid .info-box p {
    font-size: 14px;
    color: var(--text-4);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: var(--r-md);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-inset-sm);
}

.success-alert {
    color: var(--green);
    box-shadow: var(--shadow-inset-sm), inset 3px 0 0 var(--green);
}

.error-alert {
    color: var(--red);
    box-shadow: var(--shadow-inset-sm), inset 3px 0 0 var(--red);
}

.warning-alert {
    color: var(--orange);
    box-shadow: var(--shadow-inset-sm), inset 3px 0 0 var(--orange);
}

.info-alert {
    color: var(--accent);
    box-shadow: var(--shadow-inset-sm), inset 3px 0 0 var(--accent);
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-grid,
.dashboard-grid-upgraded {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.dashboard-card,
.main-details-card,
.side-details-card,
.my-match-card,
.details-card {
    padding: 26px;
}

.dashboard-info-list,
.details-list,
.admin-mini-list,
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Detail rows: inset obsidian strips */
.detail-row,
.admin-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: var(--r-md);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset-sm);
}

.detail-row span {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-4);
}

.detail-row strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    text-align: right;
}

.stats-mini-grid,
.stats-grid-wide {
    display: grid;
    gap: 14px;
}

.stats-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Mini stat box: extruded panel */
.mini-stat-box {
    min-height: 120px;
    padding: 20px 16px;
    border-radius: var(--r-lg);
    background: var(--bg-base);
    border: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-extruded-sm);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.mini-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded), 0 0 16px rgba(132, 204, 22, 0.08);
}

.mini-stat-box h4 {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 6px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(168, 255, 26, 0.25));
}

.mini-stat-box p {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-4);
}

.full-width-card {
    grid-column: 1 / -1;
}

.dashboard-actions,
.admin-actions,
.admin-page .admin-form-actions,
.match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-actions .btn,
.admin-page .admin-form-actions .btn {
    min-width: 145px;
}

/* Dashboard hero card */
.dashboard-hero-card {
    max-width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}

.dashboard-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

/* Profile completion: inset well */
.profile-completion-box {
    min-width: 180px;
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset);
    text-align: center;
}

.profile-completion-box span {
    display: block;
    font-size: 12px;
    color: var(--text-4);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--font-display);
    font-weight: 700;
}

.profile-completion-box strong {
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    color: var(--text-1);
    font-family: var(--font-display);
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-hero-meta span {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset-sm);
    font-size: 13px;
    color: var(--text-4);
}

.dashboard-highlight-card {
    box-shadow: var(--shadow-extruded), 0 0 0 1px rgba(168, 255, 26, 0.1), 0 0 20px rgba(132, 204, 22, 0.06);
}

.next-match-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: stretch;
}

.next-match-title {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.dashboard-countdown-box {
    margin: 0;
}

/* ============================================================
   MY MATCHES
   ============================================================ */
.my-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.compact-details-list {
    margin-bottom: 18px;
}

.match-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

/* ============================================================
   MATCH DETAILS / MISC
   ============================================================ */
.detailed-card {
    margin-bottom: 18px;
}

.card-note,
.muted-text {
    font-size: 13px;
    color: var(--text-4);
}

/* Countdown box: inset volt well */
.countdown-box,
.dashboard-countdown-box {
    padding: 22px;
    border-radius: var(--r-lg);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset);
}

.countdown-box h4,
.dashboard-countdown-box h4 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
    background: none;
    -webkit-text-fill-color: unset;
}

.countdown-box p,
.dashboard-countdown-box p {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* ============================================================
   TABS
   ============================================================ */
.match-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeUp 0.35s var(--ease) both;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--r-xl);
    border: none;
    background: var(--bg-inset);
    box-shadow: var(--shadow-inset);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bg-base);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    white-space: nowrap;
}

table th,
table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(168, 255, 26, 0.05), 0 2px 0 rgba(0, 0, 0, 0.4);
}

table td {
    color: var(--text-4);
    font-size: 14px;
    line-height: 1.5;
}

table tbody tr {
    transition: background var(--dur-fast) var(--ease);
}

table tbody tr:hover td {
    color: var(--text-1);
    background: rgba(168, 255, 26, 0.025);
}

table tbody tr:last-child td {
    box-shadow: none;
}

.result-table td .btn {
    min-width: unset;
}

/* ============================================================
   WALLET / AMOUNTS
   ============================================================ */
.amount-credit {
    color: var(--green);
    font-weight: 700;
}

.amount-debit {
    color: var(--red);
    font-weight: 700;
}

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notifications-list {
    gap: 14px;
}

.notification-item {
    padding: 20px;
    border-radius: var(--r-xl);
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.notification-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 20px rgba(132, 204, 22, 0.06);
}

/* Unread: volt accent inset marker */
.notification-item.unread {
    box-shadow: var(--shadow-extruded), inset 4px 0 0 var(--accent), 0 0 0 0 rgba(168, 255, 26, 0.1);
}

.notification-item h4 {
    margin-bottom: 8px;
}

.notification-item p {
    font-size: 14px;
    color: var(--text-4);
    margin-bottom: 6px;
}

.notification-item small {
    font-size: 12px;
    color: var(--text-4);
    opacity: 0.6;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state-card {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    padding: 60px 30px;
    background: var(--bg-inset);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-inset-deep);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.empty-state-card h3 {
    margin-bottom: 10px;
    color: var(--text-1);
}

.empty-state-card p {
    max-width: 540px;
    margin: 0 auto 24px;
    color: var(--text-4);
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card {
    min-height: 132px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-stat-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-4);
    margin-bottom: 10px;
}

.admin-stat-card h3 {
    font-size: 34px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.05;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 255, 26, 0.2));
}

.admin-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-panel-card {
    min-height: 100%;
    padding: 24px;
}

.admin-panel-card.full-span {
    grid-column: 1 / -1;
}

.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-panel-head h3 {
    margin: 0;
}

.admin-mini-item strong {
    display: block;
    color: var(--text-1);
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 600;
}

.admin-mini-item p {
    margin: 0;
    color: var(--text-4);
    font-size: 13px;
}

.admin-page .admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-page .admin-table-card {
    padding: 0;
    overflow: hidden;
    border-radius: var(--r-xl);
}

.admin-page .admin-table-head {
    padding: 20px 24px;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(168, 255, 26, 0.06), 0 2px 0 rgba(0, 0, 0, 0.4);
    background: var(--bg-base);
}

.admin-page .admin-table-head,
.admin-page .admin-form-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-page .admin-table-head h3 {
    margin: 0;
}

.admin-page .admin-table-head p,
.admin-page .admin-form-head p {
    margin: 0;
    color: var(--text-4);
    font-size: 14px;
}

.admin-page .admin-form-shell {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-page .admin-form-head {
    margin-bottom: 24px;
}

.admin-page .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.admin-page .admin-form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.admin-actions .btn {
    min-width: 88px;
    padding: 9px 12px;
    font-size: 12px;
}

/* ============================================================
   ADMIN PAGE OVERRIDES
   ============================================================ */
body.admin-page .page-hero.small-page-hero {
    padding: 40px 0 20px;
}

body.admin-page .page-hero-content {
    max-width: 980px;
    padding: 28px 24px;
}

body.admin-page .page-hero-content h1 {
    font-size: var(--text-h2);
    margin-bottom: 8px;
}

body.admin-page .dashboard-section,
body.admin-page .my-matches-section {
    padding-top: 0;
}

body.admin-page .details-card,
body.admin-page .dashboard-card {
    padding: 22px;
    border-radius: var(--r-xl);
}

body.admin-page .dashboard-actions {
    gap: 10px;
}

body.admin-page .dashboard-actions .btn,
body.admin-page table .btn {
    padding: 9px 14px;
    font-size: 12px;
    border-radius: var(--r-sm);
}

body.admin-page .nav-container {
    min-height: 74px;
}

body.admin-page .nav-menu a {
    font-size: 13px;
}

body.admin-page .mini-stat-box {
    min-height: 118px;
}

body.admin-page .mini-stat-box h4 {
    font-size: 28px;
}

body.admin-page .footer-bottom {
    padding: 12px 0 16px;
}

body.admin-page .avatar-btn {
    background: var(--grad-brand);
    color: #000;
    box-shadow: var(--shadow-extruded-sm), 0 0 12px rgba(168, 255, 26, 0.2);
}

/* ============================================================
   SCROLLBAR — TOXIC VOID STYLE
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
    box-shadow: var(--shadow-inset-sm);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 255, 26, 0.2);
    border-radius: 999px;
    border: 1px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 255, 26, 0.45);
    box-shadow: 0 0 6px rgba(168, 255, 26, 0.3);
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: rgba(168, 255, 26, 0.2);
    color: var(--text-1);
}

/* ============================================================
   MOBILE NAV / HAMBURGER
   ============================================================ */
.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-base);
    border-radius: var(--r-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: var(--shadow-extruded-sm);
    transition: box-shadow var(--dur-fast) var(--ease);
}

.mobile-menu-toggle:active {
    box-shadow: var(--shadow-inset-sm);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    display: block;
}

@media (max-width: 980px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .nav-container {
        min-height: 72px;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
        margin-left: 0;
        background: rgba(2, 2, 3, 0.96);
        backdrop-filter: blur(20px);
        border: none;
        border-radius: var(--r-xl);
        box-shadow: var(--shadow-extruded-hover), 0 0 0 1px rgba(168, 255, 26, 0.08);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu>a,
    .nav-menu .nav-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 12px 0;
    }

    .logo {
        font-size: 22px;
        letter-spacing: -0.3px;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-section {
    padding: 60px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-sidebar {
    text-align: center;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-base);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-extruded);
}

/* Large avatar: extruded volt disc */
.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--grad-brand);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-display);
    color: #000;
    margin-bottom: 20px;
    box-shadow: var(--shadow-extruded), 0 0 24px rgba(168, 255, 26, 0.3);
}

.role-badge {
    background: var(--bg-inset);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 10px 0;
    box-shadow: var(--shadow-inset-sm), 0 0 8px rgba(168, 255, 26, 0.1);
    border: none;
}

.user-meta {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-4);
    line-height: 1.8;
}

.profile-main {
    padding: 36px;
    background: var(--bg-base);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-extruded);
}

.auth-form input:disabled {
    box-shadow: var(--shadow-inset-sm);
    color: var(--text-4);
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   TACTICAL FEEDBACK (OPS TERMINAL)
   ============================================================ */
.feedback-ops {
    padding: 80px 0;
}

/* Terminal: extruded obsidian slab with tactical corners */
.ops-terminal {
    position: relative;
    background: var(--bg-surface);
    border: 2px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-extruded), 0 0 40px rgba(168, 255, 26, 0.05);
    overflow: hidden;
    margin: 40px 0;
}

.ops-terminal .corner {
    position: absolute;
    width: 24px;
    height: 24px;
}

.corner.tl {
    top: -2px;
    left: -2px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 12px 0 0 0;
}

.corner.tr {
    top: -2px;
    right: -2px;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 0 12px 0 0;
}

.corner.bl {
    bottom: -2px;
    left: -2px;
    border-bottom: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 0 0 0 12px;
}

.corner.br {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 0 0 12px 0;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    box-shadow: 0 1px 0 rgba(168, 255, 26, 0.1), 0 2px 0 rgba(0, 0, 0, 0.5);
}

.signal-box {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.signal-bar {
    width: 5px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent);
    animation: signal-blink 1.5s infinite alternate;
}

.signal-bar:nth-child(2) {
    height: 19px;
    animation-delay: 0.2s;
}

.signal-bar:nth-child(3) {
    height: 11px;
    animation-delay: 0.4s;
}


.signal-text {
    font-size: 10px;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 10px;
}

.terminal-id {
    font-size: 11px;
    color: var(--text-4);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1px;
}

.terminal-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.intel-label {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 700;
    font-family: var(--font-display);
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: unset;
}

.intel-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.intel-content p {
    color: var(--text-4);
    max-width: 550px;
    line-height: 1.6;
}

/* Radioactive scanner line */
.scanner-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 255, 26, 0.05), transparent);
    animation: scan 4s infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes signal-blink {
    from {
        opacity: 0.3;
        box-shadow: 0 0 3px rgba(168, 255, 26, 0.3);
    }

    to {
        opacity: 1;
        box-shadow: 0 0 12px rgba(168, 255, 26, 0.8);
    }
}

@media (max-width: 850px) {
    .terminal-body {
        flex-direction: column;
        text-align: center;
    }

    .intel-content p {
        margin: 15px auto;
    }
}

/* ============================================================
   RESPONSIVE — MAIN SITE
   ============================================================ */
@media (max-width: 1100px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-panels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {

    .dashboard-grid-upgraded,
    .next-match-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .auth-grid,
    .dashboard-grid,
    .my-matches-grid {
        grid-template-columns: 1fr;
    }

    .stats-mini-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions .btn,
    .admin-page .admin-actions .btn,
    .admin-page .admin-form-actions .btn {
        width: 100%;
        min-width: unset;
    }

    .auth-grid .main-details-card,
    .auth-grid .side-details-card,
    .admin-page .admin-form-card,
    .dashboard-card,
    .main-details-card,
    .side-details-card,
    .my-match-card,
    .details-card {
        padding: 22px;
    }

    .admin-page .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-page .admin-form-grid .form-group.full-width {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 90px 0 60px;
    }

    .hero-content {
        padding: 38px 22px;
    }

    .nav-container {
        flex-direction: row;
    }

    .dashboard-hero-top {
        flex-direction: column;
    }

    .profile-completion-box {
        width: 100%;
    }

    .dashboard-hero-meta {
        flex-direction: column;
    }

    .dashboard-hero-meta span {
        width: 100%;
    }

    .admin-page .details-card,
    .admin-page .dashboard-card {
        padding: 18px;
    }

    table th,
    table td {
        padding: 12px 12px;
        font-size: 13px;
    }
}

@media (max-width: 700px) {
    .stats-grid-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-mini-item,
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-row strong {
        text-align: left;
    }

    .hero-actions,
    .dashboard-actions,
    .match-actions,
    .admin-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .dashboard-actions .btn,
    .match-actions .btn,
    .admin-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   LEADERBOARD / PODIUM
   ============================================================ */
.top-three-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.podium-card {
    text-align: center;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
    background: var(--bg-base);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-extruded);
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.podium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-extruded-hover), 0 0 24px rgba(132, 204, 22, 0.07);
}

/* Rank circle: inset obsidian well */
.podium-rank-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    color: var(--text-4);
    background: var(--bg-base);
    box-shadow: var(--shadow-inset);
}

.podium-card h3 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Invite count: inset well */
.podium-invite-count {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--r-lg);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset-sm);
}

.podium-invite-count strong {
    display: block;
    font-size: 40px;
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(168, 255, 26, 0.25));
}

.podium-invite-count span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-4);
    font-family: var(--font-display);
    font-weight: 700;
}

/* First place: volt crown glow */
.first-place-card {
    box-shadow: var(--shadow-extruded-hover), 0 0 0 1px rgba(168, 255, 26, 0.15), 0 0 40px rgba(132, 204, 22, 0.1);
    animation: firstPlaceGlow 2.5s ease-in-out infinite alternate;
}

.first-place-card .podium-rank-circle {
    background: var(--grad-brand);
    box-shadow: var(--shadow-extruded-sm), 0 0 20px rgba(168, 255, 26, 0.4);
    color: #000;
}

.second-place-card {
    box-shadow: var(--shadow-extruded), 0 0 0 1px rgba(192, 132, 252, 0.1);
}

.second-place-card .podium-rank-circle {
    background: var(--grad-violet);
    box-shadow: var(--shadow-extruded-sm);
    color: #fff;
}

.third-place-card {
    box-shadow: var(--shadow-extruded), 0 0 0 1px rgba(251, 146, 60, 0.1);
}

.third-place-card .podium-rank-circle {
    background: linear-gradient(135deg, #fb923c, #c2410c);
    box-shadow: var(--shadow-extruded-sm);
    color: #fff;
}

.leader-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    background: var(--bg-inset);
    color: var(--text-4);
    border: none;
    box-shadow: var(--shadow-inset-sm);
}

.rank-first .leader-rank-badge {
    color: var(--accent);
    box-shadow: var(--shadow-inset-sm), 0 0 8px rgba(168, 255, 26, 0.15);
}

.rank-second .leader-rank-badge {
    color: var(--purple);
    box-shadow: var(--shadow-inset-sm);
}

.rank-third .leader-rank-badge {
    color: var(--orange);
    box-shadow: var(--shadow-inset-sm);
}

.invite-count {
    font-size: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-first td {
    background: rgba(168, 255, 26, 0.025);
}

.rank-second td {
    background: rgba(192, 132, 252, 0.02);
}

.rank-third td {
    background: rgba(251, 146, 60, 0.02);
}

@keyframes firstPlaceGlow {
    from {
        box-shadow: var(--shadow-extruded), 0 0 0 1px rgba(168, 255, 26, 0.1), 0 0 20px rgba(132, 204, 22, 0.06);
    }

    to {
        box-shadow: var(--shadow-extruded-hover), 0 0 0 1px rgba(168, 255, 26, 0.22), 0 0 50px rgba(132, 204, 22, 0.15);
    }
}

@media (max-width: 900px) {
    .top-three-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ROLE-BASED ADMIN LAYOUT V2 (RA)
   ============================================================ */
.admin-layout-body {
    background-color: var(--bg-base);
    min-height: 100vh;
}

/* Fixed sidebar: extruded obsidian panel */
.ra-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 292px;
    height: 100vh;
    z-index: 1400;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--bg-surface);
    border-right: none;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.8), 1px 0 0 rgba(168, 255, 26, 0.06);
    overflow-y: auto;
}

.ra-admin-sidebar__top {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Brand block */
.ra-admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--r-lg);
    background: var(--bg-base);
    border: none;
    box-shadow: var(--shadow-inset-sm);
}

.ra-admin-brand__mark {
    width: 54px;
    height: 54px;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    background: var(--grad-brand);
    color: #000;
    box-shadow: var(--shadow-extruded-sm), 0 0 14px rgba(168, 255, 26, 0.25);
}

.ra-admin-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ra-admin-brand__text strong {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ra-admin-brand__text small {
    color: var(--text-4);
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 700;
}

/* User card in sidebar */
.ra-admin-usercard {
    padding: 18px;
    border-radius: var(--r-lg);
    background: var(--bg-base);
    border: none;
    box-shadow: var(--shadow-extruded-sm);
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
}

.ra-admin-avatar {
    width: 58px;
    height: 58px;
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 900;
    background: var(--grad-brand);
    color: #000;
    box-shadow: var(--shadow-extruded-sm), 0 0 12px rgba(168, 255, 26, 0.2);
}

.ra-admin-userinfo strong {
    display: block;
    color: var(--text-1);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ra-admin-userinfo span {
    color: var(--text-4);
    font-size: 13px;
}

/* Role chip */
.ra-admin-role-chip {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    background: var(--bg-inset);
    box-shadow: var(--shadow-inset-sm);
}

.role-main-admin {
    color: var(--accent);
}

.role-moderator {
    color: var(--purple);
}

.ra-admin-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ra-admin-sidebar__label {
    padding: 0 10px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.ra-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Nav items: neumorphic, press down on active */
.ra-admin-nav__item {
    min-height: 50px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-4);
    border: none;
    background: var(--bg-base);
    transition: all var(--dur-fast) var(--ease);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ra-admin-nav__item:hover {
    color: var(--accent);
    box-shadow: var(--shadow-extruded-sm);
    transform: translateX(2px);
}

.ra-admin-nav__item.is-active {
    background: var(--bg-inset);
    box-shadow: var(--shadow-inset-sm), inset 3px 0 0 var(--accent);
    color: var(--accent);
}

.ra-admin-nav__item--danger {
    color: var(--red);
}

.ra-admin-nav__item--locked {
    opacity: 0.4;
    cursor: default;
    justify-content: space-between;
}

.ra-admin-nav__item--locked em {
    font-style: normal;
    font-size: 10px;
    color: var(--text-4);
}

.ra-admin-nav__icon {
    width: 26px;
    display: inline-flex;
    justify-content: center;
    font-size: 15px;
    opacity: 0.9;
}

/* Top bar */
.ra-admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    margin-left: 292px;
    min-height: 88px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(168, 255, 26, 0.06);
}

.ra-admin-topbar__title h1 {
    margin: 4px 0;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.4px;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ra-admin-topbar__title span {
    display: block;
    color: var(--text-4);
    font-size: 13px;
}

.ra-admin-topbar__eyebrow {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ra-admin-topbar__meta {
    display: flex;
    gap: 12px;
}

/* Meta cards: inset obsidian wells */
.ra-admin-topbar__meta-card {
    min-width: 130px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: var(--bg-base);
    border: none;
    box-shadow: var(--shadow-inset-sm);
}

.ra-admin-topbar__meta-card small {
    display: block;
    color: var(--text-4);
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-display);
    font-weight: 700;
}

.ra-admin-topbar__meta-card strong {
    color: var(--text-1);
    font-size: 14px;
    font-weight: 600;
}

.ra-admin-main {
    margin-left: 292px;
    padding: 28px;
}

.ra-admin-menu-btn,
.ra-admin-mobile-overlay {
    display: none;
}

/* Hamburger for sidebar */
.ra-admin-menu-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    background: var(--bg-base);
    border: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-extruded-sm);
}

.ra-admin-menu-btn span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    display: block;
}

/* Dashboard hero */
.ra-dashboard-hero {
    margin-bottom: 24px;
}

.ra-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 20px;
}

.ra-hero-card {
    position: relative;
    padding: 30px;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg-surface);
    border: none;
    box-shadow: var(--shadow-extruded);
}

.ra-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(168, 255, 26, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.ra-hero-card>* {
    position: relative;
    z-index: 1;
}

.ra-hero-card--main h2 {
    margin: 14px 0 10px;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ra-hero-card--main p {
    max-width: 720px;
    color: var(--text-4);
}

.ra-hero-card--side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.ra-hero-card--side small {
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
}

.ra-hero-card--side strong {
    font-family: var(--font-display);
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin: 10px 0;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(168, 255, 26, 0.3));
}

.ra-hero-card--side span {
    color: var(--text-4);
    font-size: 14px;
}

/* Hero chip: inset pill */
.ra-hero-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--bg-inset);
    color: var(--accent);
    border: none;
    box-shadow: var(--shadow-inset-sm), 0 0 6px rgba(168, 255, 26, 0.1);
}

.ra-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ra-hero-tags span {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    background: var(--bg-inset);
    border: none;
    color: var(--text-4);
    font-size: 13px;
    box-shadow: var(--shadow-inset-sm);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ra-dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Metric grid */
.ra-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ra-metric-card,
.ra-panel {
    position: relative;
    padding: 24px;
    border-radius: var(--r-xl);
    background: var(--bg-surface);
    border: none;
    box-shadow: var(--shadow-extruded);
    transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}

.ra-metric-card:hover,
.ra-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-extruded-hover), 0 0 20px rgba(132, 204, 22, 0.06);
}

.ra-metric-card span {
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-4);
    margin-bottom: 10px;
}

.ra-metric-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(168, 255, 26, 0.2));
}

.ra-metric-card small {
    color: var(--text-4);
    font-size: 13px;
}

.ra-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ra-panel--full {
    grid-column: 1 / -1;
}

.ra-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.ra-panel__head h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ra-panel__head p {
    margin: 0;
    color: var(--text-4);
    font-size: 14px;
}

.ra-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ra-stack-list,
.ra-feed-list,
.ra-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Stack/feed rows: inset obsidian strips */
.ra-stack-item,
.ra-feed-item,
.ra-summary-row {
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset-sm);
}

.ra-stack-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.ra-stack-item strong,
.ra-feed-item strong {
    display: block;
    color: var(--text-1);
    margin-bottom: 3px;
    font-weight: 600;
}

.ra-stack-item p,
.ra-feed-item p {
    margin: 0 0 4px;
    color: var(--text-4);
    font-size: 13px;
}

.ra-stack-item small,
.ra-feed-item small {
    color: var(--text-4);
    font-size: 12px;
    opacity: 0.6;
}

.ra-stack-item__meta {
    text-align: right;
}

.ra-stack-item__meta strong {
    font-size: 14px;
}

/* Soft badge: inset volt pill */
.ra-soft-badge {
    display: inline-flex;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    margin-bottom: 8px;
    font-size: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset-sm), 0 0 6px rgba(168, 255, 26, 0.08);
}

.ra-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ra-summary-row span {
    color: var(--text-4);
    font-size: 14px;
}

.ra-summary-row strong {
    color: var(--text-1);
    font-weight: 600;
}

/* Highlight / empty boxes */
.ra-highlight-box,
.ra-empty-box {
    padding: 18px;
    border-radius: var(--r-lg);
    margin-top: 4px;
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset);
}

.ra-highlight-box small,
.ra-empty-box p {
    color: var(--text-4);
}

.ra-highlight-box strong,
.ra-empty-box h4 {
    display: block;
    background: var(--grad-header-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 8px 0 6px;
    text-transform: uppercase;
    font-weight: 900;
    font-style: italic;
}

.ra-highlight-box span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   ALERT / FLAG ITEMS
   ============================================================ */
.ra-flag-item {
    box-shadow: var(--shadow-inset-sm);
    border-left: none;
    border-radius: var(--r-md);
    padding: 14px 16px;
}

.ra-flag-item--danger {
    box-shadow: var(--shadow-inset-sm), inset 4px 0 0 var(--red);
}

.ra-flag-item--warning {
    box-shadow: var(--shadow-inset-sm), inset 4px 0 0 var(--orange);
}

.ra-flag-item--info {
    box-shadow: var(--shadow-inset-sm), inset 4px 0 0 var(--accent);
}

/* ============================================================
   APP / SIDEBAR LAYOUT
   ============================================================ */
.app-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    padding: 20px;
    background: var(--bg-surface);
    border-right: none;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.7), 1px 0 0 rgba(168, 255, 26, 0.05);
}

.main-content {
    padding: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ============================================================
   RESPONSIVE — RA ADMIN
   ============================================================ */
@media (max-width: 1400px) {
    .ra-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .ra-admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--dur-mid) var(--ease);
    }

    .ra-admin-topbar,
    .ra-admin-main {
        margin-left: 0;
    }

    .ra-admin-menu-btn {
        display: inline-flex;
    }

    .ra-admin-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        z-index: 1350;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--dur-mid) var(--ease), visibility var(--dur-mid) var(--ease);
    }

    body.ra-admin-sidebar-open .ra-admin-sidebar {
        transform: translateX(0);
    }

    body.ra-admin-sidebar-open .ra-admin-mobile-overlay {
        opacity: 1;
        visibility: visible;
    }

    .ra-hero-grid,
    .ra-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ra-admin-topbar {
        padding: 18px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ra-admin-topbar__meta {
        width: 100%;
    }

    .ra-admin-topbar__meta-card {
        flex: 1;
    }

    .ra-admin-main {
        padding: 18px;
    }

    .ra-metric-grid {
        grid-template-columns: 1fr;
    }

    .ra-hero-card,
    .ra-panel,
    .ra-metric-card {
        padding: 18px;
    }

    .ra-quick-actions .btn {
        width: 100%;
    }

    .ra-stack-item,
    .ra-summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ra-stack-item__meta {
        text-align: left;
    }
}

.hero-slider {
    position: relative;
    height: 420px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    width: 80%;
    max-width: 700px;
    padding: 40px;
    border-radius: 20px;

    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border: 1px solid rgba(0, 255, 100, 0.2);

    text-align: center;
    color: white;

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    top: 50%;
    left: 50%;

    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* CENTER */
.hero-slide.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 0 40px rgba(0, 255, 100, 0.25),
        0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 3;

}

/* LEFT */
.hero-slide.left {
    transform: translate(-160%, -50%) scale(0.75) rotateY(30deg);
    opacity: 0.3;
    filter: blur(3px);
    z-index: 2;
    filter: blur(2px);
}

/* RIGHT */
.hero-slide.right {
    transform: translate(60%, -50%) scale(0.75) rotateY(-30deg);
    opacity: 0.3;
    filter: blur(3px);
    z-index: 2;
}

/* TEXT FIX */
.hero-slide h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-slide p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-slider {
    position: relative;
    z-index: 1;
}

.hero-slide.active h1,
.hero-slide.active p,
.hero-slide.active .btn {
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ra-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.ra-alert--error {
    background: #2a0f0f;
    color: #ff6b6b;
    border: 1px solid #ff3b3b;
}

.ra-alert--success {
    background: #0f2a14;
    color: #4ade80;
    border: 1px solid #22c55e;
}

/* ============================================================
   RESPONSIVE HARDENING — FINAL CASCADE OVERRIDES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body>.alert {
    width: min(var(--container-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
    margin-left: auto;
    margin-right: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
strong,
small,
label,
td,
th {
    overflow-wrap: break-word;
}

.nav-container,
.nav-menu,
.user-profile-dropdown,
.page-hero-content,
.hero-content,
.hero-slide,
.app-promo-card,
.promo-content,
.section-header,
.stats-grid,
.features-grid,
.match-grid,
.steps-grid,
.auth-grid,
.dashboard-grid,
.dashboard-grid-upgraded,
.details-grid,
.next-match-grid,
.my-matches-grid,
.admin-stats-grid,
.admin-panels-grid,
.profile-grid,
.top-three-grid,
.ra-hero-grid,
.ra-metric-grid,
.ra-admin-grid,
.dashboard-card,
.main-details-card,
.side-details-card,
.my-match-card,
.details-card,
.admin-panel-card,
.admin-stat-card,
.ra-panel,
.ra-metric-card,
.ra-admin-brand__text,
.ra-admin-userinfo,
.ra-stack-item__meta {
    min-width: 0;
}

.page-hero.small-page-hero>.page-hero-content {
    width: min(860px, calc(100% - var(--page-gutter) - var(--page-gutter)));
    margin-left: auto;
    margin-right: auto;
}

.auth-section>.auth-grid,
.matches-list-section>.section-header,
.matches-list-section>.match-grid,
.my-matches-section>.my-matches-grid,
body>.dashboard-section>.details-card,
body>.dashboard-section>.admin-table-card {
    width: min(var(--container-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
    margin-left: auto;
    margin-right: auto;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.info-box {
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--bg-inset);
    border: none;
    box-shadow: var(--shadow-inset);
}

.info-box h4 {
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 14px;
    color: var(--text-4);
}

.rules-list {
    padding-left: 18px;
    margin-bottom: 24px;
}

.rules-list li {
    list-style: disc;
    color: var(--text-4);
    margin-bottom: 10px;
    font-size: 14px;
}

.left-actions {
    justify-content: flex-start;
    margin-top: 20px;
}

.btn,
.btn-ops,
.filter-btn,
.tab-btn,
.nav-menu>a {
    max-width: 100%;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

.hero-badge,
.mode-badge,
.status-badge,
.mini-badge,
.status-pill,
.admin-badge,
.admin-status,
.ra-soft-badge,
.leader-rank-badge {
    max-width: 100%;
}

.match-top,
.match-footer,
.match-status-row,
.dashboard-hero-meta,
.ra-hero-tags {
    min-width: 0;
}

.match-top {
    flex-wrap: wrap;
    align-items: flex-start;
}

.detail-row strong,
.admin-mini-item strong,
.dashboard-hero-meta span,
.countdown-box p,
.dashboard-countdown-box p,
.mini-stat-box h4,
.ra-metric-card strong,
.ra-hero-card--side strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.table-wrap,
.admin-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 680px;
}

.admin-table-card>table {
    min-width: 620px;
}

.hero-slider {
    width: min(var(--container-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
    margin: 34px auto 0;
    overflow: hidden;
}

.hero-slide {
    width: min(700px, 86%);
}

.ra-admin-sidebar {
    width: min(292px, calc(100vw - 28px));
}

@media (max-width: 1100px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .main-content {
        padding: 24px;
    }
}

@media (max-width: 980px) {
    .nav-menu {
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        z-index: 1250;
    }

    .nav-menu .user-profile-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu .avatar-btn {
        width: 100%;
        height: 48px;
        border-radius: var(--r-md);
    }

    .nav-menu .dropdown-content {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        box-shadow: var(--shadow-inset-sm);
    }
}

@media (max-width: 900px) {

    .dashboard-grid,
    .dashboard-grid-upgraded,
    .details-grid,
    .next-match-grid,
    .my-matches-grid,
    .auth-grid,
    .profile-grid,
    .app-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-actions .btn,
    .match-actions .btn,
    .admin-actions .btn,
    .hero-actions .btn {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 20px;
        --space-xl: 24px;
        --space-2xl: 32px;
    }

    body::before {
        background-attachment: scroll;
        background-size: cover;
    }

    .site-header {
        position: sticky;
    }

    .page-hero {
        padding: 36px 0 18px;
    }

    .page-hero.small-page-hero .page-hero-content,
    .dashboard-hero-card,
    .hero-content {
        padding: 26px 18px;
        border-radius: var(--r-lg);
    }

    .page-hero-content h1 {
        font-size: clamp(24px, 9vw, 34px);
    }

    .hero-badge {
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 8px 14px;
        letter-spacing: 1px;
        white-space: normal;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .view-all {
        width: 100%;
    }

    .floating-stats,
    .features-section,
    .matches-preview,
    .how-it-works,
    .cta-section,
    .dashboard-section,
    .my-matches-section,
    .auth-section,
    .matches-list-section,
    .profile-section,
    .feedback-ops {
        padding: 30px 0;
    }

    .glass-card,
    .stat-card,
    .feature-card,
    .match-card,
    .step-card,
    .cta-box,
    .details-card,
    .dashboard-card,
    .main-details-card,
    .side-details-card,
    .my-match-card,
    .admin-stat-card,
    .admin-panel-card,
    .empty-state-card,
    .notification-item,
    .ra-panel,
    .ra-metric-card,
    .ra-hero-card {
        border-radius: var(--r-lg);
    }

    .match-grid,
    .features-grid,
    .steps-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .auth-grid .main-details-card,
    .auth-grid .side-details-card,
    .admin-page .admin-form-card,
    .dashboard-card,
    .main-details-card,
    .side-details-card,
    .my-match-card,
    .details-card,
    .match-card,
    .feature-card,
    .step-card,
    .stat-card,
    .profile-main,
    .profile-sidebar,
    .ops-terminal {
        padding: 20px;
    }

    .detail-row,
    .admin-mini-item,
    .ra-stack-item,
    .ra-summary-row {
        align-items: flex-start;
    }

    .detail-row strong {
        text-align: left;
    }

    .dashboard-hero-meta span,
    .ra-hero-tags span {
        width: 100%;
    }

    .profile-completion-box {
        min-width: 0;
    }

    .mini-stat-box h4,
    .stat-card h3,
    .admin-stat-card h3,
    .ra-metric-card strong {
        font-size: clamp(24px, 9vw, 32px);
    }

    .countdown-box p,
    .dashboard-countdown-box p {
        font-size: clamp(20px, 7vw, 24px);
    }

    .admin-table-head,
    .admin-page .admin-table-head,
    .admin-page .admin-form-head,
    .ra-panel__head,
    .terminal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal-header {
        gap: 12px;
    }

    .signal-box {
        flex-wrap: wrap;
    }

    .ra-admin-topbar__meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {

    .container,
    .page-hero.small-page-hero>.page-hero-content,
    .auth-section>.auth-grid,
    .matches-list-section>.section-header,
    .matches-list-section>.match-grid,
    .my-matches-section>.my-matches-grid,
    body>.dashboard-section>.details-card,
    body>.dashboard-section>.admin-table-card,
    body>.alert,
    .hero-slider {
        width: calc(100% - 28px);
    }

    .logo {
        max-width: calc(100vw - 92px);
        white-space: normal;
        line-height: 1;
    }

    .app-promo-section {
        padding-top: 18px;
    }

    .app-promo-card {
        padding: 18px;
        gap: 16px;
    }

    .promo-content {
        width: 100%;
        min-width: 0;
    }

    .promo-content h2 {
        font-size: 18px;
        line-height: 1.25;
    }

    .hero-slider {
        height: auto;
        min-height: 360px;
        perspective: none;
    }

    .hero-slide {
        width: 100%;
        max-width: none;
        padding: 26px 18px;
        border-radius: var(--r-lg);
    }

    .hero-slide h1 {
        font-size: clamp(24px, 9vw, 30px);
        line-height: 1.08;
    }

    .hero-slide.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .hero-slide.left,
    .hero-slide.right {
        opacity: 0;
        filter: none;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.96);
    }

    .hero-actions,
    .dashboard-actions,
    .match-actions,
    .admin-actions,
    .ra-quick-actions {
        width: 100%;
    }

    .btn,
    .btn-ops,
    .hero-actions .btn,
    .dashboard-actions .btn,
    .match-actions .btn,
    .admin-actions .btn,
    .ra-quick-actions .btn {
        width: 100%;
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-bar,
    .match-tabs {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .filter-btn,
    .tab-btn {
        width: 100%;
    }

    .match-top,
    .match-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-row,
    .admin-mini-item {
        gap: 8px;
    }

    .empty-state-card {
        margin: 24px auto;
        padding: 34px 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding-top: 34px;
    }

    .ra-admin-topbar {
        padding: 16px 14px;
    }

    .ra-admin-main,
    .main-content {
        padding: 14px;
    }

    .ra-admin-topbar__meta {
        flex-direction: column;
    }

    .ra-admin-topbar__meta-card {
        width: 100%;
        min-width: 0;
    }

    .ra-admin-brand,
    .ra-admin-usercard {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 12px;
    }

    .ra-admin-brand__mark,
    .ra-admin-avatar {
        width: 48px;
        height: 48px;
    }

    table {
        min-width: 620px;
    }
}

@media (max-width: 420px) {

    .container,
    .page-hero.small-page-hero>.page-hero-content,
    .auth-section>.auth-grid,
    .matches-list-section>.section-header,
    .matches-list-section>.match-grid,
    .my-matches-section>.my-matches-grid,
    body>.dashboard-section>.details-card,
    body>.dashboard-section>.admin-table-card,
    body>.alert,
    .hero-slider {
        width: calc(100% - 22px);
    }

    .nav-container {
        gap: 10px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .page-hero.small-page-hero .page-hero-content,
    .dashboard-hero-card,
    .hero-content,
    .auth-grid .main-details-card,
    .auth-grid .side-details-card,
    .admin-page .admin-form-card,
    .dashboard-card,
    .main-details-card,
    .side-details-card,
    .my-match-card,
    .details-card,
    .match-card,
    .feature-card,
    .step-card,
    .stat-card,
    .ra-panel,
    .ra-metric-card,
    .ra-hero-card {
        padding: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .result-input {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-slide {
        padding: 24px 16px;
    }

    .cta-box {
        padding: 34px 18px;
    }
}
