/* ============================================================
   fantasyleague.run — Global Styles
   Palette inspired by Diamond League (gold/navy), World Athletics
   (royal blue/white) and European Athletics (deep navy/gold).
   ============================================================ */

:root {
    /* Core brand */
    --gold:          #c9a435;   /* Diamond League trophy gold */
    --gold-light:    #e8c05a;   /* highlight gold */
    --gold-dim:      #7a5f1a;   /* muted gold for borders */
    --blue:          #1569c7;   /* World Athletics royal blue */
    --blue-light:    #4a9ede;   /* sky blue accent */
    --blue-bright:   #2e8cf7;   /* interactive blue */

    /* Backgrounds — rich athletics navy (lighter, stadium-lit feel) */
    --bg-dark:       #121e2e;
    --bg-mid:        #1a2d44;
    --bg-card:       #1e3350;
    --bg-card-alt:   #223858;

    /* Text */
    --text-primary:  #eef2f7;
    --text-muted:    #7fa4bf;
    --text-dim:      #4d6e87;

    /* Borders */
    --border:        rgba(255,255,255,0.07);
    --border-gold:   rgba(201,164,53,0.3);
    --border-blue:   rgba(21,105,199,0.3);

    /* Utility */
    --radius:        12px;
    --radius-sm:     8px;
    --shadow:        0 4px 28px rgba(0,0,0,0.5);
    --transition:    0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Gold primary — premium feel like DL/EA trophy */
.btn-primary {
    background: var(--gold);
    color: #05101c;
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201,164,53,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
    border-color: var(--blue-light);
    color: var(--blue-light);
    transform: translateY(-1px);
}

.btn-blue {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn-blue:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    background: rgba(5, 16, 28, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

/* Thin gold line under navbar — nod to DL branding stripe */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--blue-light), transparent);
    opacity: 0.5;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.nav-logo span { color: var(--gold); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-user { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 92vh;
    padding: 80px 5% 60px;
    overflow: hidden;
}

/* Layered radial glows: gold centre, blue flanks — like a stadium floodlit at night */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 20%, rgba(201,164,53,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 85%, rgba(139,34,34,0.28) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 12% 60%, rgba(21,105,199,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 88% 60%, rgba(21,105,199,0.14) 0%, transparent 55%),
        linear-gradient(180deg, #0d1520 0%, #121e2e 50%, #1a1a1a 100%);
}

/* Athletic track — perspective SVG */
.hero-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52%;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.85) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.85) 100%);
}
.hero-track svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    max-width: 780px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,164,53,0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

/* Gold gradient on the emphasis — like a championship medal */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #a87c20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

.hero-beta-notice {
    margin-top: 2rem;
    padding: .9rem 1.5rem;
    background: rgba(201,164,53,.12);
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    color: var(--gold-light);
    font-size: .88rem;
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-beta-notice strong { color: var(--gold-light); }
.hero-beta-notice span { color: rgba(255,255,255,.7); font-size: .82rem; display: block; margin-top: .25rem; }

/* kept for fallback — no longer rendered */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-stat span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-light), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat small {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
    padding: 88px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

/* Thin gold underline accent on section headings */
.section-title h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blue-light));
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 16px auto 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: var(--bg-mid); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.how-rules-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .88rem;
    color: var(--text-muted);
}
.how-rules-link a { color: var(--accent); }

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px 28px;
    text-align: center;
    position: relative;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: 0 8px 32px rgba(201,164,53,0.1);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #05101c;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2.6rem;
    margin-bottom: 14px;
    display: block;
}

.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1140px;
    margin: 0 auto;
}

