/* ============================================
   LCHESS Championship — Main Stylesheet
   v2.0 — Refined Tactical Dark
   ============================================ */

/* ─── Variables ─────────────────────────────── */
:root {
    --gold:          #FFD700;
    --gold-dark:     #B8860B;
    --gold-light:    #FFF4CC;
    --accent:        #00F5FF;
    --accent-pink:   #FF00AA;
    --accent-green:  #00E87A;

    --bg-dark:       #09090E;
    --bg-darker:     #050507;
    --bg-card:       #111118;
    --bg-card-hover: #17171F;
    --bg-elevated:   #1A1A24;

    --text-primary:  #EDECF5;
    --text-secondary:#8A8AA0;
    --text-muted:    #52526A;

    --border:        rgba(255, 215, 0, 0.10);
    --border-hover:  rgba(255, 215, 0, 0.28);
    --border-subtle: rgba(255, 255, 255, 0.06);

    --success: #00E87A;
    --error:   #FF3D5A;
    --warning: #FFAA00;
    --info:    #00AAFF;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'Rajdhani', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --radius-sm:   5px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   16px;
    --radius-pill: 9999px;

    --nav-height:      76px;
    --transition:      0.18s ease;
    --transition-slow: 0.35s ease;

    --shadow-sm:       0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:       0 6px 24px rgba(0,0,0,0.45);
    --shadow-lg:       0 12px 48px rgba(0,0,0,0.60);
    --shadow-gold:     0 0 24px rgba(255,215,0,0.25);
    --shadow-dropdown: 0 16px 56px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,215,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Background Effects ─────────────────────── */
.bg-grid {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(255,215,0,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    width: 700px; height: 700px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.11;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    top: -250px; right: -250px;
    background: var(--gold);
    animation: float 22s ease-in-out infinite;
}

.bg-glow-2 {
    bottom: -250px; left: -250px;
    background: var(--accent);
    animation: float 28s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(40px, 40px); }
}

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }

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

/* ─── Navigation ─────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(9, 9, 14, 0.88);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    transition: var(--transition);
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo:hover { text-shadow: 0 0 24px rgba(255,215,0,0.45); }

.logo-icon {
    font-size: 1.4em;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.3));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    border: none;
    background: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-link.active {
    color: var(--gold);
    background: rgba(255,215,0,0.08);
}

/* Remove the underline pseudo-element */
.nav-link::after { display: none !important; }

.nav-link-special,
.nav-link-accent {
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.25);
    background: rgba(255,215,0,0.05);
    border-radius: var(--radius-sm);
}

.nav-link-special:hover,
.nav-link-accent:hover {
    background: rgba(255,215,0,0.12);
    color: var(--gold);
    border-color: rgba(255,215,0,0.45);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ─── Notification Bell ───────────────────────── */
.notification-bell {
    position: relative;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.notification-bell:hover {
    border-color: rgba(255,215,0,0.30);
    color: var(--gold);
    background: rgba(255,215,0,0.05);
}

.notification-badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 18px; height: 18px;
    background: var(--error);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-dark);
}

.notification-badge:empty,
.notification-badge[data-count="0"] { display: none; }

/* ─── User Dropdown ───────────────────────────── */
.user-dropdown { position: relative; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem 0.45rem 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    color: inherit;
}

.nav-user:hover {
    border-color: rgba(255,215,0,0.28);
    background: rgba(255,215,0,0.04);
}

.user-avatar {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold) 0%, #C89000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--bg-dark);
    font-family: var(--font-body);
    flex-shrink: 0;
    letter-spacing: 0;
}

.user-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: transform var(--transition);
    margin-left: 2px;
}

.dropdown-arrow svg {
    width: 11px; height: 11px;
    stroke: currentColor;
}

.user-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

/* ─── User Menu ───────────────────────────────── */
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.10);
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1001;
    box-shadow: var(--shadow-dropdown);
    overflow: hidden;
    padding: 6px;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu-section { padding: 3px 0; }

.user-menu-section + .user-menu-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4px;
    padding-top: 6px;
}

.user-menu-label {
    padding: 4px 10px 5px;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.14em;
    font-family: var(--font-body);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.65rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.865rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

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

.user-menu-item.logout:hover {
    background: rgba(255, 61, 90, 0.09);
    color: var(--error);
}

.admin-badge {
    margin-left: auto;
    font-size: 0.55rem;
    padding: 2px 6px;
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
    border-radius: var(--radius-sm);
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* ─── Mobile Toggle ───────────────────────────── */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    width: 44px; height: 44px;
}

.nav-mobile-toggle span {
    width: 18px; height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition);
    display: block;
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 40px;
    text-decoration: none;
    vertical-align: middle;
}

