:root {
    /* ===================================
       OFFSEASON DESIGN TOKENS
       Based on Compeery Design System
       =================================== */

    /* Base Colors (Light Mode Default) */
    --bg-body: #FAFAFA;
    /* Zinc 50 */
    --bg-surface: #FFFFFF;
    --bg-panel: #F4F4F5;
    /* Zinc 100 */

    --text-primary: #18181B;
    /* Zinc 900 */
    --text-secondary: #52525B;
    /* Zinc 600 */
    --text-muted: #A1A1AA;
    /* Zinc 400 */

    --border-grid: rgba(0, 0, 0, 0.04);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);

    /* Brand Colors - Offseason Gold */
    --brand-primary: #D4AF37;
    --brand-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --brand-surface: rgba(212, 175, 55, 0.08);

    /* Yahoo Purple (for Yahoo Connect) */
    --yahoo-purple: #6001D2;

    /* Status Colors */
    --status-success: #059669;
    --status-error: #DC2626;
    --status-warning: #F59E0B;

    /* Typography */
    --font-display: 'Inter Tight', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Navbar */
    --bg-navbar: rgba(255, 255, 255, 0.8);
}

/* ===================================
   DARK MODE
   =================================== */
[data-theme="dark"] {
    --bg-body: #171717;
    /* Neutral 900 */
    --bg-surface: #262626;
    /* Neutral 800 */
    --bg-panel: #404040;
    /* Neutral 700 */

    --text-primary: #F5F5F5;
    /* Neutral 100 */
    --text-secondary: #A3A3A3;
    /* Neutral 400 */
    --text-muted: #737373;
    /* Neutral 500 */

    --border-grid: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    --brand-primary: #FFD700;
    /* Brighter gold for dark mode */
    --brand-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --brand-surface: rgba(255, 215, 0, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    --bg-navbar: rgba(23, 23, 23, 0.85);
}

/* ===================================
   RESET & BASE
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    /* Increased base font */
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

@media (min-width: 768px) {
    body {
        font-size: 17px;
        /* Larger for desktop */
    }
}

/* Subtle noise texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===================================
   GRID SYSTEM
   =================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-left: 1px solid var(--border-grid);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    background: var(--bg-body);
}

.grid-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-grid);
}

.col-12 {
    grid-column: span 12;
}

.col-9 {
    grid-column: span 9;
}

.col-8 {
    grid-column: span 8;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

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

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-primary);
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

.btn-yahoo {
    background: var(--yahoo-purple);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-yahoo:hover {
    background: #5000b0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
    border-bottom: 1px solid var(--border-grid);
    padding: 1.25rem 0;
    /* Increased from 1rem */
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s var(--ease-out);
}

/* Compact variant for authenticated pages */
.navbar.compact {
    padding: 1rem 0;
    /* Increased from 0.75rem */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    /* Increased from 1.1rem */
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-mark {
    width: 22px;
    /* Increased from 18px */
    height: 22px;
    background: var(--brand-gradient);
    border-radius: 4px;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 1rem;
    /* Increased */
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.commish {
    color: var(--brand-primary);
}

.nav-links a.commish:hover,
.nav-links a.commish.active {
    color: var(--brand-primary);
}

.nav-links a.featured {
    color: var(--status-success);
}

.nav-links a.featured:hover,
.nav-links a.featured.active {
    color: var(--status-success);
}

/* User Menu (Authenticated) */
.nav-user {
    position: relative;
    margin-left: 1rem;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: none;
}

@media (min-width: 768px) {
    .user-name {
        display: block;
    }
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--brand-gradient);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--bg-body);
}

.user-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    z-index: 100;
}

.user-menu a,
.user-menu button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.user-menu a:hover,
.user-menu button:hover {
    background: var(--bg-panel);
    color: var(--text-primary);
}

.user-menu .logout {
    color: var(--status-error);
}

.user-menu .logout:hover {
    background: rgba(220, 38, 38, 0.1);
}

.menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.375rem 0;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.mobile-nav a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-user {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-grid);
    padding: 7rem 0;
    /* Increased for better presence */
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    /* Increased from 0.9rem */
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
    /* Slightly more spacing */
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    /* Increased from 0.9rem */
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-strong);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.theme-toggle:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ===================================
   CARDS & INTERACTIONS
   =================================== */