.meet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.meet-card:hover {
    transform: translateY(-3px);
    border-left-color: var(--gold);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* Squad-ready: gold border all around + glow */
.meet-card.squad-ready {
    border-color: #c9a435;
    box-shadow: 0 0 0 2px rgba(201,164,53,.35), 0 4px 20px rgba(201,164,53,.15);
}
.btn-squad-ready {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: .82rem;
    font-weight: 700;
    background: #c9a435;
    color: #0d1117;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background .15s, transform .1s;
}
.btn-squad-ready:hover { background: #f0d060; transform: translateY(-1px); }

/* Championship cards get gold left border */
.meet-card.special {
    border-left-color: var(--gold);
    background: var(--bg-card-alt);
}
.meet-card.special .meet-badge {
    background: rgba(201,164,53,0.12);
    color: var(--gold-light);
    border-color: var(--border-gold);
}

/* Past events — dimmed */
.meet-card.past {
    opacity: 0.45;
    filter: grayscale(0.4);
    pointer-events: none;
}
.meet-card.past:hover {
    transform: none;
}

.meet-badge {
    display: inline-block;
    background: rgba(21,105,199,0.12);
    border: 1px solid var(--border-blue);
    color: var(--blue-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.meet-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.meet-card .meet-date { font-size: 0.85rem; color: var(--text-muted); }
.meet-card .meet-city { font-size: 0.8rem; color: var(--gold-light); margin-top: 6px; opacity: 0.85; }
.meet-card .meet-deadline { font-size: 0.75rem; color: var(--text-dim); margin-top: 5px; }

.meet-mult {
    display: inline-block;
    font-size: 0.7rem; font-weight: 800;
    padding: 1px 6px; border-radius: 4px;
    background: rgba(201,164,53,0.18); color: var(--gold-light);
    margin-left: 4px; vertical-align: middle;
}
.meet-wild {
    font-size: 0.85rem; margin-left: 2px; vertical-align: middle;
}

/* ============================================================
   LEADERBOARD PREVIEW
   ============================================================ */
.leaderboard-section { background: var(--bg-mid); }

.leaderboard-table-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.lb-table th {
    background: rgba(255,255,255,0.03);
    padding: 14px 20px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    text-align: left;
}

.lb-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
}

.lb-rank { font-weight: 800; color: var(--text-muted); width: 40px; }
.lb-rank.gold   { color: #d4af37; }
.lb-rank.silver { color: #a8a9ad; }
.lb-rank.bronze { color: #cd7f32; }
.lb-name { font-weight: 600; }
.lb-pts  { text-align: right; font-weight: 800; color: var(--gold-light); }

.lb-cta {
    text-align: center;
    padding: 22px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}
.lb-cta a { color: var(--blue-light); font-weight: 700; }
.lb-cta a:hover { text-decoration: underline; }

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
    border-color: var(--border-blue);
    transform: translateY(-3px);
}

.feature-card .feat-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

.feature-card .feat-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feat-tag.free    { background: rgba(21,105,199,0.12); color: var(--blue-light); border: 1px solid var(--border-blue); }
.feat-tag.premium { background: rgba(201,164,53,0.12); color: var(--gold-light); border: 1px solid var(--border-gold); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #0e1b2a;
    border-top: 1px solid var(--border);
    padding: 44px 5%;
    text-align: center;
}

/* Gold/blue gradient top border on footer — like a podium stripe */
footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--gold), var(--blue-light), transparent);
    opacity: 0.5;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }

footer p { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
    background: var(--bg-mid);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}
.modal-header h2 { font-size: 1.25rem; font-weight: 900; }
.modal-header h2 span { color: var(--gold); }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

.modal-tabs {
    display: flex;
    gap: 4px;
    padding: 20px 28px 0;
    border-bottom: 1px solid var(--border);
}

.modal-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
}
.modal-tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.modal-body { padding: 28px; }

.modal-panel { display: none; }
.modal-panel.active { display: block; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(201,164,53,0.1);
}

.form-group input::placeholder { color: var(--text-dim); }

.team-mode-radio {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 120px;
}
.radio-option input[type="radio"] { display: none; }

.radio-option label {
    display: block;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.radio-option input[type="radio"]:checked + label {
    border-color: var(--gold-dim);
    color: var(--gold-light);
    background: rgba(201,164,53,0.07);
}

#team-name-group { display: none; }

.form-error {
    background: rgba(180,40,40,0.1);
    border: 1px solid rgba(180,40,40,0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #f08080;
    margin-bottom: 14px;
}
.form-error ul { padding-left: 18px; }

.form-submit { width: 100%; margin-top: 6px; justify-content: center; }

.form-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.form-footer a { color: var(--blue-light); cursor: pointer; font-weight: 700; }
.form-footer a:hover { text-decoration: underline; }

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.dashboard-page { min-height: 100vh; }

.dashboard-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 5%;
}

.dashboard-hero {
    text-align: center;
    margin-bottom: 52px;
}
.dashboard-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; }
.dashboard-hero p  { color: var(--text-muted); font-size: 1.05rem; }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    overflow: hidden;
}
.dash-card-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.dash-card h3   { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.dash-card p    { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.dash-card .btn { width: 100%; box-sizing: border-box; white-space: normal; word-break: break-word; }

/* ============================================================
   EVENT TYPE FILTER TABS
   ============================================================ */
.event-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}

.calendar-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold-light, #f0d060);
    margin: -0.5rem 0 1.25rem;
    font-style: italic;
}

.event-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}
.event-filter-btn:hover,
.event-filter-btn.active {
    background: rgba(201,164,53,0.1);
    border-color: var(--border-gold);
    color: var(--gold-light);
}

.meet-card[data-type] { transition: opacity 0.2s ease, transform 0.2s ease; }
.meet-card.hidden { display: none; }

