:root {
    --bg: #07111f;
    --bg-soft: #0d1b2f;
    --card: #ffffff;
    --text: #101828;
    --muted: #667085;
    --blue: #1b4db3;
    --blue2: #2e90fa;
    --gold: #f8c84e;
    --red: #e11d48;
    --green: #16a34a;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(46,144,250,.22), transparent 32%),
        radial-gradient(circle at 85% 6%, rgba(248,200,78,.20), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 42%, #f7f9fc 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main.container { max-width: 1220px; }

.wc-nav {
    background: rgba(7, 17, 31, .97);
    box-shadow: 0 14px 34px rgba(7,17,31,.22);
    backdrop-filter: blur(14px);
    z-index: 1030;
}

.wc-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.wc-menu { align-items: center; gap: 4px; }

.wc-menu .nav-link {
    color: rgba(255,255,255,.82) !important;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 13px !important;
    line-height: 1.2;
    white-space: nowrap;
}

.wc-menu .nav-link:hover {
    color: var(--gold) !important;
    background: rgba(255,255,255,.07);
}

.wc-menu .nav-link.active {
    color: var(--gold) !important;
    background: rgba(248, 200, 78, .16);
    border: 1px solid rgba(248, 200, 78, .22);
}

.wc-menu .admin-link {
    color: var(--gold) !important;
    border: 1px solid rgba(248, 200, 78, .45);
    margin-left: 6px;
}

.wc-menu .admin-link:hover,
.wc-menu .admin-link.active {
    background: var(--gold);
    color: var(--bg) !important;
}

.mobile-bottom-nav {
    display: none;
}

.hero-v3 {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(7,17,31,.96), rgba(27,77,179,.94)),
        radial-gradient(circle at 85% 10%, rgba(248,200,78,.34), transparent 26%);
    box-shadow: 0 26px 70px rgba(7,17,31,.28);
}

.hero-v3::after {
    content: "2026";
    position: absolute;
    right: 28px;
    bottom: -36px;
    font-size: 120px;
    line-height: 1;
    font-weight: 900;
    color: rgba(255,255,255,.08);
}

.hero-v3 h1 {
    max-width: 760px;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.hero-v3 p {
    color: rgba(255,255,255,.82);
    max-width: 740px;
}

.hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(248,200,78,.16);
    color: var(--gold);
    border: 1px solid rgba(248,200,78,.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: .85rem;
}

.btn-hero {
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 800;
}

.stat-box, .panel-card, .match-card-v3, .dashboard-tile {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(16,24,40,.10);
}

.stat-box, .dashboard-tile { padding: 20px; }

.stat-label {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue);
}

.panel-card { padding: 20px; }

.section-title {
    font-weight: 900;
    letter-spacing: -.03em;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.match-card-v3 {
    padding: 18px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.match-card-v3:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(16,24,40,.14);
}

.match-topline {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.stage-pill {
    display: inline-flex;
    align-items: center;
    background: #eef4ff;
    color: var(--blue);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: .75rem;
    margin-right: 6px;
}

.kickoff-time {
    text-align: right;
    line-height: 1.1;
    color: var(--blue);
}

.kickoff-time strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
}

.kickoff-time span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.match-date {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.teams-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}

.team-side {
    min-width: 0;
    text-align: center;
}

.team-logo {
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 6px 16px rgba(16,24,40,.10);
}

.team-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: var(--blue);
    font-weight: 900;
}

.team-name {
    margin-top: 9px;
    font-weight: 900;
    font-size: .95rem;
    line-height: 1.15;
    word-break: break-word;
}

.score-box {
    min-width: 94px;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff, #eef4ff);
    border: 1px solid #d9e6ff;
    border-radius: 18px;
    padding: 12px 10px;
}

.vs, .score {
    font-weight: 1000;
    font-size: 1.45rem;
    letter-spacing: -.03em;
    color: var(--bg);
}

.countdown {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    margin-top: 2px;
}

.venue {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.badge {
    padding: .48rem .62rem;
    font-weight: 900;
}

.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.3s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(225,29,72,.6); }
    70% { box-shadow: 0 0 0 10px rgba(225,29,72,0); }
    100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); }
}

.prediction-mini {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.prediction-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #f8fbff;
    border: 1px solid #e3edff;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: .82rem;
}

.prediction-head strong { color: var(--blue); }
.prediction-head span { color: var(--muted); font-weight: 800; }

.confidence-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--blue);
    font-size: .75rem;
    font-weight: 900;
    margin-left: 6px;
}

.prob-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .82rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.prob-bar {
    height: 10px;
    border-radius: 999px;
    background: #eef2f6;
    overflow: hidden;
    margin-bottom: 10px;
}

.prob-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--blue2));
}

