/* =========================================================
   FORECASTR — MERGED STYLESHEET
   Combines: Home/Landing, How-It-Works, Events Listing,
             Event Detail, Leaderboard, Legal (Terms/Privacy)
             pages into a single file.
   ========================================================= */

/* ---------- ROOT / RESET / BASE ---------- */
:root {
    --bg: #0a0d12;
    --bg-raised: #0d1119;
    --surface: #131826;
    --surface-2: #1b2233;
    --border: #242c3d;
    --border-soft: #1c2333;
    --text: #edeff4;
    --text-dim: #8b93a8;
    --text-faint: #5b6479;
    --accent: #5b6ef5;
    --accent-2: #8b7cf6;
    --positive: #3ecf8e;
    --negative: #ff6b7a;
    --gold: #f0b429;
    --radius: 12px;
    --radius-lg: 18px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1,
h2,
h3,
h4,
.font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.font-mono {
    font-family: var(--font-mono);
}
.text-dim {
    color: var(--text-dim) !important;
}
.text-faint {
    color: var(--text-faint) !important;
}
.text-accent {
    color: var(--accent) !important;
}
.text-positive {
    color: var(--positive) !important;
}
.text-negative {
    color: var(--negative) !important;
}
.text-gold {
    color: var(--gold) !important;
}
a {
    text-decoration: none;
    color: inherit;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.section {
    padding: 96px 0;
}
.section-sm {
    padding: 64px 0;
}
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.eyebrow::before {
    content: "◆";
    margin-right: 8px;
    font-size: 10px;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ---------- NAVBAR (shared across all pages) ---------- */
.navbar-forecastr {
    background: rgba(10, 13, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 0;
}
.brand-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 9px;
}
.brand-mark .dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: rotate(45deg);
    display: inline-block;
}
.nav-link-forecastr {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.nav-link-forecastr:hover {
    color: var(--text);
    background: var(--surface);
}
.nav-link-forecastr.active {
    color: var(--text);
    background: var(--surface-2);
}

.btn-forecastr-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14.5px;
    padding: 9px 20px;
    transition: all 0.15s ease;
}
.btn-forecastr-primary:hover {
    background: #4a5de0;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(91, 110, 245, 0.18);
}
.btn-forecastr-primary:disabled {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-faint);
    cursor: not-allowed;
    box-shadow: none;
}
.btn-forecastr-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14.5px;
    padding: 9px 20px;
    transition: all 0.15s ease;
}
.btn-forecastr-outline:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--surface);
}
.btn-forecastr-ghost {
    background: transparent;
    color: var(--text-dim);
    border: none;
    font-weight: 600;
    font-size: 14.5px;
}
.btn-forecastr-ghost:hover {
    color: var(--text);
}

/* ===========================================================
   PAGE 1: HOME / LANDING
   =========================================================== */

/* Ticker */
.ticker-wrap {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-raised), transparent);
}
.ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-raised), transparent);
}
.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 38s linear infinite;
    padding: 10px 0;
}
.ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    border-right: 1px solid var(--border-soft);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
}
.ticker-item .ti-name {
    color: var(--text);
    font-weight: 500;
}
.ticker-bar {
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-2);
    overflow: hidden;
    display: inline-block;
}
.ticker-bar span {
    display: block;
    height: 100%;
    background: var(--positive);
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    padding: 88px 0 70px;
    background:
        radial-gradient(
            ellipse 900px 500px at 15% -10%,
            rgba(91, 110, 245, 0.16),
            transparent 60%
        ),
        radial-gradient(
            ellipse 700px 500px at 100% 10%,
            rgba(139, 124, 246, 0.12),
            transparent 60%
        );
}
.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 22px;
}
.hero h1 .hl {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    font-size: 17.5px;
    color: var(--text-dim);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 32px;
}
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 44px;
    flex-wrap: wrap;
}
.hero-stat .num {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}
.hero-stat .lbl {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 2px;
}