.card-hover {
    transition: all 0.4s var(--ease-out);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    background: var(--bg-surface);
    z-index: 1;
}

.visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

/* ===================================
   STATS BAR (Landing Page)
   =================================== */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stats-item {
    display: flex;
    flex-direction: column;
}

.stats-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stats-divider {
    width: 1px;
    height: 40px;
    background: var(--border-strong);
}

.stats-actions {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

/* ===================================
   SCANNER VISUAL (Hero Component)
   Like Compeery's privacy scanner
   =================================== */
.scanner-window {
    width: 100%;
    max-width: 360px;
    height: 360px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--border-subtle);
    position: relative;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Window header bar */
.scanner-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 10;
}

.window-dots {
    position: absolute;
    top: 9px;
    left: 10px;
    display: flex;
    gap: 5px;
    z-index: 11;
}

.window-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    opacity: 0.5;
}

/* Scan beam animation */
.scan-beam {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-primary);
    z-index: 20;
    opacity: 0.6;
    animation: scanMove 4s ease-in-out infinite;
}

@keyframes scanMove {

    0%,
    100% {
        top: 40px;
    }

    50% {
        top: 320px;
    }
}

.scan-gradient {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.15), transparent);
    pointer-events: none;
    animation: scanGradientMove 4s ease-in-out infinite;
}

@keyframes scanGradientMove {

    0%,
    100% {
        top: 40px;
    }

    50% {
        top: 280px;
    }
}

/* Content inside scanner */
.scanner-content {
    padding: 50px 24px 30px;
    background: var(--bg-surface);
    width: 100%;
    box-sizing: border-box;
    animation: scrollDoc 16s linear infinite;
}

@keyframes scrollDoc {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Mock text lines */
.mock-text {
    height: 8px;
    background: currentColor;
    opacity: 0.08;
    margin-bottom: 10px;
    border-radius: 4px;
}

.mock-heading {
    height: 12px;
    width: 50%;
    background: currentColor;
    opacity: 0.2;
    margin-bottom: 20px;
    margin-top: 24px;
    border-radius: 4px;
}

.w-100 {
    width: 100%;
}

.w-80 {
    width: 80%;
}

.w-60 {
    width: 60%;
}

.w-40 {
    width: 40%;
}

/* Highlight boxes in scanner */
.highlight-box {
    position: relative;
    padding: 12px;
    margin: 12px -12px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
}

.highlight-box.success {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.3);
}

.highlight-box.danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}

.analysis-tag {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-surface);
    border: 1px solid;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 5;
}

.analysis-tag.success {
    border-color: var(--status-success);
    color: var(--status-success);
}

.analysis-tag.danger {
    border-color: var(--status-error);
    color: var(--status-error);
}

/* ===================================
   BRACKET VISUAL (World Cup Pick'em)
   Styled like Compeery scanner
   =================================== */
.bracket-window {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px var(--border-subtle);
    position: relative;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Window header */
.bracket-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 10;
}

.bracket-content {
    padding: 40px 16px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.bracket-content::-webkit-scrollbar {
    display: none;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 100px;
}

.bracket-round-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4px;
}

.bracket-match {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.bracket-match.active {
    border-color: var(--brand-primary);
    background: var(--brand-surface);
}

.bracket-match.correct {
    border-color: var(--status-success);
    background: rgba(5, 150, 105, 0.1);
}

.bracket-match.incorrect {
    border-color: var(--status-error);
    background: rgba(220, 38, 38, 0.1);
}

.bracket-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.bracket-team-name {
    font-weight: 500;
    color: var(--text-primary);
}

.bracket-team-score {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.bracket-team.winner .bracket-team-name {
    color: var(--status-success);
    font-weight: 600;
}

.bracket-team.picked {
    position: relative;
}

.bracket-team.picked::before {
    content: '→';
    position: absolute;
    left: -12px;
    color: var(--brand-primary);
    font-size: 0.6rem;
}

/* Bracket Animation States */
.bracket-match.playing {
    border-color: var(--brand-primary);
    animation: matchPulse 1.5s ease-in-out infinite;
}

@keyframes matchPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
    }
}

