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

:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --border: #e4e2d8;
    --text: #1a1a1a;
    --muted: #6b6a65;
    --accent: #185fa5;
    --green: #3b6d11;
    --red: #a32d2d;
    --amber: #854f0b;
    --radius: 10px;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Navbar ── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px;
    }

.brand {
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--muted);
        font-size: 14px;
        white-space: nowrap;
    }

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

        .nav-links a.btn-primary,
        .nav-links a.btn-primary:hover {
            color: #ffffff !important;
        }

/* ── Buttons ── */
.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

    .btn-primary:hover {
        background: #0f4d8a;
    }

.btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    white-space: nowrap;
}

    .btn-ghost:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

.btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* ── Hero ── */
.hero {
    padding: 72px 0 48px;
    text-align: center;
}

    .hero h1 {
        font-size: 2.6rem;
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .hero .accent {
        color: var(--accent);
    }

.hero-sub {
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 16px;
}

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

/* ── Stats bar ── */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.stat-item.highlight .stat-num {
    color: var(--green);
}

/* ── How it works ── */
.how-it-works {
    padding: 64px 0;
}

    .how-it-works h2 {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.step-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 13px;
}

/* ── Pricing ── */
.pricing-teaser {
    padding: 64px 0;
}

    .pricing-teaser h2,
    .pricing-full h2 {
        text-align: center;
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

.pricing-full {
    padding: 64px 0;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.plan {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.plan-featured {
    border-color: var(--accent);
    border-width: 2px;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
}

.plan-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

    .plan-price small {
        font-size: 13px;
        font-weight: 400;
        color: var(--muted);
    }

.plan ul {
    list-style: none;
    margin-bottom: 24px;
}

.plan li {
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

    .plan li.dim {
        color: var(--muted);
    }

/* ── Feed header ── */
.feed-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.feed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

    .feed-top h1 {
        font-size: 1.4rem;
    }

.feed-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.feed-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Date nav ── */
.date-nav {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 34px;
}

.date-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 34px;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

    .date-btn:hover {
        background: var(--bg);
        color: var(--accent);
    }

    .date-btn.disabled {
        color: var(--border);
        cursor: default;
        pointer-events: none;
    }

.date-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding: 0 12px;
    white-space: nowrap;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 34px;
    display: flex;
    align-items: center;
}

/* ── League filter ── */
.league-filter select {
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--surface);
    cursor: pointer;
    height: 34px;
    color: var(--text);
}

    .league-filter select:focus {
        outline: none;
        border-color: var(--accent);
    }

/* ── Upgrade banner ── */
.upgrade-banner {
    background: #e6f1fb;
    border: 1px solid #b3d0f0;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .upgrade-banner a {
        color: var(--accent);
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
    }

/* ── Feed cards ── */
.feed {
    padding: 24px 0;
}

.alert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    gap: 16px;
    align-items: center;
}

    .alert-card.success {
        border-left: 3px solid var(--green);
    }

    .alert-card.fail {
        border-left: 3px solid var(--red);
        opacity: .75;
    }

    .alert-card.pending {
        border-left: 3px solid var(--amber);
    }

    .alert-card.locked {
        opacity: .55;
    }

    .alert-card.expandable {
        cursor: pointer;
    }

.badge-type {
    display: block;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.badge-minute {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

    .badge-minute.ft {
        color: var(--green);
        font-weight: 600;
    }

    .badge-minute.ht {
        color: var(--amber);
        font-weight: 600;
    }

    .badge-minute.live {
        color: var(--accent);
        font-weight: 600;
    }

.card-league {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}

.card-teams {
    font-size: 14px;
    font-weight: 500;
}

.score-alert {
    margin: 0 4px;
}

.score-live {
    font-size: 12px;
    color: var(--accent);
    margin-left: 6px;
}

.card-odds {
    font-size: 12px;
    color: var(--accent);
    margin-top: 4px;
}

.card-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.locked-text {
    font-size: 13px;
    color: var(--muted);
}

.blur {
    filter: blur(5px);
    user-select: none;
}

.card-right {
    text-align: right;
}

.result {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

    .result.hit {
        color: var(--green);
    }

    .result.miss {
        color: var(--red);
    }

    .result.pending {
        color: var(--amber);
    }

.card-time {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.chart-toggle-icon {
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.6;
    display: block;
}

/* ── Chart panel ── */
.chart-panel {
    grid-column: 1 / -1;
    padding: 12px 16px 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.chart-title {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 48px 0;
}

/* ── Auth ── */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 64px 20px;
}

.auth-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

    .auth-box h1 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

.auth-sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 12px;
    background: var(--bg);
}

    .input:focus {
        outline: none;
        border-color: var(--accent);
    }

.alert-error {
    background: #fcebeb;
    color: var(--red);
    border: 1px solid #f5c6c6;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
}

    .auth-footer a {
        color: var(--accent);
        text-decoration: none;
    }

/* ── Page hero ── */
.page-hero {
    padding: 48px 0 32px;
    text-align: center;
}

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        color: var(--muted);
        margin-top: 8px;
    }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 64px;
}

    .footer .container {
        text-align: center;
        font-size: 12px;
        color: var(--muted);
    }

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 8px;
    }

        .nav-links a:not(.btn-primary):not(.btn-ghost) {
            display: none;
        }

    .btn-primary {
        padding: 5px 10px;
        font-size: 12px;
    }

    .btn-ghost {
        padding: 5px 10px;
        font-size: 12px;
    }

    .alert-card {
        grid-template-columns: 50px 1fr 70px;
        gap: 10px;
    }

    .feed-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-controls {
        width: 100%;
        justify-content: space-between;
    }

    .date-label {
        padding: 0 8px;
        font-size: 12px;
    }

    .league-filter select {
        font-size: 12px;
    }

    .upgrade-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