/* hero mock card */
.hero-visual {
    position: relative;
    padding-top: 10px;
}
.mock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    transform: rotate(2.2deg);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.mock-card .mc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.mc-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(91, 110, 245, 0.14);
    color: var(--accent);
    border-radius: 6px;
    padding: 4px 9px;
    font-weight: 600;
}
.mc-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}
.mc-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--positive);
    box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
    animation: pulse 1.8s ease-in-out infinite;
}
.mock-card h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.35;
}
.mc-split {
    display: flex;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--surface-2);
}
.mc-split .yes {
    background: linear-gradient(90deg, var(--positive), #34b579);
    width: 0%;
    transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mc-split .no {
    background: var(--surface-2);
}
.mc-split-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12.5px;
    margin-bottom: 18px;
}
.mc-stars {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.mc-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.mc-count {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
}
.mock-card-back {
    position: absolute;
    inset: 24px -20px -30px 40px;
    z-index: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transform: rotate(-4deg);
    opacity: 0.55;
}

/* How it works — step cards (landing page variant) */
.step-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 600;
    margin-bottom: 18px;
}
.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(91, 110, 245, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}
.step-connector {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 1px;
    background: var(--border);
    display: none;
}
@media (min-width: 992px) {
    .step-connector {
        display: block;
    }
}

/* Leaderboard preview (small widget on Home page) */
.podium-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    position: relative;
}
.podium-card.rank-1 {
    border-color: rgba(240, 180, 41, 0.4);
    background: linear-gradient(
        180deg,
        rgba(240, 180, 41, 0.08),
        var(--surface)
    );
}
.podium-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    border: 2px solid var(--border);
}
.rank-1 .podium-avatar {
    border-color: var(--gold);
}
.rank-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}
.rank-1 .rank-badge {
    background: rgba(240, 180, 41, 0.15);
    color: var(--gold);
}
.rank-2 .rank-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #c9cfdb;
}
.rank-3 .rank-badge {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: background 0.15s ease;
}
.lb-row:hover {
    background: var(--surface);
}
.lb-row.me {
    background: rgba(91, 110, 245, 0.08);
    border-color: rgba(91, 110, 245, 0.3);
}
.lb-rank {
    font-family: var(--font-mono);
    color: var(--text-faint);
    width: 22px;
    font-size: 14px;
}
.lb-name {
    font-weight: 600;
    flex: 1;
    font-size: 14.5px;
}
.lb-pts {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-dim);
}

/* Stats band */
.stats-band {
    background: var(--bg-raised);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 56px 0;
}
.stats-band .num {
    font-family: var(--font-mono);
    font-size: 38px;
    font-weight: 700;
}
.stats-band .lbl {
    color: var(--text-faint);
    font-size: 13px;
    margin-top: 4px;
}

/* Referral */
.referral-panel {
    background: linear-gradient(
        135deg,
        rgba(91, 110, 245, 0.1),
        rgba(139, 124, 246, 0.05)
    );
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.code-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-family: var(--font-mono);
    font-size: 16px;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-weight: 700;
}

/* Reward / why cards */
.reward-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    height: 100%;
}
.medal-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 16px;
}
.why-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-soft);
}
.why-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
}

/* ===========================================================
   PAGE 2: HOW IT WORKS
   =========================================================== */

.howto-hero {
    padding: 150px 0 70px;
    text-align: center;
    position: relative;
    background: radial-gradient(
        ellipse 900px 500px at 50% -10%,
        rgba(91, 110, 245, 0.18),
        transparent 60%
    );
}
.howto-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    max-width: 760px;
    margin: 0 auto 18px;
}
.howto-hero .lead {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-illustration {
    max-width: 640px;
    margin: 40px auto 0;
    position: relative;
}
.flow-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.flow-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 110px;
}
.flow-node i {
    font-size: 18px;
    color: var(--accent);
}
.flow-node span {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
}
.flow-arrow {
    color: var(--text-faint);
    font-size: 14px;
    padding: 0 10px;
}

/* Step cards (how-it-works variant — includes num badge, more padding) */
.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    position: relative;
}
.step-num-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(91, 110, 245, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 18px;
}
.step-card h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}
.step-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
}
.callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.25);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-dim);
}
.callout i {
    color: var(--gold);
    margin-top: 2px;
}
.callout.info {
    background: rgba(91, 110, 245, 0.08);
    border-color: rgba(91, 110, 245, 0.25);
}
.callout.info i {
    color: var(--accent);
}
.cat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.cat-badges span {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
}

