:root {
    --bg: #030303;
    --surface: #0a0a0a;
    --surface-accent: #111111;
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #ff6b00;
    --text: #e0e0e0;
    --text-dim: #808080;
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    z-index: 9999;
}

#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    height: 64px;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-item {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: var(--ease);
}

.nav-item:hover {
    color: var(--text);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.btn-primary-modern {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    background: var(--primary);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Hero Section */
.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 70% 50%, rgba(0, 242, 255, 0.08), transparent 70%);
}

.parallax-img {
    display: none;
    /* Removed background image */
}

.glow-sphere {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    filter: blur(100px);
    border-radius: 50%;
}

.hero-text {
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 2rem;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 3rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--ease);
}

.btn-glow {
    background: var(--primary);
    color: #000;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1rem;
    box-shadow: 0 0 30px var(--primary-glow);
    text-decoration: none !important;
}

.btn-glow:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.btn-outline-minimal {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    margin-left: 1.5rem;
    font-weight: 600;
    transition: var(--ease);
}

.btn-outline-minimal:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text);
}

/* Bento Grid */
.scenarios-modern {
    padding: 15vw 0;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-meta .line {
    height: 1px;
    width: 60px;
    background: var(--primary);
}

.section-meta .label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--text-dim);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.bento-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--ease);
}

.bento-item:hover {
    border-color: var(--primary);
    background: var(--surface-accent);
}

.bento-item.main-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.icon-minimal {
    width: 32px;
    height: 32px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.bento-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-showcase {
    padding: 10vw 0;
    border-top: 1px solid var(--border);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.stat-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.stat-content h2 span {
    color: var(--primary);
}

.mini-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
}

.val {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
}

.lbl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}

.stat-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    height: 400px;
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    align-items: flex-end;
}

.graph-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 100%;
    width: 100%;
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), transparent);
    border-radius: 4px;
    opacity: 0.3;
    transition: 1s var(--ease);
}

.graph-bar:hover {
    opacity: 1;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: 1.2s var(--ease);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-text p {
        margin-inline: auto;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.main-card {
        grid-column: auto;
        grid-row: auto;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mini-stats {
        justify-content: center;
    }
}

/* Dashboard Specifics */
.dashboard-body {
    background: #020202;
    min-height: 100vh;
}

.dashboard-header {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rank {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
}

.avatar {
    width: 32px;
    height: 32px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    overflow: hidden;
}

.avatar svg {
    width: 20px;
    height: 20px;
}

.welcome-banner {
    margin: 4rem 0;
}

.welcome-banner h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 3rem;
    padding-bottom: 100px;
    align-items: start;
}

.dashboard-main-col {
    min-width: 0;
}

.scenario-grid-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mode-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.5s var(--ease);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.mode-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: 0.5s var(--ease);
}

.mode-card:hover {
    transform: translateY(-8px);
    border-color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
}

.mode-card.active {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.15);
}

.mode-card.active::after {
    opacity: 0.2;
}

.mode-icon {
    width: 32px;
    height: 32px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.mode-card.active .mode-icon {
    color: var(--primary);
}

.mode-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.mode-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.pb-display {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    margin-top: 0.5rem;
}

.fun-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.active .fun-tag {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.stats-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    font-weight: 700;
    border: 1px solid rgba(0, 242, 255, 0.2);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mode-card:hover .stats-badge {
    background: rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.4);
}

.settings-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 40px;
}

/* Tabs Interface - Premium Design */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 12px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: none;
    border: none;
    color: #666;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #000;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.panel-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.label-row span:last-child {
    color: var(--primary);
}

.modern-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.btn-glow-full {
    width: 100%;
    background: var(--primary);
    color: #000;
    padding: 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-glow-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px var(--primary-glow);
}

/* Leaderboard Panel */
.leaderboard-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-header h3 {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#leaderboard-scenario-name {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.leaderboard-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem;
    border-radius: 12px;
}

.leader-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--ease);
}

.leader-tab-btn.active {
    background: var(--surface-accent);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid transparent;
}

.leader-item.me {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.leader-rank {
    font-family: var(--font-display);
    font-weight: 800;
    width: 24px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.rank-1 {
    color: #ffd700;
}

.rank-2 {
    color: #c0c0c0;
}

.rank-3 {
    color: #cd7f32;
}

.leader-info {
    flex: 1;
    margin-left: 0.5rem;
}

.leader-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.leader-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.leader-score {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    font-size: 0.9rem;
}

.leader-acc {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.loading-leaderboard {
    text-align: center;
    padding: 2rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.hidden {
    display: none !important;
}

#trainer-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background: #000;
}

#trainer-stats {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 5010;
}

#trainer-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#trainer-stats .label {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

#trainer-stats span:not(.label) {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    z-index: 5020;
    pointer-events: none;
}

#crosshair::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
}

#crosshair::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: translateY(-50%);
}

#trainer-canvas-container {
    width: 100%;
    height: 100%;
}

.btn-circular {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5010;
}

/* ==================== MOBILE RESPONSIVE ==================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    .glass-nav {
        top: 1rem;
        width: calc(100% - 2rem);
        height: 56px;
        border-radius: 16px;
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .logo svg {
        width: 20px;
        height: 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-auth {
        gap: 0.5rem;
    }

    .nav-auth .btn-text {
        display: none;
    }

    .btn-primary-modern {
        padding: 0.6rem 1rem;
        font-size: 0.65rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-badge {
        font-size: 0.55rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-title span {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.85rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn-glow {
        width: 100%;
        padding: 1rem;
    }

    .hero-actions .btn-outline {
        width: 100%;
        padding: 1rem;
    }

    /* Scenarios Section */
    .scenarios-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .scenario-card {
        padding: 1.5rem;
    }

    /* Stats Section */
    .stats-section {
        padding: 3rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Dashboard */
    .dashboard-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .welcome-banner {
        padding: 2rem 1rem;
        text-align: center;
    }

    .welcome-banner h1 {
        font-size: 1.5rem;
    }

    .welcome-banner p {
        font-size: 0.8rem;
    }

    .dashboard-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .dashboard-main-col {
        width: 100%;
    }

    .dashboard-sidebar {
        width: 100%;
        position: static;
    }

    .dashboard-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.65rem;
    }

    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .scenario-card-dash {
        padding: 1.25rem;
    }

    .scenario-name {
        font-size: 0.9rem;
    }

    /* Sidebar */
    .sidebar-card {
        padding: 1.25rem;
    }

    .leaderboard-title {
        font-size: 0.65rem;
    }

    .leader-item {
        padding: 0.6rem;
    }

    .leader-name {
        font-size: 0.75rem;
    }

    .leader-score {
        font-size: 0.7rem;
    }

    /* Configuration */
    .config-label {
        font-size: 0.6rem;
    }

    #launch-btn {
        padding: 1rem;
        font-size: 0.8rem;
    }

    /* Nickname Modal */
    .auth-modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .auth-modal-title {
        font-size: 1.2rem;
    }

    /* Results Overlay (trainer) */
    .results-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .results-stats {
        width: 100%;
    }

    .results-leaderboard {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-title span {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header .logo {
        font-size: 0.8rem;
    }

    #logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
    }
}