:root {
    --wc-bg: #061426;
    --wc-bg-2: #09213c;
    --wc-card: rgba(13, 35, 61, .92);
    --wc-card-2: rgba(18, 49, 84, .88);
    --wc-border: rgba(255,255,255,.10);
    --wc-text: #eef6ff;
    --wc-muted: #9fb3ca;
    --wc-gold: #f6c343;
    --wc-gold-2: #d99a10;
    --wc-blue: #1d7cff;
    --wc-green: #18b56b;
    --wc-red: #ef4444;
    --wc-purple: #8b5cf6;
    --wc-shadow: 0 24px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--wc-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(246,195,67,.12), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(29,124,255,.16), transparent 35%),
        linear-gradient(135deg, #05111f 0%, #061426 48%, #020813 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a { color: inherit; }

.wc-shell { display: flex; min-height: 100vh; }

.wc-sidebar {
    width: 278px;
    flex: 0 0 278px;
    background: linear-gradient(180deg, rgba(5,17,31,.98), rgba(7,25,45,.98));
    border-right: 1px solid var(--wc-border);
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 50px rgba(0,0,0,.25);
}

.wc-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 10px 24px;
    border-bottom: 1px solid var(--wc-border);
}

.wc-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 27px;
    background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-2));
    box-shadow: 0 14px 32px rgba(246,195,67,.22);
}

.wc-brand-title { font-weight: 900; font-size: 1.16rem; letter-spacing: .8px; text-transform: uppercase; line-height: 1; }
.wc-brand-subtitle { color: var(--wc-gold); font-size: .78rem; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }

.wc-menu { padding-top: 20px; }
.wc-menu-section { color: var(--wc-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; margin: 18px 12px 8px; }

.wc-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 14px;
    color: #dbeafe;
    text-decoration: none;
    margin-bottom: 7px;
    transition: all .18s ease;
    border: 1px solid transparent;
}

.wc-menu-link:hover {
    color: white;
    background: rgba(255,255,255,.08);
    transform: translateX(3px);
}

.wc-menu-link.active {
    color: #08111f;
    background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-2));
    box-shadow: 0 14px 30px rgba(246,195,67,.23);
    font-weight: 800;
}

.wc-menu-icon { width: 25px; text-align: center; font-size: 1.05rem; }

.wc-sidebar-footer {
    margin-top: auto;
    border: 1px solid var(--wc-border);
    border-radius: 18px;
    padding: 15px;
    background: rgba(255,255,255,.05);
}

.wc-live-dot { margin-top: 8px; color: #8ef0b6; font-size: .86rem; display: flex; align-items: center; gap: 7px; }
.wc-live-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--wc-green); box-shadow: 0 0 0 5px rgba(24,181,107,.12); }

.wc-main { flex: 1; min-width: 0; }

.wc-topbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--wc-border);
    background: rgba(4, 15, 28, .70);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.wc-topbar h1 { margin: 0; font-size: 1.45rem; font-weight: 900; }
.wc-topbar p { margin: 2px 0 0; color: var(--wc-muted); }

.wc-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--wc-border);
    border-radius: 13px;
    color: white;
    background: rgba(255,255,255,.07);
}

.wc-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.wc-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #061426; background: linear-gradient(135deg, #fff, var(--wc-gold)); font-weight: 900; }
.wc-user-name { font-weight: 800; line-height: 1.1; }
.wc-user-role { color: var(--wc-muted); font-size: .82rem; }

.wc-content { padding: 28px; }

.wc-card {
    background: linear-gradient(180deg, var(--wc-card), rgba(9,33,60,.82));
    border: 1px solid var(--wc-border);
    border-radius: 22px;
    box-shadow: var(--wc-shadow);
    color: var(--wc-text);
}

.wc-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 142px;
}

.wc-stat-card:after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}

.wc-stat-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.6rem;
    background: rgba(255,255,255,.10);
    margin-bottom: 14px;
}

.wc-stat-label { color: var(--wc-muted); font-weight: 700; }
.wc-stat-value { font-size: 2rem; font-weight: 900; margin: 0; }
.wc-stat-blue { background: linear-gradient(135deg, rgba(29,124,255,.35), rgba(13,35,61,.95)); }
.wc-stat-green { background: linear-gradient(135deg, rgba(24,181,107,.35), rgba(13,35,61,.95)); }
.wc-stat-purple { background: linear-gradient(135deg, rgba(139,92,246,.36), rgba(13,35,61,.95)); }
.wc-stat-gold { background: linear-gradient(135deg, rgba(246,195,67,.38), rgba(13,35,61,.95)); }

.wc-section-title { font-weight: 900; margin: 0; }
.wc-section-subtitle { color: var(--wc-muted); margin: 4px 0 0; }

.wc-panel { padding: 20px; }

.table.wc-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--wc-text);
    --bs-table-border-color: rgba(255,255,255,.08);
    color: var(--wc-text);
    margin-bottom: 0;
}

.wc-table thead th {
    color: #cfe2ff;
    background: rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.10);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.wc-table tbody tr { transition: background .18s ease; }
.wc-table tbody tr:hover { background: rgba(255,255,255,.045); }
.wc-table td, .wc-table th { padding: 14px 16px; vertical-align: middle; }