/* confidence stars display */
.conf-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.conf-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 14px;
}
.conf-row .stars {
    color: var(--gold);
    font-size: 13px;
    width: 90px;
}
.conf-row .lbl {
    font-size: 12.5px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}

/* points table */
.reward-table {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.reward-table th {
    background: var(--bg-raised);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.reward-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
}
.reward-table tr:last-child td {
    border-bottom: none;
}
.reward-table .stars-cell {
    color: var(--gold);
    font-size: 13px;
}
.reward-table .cfg {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 3px 9px;
}

/* reputation visual */
.rep-visual {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.rep-side {
    flex: 1;
    min-width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}
.rep-side i {
    font-size: 22px;
    margin-bottom: 8px;
}
.rep-side.win i {
    color: var(--positive);
}
.rep-side.lose i {
    color: var(--negative);
}
.rep-side .t {
    font-weight: 700;
    font-size: 14px;
}
.rep-side .d {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 4px;
}

/* accuracy formula */
.formula-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    margin-top: 18px;
}
.formula-box .f {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
}
.formula-box .ex {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 10px;
}

/* streak */
.streak-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.streak-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.streak-dot.win {
    background: rgba(62, 207, 142, 0.15);
    color: var(--positive);
}
.streak-dot.lose {
    background: rgba(255, 107, 122, 0.15);
    color: var(--negative);
}

/* leaderboard tabs (small strip used inside How It Works step) */
.lb-tab-strip {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.lb-tab {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
}
.lb-tab.active {
    background: rgba(91, 110, 245, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

/* rewards icons */
.reward-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.reward-icon-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    text-align: center;
    flex: 1;
    min-width: 110px;
}
.reward-icon-item i {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}
.reward-icon-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

/* referral flow */
.ref-flow {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* profile stats grid */
.pstat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.pstat-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.pstat-item .l {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pstat-item .v {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    margin-top: 3px;
}

/* journey timeline */
.journey-timeline {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}
.journey-timeline::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--border-soft);
}
.j-item {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 0 0 30px;
}
.j-item:last-child {
    padding-bottom: 0;
}
.j-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent);
    flex: 0 0 46px;
    position: relative;
    z-index: 2;
}
.j-body {
    padding-top: 8px;
}
.j-body .t {
    font-weight: 700;
    font-size: 15px;
}
.j-body .d {
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 2px;
}

/* ===========================================================
   SHARED: EVENT CARDS (used on Home + Events Listing)
   =========================================================== */
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.event-card:hover {
    transform: translateY(-4px);
    border-color: #323c54;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.event-card .ec-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.ec-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 13, 18, 0.75);
    backdrop-filter: blur(6px);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ec-body {
    padding: 18px;
}
.ec-body h6 {
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 8px;
    line-height: 1.35;
}
.ec-body p {
    font-size: 13.5px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.5;
}
.ec-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 14px;
}
.ec-meta .countdown {
    color: var(--gold);
}
.ec-participants {
    font-size: 11.5px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}
.event-card.closed {
    opacity: 0.6;
}
.event-card.closed .ec-img {
    filter: grayscale(0.5);
}
.closed-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-dim) !important;
}

/* ===========================================================
   PAGE 3: EVENTS LISTING
   =========================================================== */

.page-head {
    padding: 140px 0 40px;
    border-bottom: 1px solid var(--border-soft);
}
.page-head h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Filter bar */
.filter-bar {
    position: sticky;
    top: 66px;
    z-index: 10;
    background: rgba(10, 13, 18, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    padding: 16px 0;
}
.pill {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.pill:hover {
    border-color: var(--accent);
}
.pill.active {
    background: rgba(91, 110, 245, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}
.pill-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.pill-scroll::-webkit-scrollbar {
    height: 4px;
}
.pill-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}
.search-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    padding: 9px 14px 9px 38px;
    width: 100%;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.15);
    background: var(--surface);
}
.search-input::placeholder {
    color: var(--text-faint);
}
.search-wrap {
    position: relative;
}
.search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
}
.sort-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 13.5px;
    padding: 9px 12px;
}
.sort-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: none;
}

/* Section labels */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 48px 0 24px;
}
.section-label h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.section-label .count {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 10px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.empty-state i {
    font-size: 30px;
    color: var(--text-faint);
    margin-bottom: 16px;
}

/* Pagination */
.pagination-forecastr {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.page-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn:not(.disabled):hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--surface);
}