/* Event type accent colors on left border */
.meet-card[data-type="track"]       { border-left-color: var(--blue); }
.meet-card[data-type="marathon"]    { border-left-color: #2ecc71; }
.meet-card[data-type="half"]        { border-left-color: #1abc9c; }
.meet-card[data-type="road"]        { border-left-color: #27ae60; }
.meet-card[data-type="champs"]      { border-left-color: var(--gold); }

/* ============================================================
   DEMO RESULTS — 2025 SEASON
   ============================================================ */
.demo-section { background: var(--bg-dark); }

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1060px;
    margin: 0 auto;
}

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

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.demo-card-header .demo-icon { font-size: 1.2rem; }
.demo-card-header h3 { font-size: 0.9rem; font-weight: 700; }
.demo-card-header .demo-season {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(201,164,53,0.12);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-table { width: 100%; border-collapse: collapse; }
.demo-table td {
    padding: 11px 20px;
    font-size: 0.88rem;
    border-top: 1px solid var(--border);
}
.demo-table tr:first-child td { border-top: none; }

.demo-rank { font-weight: 800; color: var(--text-muted); width: 32px; }
.demo-rank.gold   { color: #d4af37; }
.demo-rank.silver { color: #a8a9ad; }
.demo-rank.bronze { color: #cd7f32; }
.demo-name { font-weight: 600; }
.demo-sub  { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 1px; }
.demo-pts  { text-align: right; font-weight: 800; color: var(--gold-light); white-space: nowrap; }
.demo-pts small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); }

.demo-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}
.demo-highlight:first-child { border-top: none; }
.demo-highlight-icon { font-size: 1.6rem; flex-shrink: 0; }
.demo-highlight h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.demo-highlight p  { font-size: 0.8rem; color: var(--text-muted); }

.demo-cta {
    text-align: center;
    margin-top: 36px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.demo-cta strong { color: var(--text-primary); }

/* ============================================================
   SQUAD PICKER
   ============================================================ */
.squad-page { background: var(--bg-dark); min-height: 100vh; }

.squad-wrap {
    display: flex;
    gap: 16px;
    padding: 16px;
    height: calc(100vh - 64px);
    max-width: 1200px;
    margin: 0 auto;
}

/* Right-side column: heading + arena + factbox */
.squad-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.arena-heading {
    flex-shrink: 0;
}
.arena-heading-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    line-height: 1.1;
}
.arena-heading-date {
    font-size: .85rem;
    color: var(--text-muted, #aaa);
    margin-top: 2px;
}

.squad-sidebar {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.squad-budget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.squad-budget .sb-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.squad-budget .sb-credits { font-size: 1.6rem; font-weight: 700; color: var(--gold-light); line-height: 1.1; }
.squad-budget .sb-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.squad-event-info {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.78rem;
}
.squad-event-info .sei-name { font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.squad-event-info .sei-date { color: var(--text-muted); }
.squad-event-info .sei-deadline { color: var(--gold); margin-top: 4px; font-size: 0.72rem; }

.squad-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.squad-filter-btn {
    padding: 3px 10px;
    font-size: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.squad-filter-btn.active, .squad-filter-btn:hover {
    border-color: var(--gold-dim);
    color: var(--gold-light);
    background: rgba(201,164,53,.1);
}

.squad-ath-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.squad-ath-list::-webkit-scrollbar { width: 4px; }
.squad-ath-list::-webkit-scrollbar-track { background: transparent; }
.squad-ath-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ath-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ath-row:hover { border-color: rgba(255,255,255,.15); background: var(--bg-card-alt); }
.ath-row.sel { border-color: var(--gold-dim); background: rgba(201,164,53,.07); }
.ath-row.disabled { opacity: .4; cursor: not-allowed; }

.ath-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ath-avatar svg { width: 18px; height: 18px; }
.ath-avatar.male  { background: rgba(30,100,220,.35); }
.ath-avatar.female { background: rgba(180,60,140,.35); }

.ath-info { flex: 1; min-width: 0; }
.ath-name { font-size: 0.72rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ath-nat  { font-size: 0.65rem; color: var(--text-muted); }
.ath-cost { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); flex-shrink: 0; }

/* ── New squad page layout (picker top + arena bottom) ── */
.squad-page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}
.squad-event-switcher {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 0;
}
.squad-event-switcher-label {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}
.squad-event-switcher-row {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}
.squad-event-switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(201,164,53,.14);
    border: 1px solid rgba(201,164,53,.5);
    color: var(--gold-light);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, transform .15s;
}
.squad-event-switcher-pill:hover {
    background: rgba(201,164,53,.28);
    transform: translateY(-1px);
}
.squad-event-switcher-arrow {
    opacity: .8;
    font-weight: 700;
}
.squad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .75rem 0 .85rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.squad-event-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.squad-event-meta {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 3px;
}
.squad-header-budget {
    text-align: right;
    flex-shrink: 0;
}
.shb-left {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.1;
}
.shb-sub {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 2px;
    max-width: 220px;
}

/* Picker section */
.squad-picker { margin-bottom: 1.25rem; }
.squad-picker-controls {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.squad-disc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: .4rem;
}
.squad-prog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: .25rem;
}
.squad-ath-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}
.squad-ath-grid::-webkit-scrollbar { width: 4px; }
.squad-ath-grid::-webkit-scrollbar-track { background: transparent; }
.squad-ath-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Athlete cards */
.ath-card {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-width: 0;
}
.ath-card:hover { border-color: rgba(255,255,255,.15); background: var(--bg-card-alt); }
.ath-card.sel { border-color: var(--gold-dim); background: rgba(201,164,53,.08); }
.ath-card.disabled { opacity: .4; cursor: not-allowed; }
.ath-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    box-sizing: border-box;
}
.ath-card-avatar.male   { background: rgba(30,100,220,.45); }
.ath-card-avatar.female { background: rgba(160,50,180,.45); }
.ath-card-avatar svg { width: 100%; height: 100%; }
.ath-card-body { flex: 1; min-width: 0; }
.ath-card-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ath-card-sub {
    font-size: .69rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.disc-group-header {
    grid-column: 1 / -1;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
    padding: .5rem .2rem .2rem;
    margin-top: .25rem;
    border-top: 1px solid var(--border);
}
.disc-group-header:first-child { border-top: none; margin-top: 0; }
.ath-card-check {
    margin-left: auto;
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Squad status bar (between picker and arena) */
.squad-status-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: .75rem 1.25rem;
    margin: .75rem 0 .5rem;
    flex-wrap: wrap;
}
.ssb-budget { display:flex; flex-direction:column; align-items:center; min-width:70px; }
.ssb-left-label { font-size:.65rem; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); }
.ssb-left-val { font-size:1.5rem; font-weight:700; color:#f0d060; line-height:1.1; }
.ssb-divider { width:1px; height:40px; background:rgba(255,255,255,.15); flex-shrink:0; }
.ssb-counts { display:flex; gap:.9rem; flex-wrap:wrap; align-items:center; }
.ssb-item { font-size:1rem; font-weight:600; }
.ssb-captain { flex:1; text-align:right; font-size:.95rem; font-weight:600; }

/* Arena section */
.squad-arena-section { margin-top: .5rem; }
.squad-arena-wrap {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.squad-arena-wrap svg { width: 100%; height: 260px; display: block; }
.squad-arena-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: .75rem;
}
.arena-msg { font-size: .85rem; }
.squad-save-btn {
    min-width: 200px;
    max-width: 400px;
    width: 100%;
}

/* Squad factbox + programme */
.squad-factbox {
    background: rgba(255,255,255,.05);
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--text-secondary, #bbb);
    flex-shrink: 0;
}
.squad-factbox-title {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary, #888);
    margin-bottom: .3rem;
    font-weight: 600;
}
.squad-programme { margin-bottom: .6rem; }
.squad-programme-title {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary, #888);
    margin-bottom: .5rem;
    font-weight: 600;
}
.squad-prog-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 4px;
}
.squad-prog-col-title {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-secondary, #888);
    margin-bottom: 4px;
    font-weight: 600;
}
.squad-prog-col-title.men   { color: #5ba4ef; }
.squad-prog-col-title.women { color: #d97fd4; }
.squad-prog-col-title.road  { color: #7ec899; }
.squad-prog-tag {
    display: inline-block;
    font-size: .68rem;
    padding: 3px 8px;
    border-radius: 99px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text, #e0e0e0);
    cursor: pointer;
    margin-bottom: 3px;
    transition: background .12s, border-color .12s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.squad-prog-tag:hover { background: rgba(255,255,255,.13); }
.squad-prog-tag.active         { background: #1a3a6a; border-color: #3a80d2; color: #fff; }
.squad-prog-tag.female.active  { background: #4a1a5a; border-color: #a04abc; color: #fff; }
.squad-prog-tag.road.active    { background: #1a4a2a; border-color: #3a9a5a; color: #fff; }
.squad-prog-road { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px; }

/* Squad progress bar */
.squad-progress {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.prog-sep { opacity: .4; }

/* Rules modal */
.rules-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}
.rules-modal {
    background: var(--surface, #1a1a2e);
    border-radius: 14px;
    padding: 1.75rem;
    max-width: 480px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255,255,255,.1);
}
.rules-modal-close {
    position: absolute;
    top: .9rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.rules-modal-close:hover { color: var(--text-primary); }
.rules-modal-title {
    margin: 0 0 1.2rem;
    font-size: 1.25rem;
    font-weight: 700;
}
.rules-section-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 1rem 0 .4rem;
    font-weight: 600;
}
.rules-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
    margin-bottom: .5rem;
}
.rules-table td {
    padding: .3rem .4rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    vertical-align: top;
}
.rules-table td:last-child { text-align: right; color: var(--text-primary); }
.rules-note {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0 0 .4rem;
}
.rules-list {
    font-size: .82rem;
    color: var(--text-muted);
    padding-left: 1.2rem;
    margin: 0;
    line-height: 1.7;
}

/* Athlete info button */
.ath-info-btn {
    background: none;
    border: 1px solid var(--accent, #3498db);
    color: var(--accent, #3498db);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: .65rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    margin-left: 4px;
    opacity: .65;
    transition: opacity .15s;
}
.ath-info-btn:hover { opacity: 1; }

/* Athlete info modal */
.ath-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.ath-modal {
    background: var(--card-bg, #1e1e2e);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 420px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: var(--text-primary, #eee);
}
.ath-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary, #eee);
    line-height: 1;
    padding: 0;
    opacity: .7;
}
.ath-modal-close:hover { opacity: 1; }
.ath-modal-nat { font-size: .8rem; color: var(--text-secondary, #aaa); font-weight: 400; }
.ath-modal-section {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary, #aaa);
    margin: .8rem 0 .3rem;
}
.ath-modal-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ath-modal-table td { padding: .2rem .4rem; }
.ath-modal-table td:first-child { color: var(--text-secondary, #aaa); }
.ath-modal-venue { font-size: .7rem; color: var(--text-secondary, #aaa); }
.ath-modal-photo-credit { font-size: .7rem; color: var(--text-secondary, #aaa); margin-top: .75rem; }
.ath-modal-photo-credit a { color: var(--text-secondary, #aaa); }
.arena-slot-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ath-card-avatar { position: relative; overflow: hidden; }
.ath-card-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ath-card-avatar:has(img) { background: none; padding: 0; }

/* Arena */
.squad-arena {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    aspect-ratio: 580 / 380;
    width: 100%;
}

.squad-arena svg { display: block; width: 100%; height: 100%; }

/* Runner slots */
.squad-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.squad-slot-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.3);
    background: rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
    position: relative;
}
.squad-slot:hover .squad-slot-circle { border-color: var(--gold); }
.squad-slot.filled .squad-slot-circle {
    border: 2px solid rgba(255,255,255,.5);
    background: transparent;
}
.squad-slot.filled.male .squad-slot-circle   { background: rgba(30,100,220,.6); border-color: rgba(100,160,255,.6); }
.squad-slot.filled.female .squad-slot-circle { background: rgba(180,60,140,.6); border-color: rgba(220,120,200,.6); }
.squad-slot.captain .squad-slot-circle { border: 3px solid var(--gold) !important; box-shadow: 0 0 0 2px rgba(201,164,53,.3); }

.squad-slot-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.9);
    background: rgba(0,0,0,.55);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: none;
}
.squad-slot.filled .squad-slot-name { display: block; }

.squad-slot-add {
    color: rgba(255,255,255,.3);
    font-size: 1.8rem;
    line-height: 1;
}

.slot-remove {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #c0392b;
    color: white;
    font-size: 0.8rem;
    line-height: 20px;
    text-align: center;
    display: none;
    cursor: pointer;
    font-weight: 700;
}
.squad-slot.filled:hover .slot-remove { display: block; }

.cap-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--gold);
    color: #121e2e;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arena bottom bar */
.arena-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.arena-bar .ab-info { font-size: 0.75rem; color: rgba(255,255,255,.7); }
.arena-bar .ab-msg  { font-size: 0.75rem; color: var(--gold); flex: 1; text-align: center; min-height: 1em; }
.arena-save {
    padding: 7px 20px;
    background: var(--gold);
    color: #121e2e;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.arena-save:hover { background: var(--gold-light); }
.arena-save:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   DASHBOARD — NEW LAYOUT
   ============================================================ */
.dash-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.dash-hero {
    margin-bottom: 2rem;
    text-align: center;
}
.dash-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 6px; }
.dash-hero p  { color: var(--text-muted); font-size: 1rem; }

/* Stat cards */
.dash-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
}
.dash-stat-icon { font-size: 1.6rem; margin-bottom: 6px; }
.dash-stat-value { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; line-height: 1; }
.dash-stat-event { font-size: 1rem; font-weight: 700; }
.dash-stat-label { font-size: 0.78rem; color: var(--text-muted); }
.dash-stat-date  { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }

/* CTA banner */
.dash-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--accent-rgb, 78,205,196), 0.12);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    gap: 1rem;
}

.dash-stat-card-clickable { cursor: pointer; transition: border-color .15s, transform .1s; }
.dash-stat-card-clickable:hover { border-color: var(--accent); transform: translateY(-2px); }
.dash-stat-link { font-size: .7rem; color: var(--accent); margin-top: .4rem; opacity: .8; }

.cal-table { width: 100%; border-collapse: collapse; font-size: .85rem; max-height: 62vh; display: block; overflow-y: auto; }
.cal-table thead th { position: sticky; top: 0; background: var(--surface); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: .5rem .6rem; text-align: left; border-bottom: 1px solid var(--border); }
.cal-row { border-bottom: 1px solid var(--border); }
.cal-row:last-child { border-bottom: none; }
.cal-row-open { background: rgba(78,205,196,.06); }
.cal-row td { padding: .55rem .6rem; vertical-align: middle; }
.cal-td-date { font-size: .75rem; color: var(--text-muted); font-family: monospace; white-space: nowrap; width: 68px; }
.cal-td-name { min-width: 0; }
.cal-name { font-weight: 600; font-size: .85rem; }
.cal-loc  { font-size: .7rem; color: var(--text-muted); margin-top: .1rem; }
.cal-td-action { text-align: right; white-space: nowrap; }
.cal-badge      { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.cal-badge-done { background: rgba(78,205,196,.15); color: var(--accent); border: 1px solid var(--accent); }
.cal-badge-soon { background: rgba(255,255,255,.07); color: var(--text-muted); border: 1px solid var(--border); }

/* My Squads full-width row — events side by side */
.dash-squads-full { margin-bottom: 0; }
.dash-squads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* My Leagues full-width */
.dash-leagues-full { }
.dash-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: .75rem;
}
.dash-leagues-grid .dash-league-card:only-child {
    grid-column: 1 / -1;
}

.dash-squad-open {
    border-color: var(--accent) !important;
}
.dash-squad-soon {
    opacity: 0.75;
}
.dash-squad-locked { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }

/* Two-column layout (bottom section only) */
.dash-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.dash-section {}
.dash-section-header { margin-bottom: 1rem; }
.dash-section-header h2 { font-size: 1.15rem; font-weight: 800; }
.dash-empty { color: var(--text-muted); font-size: 0.88rem; }

/* League card */
.dash-league-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
    margin-bottom: 1rem;
}
.dash-league-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.dash-league-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.dash-league-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dash-role-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 99px;
    background: rgba(255,255,255,0.1);
    letter-spacing: .04em;
}
.dash-role-badge.owner { background: rgba(255,215,0,0.2); color: #f0c060; }

.dash-invite-block { text-align: right; flex-shrink: 0; }
.dash-invite-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.dash-invite-row { display: flex; align-items: center; gap: 6px; }
.dash-invite-code {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: .15em;
    background: rgba(255,255,255,0.08);
    padding: 3px 8px;
    border-radius: 6px;
    user-select: all;
}
.dash-copy-btn {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all .15s;
}
.dash-copy-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.dash-copy-btn.copied { background: #2ecc71; border-color: #2ecc71; color: #000; }

/* Standings table */
.dash-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.dash-standings-table th {
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 6px 6px;
    border-bottom: 1px solid var(--border);
}
.dash-standings-table td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dash-standings-table td:first-child { color: var(--text-muted); width: 24px; }
.dash-standings-table td:last-child { text-align: right; }
.dash-standings-table .dash-my-row td { font-weight: 700; color: var(--accent); }

/* League forms */
.dash-league-actions { display: flex; gap: 8px; margin-top: 0.75rem; margin-bottom: 0.5rem; }
.dash-league-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.dash-league-form input {
    flex: 1;
    min-width: 140px;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.88rem;
}
.dash-form-msg { font-size: 0.78rem; color: #e74c3c; }

/* Squad cards */
.dash-squad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.dash-squad-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.dash-squad-event { font-weight: 700; font-size: 0.95rem; }
.dash-squad-date  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.dash-squad-points { font-size: 0.82rem; color: var(--text-muted); }
.dash-squad-points.scored { font-size: 1rem; font-weight: 700; color: #c9a435; }
.dash-squad-card.has-scores { border-color: rgba(201,164,53,.3); }
.mini-avatar.scoring { box-shadow: 0 0 0 2px #2ecc71; }
.mini-pts { display: block; font-size: .58rem; color: #2ecc71; font-weight: 700; text-align: center; }

/* Dashboard official results under squad card */
.dash-results-section { border-top: 1px solid var(--border); margin-top: .75rem; padding-top: .6rem; }
.dash-results-title { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted); margin-bottom: .5rem; font-weight: 600; }
.dash-results-disc { font-size: .68rem; font-weight: 700; color: var(--text-primary);
    opacity: .65; margin-top: .4rem; margin-bottom: .15rem; }
.dash-results-row { display: flex; align-items: center; gap: 6px; font-size: .76rem;
    padding: 2px 0; color: var(--text-muted); }
.dash-results-row.in-squad { color: var(--text-primary); font-weight: 600; }
.dash-in-squad-badge { font-size: .6rem; background: rgba(46,204,113,.15); color: #2ecc71;
    border: 1px solid rgba(46,204,113,.3); border-radius: 4px; padding: 1px 5px; margin-left: auto; }
.dash-results-link { display: inline-block; margin-top: .5rem; font-size: .72rem;
    color: var(--accent); text-decoration: none; }
.dash-results-link:hover { text-decoration: underline; }
.dash-results-no-top3 { font-size:.75rem; color:var(--text-muted); padding:.2rem .2rem .4rem; font-style:italic; }

/* Dashboard left/right sub-columns */
.dash-left-col, .dash-right-col { display:flex; flex-direction:column; gap:2rem; }

/* Event history list */
.dash-history-list { display:flex; flex-direction:column; gap:.35rem; margin-top:.5rem; }
.dash-history-row {
    display:flex; align-items:center; gap:.75rem; padding:.6rem .85rem;
    background:var(--surface); border-radius:8px; cursor:pointer;
    border:1px solid var(--border); transition:border-color .15s;
}
.dash-history-row:hover { border-color:var(--accent); }
.dhr-date  { font-size:.75rem; color:var(--text-muted); width:80px; flex-shrink:0; }
.dhr-name  { flex:1; font-size:.88rem; font-weight:600; }
.dhr-pts   { font-size:.88rem; font-weight:700; color:var(--text-muted); }
.dhr-pts.scored { color:#f0d060; }
.dhr-arrow { color:var(--text-muted); font-size:1.1rem; }

.dash-mini-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    margin-bottom: 0.75rem;
}
.mini-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mini-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2980b9;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}
.mini-avatar.female { background: #8e44ad; }
.mini-avatar.captain { box-shadow: 0 0 0 2px #f0c040; }
.mini-avatar svg { width: 100%; height: 100%; display: block; }
.mini-avatar.has-photo { padding: 0 !important; background: none !important; }
.mini-avatar-name {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52px;
}

.dash-squad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-squad-val { font-size: 0.78rem; color: var(--text-muted); }
.btn-xs { font-size: 0.72rem; padding: 4px 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { gap: 24px; }
    .nav-links .hide-mobile { display: none; }
    .modal { max-height: 95vh; }
    .squad-ath-grid { grid-template-columns: 1fr; max-height: 300px; }
    .squad-header { flex-direction: column; gap: .4rem; }
    .squad-header-budget { text-align: left; }

    /* Navbar: wrap logo + buttons to two rows on mobile */
    .navbar { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
    .nav-logo { flex: 0 0 100%; }
    .nav-links { flex: 0 0 100%; gap: 8px; justify-content: flex-start; }
}

/* ============================================================
   ARENA GROUP BOXES + BONUS WIDGET (squad.php track layout)
   ============================================================ */

#slots-layer {
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.arena-groups-row {
    display: flex;
    gap: 5px;
    padding: 6px 5px 0;
    pointer-events: auto;
    flex-shrink: 0;   /* don't stretch to fill full arena height */
    align-items: flex-start;
}
.arena-group-box {
    flex: 1;
    flex-grow: 1;
    flex-shrink: 1;
    border-radius: 8px;
    padding: 5px 5px 6px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,.18);
    min-width: 0;
    height: auto;      /* never stretch beyond content */
}
.arena-group-label {
    font-size: .52rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255,255,255,.9);
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.arena-slot-row { display: flex; gap: 4px; }
.arena-slot {
    flex: 1;
    min-height: 52px;
    border-radius: 7px;
    border: 2px dashed rgba(255,255,255,.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 3px 2px;
    transition: border-color .1s;
}
.arena-slot.filled {
    border-style: solid;
    border-color: rgba(255,255,255,.75);
    background: rgba(0,0,0,.25);
}
.arena-slot.captain {
    box-shadow: 0 0 0 2px #c9a435;
    border-color: #c9a435;
}
.arena-slot-icon { width: 22px; height: 22px; display: block; overflow: hidden; flex-shrink: 0; }
.arena-slot-icon svg { width: 22px; height: 22px; display: block; }
/* Road-slot specific styles */
.road-arena-row .arena-slot { min-height: 110px; min-width: 90px; padding: 0; overflow: hidden; justify-content: flex-end; }
.road-slot-avatar { width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 80px; }
.road-slot-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.road-slot-avatar svg { width: 70%; height: 70%; }
.road-slot-name {
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 4px 2px 2px;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.road-cap { color: #f0d060; font-size: .65rem; }

.arena-slot-name {
    font-size: .48rem;
    color: #fff;
    text-align: center;
    line-height: 1.1;
    margin-top: 2px;
    word-break: break-word;
    max-width: 100%;
}
.arena-bonus-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 4px 8%;
}
.arena-bonus-inner {
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(201,164,53,.45);
    border-radius: 10px;
    padding: 8px 12px;
    max-width: 380px;
    width: 100%;
    backdrop-filter: blur(4px);
}
.arena-bonus-title {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #c9a435;
    font-weight: 700;
    margin-bottom: 4px;
}
.arena-bonus-q {
    font-size: .74rem;
    color: #eee;
    margin-bottom: 6px;
    line-height: 1.4;
}
.arena-bonus-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.arena-bonus-opt {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    color: #ccc;
    border-radius: 5px;
    padding: 3px 9px;
    font-size: .72rem;
    cursor: pointer;
    transition: background .1s, border-color .1s;
}
.arena-bonus-opt:hover { background: rgba(255,255,255,.15); color: #fff; }
.arena-bonus-opt.selected {
    background: rgba(201,164,53,.25);
    border-color: #c9a435;
    color: #f0c040;
    font-weight: 600;
}
.not-announced-banner {
    background: rgba(52,152,219,.1);
    border: 1px solid rgba(52,152,219,.35);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .82rem;
    color: #c9a435;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
}

.prelim-notice-banner {
    background: rgba(230,168,23,.1);
    border: 1px solid rgba(230,168,23,.4);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .82rem;
    color: #e6a817;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
}
.squad-slot.filled:hover .slot-remove,
.arena-slot.filled:hover .slot-remove { display: block; }

/* Event calendar — squad-ready (athletes published) */
.meet-card.squad-ready {
    border-color: #c9a435;
    box-shadow: 0 0 0 1px rgba(201,164,53,.4), 0 4px 20px rgba(201,164,53,.15);
}
.btn-squad-ready {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 700;
    color: #c9a435;
    border: 1.5px solid #c9a435;
    border-radius: 7px;
    background: rgba(201,164,53,.1);
    text-decoration: none;
    letter-spacing: .03em;
}
.btn-squad-ready:hover { background: rgba(201,164,53,.2); }

/* Cards hidden above the 8-card fold (JS adds/removes this class) */
.meet-card.above-fold { display: none; }

/* ============================================================
   BETA SEASON BANNER
   ============================================================ */
.beta-top-banner {
    background: linear-gradient(90deg, #b8860b 0%, #f0c030 50%, #b8860b 100%);
    color: #1a1200;
    font-size: .88rem;
    font-weight: 500;
    text-align: center;
    padding: .7rem 3rem;
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(240,192,48,0.35);
    letter-spacing: .01em;
}
.beta-top-banner strong { color: #000; }
.beta-top-banner button {
    position: absolute; right: 1rem;
    background: none; border: none; cursor: pointer;
    font-size: 1.3rem; color: rgba(0,0,0,.5); line-height: 1; padding: 0 .4rem;
}
.beta-top-banner button:hover { color: #000; }

/* Road race background behind "What do you get?" */
.features-road-bg {
    position: relative;
    overflow: hidden;
}
.features-road-svg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.45;
}
.features-road-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.features-road-bg .section-title,
.features-road-bg .features-grid {
    position: relative;
    z-index: 1;
}

/* ============================================================
   LEADERBOARD LAYOUT WITH HIGHLIGHTS
   ============================================================ */
.lb-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}
.lb-layout .leaderboard-table-wrap { flex: 1; min-width: 260px; }

.season-highlights-box {
    flex: 0 0 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}
.shb-title {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-gold);
}
.shb-item {
    display: flex;
    gap: .55rem;
    margin-bottom: .7rem;
    font-size: .8rem;
    line-height: 1.35;
}
.shb-item:last-child { margin-bottom: 0; }
.shb-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }
.shb-item strong { display: block; color: var(--text-primary); font-size: .78rem; }
.shb-item span { color: var(--text-muted); font-size: .74rem; }

@media (max-width: 640px) {
    .lb-layout { flex-direction: column; }
    .season-highlights-box { flex: none; width: 100%; }
}

/* ============================================================
   SPONSORS STRIP
   ============================================================ */
.sponsors-strip {
    background: rgba(255,255,255,.03);
    border-top: 1px solid var(--border);
    padding: 1.5rem 5%;
    text-align: center;
}
.sponsors-inner { max-width: 860px; margin: 0 auto; }
.sponsors-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    display: block;
    margin-bottom: .9rem;
}
.sponsors-logos {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}
.sponsor-placeholder {
    padding: .6rem 1.75rem;
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: .75rem;
    min-width: 110px;
    text-align: center;
    transition: border-color .2s;
}
.sponsor-placeholder:hover { border-color: var(--border-gold); color: var(--text-muted); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 2.25rem 5% 1.75rem;
    text-align: center;
}
.footer-inner { max-width: 860px; margin: 0 auto; }
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: .85rem 0 .75rem;
}
.footer-links a {
    font-size: .85rem;
    color: var(--text-muted);
    transition: color .15s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-data {
    font-size: .78rem;
    color: var(--text-muted);
    margin: .4rem 0;
}
.footer-data a { color: var(--blue-light); }
.footer-copy {
    font-size: .72rem;
    color: var(--text-dim);
    margin-top: .65rem;
}

/* ============================================================
   NEWSLETTER OPT-IN CHECKBOX
   ============================================================ */
.newsletter-opt-label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    cursor: pointer;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.newsletter-opt-label input[type="checkbox"] {
    margin-top: .15rem;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--blue-bright);
    cursor: pointer;
}

/* ============================================================
   DEMO MODAL
   ============================================================ */
.btn-ghost { background:none; border:1px solid rgba(255,255,255,.2); color:var(--text-primary); cursor:pointer; }
.btn-ghost:hover { border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.06); }

.demo-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; padding: 1rem;
}
.demo-modal-box {
    background: var(--bg-card); border-radius: 16px; padding: 1.5rem 1.75rem;
    max-width: 660px; width: 100%; max-height: 92vh; overflow-y: auto;
    position: relative; box-shadow: 0 24px 64px rgba(0,0,0,.6);
    border: 1px solid var(--border);
}
.demo-modal-close {
    position: absolute; top: .9rem; right: 1rem; background: none; border: none;
    font-size: 1.6rem; cursor: pointer; color: var(--text-muted); line-height: 1;
}
.demo-modal-close:hover { color: var(--text-primary); }

/* Step dots */
.demo-steps-bar { display: flex; gap: .35rem; justify-content: center; margin-bottom: 1.25rem; }
.demo-step-dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-mid); border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 700; color: var(--text-muted);
    cursor: pointer; transition: background .15s, border-color .15s;
}
.demo-step-dot.active  { background: var(--blue-bright); border-color: var(--blue-bright); color: #fff; }
.demo-step-dot.done    { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-light); }
.demo-step-dot:hover   { border-color: var(--blue-light); }

/* Panes */
.demo-pane { display: none; }
.demo-pane.active { display: block; }
.demo-pane-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-light); margin-bottom: .65rem; font-weight: 700; }

/* Navigation row */
.demo-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.demo-step-label { font-size: .78rem; color: var(--text-muted); }
.demo-caption { font-size: .8rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.5; }

/* Mock screen chrome */
.demo-screen {
    background: var(--bg-dark); border-radius: 10px; padding: 1rem;
    border: 1px solid var(--border); min-height: 240px;
}
.demo-screen-header {
    font-size: .75rem; font-weight: 700; color: var(--gold-light);
    margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.demo-screen-header span { color: var(--text-muted); }

/* Form mockup */
.demo-form-row { margin-bottom: .5rem; }
.demo-label { font-size: .7rem; color: var(--text-muted); margin-bottom: .2rem; }
.demo-input-fake {
    background: rgba(255,255,255,.07); border: 1px solid var(--border);
    border-radius: 6px; padding: .45rem .65rem; font-size: .82rem; color: var(--text-primary);
}
.demo-fake-btn {
    background: var(--blue-bright); color: #fff; border-radius: 8px;
    padding: .6rem 1rem; text-align: center; font-size: .85rem; font-weight: 700;
    cursor: default; margin-top: .25rem;
}
.demo-fake-btn-sm {
    background: rgba(201,164,53,.2); border: 1.5px solid var(--gold);
    color: var(--gold-light); border-radius: 6px; padding: .35rem .7rem;
    font-size: .72rem; font-weight: 700; white-space: nowrap; cursor: default;
}

/* Event cards in demo */
.demo-meet-card {
    background: var(--bg-card-alt); border-radius: 8px; padding: .65rem .85rem;
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: space-between; gap: .75rem;
}
.demo-meet-ready { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201,164,53,.2); }
.demo-meet-locked { opacity: .65; }
.demo-meet-name { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.demo-meet-meta { font-size: .7rem; color: var(--text-muted); margin-top: .15rem; }

/* Athlete cards in demo */
.demo-ath-card {
    display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem;
    background: var(--bg-card-alt); border-radius: 7px; border: 1px solid var(--border);
    margin-bottom: .3rem; cursor: default; transition: border-color .2s;
}
.demo-ath-card.sel { border-color: var(--blue-bright); background: rgba(46,140,247,.1); }
.demo-ath-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.demo-ath-avatar.male   { background: #2c5f99; }
.demo-ath-avatar.female { background: #7b3fa0; }
.demo-ath-name { font-size: .78rem; font-weight: 600; color: var(--text-primary); }
.demo-ath-sub  { font-size: .67rem; color: var(--text-muted); }

/* Arena slots in demo */
.demo-slot {
    border-radius: 7px; padding: .35rem .55rem; font-size: .75rem; font-weight: 600;
    border: 1.5px dashed var(--border); color: var(--text-muted); text-align: center;
    min-height: 32px; display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s;
}
.demo-slot.filled      { border-style: solid; border-color: var(--blue-bright); background: rgba(46,140,247,.1); color: var(--text-primary); }
.demo-slot.filled.male   { border-color: #4a9ede; background: rgba(44,95,153,.2); }
.demo-slot.filled.female { border-color: #b07fd4; background: rgba(123,63,160,.2); }
.demo-slot-name { font-size: .7rem; }

/* Captain badge (inline) */
.demo-cap-badge {
    background: var(--gold); color: #000; border-radius: 50%;
    width: 16px; height: 16px; font-size: .6rem; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Bonus question */
.demo-bonus-box { background: rgba(39,174,96,.08); border: 1px solid rgba(39,174,96,.25); border-radius: 10px; padding: 1rem; }
.demo-bonus-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #6fcf97; margin-bottom: .4rem; }
.demo-bonus-q { font-size: .88rem; font-weight: 700; margin-bottom: .75rem; }
.demo-bonus-opts { display: flex; flex-direction: column; gap: .3rem; }
.demo-bonus-opt {
    padding: .45rem .75rem; border-radius: 7px; font-size: .82rem;
    background: rgba(255,255,255,.05); border: 1px solid var(--border); cursor: pointer;
    transition: background .15s, border-color .15s;
}
.demo-bonus-opt:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.demo-bonus-opt.demo-bonus-selected { background: rgba(39,174,96,.18); border-color: #27ae60; color: #6fcf97; font-weight: 700; }

/* Dashboard stat cards */
.demo-stat-card {
    background: var(--bg-card-alt); border-radius: 8px; padding: .6rem .5rem;
    text-align: center; border: 1px solid var(--border);
}
.demo-stat-val { font-size: 1.3rem; font-weight: 800; color: var(--gold-light); line-height: 1.1; }
.demo-stat-lbl { font-size: .62rem; color: var(--text-muted); margin-top: .2rem; }

/* Leaderboard in demo */
.demo-lb-table { display: flex; flex-direction: column; gap: .2rem; }
.demo-lb-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; padding: .35rem .55rem;
    background: rgba(255,255,255,.03); border-radius: 5px;
}
.demo-lb-you { background: rgba(201,164,53,.1); color: var(--gold-light); font-weight: 700; }
.demo-lb-pts { font-weight: 700; }