.bracket-team.eliminated .bracket-team-name {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.bracket-team.pick-correct .bracket-team-score {
    color: var(--status-success);
    font-weight: 700;
}

.bracket-team.pick-incorrect .bracket-team-name {
    color: var(--status-error);
}

.bracket-team.pick-incorrect .bracket-team-score {
    color: var(--status-error);
}

.bracket-team-score.animating {
    animation: scoreFlash 0.3s ease-out;
}

@keyframes scoreFlash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        color: var(--brand-primary);
    }

    100% {
        transform: scale(1);
    }
}

.bracket-team.waiting {
    opacity: 0.4;
}

.bracket-team.waiting .bracket-team-name {
    font-style: italic;
    color: var(--text-muted);
}

/* Champion celebration */
.bracket-match.champion {
    animation: championGlow 2s ease-in-out infinite;
}

@keyframes championGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
        border-color: var(--brand-primary);
    }

    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), 0 0 50px rgba(212, 175, 55, 0.3);
        border-color: #FFD700;
    }
}

/* ===================================
   UTILITIES
   =================================== */
.border-r {
    border-right: 1px solid var(--border-grid);
}

.border-b {
    border-bottom: 1px solid var(--border-grid);
}

.p-4 {
    padding: 2rem;
}

.p-8 {
    padding: 5rem 4rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-brand {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .grid-container {
        display: block;
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .col-12,
    .col-9,
    .col-8,
    .col-6,
    .col-4,
    .col-3 {
        width: 100%;
    }

    .border-r {
        border-right: none;
    }

    .p-8 {
        padding: 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }

    .mobile-nav .nav-link {
        display: block;
        padding: 0.75rem 0;
        color: var(--text-primary);
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-subtle);
        text-decoration: none;
    }

    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .stats-divider {
        display: none;
    }

    .stats-actions {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
    }

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

/* ===================================
   AUTH FORMS
   =================================== */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    width: 100%;
    max-width: 420px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-body);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-surface);
    background: var(--bg-surface);
}

/* ===================================
   PROSE (Content Pages)
   =================================== */
.prose {
    max-width: 65ch;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--brand-primary);
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

/* ===================================
   POLICY PAGES LAYOUT (Privacy, Terms)
   =================================== */
.policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    position: relative;
}

.policy-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.policy-nav {
    list-style: none;
    border-left: 1px solid var(--border-grid);
}

.policy-nav li {
    margin-bottom: 0;
}

.policy-nav a {
    display: block;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: all 0.2s;
}

.policy-nav a:hover,
.policy-nav a.active {
    color: var(--brand-primary);
    border-left-color: var(--brand-primary);
    background: linear-gradient(90deg, var(--brand-surface) 0%, transparent 100%);
}

.policy-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.policy-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.policy-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.policy-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* Policy Tables */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.policy-table th {
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-primary);
}

.policy-table tr:nth-child(even) {
    background: var(--bg-panel);
}

@media (max-width: 900px) {
    .policy-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .policy-sidebar {
        display: none;
    }
}

/* ===================================
   HELP CENTER (FAQ)
   =================================== */
.help-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.help-header {
    text-align: center;
    margin-bottom: 4rem;
}

.help-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.help-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 60px;
    border-radius: 50px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    font-size: 1.1rem;
    font-family: var(--font-body);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: all 0.2s;
    color: var(--text-primary);
}

.help-search input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-surface);
}

.help-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.help-search button:hover {
    background: var(--brand-hover, #c9a030);
}

.help-articles {
    display: grid;
    gap: 1rem;
}

.help-article-card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.help-article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.help-article-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.help-article-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.help-article-card .arrow {
    color: var(--brand-primary);
    font-size: 1.25rem;
}

/* ===================================
   BRACKET ANIMATION ENHANCEMENTS
   =================================== */
.bracket-team.eliminated {
    opacity: 0.4;
    text-decoration: line-through;
}

.bracket-team.eliminated .bracket-team-name {
    color: var(--text-muted);
}

.bracket-match.advancing .bracket-team.winner {
    animation: advanceGlow 1.5s ease-in-out infinite;
}

@keyframes advanceGlow {

    0%,
    100% {
        background: transparent;
    }

    50% {
        background: rgba(212, 175, 55, 0.15);
    }
}

/* Score animation */
.bracket-team-score.counting {
    animation: countPulse 0.3s ease-out;
}

@keyframes countPulse {
    0% {
        transform: scale(1.3);
        color: var(--brand-primary);
    }

    100% {
        transform: scale(1);
    }
}