@media (max-width: 575px) {
    .pagination-forecastr {
        gap: 5px;
        margin-top: 36px;
    }

    .page-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* ===========================================================
   LARAVEL PAGINATION — FORECASTR THEME
   =========================================================== */

.pagination-forecastr nav {
    display: flex;
    justify-content: center;
}

.pagination-forecastr nav > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Laravel pagination list */
.pagination-forecastr .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Page item */
.pagination-forecastr .page-item {
    margin: 0;
}

/* Page links */
.pagination-forecastr .page-link {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text-dim) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1;
    box-shadow: none !important;
    transition: all 0.15s ease;
}

/* Hover */
.pagination-forecastr .page-link:hover {
    border-color: var(--accent) !important;
    color: var(--text) !important;
    background: var(--surface) !important;
}

/* Active page */
.pagination-forecastr .page-item.active .page-link {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

/* Disabled previous/next */
.pagination-forecastr .page-item.disabled .page-link {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text-faint) !important;
    opacity: 0.55;
    cursor: not-allowed;
}

/* Laravel's Previous / Next text */
.pagination-forecastr .page-item:first-child .page-link,
.pagination-forecastr .page-item:last-child .page-link {
    width: auto;
    min-width: 38px;
    padding: 0 14px;
}

/* "..." separator */
.pagination-forecastr .page-item.disabled .page-link {
    pointer-events: none;
}

/* Remove Bootstrap's default focus appearance */
.pagination-forecastr .page-link:focus {
    box-shadow: none !important;
    outline: none;
}

@media (max-width: 575px) {

    .pagination-forecastr {
        margin-top: 36px;
    }

    .pagination-forecastr .pagination {
        gap: 5px;
    }

    .pagination-forecastr .page-link {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .pagination-forecastr .page-item:first-child .page-link,
    .pagination-forecastr .page-item:last-child .page-link {
        padding: 0 10px;
    }

}
.page-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ===========================================================
   PAGE 4: EVENT DETAIL
   =========================================================== */

.crumb {
    padding: 100px 0 0;
    font-size: 13px;
    color: var(--text-faint);
}
.crumb a:hover {
    color: var(--text-dim);
}

/* Banner */
.event-banner {
    height: 280px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #101d2e, #0d1119),
        radial-gradient(
            ellipse 500px 300px at 80% 20%,
            rgba(91, 110, 245, 0.25),
            transparent
        );
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    padding: 28px;
}
.event-banner .cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 13, 18, 0.7);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text);
}
.event-banner .live-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--positive);
    background: rgba(10, 13, 18, 0.7);
    padding: 6px 12px;
    border-radius: 8px;
}
.event-banner .live-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--positive);
    animation: pulse 1.8s ease-in-out infinite;
}
.event-banner h1 {
    font-size: 30px;
    font-weight: 700;
    max-width: 640px;
    margin: 0;
}

/* meta row */
.meta-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-soft);
}
.meta-item .lbl {
    font-size: 12px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.meta-item .val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
}

/* description */
.desc-block {
    padding: 28px 0;
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 680px;
}

/* prediction panel */
.predict-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    position: sticky;
    top: 90px;
}
.predict-panel h5 {
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 17px;
}
.option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 14px 16px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.option-btn:hover {
    border-color: var(--accent);
}
.option-btn.selected {
    border-color: var(--accent);
    background: rgba(91, 110, 245, 0.1);
    color: var(--accent);
}
.option-btn .pct {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    font-weight: 500;
}
.option-btn.selected .pct {
    color: var(--accent);
}

