:root {
    --primary: #00A651;
    --secondary: #0B132B;
    --accent: #F4C430;
    --background: #F8FAFC;
}

html {
    scroll-behavior: smooth;
}

#matches-section {
    scroll-margin-top: 5rem;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--secondary);
}

.bg-primary-custom { background-color: var(--primary) !important; }
.bg-secondary-custom { background-color: var(--secondary) !important; }
.bg-accent-custom { background-color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent-custom { color: var(--accent) !important; }

.btn-primary-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary-custom:hover {
    background-color: #008f45;
    border-color: #008f45;
    color: #fff;
}

.btn-predict-now {
    background-color: var(--predict-now, var(--primary));
    border-color: var(--predict-now, var(--primary));
    color: #fff;
}
.btn-predict-now:hover,
.btn-predict-now:focus {
    background-color: color-mix(in srgb, var(--predict-now, var(--primary)) 82%, black);
    border-color: color-mix(in srgb, var(--predict-now, var(--primary)) 82%, black);
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a2744 50%, var(--primary) 100%);
    color: #fff;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(244,196,48,0.15) 0%, transparent 70%);
}

.countdown-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.countdown-box .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.match-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(11,19,43,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(11,19,43,0.12);
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-logo-sm {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.prediction-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.prediction-option:hover,
.prediction-option.selected {
    border-color: var(--primary);
    background: rgba(0,166,81,0.05);
}

.prediction-option input[type="radio"] {
    accent-color: var(--primary);
}

.prediction-option-team .team-logo-sm,
.prediction-option .team-logo-sm {
    display: block;
}

.prediction-option .team-logo-sm.bg-light {
    width: 50px;
    height: 50px;
}

.navbar-custom {
    background-color: var(--secondary) !important;
}

.navbar-custom .nav-item-cta {
    display: flex;
    align-items: center;
}

.navbar-custom .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 0.375rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-custom .nav-cta-today {
    color: var(--secondary);
    background-color: var(--accent);
    border: 1px solid var(--accent);
}

.navbar-custom .nav-cta-today:hover,
.navbar-custom .nav-cta-today:focus {
    color: var(--secondary);
    background-color: #e0b028;
    border-color: #e0b028;
    box-shadow: 0 2px 8px rgba(244, 196, 48, 0.35);
}

.navbar-custom .nav-cta-today.active {
    color: var(--secondary);
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.navbar-custom .nav-cta-predict {
    color: #fff;
    background-color: var(--predict-now, var(--primary));
    border: 1px solid var(--predict-now, var(--primary));
}

.navbar-custom .nav-cta-predict:hover,
.navbar-custom .nav-cta-predict:focus {
    color: #fff;
    background-color: color-mix(in srgb, var(--predict-now, var(--primary)) 82%, black);
    border-color: color-mix(in srgb, var(--predict-now, var(--primary)) 82%, black);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--predict-now, var(--primary)) 35%, transparent);
}

@media (min-width: 992px) {
    .navbar-custom .nav-item-cta + .nav-item-cta .nav-cta {
        margin-left: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom .nav-item-cta {
        width: 100%;
        margin-top: 0.35rem;
    }

    .navbar-custom .nav-cta {
        width: 100%;
    }
}

.footer-custom {
    background-color: var(--secondary);
    color: rgba(255,255,255,0.8);
}

.admin-sidebar {
    background-color: var(--secondary);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    border-radius: 8px;
    margin-bottom: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(0,166,81,0.3);
    color: #fff;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(11,19,43,0.06);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
    margin: 0 auto;
}

.reference-badge {
    background: var(--secondary);
    color: var(--accent);
    font-family: monospace;
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-section { min-height: 400px; }
    .countdown-box .number { font-size: 1.5rem; }
    .team-logo { width: 60px; height: 60px; }
}

@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
}