.wc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}
.wc-badge-finished { color: #8ef0b6; background: rgba(24,181,107,.14); border: 1px solid rgba(24,181,107,.28); }
.wc-badge-upcoming { color: #93c5fd; background: rgba(29,124,255,.16); border: 1px solid rgba(29,124,255,.30); }
.wc-badge-closed { color: #cbd5e1; background: rgba(148,163,184,.16); border: 1px solid rgba(148,163,184,.24); }

.wc-match { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.wc-team-chip { display: inline-flex; align-items: center; gap: 8px; }
.wc-vs { color: var(--wc-gold); font-size: .8rem; text-transform: uppercase; }

.wc-score-input {
    width: 72px !important;
    text-align: center;
    color: white;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
}
.wc-score-input:focus { color: white; background: rgba(255,255,255,.12); border-color: var(--wc-gold); box-shadow: 0 0 0 .25rem rgba(246,195,67,.15); }

.btn { border-radius: 12px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg, #1d7cff, #075bd8); border: 0; box-shadow: 0 12px 24px rgba(29,124,255,.22); }
.btn-success { background: linear-gradient(135deg, #18b56b, #0d8a50); border: 0; box-shadow: 0 12px 24px rgba(24,181,107,.18); }
.btn-warning { background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-2)); border: 0; color: #061426; }
.btn-outline-light { border-color: rgba(255,255,255,.20); }

.form-control { border-radius: 12px; }
.alert { border-radius: 16px; border: 0; }

.wc-empty {
    text-align: center;
    color: var(--wc-muted);
    padding: 28px;
}

.wc-rank {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    font-weight: 900;
}
.wc-rank.top { background: linear-gradient(135deg, var(--wc-gold), var(--wc-gold-2)); color: #061426; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 10%, rgba(246,195,67,.20), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(29,124,255,.22), transparent 34%),
        linear-gradient(135deg, #04101d, #071b31 55%, #020813);
}

.login-card {
    width: min(1050px, 100%);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,.95);
    box-shadow: 0 35px 90px rgba(0,0,0,.38);
}

.login-hero {
    min-height: 560px;
    padding: 46px;
    color: white;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(5,17,31,.48), rgba(5,17,31,.80)),
        radial-gradient(circle at 50% 20%, rgba(246,195,67,.35), transparent 24%),
        linear-gradient(135deg, #09213c, #061426);
}
.login-hero:before {
    content: "";
    position: absolute;
    inset: auto -20% -30% -20%;
    height: 55%;
    background: radial-gradient(ellipse at center, rgba(24,181,107,.60), transparent 55%);
}
.login-hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.login-cup { font-size: 7rem; filter: drop-shadow(0 28px 28px rgba(0,0,0,.35)); }
.login-hero h1 { font-size: 3rem; font-weight: 950; letter-spacing: 1px; text-transform: uppercase; margin: 16px 0 0; }
.login-hero h1 span { color: var(--wc-gold); }
.login-hero p { color: #dbeafe; font-size: 1.05rem; }
.login-form-side { padding: 56px 48px; color: #0f172a; display: flex; flex-direction: column; justify-content: center; }
.login-form-side h2 { font-weight: 950; }
.login-form-side .form-control { min-height: 48px; border-color: #d8e1ee; }
.login-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.login-demo-card { border: 1px solid #d8e1ee; background: #f8fafc; padding: 12px; border-radius: 16px; font-size: .88rem; }

@media (max-width: 991px) {
    .wc-sidebar { position: fixed; transform: translateX(-105%); transition: transform .22s ease; }
    .wc-sidebar.show { transform: translateX(0); }
    .wc-menu-toggle { display: block; }
    .wc-content { padding: 20px; }
    .wc-topbar { padding: 16px 18px; }
    .login-card { grid-template-columns: 1fr; }
    .login-hero { min-height: 300px; }
}

@media (max-width: 576px) {
    .wc-content { padding: 14px; }
    .wc-panel { padding: 14px; }
    .wc-topbar h1 { font-size: 1.1rem; }
    .login-form-side { padding: 34px 24px; }
    .login-demo { grid-template-columns: 1fr; }
}

.wc-form-label {
    color: #cfe2ff;
    font-weight: 800;
    font-size: .86rem;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.wc-form-control {
    min-height: 48px;
    color: white;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
}

.wc-form-control:focus {
    color: white;
    background: rgba(255,255,255,.12);
    border-color: var(--wc-gold);
    box-shadow: 0 0 0 .25rem rgba(246,195,67,.15);
}

.wc-form-control option {
    background: #09213c;
    color: white;
}

.wc-readonly-box {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
}

.wc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.wc-rule-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.wc-rule-item:last-child {
    border-bottom: 0;
}

.wc-rule-item > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(246,195,67,.14);
    border: 1px solid rgba(246,195,67,.25);
}

.wc-rule-item strong {
    display: block;
    color: white;
    margin-bottom: 3px;
}

.wc-rule-item p {
    margin: 0;
    color: var(--wc-muted);
    font-size: .9rem;
}


.wc-team-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-team-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.wc-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-code-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--wc-gold);
    background: rgba(246,195,67,.12);
    border: 1px solid rgba(246,195,67,.20);
    font-weight: 900;
    letter-spacing: .5px;
}