.confidence-block {
    margin: 22px 0;
}
.confidence-block .lbl {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.star-select {
    display: flex;
    gap: 6px;
    font-size: 26px;
}
.star-select i {
    color: var(--border);
    cursor: pointer;
    transition:
        color 0.12s ease,
        transform 0.12s ease;
}
.star-select i.on {
    color: var(--gold);
}
.star-select i:hover {
    transform: scale(1.12);
}
.confidence-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

.predict-note {
    font-size: 12.5px;
    color: var(--text-faint);
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

/* already predicted state */
.predicted-card {
    text-align: center;
    padding: 10px 0;
}
.predicted-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(62, 207, 142, 0.12);
    color: var(--positive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}
.predicted-choice {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 18px 0;
    text-align: left;
}
.predicted-choice .lbl {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.predicted-choice .val {
    font-weight: 700;
    font-size: 15px;
}

/* closed notice */
.closed-notice {
    text-align: center;
    padding: 16px 0;
}
.closed-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

/* state switcher (design-review helper) */
.state-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    display: flex;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.state-switcher button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 11.5px;
    font-family: var(--font-mono);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.state-switcher button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

@media (max-width: 991px) {
    .predict-panel {
        position: static;
        margin-top: 24px;
    }
    .event-banner h1 {
        font-size: 24px;
    }
}

/* ===========================================================
   PAGE 5: LEADERBOARD
   All selectors below are namespaced with "lbp-" so they never
   collide with the small leaderboard-preview widget on the
   Home page (which already owns .podium-card, .lb-row, etc).
   =========================================================== */

/* Hero header */
.lbp-hero {
    padding: 150px 0 50px;
    position: relative;
    background:
        radial-gradient(
            ellipse 900px 460px at 15% -10%,
            rgba(91, 110, 245, 0.2),
            transparent 60%
        ),
        radial-gradient(
            ellipse 700px 460px at 100% 0%,
            rgba(240, 180, 41, 0.1),
            transparent 60%
        );
}
.lbp-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}
.lbp-hero .lead {
    color: var(--text-dim);
    font-size: 15.5px;
    max-width: 520px;
}
.lbp-stat-strip {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.lbp-stat-strip .num {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 22px;
}
.lbp-stat-strip .lbl {
    font-size: 12px;
    color: var(--text-faint);
}

/* Filter controls */
.lbp-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.lbp-toggle-group {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}
.lbp-toggle-group a {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    transition: all 0.18s ease;
}
.lbp-toggle-group a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(91, 110, 245, 0.6);
}
.lbp-country-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.lbp-country-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lbp-country-pill:hover {
    border-color: var(--accent);
}
.lbp-country-pill.active {
    background: rgba(91, 110, 245, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

/* Search predictor row — matches the .search-input / .sort-select / .btn-forecastr-primary
   language used on the Events Listing page, but namespaced "lbp-" for this page. Replaces
   the old raw Bootstrap form-control/form-select/btn markup that didn't match the theme. */
.lbp-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.lbp-search-input-wrap {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
}
.lbp-search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 13px;
    pointer-events: none;
}
.lbp-search-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    padding: 10px 14px 10px 38px;
    width: 100%;
}
.lbp-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.15);
    background: var(--surface);
}
.lbp-search-input::placeholder {
    color: var(--text-faint);
}
.lbp-search-select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 13.5px;
    padding: 10px 14px;
    min-width: 180px;
    flex: 0 0 auto;
}
.lbp-search-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: none;
}
.lbp-search-btn {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 22px;
    transition: all 0.15s ease;
    flex: 0 0 auto;
    white-space: nowrap;
}
.lbp-search-btn:hover {
    background: #4a5de0;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(91, 110, 245, 0.18);
}

@media (max-width: 600px) {
    .lbp-search-row {
        flex-direction: column;
        align-items: stretch;
    }
    .lbp-search-input-wrap,
    .lbp-search-select,
    .lbp-search-btn {
        width: 100%;
    }
}