/* Shimmer sweep on hover */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 38%, rgba(255,255,255,0.09) 50%, transparent 62%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::after  { transform: translateX(100%); }
.btn:active        { transform: scale(0.985); }

/* Primary — gold fill */
.btn-primary {
    background: var(--gold);
    color: #0A0A0F;
    border-color: var(--gold);
    font-weight: 800;
}

.btn-primary:hover {
    background: #FFE433;
    border-color: #FFE433;
    box-shadow: 0 0 0 3px rgba(255,215,0,0.14), 0 4px 16px rgba(255,215,0,0.28);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Ghost — transparent, gold on hover */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(255,255,255,0.10);
}

.btn-ghost:hover {
    color: var(--gold);
    border-color: rgba(255,215,0,0.38);
    background: rgba(255,215,0,0.05);
}

/* Secondary */
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    border-color: rgba(255,215,0,0.28);
    color: var(--gold);
    background: rgba(255,215,0,0.04);
}

/* Danger */
.btn-danger {
    background: transparent;
    color: var(--error);
    border-color: rgba(255, 61, 90, 0.28);
}

.btn-danger:hover {
    background: rgba(255, 61, 90, 0.09);
    border-color: var(--error);
}

/* Success */
.btn-success {
    background: transparent;
    color: var(--success);
    border-color: rgba(0, 232, 122, 0.28);
}

.btn-success:hover {
    background: rgba(0, 232, 122, 0.08);
    border-color: var(--success);
}

/* Sizes */
.btn-sm {
    padding: 0.38rem 0.85rem;
    font-size: 0.72rem;
    min-height: 32px;
}

.btn-lg {
    padding: 0.85rem 2.5rem;
    font-size: 0.88rem;
    min-height: 50px;
    border-radius: var(--radius-md);
}

.btn-block { width: 100%; }

/* ─── Flash Messages ──────────────────────────── */
.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    right: var(--space-xl);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 380px;
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.22s ease;
    pointer-events: all;
}

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

.flash-success { border-left-color: var(--success); }
.flash-error   { border-left-color: var(--error); }
.flash-warning { border-left-color: var(--warning); }
.flash-info    { border-left-color: var(--info); }

.flash-icon { font-size: 0.95rem; }

.flash-success .flash-icon { color: var(--success); }
.flash-error   .flash-icon { color: var(--error); }
.flash-warning .flash-icon { color: var(--warning); }
.flash-info    .flash-icon { color: var(--info); }

.flash-message { flex: 1; font-size: 0.875rem; line-height: 1.4; }

.flash-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    opacity: 0.55;
    transition: var(--transition);
    pointer-events: all;
    flex-shrink: 0;
}

.flash-close:hover { opacity: 1; color: var(--text-primary); }

/* ─── Main Content ────────────────────────────── */
.main {
    min-height: calc(100vh - 160px);
    padding-top: var(--nav-height);
}

/* ─── Footer ──────────────────────────────────── */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: var(--space-xl) var(--space-xl);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold);
}

.footer-links { display: flex; gap: var(--space-xl); }

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ─── Forms ───────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.71rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.65rem var(--space-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255,215,0,0.42);
    background: rgba(255,215,0,0.025);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.07);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:disabled { opacity: 0.45; cursor: not-allowed; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8AA0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 18px; height: 18px;
    accent-color: var(--gold);
}

/* ─── Auth Pages ──────────────────────────────── */
.auth-container {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
    background-size: 200%;
    animation: shimmerBar 3s ease infinite;
}

@keyframes shimmerBar {
    0%   { background-position: 0%; }
    100% { background-position: 200%; }
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.auth-title   { color: var(--text-primary); margin-bottom: var(--space-sm); }
.auth-subtitle { color: var(--text-secondary); font-size: 0.875rem; }

.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-footer a { color: var(--gold); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ─── Hero Section ────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content { animation: fadeInUp 0.7s ease; }

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.3rem 0.9rem;
    background: rgba(255,215,0,0.07);
    border: 1px solid rgba(255,215,0,0.22);
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.75); }
}

.hero-title          { margin-bottom: var(--space-lg); line-height: 1; }
.hero-title span     { display: block; }
.hero-title .highlight { color: var(--gold); text-shadow: 0 0 50px rgba(255,215,0,0.2); }

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: var(--space-2xl);
}

.hero-actions { display: flex; gap: var(--space-md); }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.7s ease 0.15s both;
}