.draw-fill { background: linear-gradient(90deg, #f59e0b, var(--gold)); }
.away-fill { background: linear-gradient(90deg, #475467, #98a2b3); }

.prediction-reason {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-bar button {
    border: 0;
    background: #fff;
    color: var(--blue);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(16,24,40,.08);
}

.filter-bar button.active {
    background: var(--blue);
    color: #fff;
}

.table-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(16,24,40,.10);
}

.table thead th {
    color: var(--muted);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .05em;
    font-weight: 900;
}

.table td, .table th {
    vertical-align: middle;
    padding: 14px;
}

.wc-footer {
    color: var(--muted);
}

@media (max-width: 992px) {
    .wc-menu {
        align-items: stretch;
        gap: 0;
        padding-top: 12px;
    }

    .wc-menu .nav-link {
        display: block;
        margin-bottom: 6px;
        padding: 11px 12px !important;
    }

    .wc-menu .admin-link {
        margin-left: 0;
        text-align: center;
    }

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

@media (max-width: 768px) {
    body {
        padding-bottom: 76px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 2000;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(7,17,31,.96);
        border: 1px solid rgba(248,200,78,.22);
        border-radius: 22px;
        box-shadow: 0 16px 44px rgba(7,17,31,.32);
        backdrop-filter: blur(14px);
        overflow: hidden;
    }

    .mobile-bottom-nav a {
        text-decoration: none;
        color: rgba(255,255,255,.72);
        text-align: center;
        padding: 9px 4px;
        font-weight: 900;
    }

    .mobile-bottom-nav a span {
        display: block;
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .mobile-bottom-nav a small {
        display: block;
        font-size: .68rem;
    }

    .mobile-bottom-nav a.active {
        color: var(--gold);
        background: rgba(248,200,78,.12);
    }

    .hero-v3 {
        padding: 28px;
        border-radius: 24px;
    }

    .hero-v3 h1 {
        font-size: 2.1rem;
    }

    .hero-v3::after {
        font-size: 82px;
    }

    .match-topline {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .kickoff-time {
        text-align: right;
        margin-left: auto;
    }

    .match-date {
        font-size: .78rem;
        margin-bottom: 10px;
    }

    .teams-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .team-side {
        min-width: 0;
    }

    .team-name {
        font-size: .8rem;
        margin-top: 6px;
        word-break: break-word;
        hyphens: auto;
    }

    .score-box {
        min-width: 72px;
        padding: 8px 6px;
    }

    .vs, .score {
        font-size: 1.1rem;
    }

    .countdown {
        font-size: .65rem;
    }

    .team-logo {
        width: 36px !important;
        height: 36px !important;
    }

    .team-logo-placeholder {
        width: 36px !important;
        height: 36px !important;
    }

    .score-box {
        order: unset;
        width: auto;
    }

    .team-side:nth-child(1) { order: unset; }
    .team-side:nth-child(3) { order: unset; }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .filter-bar button {
        white-space: nowrap;
    }
}

/* ===== Enterprise Upgrade v15 ===== */

.live-ticker{
position:sticky;
top:0;
z-index:999;
background:#081120;
border-bottom:1px solid rgba(255,255,255,.08);
padding:10px 14px;
overflow:hidden;
white-space:nowrap;
font-weight:700;
color:#fff;
}

.live-ticker-track{
display:inline-block;
padding-left:100%;
animation:wcTicker 30s linear infinite;
}

@keyframes wcTicker{
0%{transform:translateX(0)}
100%{transform:translateX(-100%)}
}

.mobile-bottom-nav{
position:fixed;
bottom:0;
left:0;
right:0;
background:rgba(7,17,31,.96);
backdrop-filter:blur(12px);
display:none;
justify-content:space-around;
padding:10px 6px calc(10px + env(safe-area-inset-bottom));
z-index:9999;
border-top:1px solid rgba(255,255,255,.08);
}

.mobile-bottom-nav a{
color:#fff;
text-decoration:none;
font-size:12px;
font-weight:800;
display:flex;
flex-direction:column;
align-items:center;
gap:4px;
opacity:.8;
}

.mobile-bottom-nav a.active{
opacity:1;
color:#f8c84e;
}

.confidence-high{color:#00d084;font-weight:800}
.confidence-medium{color:#f8c84e;font-weight:800}
.confidence-low{color:#ff6b6b;font-weight:800}

.countdown-chip{
display:inline-flex;
padding:8px 14px;
border-radius:999px;
background:#0f172a;
color:#fff;
font-weight:800;
font-size:13px;
margin-top:10px;
}

.trending-card{
background:linear-gradient(135deg,#111827,#1b4db3);
color:#fff;
border-radius:24px;
padding:24px;
}

.hero-live-pulse{
width:10px;
height:10px;
background:#ff0033;
border-radius:50%;
display:inline-block;
animation:pulse 1.2s infinite;
margin-right:8px;
}

@keyframes pulse{
0%{transform:scale(1);opacity:1}
100%{transform:scale(1.8);opacity:0}
}

@media(max-width:768px){
.mobile-bottom-nav{display:flex}
body{padding-bottom:90px}
}