/* Podium */
.lbp-podium-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.lbp-podium-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    text-align: center;
    position: relative;
    width: 220px;
    transition: transform 0.3s ease;
}
.lbp-podium-card:hover {
    transform: translateY(-4px);
}
.lbp-podium-card.rank-1 {
    border-color: rgba(240, 180, 41, 0.5);
    background: linear-gradient(
        180deg,
        rgba(240, 180, 41, 0.1),
        var(--surface)
    );
    order: 2;
    width: 240px;
    z-index: 2;
    box-shadow: 0 24px 60px -20px rgba(240, 180, 41, 0.25);
}
.lbp-podium-card.rank-2 {
    order: 1;
}
.lbp-podium-card.rank-3 {
    order: 3;
}
.lbp-podium-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    border: 2px solid var(--border);
    position: relative;
}
.lbp-podium-card.rank-1 .lbp-podium-avatar {
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.12);
}
.lbp-crown-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 18px;
}
.lbp-rank-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}
.lbp-podium-card.rank-1 .lbp-rank-badge {
    background: rgba(240, 180, 41, 0.18);
    color: var(--gold);
}
.lbp-podium-card.rank-2 .lbp-rank-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #c9cfdb;
}
.lbp-podium-card.rank-3 .lbp-rank-badge {
    background: rgba(205, 127, 50, 0.16);
    color: #cd7f32;
}
.lbp-podium-acc {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 4px;
}
.lbp-podium-bar {
    height: 5px;
    border-radius: 3px;
    background: var(--surface-2);
    margin-top: 14px;
    overflow: hidden;
}
.lbp-podium-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Table */
.lbp-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.lbp-thead {
    display: grid;
    grid-template-columns: 56px 1fr 110px 110px 90px;
    padding: 16px 22px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-weight: 600;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-raised);
}
.lbp-row {
    display: grid;
    grid-template-columns: 56px 1fr 110px 110px 90px;
    align-items: center;
    padding: 15px 22px;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.15s ease;
}
.lbp-row:last-child {
    border-bottom: none;
}
.lbp-row:hover {
    background: var(--bg);
}
.lbp-row.me {
    background: rgba(91, 110, 245, 0.08);
}
.lbp-rank {
    font-family: var(--font-mono);
    color: var(--text-faint);
    font-size: 14px;
    font-weight: 600;
}
.lbp-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.lbp-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border);
    flex: 0 0 36px;
}
.lbp-user .name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lbp-user .country {
    font-size: 11.5px;
    color: var(--text-faint);
}
.lbp-acc {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
}
.lbp-pts {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}
.lbp-trend {
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: right;
}
.lbp-empty {
    padding: 60px 20px;
    text-align: center;
}
.lbp-empty i {
    font-size: 28px;
    color: var(--text-faint);
    margin-bottom: 14px;
}

@media (max-width: 767px) {
    .lbp-thead {
        display: none;
    }
    .lbp-row {
        grid-template-columns: 32px 1fr 74px;
        gap: 8px;
        padding: 14px 16px;
    }
    .lbp-acc {
        display: none;
    }
    .lbp-podium-card.rank-1 {
        order: 1;
        width: 100%;
    }
    .lbp-podium-card.rank-2 {
        order: 2;
        width: 100%;
    }
    .lbp-podium-card.rank-3 {
        order: 3;
        width: 100%;
    }
    .lbp-podium-wrap {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===========================================================
   SHARED: FAQ ACCORDION (Home + How It Works)
   =========================================================== */
.accordion-forecastr .accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-forecastr .accordion-button {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    box-shadow: none;
    padding: 18px 22px;
}
.accordion-forecastr .accordion-button:not(.collapsed) {
    background: var(--surface);
    color: var(--accent);
}
.accordion-forecastr .accordion-button::after {
    filter: invert(1) brightness(1.6);
}
.accordion-forecastr .accordion-button:focus {
    box-shadow: none;
}
.accordion-forecastr .accordion-body {
    color: var(--text-dim);
    font-size: 14.5px;
    padding: 0 22px 20px;
    line-height: 1.6;
}

/* ===========================================================
   SHARED: CTA BAND (Home + How It Works)
   =========================================================== */
.cta-band {
    background: linear-gradient(135deg, #141a2e, #171226);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* ===========================================================
   FOOTER (shared — union of all variants)
   =========================================================== */
footer {
    background: var(--bg-raised);
    border-top: 1px solid var(--border-soft);
    padding: 64px 0 28px;
    margin-top: 80px;
}
footer h6 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-weight: 600;
    margin-bottom: 18px;
}
footer a.flink {
    display: block;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.15s;
}
footer a.flink:hover {
    color: var(--text);
}
footer p {
    color: var(--text-faint);
    font-size: 13px;
    margin: 0;
}
.social-ic {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.15s;
}
.social-ic:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 40px;
    }
    .hero {
        text-align: center;
        padding-top: 56px;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stats {
        justify-content: center;
    }
    .mock-card {
        transform: none;
        margin-top: 40px;
    }
    .mock-card-back {
        display: none;
    }
    .section {
        padding: 64px 0;
    }
}
@media (max-width: 767px) {
    .howto-hero h1 {
        font-size: 32px;
    }
    .flow-strip {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
        padding: 6px 0;
    }
}

/* ===========================================================
   MOBILE NAV (shared across all pages)
   =========================================================== */
.hamburger-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}
.hamburger-btn span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s ease;
}
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
body.nav-lock {
    overflow: hidden;
}
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 9, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1055;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.mobile-nav-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 84vw);
    z-index: 1060;
    background: var(--bg-raised);
    border-left: 1px solid var(--border-soft);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding: 26px 26px 28px;
    box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.5);
}
.mobile-nav-panel.open {
    transform: translateX(0);
}
.mobile-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}
.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mnav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text-dim);
    opacity: 0;
    transform: translateX(14px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        color 0.15s ease;
}
.mnav-link i {
    width: 20px;
    text-align: center;
    color: var(--accent);
    font-size: 15px;
}
.mnav-link:hover {
    color: var(--text);
}
.mnav-link.active {
    color: var(--accent);
}
.mobile-nav-panel.open .mnav-link {
    opacity: 1;
    transform: translateX(0);
}
.mobile-nav-panel.open .mnav-link:nth-child(1) {
    transition-delay: 0.08s;
}
.mobile-nav-panel.open .mnav-link:nth-child(2) {
    transition-delay: 0.13s;
}
.mobile-nav-panel.open .mnav-link:nth-child(3) {
    transition-delay: 0.18s;
}
.mobile-nav-panel.open .mnav-link:nth-child(4) {
    transition-delay: 0.23s;
}
.mobile-nav-panel.open .mnav-link:nth-child(5) {
    transition-delay: 0.28s;
}
.mobile-nav-cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
}
.mobile-nav-points {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 13.5px;
}
@media (min-width: 992px) {
    .hamburger-btn,
    .mobile-nav-panel,
    .mobile-nav-backdrop {
        display: none !important;
    }
}