.hero-graphic {
    width: 100%; max-width: 480px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.hero-graphic::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,215,0,0.07), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0,245,255,0.07), transparent 50%);
}

.hero-icon {
    font-size: 6rem;
    filter: drop-shadow(0 0 30px rgba(255,215,0,0.22));
    z-index: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    text-align: center;
    z-index: 1;
    width: 100%;
    padding: 0 var(--space-xl);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ─── Features Section ────────────────────────── */
.features {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--bg-darker);
}

.features-container { max-width: 1400px; margin: 0 auto; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.section-title       { margin-bottom: var(--space-md); }
.section-description { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card { text-align: center; padding: var(--space-2xl); }

.feature-icon {
    width: 58px; height: 58px;
    background: rgba(255,215,0,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin: 0 auto var(--space-lg);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(255,215,0,0.11);
    border-color: var(--border-hover);
}

.feature-title       { margin-bottom: var(--space-md); color: var(--text-primary); }
.feature-description { color: var(--text-secondary); font-size: 0.875rem; }

/* ─── Dashboard ───────────────────────────────── */
.dashboard { padding: var(--space-2xl) var(--space-xl); }
.dashboard-container { max-width: 1400px; margin: 0 auto; }
.dashboard-header    { margin-bottom: var(--space-2xl); }

.dashboard-welcome {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.dashboard-title .team-tag {
    font-size: 0.88rem;
    padding: 0.25rem 0.7rem;
    background: var(--gold);
    color: #0A0A0F;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.dashboard-main    { display: flex; flex-direction: column; gap: var(--space-xl); }
.dashboard-sidebar { display: flex; flex-direction: column; gap: var(--space-xl); }

/* ─── Stats Cards ─────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-card { padding: var(--space-lg); }

.stat-card-icon {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
    opacity: 0.65;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ─── Widget ──────────────────────────────────── */
.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.widget-header {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
}

.widget-body   { padding: var(--space-lg); }

.widget-footer {
    padding: 0.7rem var(--space-lg);
    border-top: 1px solid var(--border);
    text-align: center;
    background: rgba(255,255,255,0.01);
}

.widget-footer a {
    font-size: 0.76rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    transition: var(--transition);
}

.widget-footer a:hover { opacity: 1; }

/* ─── Match Item ──────────────────────────────── */
.match-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: 0.7rem var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.match-item:hover { background: rgba(255,255,255,0.025); }
.match-item + .match-item { border-top: 1px solid rgba(255,255,255,0.04); }

.match-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
}

.match-vs   { color: var(--text-muted); font-size: 0.7rem; }
.match-info { text-align: right; font-size: 0.72rem; color: var(--text-muted); }
.match-date { display: block; }
.match-type { color: var(--gold); }

/* ─── Empty State ─────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.22;
}

/* ─── Cards ───────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--transition), background var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card-glow { position: relative; }

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.card-glow:hover::before { opacity: 1; }

/* ─── Tables ──────────────────────────────────── */
.table-container { overflow-x: auto; }

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

.table th,
.table td {
    padding: 0.7rem var(--space-md);
    text-align: left;
}

.table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.table td { border-bottom: 1px solid rgba(255,255,255,0.04); }

.table tbody tr:hover { background: rgba(255,255,255,0.025); }

/* ─── Standings ───────────────────────────────── */
.rank {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
    width: 40px;
}

.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }

.team-cell {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.team-logo {
    width: 34px; height: 34px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.team-name { font-weight: 600; }

.points {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold);
}

/* ─── Page Header ─────────────────────────────── */
.page-header {
    padding: var(--space-2xl) var(--space-xl) var(--space-xl);
    text-align: center;
}

.page-header-container { max-width: 800px; margin: 0 auto; }

.page-title {
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ─── Container ───────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-sm { max-width: 800px; }

/* ─── Profile Page ────────────────────────────── */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.profile-avatar {
    width: 110px; height: 110px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.profile-info h2  { margin-bottom: var(--space-sm); }

.profile-meta {
    display: flex;
    gap: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.profile-meta span { display: flex; align-items: center; gap: var(--space-xs); }

/* ─── Position Badges ─────────────────────────── */
.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.position-top     { color: #FF6B6B; border-color: rgba(255,107,107,0.2); }
.position-jungle  { color: #4ECDC4; border-color: rgba(78,205,196,0.2); }
.position-mid     { color: #FFE66D; border-color: rgba(255,230,109,0.2); }
.position-adc     { color: #95E1D3; border-color: rgba(149,225,211,0.2); }
.position-support { color: #DDA0DD; border-color: rgba(221,160,221,0.2); }

/* ─── Draft Page ──────────────────────────────── */
.draft-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.draft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.draft-status   { display: flex; align-items: center; gap: var(--space-md); }

.draft-timer {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--gold);
}

.draft-grid {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: var(--space-xl);
}

.draft-teams    { display: flex; flex-direction: column; gap: var(--space-md); }
.draft-team-card { padding: var(--space-lg); }

.draft-team-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(255,215,0,0.14);
}

.draft-players-pool {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    max-height: 600px;
    overflow-y: auto;
}

.player-card            { padding: var(--space-md); cursor: pointer; }
.player-card:hover      { border-color: var(--gold); }
.player-card.selected   { background: rgba(255,215,0,0.06); border-color: var(--gold); }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .hero-container     { grid-template-columns: 1fr; text-align: center; }
    .hero-description   { margin: 0 auto var(--space-2xl); }
    .hero-actions       { justify-content: center; }
    .features-grid      { grid-template-columns: 1fr 1fr; }
    .dashboard-grid     { grid-template-columns: 1fr; }
    .stats-row          { grid-template-columns: repeat(2, 1fr); }
    .draft-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-auth {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: var(--space-md);
        gap: var(--space-xs);
    }

    .nav-links.mobile-open,
    .nav-auth.mobile-open { display: flex; }

    .nav-container {
        flex-wrap: wrap;
        padding: var(--space-md);
        gap: var(--space-sm);
        height: auto;
    }

    .nav { height: auto; }

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

    .nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
    .nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

    .nav-link {
        width: 100%;
        padding: var(--space-md);
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: var(--radius-md);
    }

    .nav-link::after { display: none; }

    .nav-auth .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .nav-auth .user-dropdown { width: 100%; }
    .nav-auth .nav-user { width: 100%; justify-content: center; min-height: 44px; }

    .user-menu {
        position: fixed;
        top: auto;
        bottom: var(--space-md);
        left: var(--space-md);
        right: var(--space-md);
        width: auto;
        max-height: 70vh;
        overflow-y: auto;
        transform-origin: bottom center;
    }

    .flash-container {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }

    @keyframes slideIn {
        from { transform: translateY(-10px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    .page-header { padding: var(--space-xl) var(--space-md) var(--space-lg); }
    .container   { padding: 0 var(--space-md); }
    .hero        { padding: var(--space-2xl) var(--space-md); }
    .hero-icon   { font-size: 3rem; }
    .stats-row   { grid-template-columns: 1fr 1fr; }
    .card, .widget { border-radius: var(--radius-md); }
    .widget-body { padding: var(--space-md); }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card  { padding: var(--space-lg); }
    .footer { padding: var(--space-xl) var(--space-md); }
    .footer-links { flex-direction: column; gap: var(--space-sm); align-items: center; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-meta   { justify-content: center; }
    .auth-card      { padding: var(--space-xl); }
    .auth-container { padding: var(--space-md); }
    .draft-header   { flex-direction: column; gap: var(--space-md); }
    div[style*="grid-template-columns: 1fr 1fr 1fr auto"] { grid-template-columns: 1fr !important; }
    div[style*="display: flex"][style*="gap: var(--space-md)"] { flex-wrap: wrap; }
    div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr 1fr 1fr !important; gap: var(--space-sm) !important; }
    .table-container { -webkit-overflow-scrolling: touch; }
    .table th, .table td { padding: var(--space-sm); font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .stats-row             { grid-template-columns: 1fr 1fr; }
    .hero-actions          { flex-direction: column; width: 100%; }
    .hero-actions .btn     { width: 100%; }
    .nav-logo              { font-size: 1.3rem; }
    .logo-icon             { font-size: 1.2em; }
    .table th, .table td   { padding: var(--space-xs) var(--space-sm); font-size: 0.75rem; }
    div[style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
    .btn                   { font-size: 0.78rem; }
    .page-title            { font-size: 1.5rem; }
    .auth-card             { padding: var(--space-lg); border-radius: var(--radius-md); }
    .stat-card             { padding: var(--space-md); }
    .user-menu             { left: var(--space-sm); right: var(--space-sm); }
}

/* ─── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar             { width: 7px; height: 7px; }
::-webkit-scrollbar-track       { background: var(--bg-darker); }
::-webkit-scrollbar-thumb       { background: rgba(255,215,0,0.14); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,215,0,0.32); }

/* ─── Selection ───────────────────────────────── */
::selection { background: var(--gold); color: var(--bg-dark); }

/* ─── Utilities ───────────────────────────────── */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-warning { color: var(--warning); }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
