:root {
    color-scheme: dark;
    --bg: #02040a;
    --panel: rgba(8, 12, 24, 0.82);
    --panel-strong: rgba(12, 18, 34, 0.96);
    --text: #f5f8ff;
    --muted: #8ea0c7;
    --accent: #46f2c4;
    --accent-2: #63a2ff;
    --accent-3: #ffb84d;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 10% 20%, rgba(70, 242, 196, 0.18), transparent 24%),
        radial-gradient(circle at 90% 15%, rgba(99, 162, 255, 0.18), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(255, 184, 77, 0.14), transparent 25%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, transparent 0%, rgba(70, 242, 196, 0.08) 40%, transparent 100%),
        linear-gradient(320deg, transparent 0%, rgba(99, 162, 255, 0.08) 35%, transparent 100%);
    filter: blur(44px);
    transform: translate3d(var(--pointer-x, 0px), var(--pointer-y, 0px), 0);
    transition: transform 0.18s ease-out;
    z-index: 0;
}

.hero, .section, .footer {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 24px 24px 72px;
    max-width: 1240px;
    margin: 0 auto;
}

.compact-hero {
    padding-bottom: 40px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(4, 8, 18, 0.7);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.brand {
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
    color: var(--muted);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    padding-top: 56px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-copy h1 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.04;
    margin: 0 0 16px;
    max-width: 660px;
}

.lead {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #031018;
    box-shadow: 0 10px 24px rgba(70, 242, 196, 0.2);
}

.btn-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.metric-list {
    list-style: none;
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.metric-list li {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.metric-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.metric-list span {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-panel {
    position: relative;
}

.panel-glow {
    position: absolute;
    inset: 8% 8% auto auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.4), transparent 62%);
    filter: blur(20px);
}

.panel-card {
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.98), rgba(16, 22, 39, 0.97));
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.panel-card::after {
    content: '';
    position: absolute;
    inset: auto -10% -30% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(70, 242, 196, 0.2), transparent 65%);
    pointer-events: none;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.live-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(125, 211, 252, 0.12);
    color: var(--accent);
}

.panel-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.match-card {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.small-title {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.match-card h3 { margin: 0; font-size: 1.3rem; }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    border: 1px solid rgba(125, 211, 252, 0.24);
    color: var(--accent);
    background: rgba(125, 211, 252, 0.08);
}

.mini-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.mini-grid > div {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 24px 56px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.info-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.9), rgba(14, 20, 35, 0.95));
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.icon-badge {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(167, 139, 250, 0.2));
    font-size: 1.2rem;
}

.info-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.platform-section {
    padding-top: 12px;
}

.platform-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-pill {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
}

.prediction-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(6, 10, 20, 0.96), rgba(11, 17, 32, 0.98));
    border-radius: 28px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.prediction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.prediction-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
}

.live-week {
    margin: 2px 0 14px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.team-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.club-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
}

.scraped-heading {
    margin-top: 64px;
}

.empty-state {
    color: var(--muted);
    justify-content: flex-start;
}

.prediction-list h3 { margin: 0 0 4px; }
.prediction-list p { margin: 0; color: var(--muted); }

.prediction-meta {
    text-align: right;
}

.prediction-meta strong { display: block; font-size: 1.05rem; color: #dbeafe; }
.prediction-meta span { color: var(--muted); font-size: 0.9rem; }
.prediction-meta small { display: block; color: var(--accent); font-size: 0.78rem; margin-top: 4px; }
.prediction-meta .pick-label { color: var(--accent-3); font-size: 0.68rem; letter-spacing: 0.14em; margin-top: 0; }

.footer {
    text-align: center;
    padding: 20px 24px 48px;
    color: var(--muted);
}

.status-banner {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.2);
    background: rgba(125, 211, 252, 0.1);
    color: var(--accent);
    font-size: 0.95rem;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card, .admin-form {
    width: min(100%, 520px);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(8, 12, 24, 0.95), rgba(14, 20, 35, 0.96));
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.auth-card input, .admin-form input {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.auth-card .btn, .admin-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

.error-text, .success-box {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}

.success-box {
    background: rgba(52, 211, 153, 0.14);
    color: #bbf7d0;
    margin-bottom: 16px;
}

.admin-shell {
    padding-top: 8px;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    font-size: 0.95rem;
}

.data-table th {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table td:last-child {
    text-align: right;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .hero { padding: 20px 16px 56px; }
    .section { padding: 18px 16px 48px; }
    .topbar { border-radius: 20px; padding: 12px 14px; }
    .nav-links { display: none; }
    .card-grid { grid-template-columns: 1fr; }
    .mini-grid { grid-template-columns: 1fr; }
    .prediction-list li { flex-direction: column; align-items: flex-start; }
    .prediction-meta { text-align: left; }
}