/* ===========================================================
   PAGE 6: LEGAL — TERMS & PRIVACY
   Namespaced with "legal-" so nothing here collides with the
   pages above. Built from the same tokens: the sidebar re-uses
   the ticker's mono labels, the section markers re-use the
   podium's ranked-badge language, and the "what we collect" /
   "your controls" tables re-use .reward-table's structure —
   because a policy page on a forecasting product should still
   read like clauses you can audit, not paragraphs you skim.
   =========================================================== */

/* Compact legal hero — quieter than the marketing heroes above */
.legal-hero {
    padding: 132px 0 44px;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
    background: radial-gradient(
        ellipse 800px 380px at 12% -20%,
        rgba(91, 110, 245, 0.14),
        transparent 60%
    );
}
.legal-hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
}
.legal-hero .lead {
    color: var(--text-dim);
    font-size: 15px;
    max-width: 560px;
    line-height: 1.6;
}
.legal-meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.legal-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
}
.legal-meta-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--positive);
}
.legal-meta-chip.warn .dot {
    background: var(--gold);
}
.legal-doc-switch {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    margin-top: 22px;
}
.legal-doc-switch a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.18s ease;
}
.legal-doc-switch a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(91, 110, 245, 0.6);
}

/* Two-column shell: sticky ToC rail + prose column */
.legal-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 56px;
    padding: 56px 0 100px;
    align-items: start;
}
@media (max-width: 991px) {
    .legal-shell {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ToC rail — a vertical "confidence" progress line, same visual
   language as .mc-split's fill bar, tracking read progress */
.legal-toc {
    position: sticky;
    top: 96px;
}
.legal-toc .eyebrow {
    margin-bottom: 16px;
    display: block;
}
.legal-toc-rail {
    position: relative;
    padding-left: 22px;
}
.legal-toc-rail::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-soft);
    border-radius: 2px;
}
.legal-toc-fill {
    position: absolute;
    left: 6px;
    top: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--positive), var(--accent));
    border-radius: 2px;
    height: 8%;
    transition: height 0.2s ease;
}
.legal-toc-link {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-faint);
    transition: color 0.15s ease;
}
.legal-toc-link::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 13px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-soft);
    transition: all 0.15s ease;
}
.legal-toc-link .n {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    flex: 0 0 auto;
}
.legal-toc-link:hover {
    color: var(--text-dim);
}
.legal-toc-link.active {
    color: var(--text);
}
.legal-toc-link.active::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.18);
}
.legal-toc-link.active .n {
    color: var(--accent);
}
.legal-toc-note {
    margin-top: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.6;
}
.legal-toc-note a {
    color: var(--accent);
    font-weight: 600;
}

/* Prose column */
.legal-content {
    max-width: 720px;
}
.legal-summary {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(91, 110, 245, 0.08);
    border: 1px solid rgba(91, 110, 245, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 48px;
}
.legal-summary i {
    color: var(--accent);
    font-size: 17px;
    margin-top: 2px;
}
.legal-summary h6 {
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 6px;
}
.legal-summary p {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0;
}

.legal-section {
    padding: 38px 0;
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 96px;
}
.legal-section:first-of-type {
    padding-top: 0;
}
.legal-section:last-of-type {
    border-bottom: none;
}
.legal-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.legal-section-head .n {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 600;
}
.legal-section h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}
.legal-section p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-section p:last-child {
    margin-bottom: 0;
}
.legal-section ul,
.legal-section ol {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.75;
    padding-left: 20px;
    margin-bottom: 14px;
}
.legal-section li {
    margin-bottom: 6px;
}
.legal-section li::marker {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.legal-section h3 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 20px 0 8px;
}
.legal-section strong {
    color: var(--text);
    font-weight: 600;
}
.legal-section a.inline-link {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(91, 110, 245, 0.35);
}
.legal-section a.inline-link:hover {
    border-color: var(--accent);
}

/* Plain-English tl;dr chip attached to a clause */
.legal-tldr {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 9px 14px;
    font-size: 12.5px;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.legal-tldr b {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

/* Definitions list — reuses the reward-table's row rhythm */
.legal-defs {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 6px 0 18px;
}
.legal-defs .def-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
}
.legal-defs .def-row:last-child {
    border-bottom: none;
}
.legal-defs .term {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
}
.legal-defs .def {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.6;
}
@media (max-width: 600px) {
    .legal-defs .def-row {
        grid-template-columns: 1fr;
    }
}

/* "What we collect" data table (privacy) */
.legal-data-table {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 6px 0 18px;
}
.legal-data-table th {
    background: var(--bg-raised);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.legal-data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13.5px;
    color: var(--text-dim);
    vertical-align: top;
}
.legal-data-table tr:last-child td {
    border-bottom: none;
}
.legal-data-table .cat {
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
}
.legal-data-table .tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 2px 8px;
    color: var(--text-faint);
    margin: 2px 4px 0 0;
}

/* Rights grid (privacy "your controls") */
.legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 6px 0 18px;
}
.legal-right-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.legal-right-card i {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}
.legal-right-card .t {
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 4px;
}
.legal-right-card .d {
    font-size: 12.5px;
    color: var(--text-faint);
    line-height: 1.55;
}

/* Severity / risk callouts specific to legal copy */
.legal-flag {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
}
.legal-flag.critical {
    background: rgba(255, 107, 122, 0.08);
    border: 1px solid rgba(255, 107, 122, 0.28);
    color: var(--text-dim);
}
.legal-flag.critical i {
    color: var(--negative);
}
.legal-flag.note {
    background: rgba(240, 180, 41, 0.08);
    border: 1px solid rgba(240, 180, 41, 0.25);
    color: var(--text-dim);
}
.legal-flag.note i {
    color: var(--gold);
}
.legal-flag i {
    margin-top: 2px;
    font-size: 14px;
}

/* Contact / footer card at end of doc */
.legal-contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        135deg,
        rgba(91, 110, 245, 0.1),
        rgba(139, 124, 246, 0.05)
    );
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-top: 44px;
}
.legal-contact-card h6 {
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 4px;
}
.legal-contact-card p {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0;
}

/* Back-to-top */
.legal-top-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s ease;
}
.legal-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.legal-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 767px) {
    .legal-hero {
        padding: 112px 0 36px;
    }
    .legal-hero h1 {
        font-size: 27px;
    }
    .legal-shell {
        padding-top: 36px;
    }
}
