/* === THIS IS FOOTBALL - MAIN STYLESHEET === */
:root {
    --pitch-green: #27AE60;
    --pitch-light: #2ECC71;
    --pitch-lighter: #52BE80;
    --gold: #F39C12;
    --gold-dark: #D68910;
    --dark: #FFFFFF;
    --dark-card: #FFFFFF;
    --body-bg: #f8f9fa;
    --page-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #ecf0f1;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* === NAVBAR === */
.soccer-nav {
    background: linear-gradient(135deg, var(--dark) 0%, #FFFFFF 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0.75rem 0;
}

.soccer-nav .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.spin-hover { transition: transform 0.3s; }
.navbar-brand:hover .spin-hover { transform: rotate(360deg); }

.text-gold { color: var(--gold) !important; }

/* Page header bar — consistent padding across all pages */
.d-flex.justify-content-between.align-items-center.mb-4.flex-wrap.gap-2 {
    padding: 20px 0;
}
.bg-gold { background-color: var(--gold) !important; }
.bg-pitch { background-color: var(--pitch-green) !important; }
.text-pitch { color: var(--pitch-green) !important; }

.btn-nav-register {
    border: 2px solid var(--gold) !important;
    color: var(--gold) !important;
    border-radius: 25px;
    padding: 0.35rem 1.2rem !important;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-nav-register:hover { background: var(--gold); color: var(--dark-text) !important; }

/* === HERO === */
.hero-section {
    background: linear-gradient(135deg, var(--pitch-green) 0%, #52BE80 60%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.03) 49px, rgba(255,255,255,0.03) 50px),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.03) 49px, rgba(255,255,255,0.03) 50px);
    pointer-events: none;
}

.min-vh-75 { min-height: 75vh; }
.fw-900 { font-weight: 900; }
.z-1 { z-index: 1; }

.hero-ball {
    font-size: 10rem;
    color: rgba(255,255,255,0.08);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

/* === BUTTONS === */
.btn-pitch {
    background: linear-gradient(135deg, var(--pitch-green), var(--pitch-light));
    color: white; border: none; font-weight: 600;
    transition: all 0.3s;
}
.btn-pitch:hover { background: linear-gradient(135deg, var(--pitch-light), var(--pitch-lighter)); color: white; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(27,94,32,0.4); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #2c3e50; border: none; font-weight: 700;
    transition: all 0.3s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,215,0,0.4); color: #2c3e50; }

.btn-outline-pitch {
    border: 2px solid var(--pitch-green); color: var(--pitch-green); font-weight: 600;
    transition: all 0.3s;
}
.btn-outline-pitch:hover { background: var(--pitch-green); color: white; }

/* === PAGE HEADER === */
/* Page headers are now Academy-style gold text, no gradient backgrounds */
.page-header {
    padding: 20px;
    margin-bottom: 0;
}

/* Match scoreboard headers - subtle card background instead of green gradient */
.match-header-section {
    background: linear-gradient(135deg, #1a2332 0%, #243447 50%, #1a2332 100%);
}

/* === CARDS === */
.soccer-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.soccer-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }

.feature-card {
    background: #FFFFFF; color: #2c3e50;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

.feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--pitch-green), var(--pitch-lighter));
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 1.6rem;
}

/* === AUTH === */
.auth-page {
    background: linear-gradient(135deg, var(--pitch-green) 0%, #f8f9fa 100%);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: #FFFFFF; color: #2c3e50;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--pitch-green), var(--pitch-lighter));
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem;
    margin: 0 auto;
}

/* === TEAM BADGES === */
.team-badge {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 3px solid;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem;
    flex-shrink: 0;
}

.team-badge-sm {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.55rem;
    flex-shrink: 0;
}

.team-badge-preview {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 4px solid;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.4rem;
    transition: all 0.3s;
}

/* === TABLES === */
.soccer-table thead th {
    background: #FFFFFF;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 0.75rem;
}

.soccer-table tbody td {
    vertical-align: middle;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.league-table .table-highlight {
    background-color: rgba(27,94,32,0.08) !important;
}
.league-table .table-leader td:first-child {
    border-left: 4px solid var(--gold);
}

/* === POSITION BADGES === */
.position-badge {
    font-weight: 700; font-size: 0.7rem;
    padding: 0.2rem 0.5rem; border-radius: 4px;
}
.position-gk { background: #FF8F00; color: white; }
.position-def { background: #1565C0; color: white; }
.position-mid { background: #2ECC71; color: white; }
.position-fwd { background: #C62828; color: white; }

/* === MATCH CARDS === */
.match-card { border-left: 4px solid var(--pitch-green); cursor: pointer; }
.match-card:hover { border-left-color: var(--gold); }
.match-upcoming { border-left-color: #ccc; opacity: 0.8; }

.match-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
}

.match-big-score {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.match-mini {
    background: #FFFFFF;
    border-left: 3px solid var(--pitch-lighter);
}

/* === TIMELINE === */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
    width: 2px; background: #2c3e50;
}

.timeline-event {
    position: relative;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-minute {
    position: absolute; left: -40px;
    font-weight: 700; font-size: 0.8rem;
    color: var(--pitch-green);
    width: 30px; text-align: right;
}

.event-icon {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}

/* ═══ Lineup display ═══ */
.lineup-team-header {
    padding: 10px 16px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 0;
}
.lineup-team-header + table { border-top: none; }
.lineup-team-header + table thead th { border-top: none; }

.event-team-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
    min-width: 36px; text-align: center;
    line-height: 1.4;
    border: 1px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.event-desc { font-size: 0.9rem; }

.card-icon {
    width: 16px; height: 22px;
    border-radius: 2px;
}
.card-yellow { background: #F39C12; }
.card-red { background: #F44336; }

/* === SQUAD === */
.squad-list { max-height: 500px; overflow-y: auto; }
.squad-item { background: #FFFFFF; transition: background 0.2s; }
.squad-item:hover { background: rgba(46,204,113,0.15); }

/* === FORMATION BUTTONS === */
.formation-btn.active, .btn-check:checked + .formation-btn {
    background: var(--pitch-green) !important;
    color: white !important;
    border-color: var(--pitch-green) !important;
    box-shadow: 0 4px 12px rgba(27,94,32,0.3);
}

/* === FOOTER === */
.soccer-footer {
    background: #FFFFFF;
    margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section .display-3 { font-size: 2.2rem; }
    .match-big-score { font-size: 2.5rem; }
    .team-badge { width: 45px; height: 45px; font-size: 0.7rem; }
    .page-header { padding: 1.25rem 0; }
    .page-header h1 { font-size: 1.5rem; }
    .squad-list { max-height: 300px; }
    .sticky-top { position: relative !important; top: 0 !important; }
}

@media (max-width: 576px) {
    .hero-section .display-3 { font-size: 1.8rem; }
    .feature-card { padding: 1.5rem !important; }
    .auth-card { border-radius: 12px; }
    .soccer-table { font-size: 0.8rem; }
    .soccer-table thead th { padding: 0.5rem; font-size: 0.7rem; }
}

/* === PROMOTION/RELEGATION ZONES === */
.promotion-zone { border-left: 4px solid #27ae60 !important; }
.relegation-zone { border-left: 4px solid #e74c3c !important; }

/* === DIVISION TABS === */
.division-tabs .nav-link { color: var(--pitch-green); border-radius: 8px; font-weight: 600; padding: 0.5rem 1rem; }
.division-tabs .nav-link:hover { background: rgba(39,174,96,0.1); }
.division-tabs .nav-link.active { background: var(--pitch-green) !important; color: white !important; }

/* === SEASON BANNER === */
.season-banner {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 50%, #52BE80 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

/* === UTILITIES === */
.z-1 { z-index: 1; }
.opacity-90 { opacity: 0.9; }

/* ═══════ CARDS & INJURIES ═══════ */
.event-icon .fa-briefcase-medical { font-size: 1.1rem; }
.table-warning { background-color: rgba(255,193,7,0.08) !important; }

/* ═══════════════════════════════════════════════════════════════ */
/*  🎬 ANIMATION SYSTEM — This Is Football                        */
/* ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */

@keyframes tif-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tif-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tif-slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tif-scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tif-scoreReveal {
    0% { opacity: 0; transform: scale(0.3); }
    60% { opacity: 1; transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes tif-barFill {
    from { width: 0; }
}

@keyframes tif-sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes tif-bounceSubtle {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

@keyframes tif-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.2); }
    50% { box-shadow: 0 0 20px rgba(255,215,0,0.5), 0 0 40px rgba(255,215,0,0.1); }
}

/* ── Utility Classes ── */

.animate-fade-up { animation: tif-fadeInUp 0.45s ease-out backwards; }
.animate-fade-in { animation: tif-fadeIn 0.4s ease-out backwards; }
.animate-scale { animation: tif-scaleIn 0.4s ease-out backwards; }
.animate-slide-down { animation: tif-slideDown 0.4s ease-out backwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }
.delay-6 { animation-delay: 0.48s; }

/* ── Page Headers ── */

.page-header,
.hero-section,
.match-header-section {
    animation: tif-slideDown 0.45s ease-out;
}

/* ── Cards Entrance ── */

.soccer-card {
    animation: tif-fadeInUp 0.45s ease-out backwards;
}

/* Stagger cards within rows */
.row > [class*="col-"]:nth-child(1) > .soccer-card,
.row > [class*="col-"]:nth-child(1) > .card.soccer-card { animation-delay: 0.04s; }
.row > [class*="col-"]:nth-child(2) > .soccer-card,
.row > [class*="col-"]:nth-child(2) > .card.soccer-card { animation-delay: 0.1s; }
.row > [class*="col-"]:nth-child(3) > .soccer-card,
.row > [class*="col-"]:nth-child(3) > .card.soccer-card { animation-delay: 0.16s; }
.row > [class*="col-"]:nth-child(4) > .soccer-card,
.row > [class*="col-"]:nth-child(4) > .card.soccer-card { animation-delay: 0.22s; }
.row > [class*="col-"]:nth-child(5) > .soccer-card,
.row > [class*="col-"]:nth-child(5) > .card.soccer-card { animation-delay: 0.28s; }
.row > [class*="col-"]:nth-child(6) > .soccer-card,
.row > [class*="col-"]:nth-child(6) > .card.soccer-card { animation-delay: 0.34s; }

/* ── Match Score Reveal ── */

.match-big-score {
    animation: tif-scoreReveal 0.7s ease-out backwards;
    animation-delay: 0.25s;
}

/* ── Match Timeline ── */

.timeline-event {
    animation: tif-fadeInUp 0.3s ease-out backwards;
}

.timeline-event:nth-child(1) { animation-delay: 0.04s; }
.timeline-event:nth-child(2) { animation-delay: 0.08s; }
.timeline-event:nth-child(3) { animation-delay: 0.12s; }
.timeline-event:nth-child(4) { animation-delay: 0.16s; }
.timeline-event:nth-child(5) { animation-delay: 0.2s; }
.timeline-event:nth-child(6) { animation-delay: 0.24s; }
.timeline-event:nth-child(7) { animation-delay: 0.28s; }
.timeline-event:nth-child(8) { animation-delay: 0.32s; }
.timeline-event:nth-child(9) { animation-delay: 0.36s; }
.timeline-event:nth-child(10) { animation-delay: 0.4s; }
.timeline-event:nth-child(n+11) { animation-delay: 0.44s; }

/* ── League Table Rows ── */

.league-table tbody tr {
    animation: tif-fadeIn 0.3s ease-out backwards;
}

.league-table tbody tr:nth-child(1) { animation-delay: 0.02s; }
.league-table tbody tr:nth-child(2) { animation-delay: 0.04s; }
.league-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
.league-table tbody tr:nth-child(4) { animation-delay: 0.08s; }
.league-table tbody tr:nth-child(5) { animation-delay: 0.1s; }
.league-table tbody tr:nth-child(6) { animation-delay: 0.12s; }
.league-table tbody tr:nth-child(7) { animation-delay: 0.14s; }
.league-table tbody tr:nth-child(8) { animation-delay: 0.16s; }
.league-table tbody tr:nth-child(9) { animation-delay: 0.18s; }
.league-table tbody tr:nth-child(10) { animation-delay: 0.2s; }
.league-table tbody tr:nth-child(11) { animation-delay: 0.22s; }
.league-table tbody tr:nth-child(12) { animation-delay: 0.24s; }
.league-table tbody tr:nth-child(13) { animation-delay: 0.26s; }
.league-table tbody tr:nth-child(14) { animation-delay: 0.28s; }
.league-table tbody tr:nth-child(15) { animation-delay: 0.3s; }
.league-table tbody tr:nth-child(16) { animation-delay: 0.32s; }
.league-table tbody tr:nth-child(17) { animation-delay: 0.34s; }
.league-table tbody tr:nth-child(18) { animation-delay: 0.36s; }
.league-table tbody tr:nth-child(19) { animation-delay: 0.38s; }
.league-table tbody tr:nth-child(20) { animation-delay: 0.4s; }

/* ── News Card Cascade ── */

.row.g-3 > .col-md-6:nth-child(1) > .news-card { animation-delay: 0s; }
.row.g-3 > .col-md-6:nth-child(2) > .news-card { animation-delay: 0.06s; }
.row.g-3 > .col-md-6:nth-child(3) > .news-card { animation-delay: 0.12s; }
.row.g-3 > .col-md-6:nth-child(4) > .news-card { animation-delay: 0.18s; }
.row.g-3 > .col-md-6:nth-child(5) > .news-card { animation-delay: 0.24s; }
.row.g-3 > .col-md-6:nth-child(6) > .news-card { animation-delay: 0.3s; }
.row.g-3 > .col-md-6:nth-child(7) > .news-card { animation-delay: 0.36s; }
.row.g-3 > .col-md-6:nth-child(8) > .news-card { animation-delay: 0.42s; }
.row.g-3 > .col-md-6:nth-child(n+9) > .news-card { animation-delay: 0.48s; }

/* ── Auth Pages ── */

.auth-card {
    animation: tif-scaleIn 0.5s ease-out backwards;
}

.auth-icon {
    animation: tif-bounceSubtle 0.6s ease-out backwards;
    animation-delay: 0.2s;
}

/* ── Team Badges — Hover ── */

.team-badge {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-badge:hover {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.team-badge-preview {
    transition: transform 0.6s ease;
}

.team-badge-preview:hover {
    transform: scale(1.08) rotate(360deg);
}

/* ── Buttons — Shine Sweep ── */

.btn-pitch,
.btn-gold {
    position: relative;
    overflow: hidden;
}

.btn-pitch::after,
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.25) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn-pitch:hover::after,
.btn-gold:hover::after {
    transform: translateX(100%);
}

/* ── Progress Bars (Attribute Stats Fill) ── */

.progress-bar {
    animation: tif-barFill 0.8s ease-out backwards;
    animation-delay: 0.3s;
}

/* ── Feature Cards (Homepage) ── */

.feature-card {
    animation: tif-fadeInUp 0.45s ease-out backwards;
}

.row > [class*="col-"]:nth-child(1) > .feature-card { animation-delay: 0.05s; }
.row > [class*="col-"]:nth-child(2) > .feature-card { animation-delay: 0.12s; }
.row > [class*="col-"]:nth-child(3) > .feature-card { animation-delay: 0.19s; }
.row > [class*="col-"]:nth-child(4) > .feature-card { animation-delay: 0.26s; }
.row > [class*="col-"]:nth-child(5) > .feature-card { animation-delay: 0.33s; }
.row > [class*="col-"]:nth-child(6) > .feature-card { animation-delay: 0.4s; }

/* ── Match Cards (Fixtures) ── */

.match-card {
    animation: tif-fadeInUp 0.35s ease-out backwards;
}

/* ── Season Banner ── */

.season-banner {
    animation: tif-fadeInUp 0.5s ease-out backwards;
    animation-delay: 0.1s;
}

/* ── Alerts ── */

.alert {
    animation: tif-fadeInUp 0.35s ease-out backwards;
}

/* ── Division Tabs ── */

.division-tabs .nav-link {
    transition: all 0.25s ease;
}

/* ── Navbar ── */

.soccer-nav {
    animation: tif-slideDown 0.35s ease-out;
}

/* ── Trophy Items (Manager Page) ── */

.trophy-item {
    animation: tif-scaleIn 0.4s ease-out backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trophy-item:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.3);
}

.trophy-item:nth-child(1) { animation-delay: 0.05s; }
.trophy-item:nth-child(2) { animation-delay: 0.12s; }
.trophy-item:nth-child(3) { animation-delay: 0.19s; }
.trophy-item:nth-child(4) { animation-delay: 0.26s; }
.trophy-item:nth-child(5) { animation-delay: 0.33s; }
.trophy-item:nth-child(n+6) { animation-delay: 0.4s; }

/* ── Milestone Items (Manager Page) ── */

.milestone-item {
    animation: tif-fadeIn 0.3s ease-out backwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.milestone-item:hover {
    transform: scale(1.03);
}

.milestone-achieved {
    animation: tif-glow 3s ease-in-out infinite;
}

.milestone-item:nth-child(1) { animation-delay: 0.03s; }
.milestone-item:nth-child(2) { animation-delay: 0.06s; }
.milestone-item:nth-child(3) { animation-delay: 0.09s; }
.milestone-item:nth-child(4) { animation-delay: 0.12s; }
.milestone-item:nth-child(5) { animation-delay: 0.15s; }
.milestone-item:nth-child(6) { animation-delay: 0.18s; }
.milestone-item:nth-child(7) { animation-delay: 0.21s; }
.milestone-item:nth-child(8) { animation-delay: 0.24s; }
.milestone-item:nth-child(9) { animation-delay: 0.27s; }
.milestone-item:nth-child(10) { animation-delay: 0.3s; }
.milestone-item:nth-child(11) { animation-delay: 0.33s; }
.milestone-item:nth-child(12) { animation-delay: 0.36s; }
.milestone-item:nth-child(13) { animation-delay: 0.39s; }
.milestone-item:nth-child(14) { animation-delay: 0.42s; }
.milestone-item:nth-child(15) { animation-delay: 0.45s; }
.milestone-item:nth-child(16) { animation-delay: 0.48s; }

/* ── Accessibility: Respect Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════ */
/*  🎬 MATCH HIGHLIGHTS PLAYER                    */
/* ═══════════════════════════════════════════════ */

.hl-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.88);
    display: flex; align-items: center; justify-content: center;
    animation: tif-fadeIn 0.3s ease-out;
}

.hl-player {
    background: #FFFFFF;
    border-radius: 16px;
    width: 95vw; max-width: 900px; max-height: 95vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: tif-scaleIn 0.3s ease-out;
}

.hl-header {
    padding: 10px 16px;
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hl-title { color: #F39C12; font-weight: 700; font-size: 1.05rem; }

.hl-scoreboard {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 6px 0;
}

.hl-team { display: flex; align-items: center; gap: 8px; flex: 1; }
.hl-home { justify-content: flex-end; }
.hl-away { justify-content: flex-start; }
.hl-team-name { color: #2c3e50; font-weight: 600; font-size: 0.9rem; }

.hl-badge-mini {
    display: inline-block; padding: 2px 8px;
    border-radius: 4px; font-weight: 700; font-size: 0.65rem;
}

.hl-score { display: flex; align-items: center; gap: 4px; }
.hl-score-num { color: #2c3e50; font-size: 2rem; font-weight: 900; min-width: 28px; text-align: center; }
.hl-score-sep { color: #bbb; font-size: 1.3rem; }

.hl-minute { text-align: center; color: #52BE80; font-weight: 700; font-size: 0.85rem; }

.hl-pitch-wrap {
    flex: 1; min-height: 0; padding: 8px;
    display: flex; align-items: center; justify-content: center;
}

.hl-pitch {
    width: 100%; height: auto; max-height: 55vh;
    border-radius: 8px; background: #1a3520;
}

.hl-ball {
    transition: cx var(--hl-ball-speed, 0.8s) ease-in-out, cy var(--hl-ball-speed, 0.8s) ease-in-out;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
}

@keyframes tif-pop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.hl-pop { animation: tif-pop 0.7s ease-out both; }

.hl-commentary {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
    min-height: 48px;
}

.hl-commentary-icon { font-size: 1.3rem; flex-shrink: 0; }
.hl-commentary-text { color: #2c3e50; font-size: 0.88rem; line-height: 1.4; }

.hl-progress {
    position: relative; height: 5px;
    background: #ecf0f1;
}

.hl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #52BE80, #F39C12);
    transition: width 0.3s ease;
}

.hl-marker {
    position: absolute; top: -3px;
    width: 4px; height: 11px; border-radius: 2px;
    transform: translateX(-50%);
}

.hl-mk-goal { background: #27AE60; }
.hl-mk-yellow { background: #F39C12; }
.hl-mk-red { background: #E74C3C; }
.hl-mk-injury { background: #E67E22; }
.hl-mk-default { background: #bbb; }

.hl-controls {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 16px;
    background: #f8f9fa;
    border-top: 1px solid #ecf0f1;
}

.hl-ctrl {
    background: #ecf0f1; border: none; color: #2c3e50;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

.hl-ctrl:hover:not(:disabled) { background: #ddd; }
.hl-ctrl:disabled { opacity: 0.3; cursor: default; }

.hl-ctrl-play { width: 48px; height: 48px; font-size: 1.2rem; background: #27AE60; color: white; }
.hl-ctrl-play:hover { background: #229954; }
.hl-sound-btn { background: none; border: 1px solid #ccc; border-radius: 6px; padding: 2px 8px; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; }
.hl-sound-btn:hover { background: #f0f0f0; border-color: #999; }

.hl-speed-group { display: flex; gap: 4px; margin-left: 12px; }

.hl-speed-btn {
    background: #ecf0f1; border: none;
    color: #666; padding: 4px 10px;
    border-radius: 12px; font-size: 0.78rem; cursor: pointer;
    transition: all 0.2s;
}

.hl-speed-btn:hover { color: #2c3e50; }
.hl-speed-btn.active { background: #F39C12; color: #FFFFFF; font-weight: 700; }

@media (max-width: 768px) {
    .hl-player { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    .hl-team-name { font-size: 0.75rem; }
    .hl-score-num { font-size: 1.5rem; }
    .hl-pitch { max-height: 45vh; }
    .hl-commentary-text { font-size: 0.8rem; }
}

/* === CREDITS SYSTEM === */
.credit-balance-card {
    background: linear-gradient(135deg, #27AE60, #27AE60);
    border: 2px solid var(--gold);
    border-radius: 16px;
    color: white;
}

.credit-balance-icon { font-size: 3rem; }
.credit-balance-amount { font-size: 2.5rem; font-weight: 900; color: var(--gold); }

.credit-pack-card {
    border: 2px solid #2c3e50;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: default;
}

.credit-pack-card:hover { border-color: var(--pitch-green); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.credit-pack-featured { border-color: var(--gold); background: linear-gradient(135deg, #fffde7, #fff8e1); }
.credit-pack-price { font-size: 1.5rem; font-weight: 700; color: #2c3e50; }
.credit-pack-credits { font-size: 1.3rem; }

.credit-fix-btn {
    background: linear-gradient(135deg, #F39C12, #D68910);
    color: #333;
    border: none;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    transition: all 0.2s;
}

.credit-fix-btn:hover { background: linear-gradient(135deg, #D68910, #FF8F00); transform: scale(1.05); color: #000; }

.credit-fix-badge {
    background: linear-gradient(135deg, #F39C12, #D68910);
    color: #333;
    font-weight: 700;
}

.credit-nav-badge {
    background: rgba(255,215,0,0.15);
    border-radius: 20px;
    padding: 4px 12px !important;
    font-weight: 600;
    color: var(--gold) !important;
    transition: all 0.3s;
}

.credit-nav-badge:hover { background: rgba(255,215,0,0.25); }
.credit-nav-amount { font-weight: 700; }

/* === TEAM SWAP === */
.swap-team-card {
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.swap-team-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.15);
}

.swap-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === SPONSORSHIP DEALS === */
.sponsor-package-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.sponsor-package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* === DERBY / RIVALRY === */
.derby-badge {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    animation: derbyPulse 2s ease-in-out infinite;
}
.derby-badge-lg {
    font-size: 0.95rem;
    padding: 4px 16px;
}
@keyframes derbyPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255,0,0,0.3); }
    50% { box-shadow: 0 0 15px rgba(255,0,0,0.6); }
}
.derby-match-card {
    border: 2px solid rgba(255,68,68,0.4) !important;
}

/* === WEATHER === */
.weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

/* === SEASON AWARDS === */
.award-card { background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02)); border: 2px solid rgba(255,215,0,0.3); border-radius: 12px; transition: all 0.3s; }
.award-card:hover { border-color: #F39C12; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,215,0,0.2); }
.award-winner-name { color: #F39C12; font-weight: 700; font-size: 1.1rem; }
.award-emoji { font-size: 2.5rem; }
.award-citation { color: #999; font-style: italic; font-size: 0.85rem; }
.awards-ceremony-header { background: linear-gradient(135deg, #1a1a2e, #16213e); color: white; padding: 2rem; border-radius: 16px; text-align: center; }

/* === PRESS CONFERENCES === */
.press-conference { background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 12px; padding: 1.5rem; }
.press-question { border-left: 3px solid #666; padding-left: 1rem; margin-bottom: 1rem; }
.press-journalist { font-weight: 700; color: #aaa; font-size: 0.85rem; }
.press-option { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.75rem 1rem; cursor: pointer; transition: all 0.2s; margin-bottom: 0.5rem; }
.press-option:hover { border-color: var(--gold); background: rgba(255,215,0,0.08); }
.press-option.selected { border-color: var(--pitch-green); background: rgba(40,167,69,0.1); }
.press-option-hint { font-size: 0.75rem; color: #888; font-style: italic; }
.postmatch-quote { font-style: italic; color: #ccc; font-size: 1.1rem; border-left: 3px solid var(--gold); padding-left: 1rem; }

/* === BOARD ROOM === */
.security-meter { height: 30px; border-radius: 15px; background: rgba(255,255,255,0.1); overflow: hidden; position: relative; }
.security-fill { height: 100%; border-radius: 15px; transition: width 1s ease, background 0.5s; }
.security-fill.high { background: linear-gradient(90deg, #28a745, #34ce57); }
.security-fill.medium { background: linear-gradient(90deg, #ffc107, #ffdb4d); }
.security-fill.low { background: linear-gradient(90deg, #fd7e14, #ff9a44); }
.security-fill.critical { background: linear-gradient(90deg, #dc3545, #ff4757); animation: pulse-danger 1s infinite; }
@keyframes pulse-danger { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.board-quote { font-style: italic; border-left: 3px solid var(--gold); padding: 1rem; background: rgba(255,215,0,0.05); border-radius: 0 8px 8px 0; }
.job-card { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; transition: all 0.3s; }
.job-card:hover { border-color: var(--pitch-green); transform: translateY(-3px); }
.charm-btn { background: linear-gradient(135deg, var(--gold), #ffb347); color: #1a1a2e; font-weight: 700; border: none; border-radius: 8px; padding: 0.5rem 1.5rem; }
.charm-btn:hover { filter: brightness(1.1); color: #1a1a2e; }
.text-orange { color: #fd7e14 !important; }

/* === SCOUTS === */
.stat-unscouted { opacity: 0.5; font-style: italic; position: relative; }
.stat-unscouted::after { content: "~"; font-size: 0.7em; position: absolute; top: -2px; }
.scout-card { background: linear-gradient(135deg, #1a1a2e, #16213e); border: 2px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.25rem; }
.scout-level-1 { border-left: 4px solid #6c757d; }
.scout-level-2 { border-left: 4px solid #17a2b8; }
.scout-level-3 { border-left: 4px solid var(--gold); }
.scout-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; padding: 0.25rem 0.5rem; font-size: 0.8rem; color: white; }
.scout-btn:hover { background: rgba(255,255,255,0.2); color: white; }
.instant-btn { background: linear-gradient(135deg, #ff6b35, #ff8c42); color: white; font-weight: 600; border: none; border-radius: 6px; padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.instant-btn:hover { filter: brightness(1.1); color: white; }
.report-complete { border-left: 3px solid var(--pitch-green); }
.report-inprogress { border-left: 3px solid #ffc107; }

/* === FANZONE === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.social-feed { max-width: 600px; margin: 0 auto; }
.social-post { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; animation: fadeUp 0.4s ease both; }
.social-post:hover { background: rgba(255,255,255,0.07); }
.social-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: white; flex-shrink: 0; }
.social-avatar.fan { background: #3b82f6; }
.social-avatar.player { background: var(--pitch-green); }
.social-avatar.journalist { background: #8b5cf6; }
.social-avatar.rivalfan { background: #ef4444; }
.social-avatar.clubofficial { background: var(--gold); color: #1a1a2e; }
.social-author { font-weight: 700; }
.social-handle { color: #888; font-size: 0.85rem; margin-left: 0.25rem; }
.social-verified { color: #1d9bf0; margin-left: 0.25rem; font-size: 0.85rem; }
.social-content { margin-top: 0.5rem; line-height: 1.5; }
.social-engagement { display: flex; gap: 1.5rem; margin-top: 0.75rem; font-size: 0.85rem; color: #888; }
.social-time { color: #666; font-size: 0.8rem; margin-left: auto; }
.social-filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.social-filter-tab { padding: 0.4rem 0.8rem; border-radius: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; font-size: 0.85rem; transition: all 0.2s; color: #ccc; }
.social-filter-tab:hover, .social-filter-tab.active { background: var(--pitch-green); color: white; border-color: var(--pitch-green); }
.social-load-more { display: block; width: 100%; padding: 0.75rem; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2); border-radius: 8px; color: #888; cursor: pointer; }
.social-load-more:hover { background: rgba(255,255,255,0.1); }

/* === MATCH STATISTICS === */
.match-stats-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-row { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 0.75rem; }
.stat-value { font-weight: 700; font-size: 1.1rem; text-align: center; transition: color 0.3s; }
.stat-value.stat-winner { color: var(--pitch-green); }
.stat-bar-container { text-align: center; }
.stat-label { font-size: 0.8rem; color: #999; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,0.05); }
.stat-bar-home { border-radius: 4px 0 0 4px; transition: width 1s ease; min-width: 5%; }
.stat-bar-away { border-radius: 0 4px 4px 0; transition: width 1s ease; min-width: 5%; }
@media (max-width: 576px) {
    .stat-row { grid-template-columns: 45px 1fr 45px; gap: 0.5rem; }
    .stat-value { font-size: 0.95rem; }
}

/* === SET PIECE ROLES === */
.captain-armband { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: #F39C12; color: #1a1a2e; border-radius: 50%; font-size: 0.7rem; font-weight: 800; margin-left: 4px; }

/* === CONTRACTS === */
.border-warning { border-color: rgba(255,193,7,0.3) !important; }

/* === MATCHDAY EXPERIENCE === */
.matchday-option { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 12px; transition: all 0.2s; }
.matchday-option:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.matchday-selected { border-color: var(--pitch-green) !important; background: rgba(40,167,69,0.1) !important; box-shadow: 0 0 15px rgba(40,167,69,0.2); }

/* === BACKROOM STAFF === */
.staff-card { transition: transform 0.2s, box-shadow 0.2s; }
.staff-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* === PUNDITS === */
.pundit-card { transition: transform 0.2s; }
.pundit-card:hover { transform: translateY(-3px); }

/* ═══════════ PLAYER TRAITS ═══════════ */
.trait-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); white-space: nowrap; }
.trait-badge-attacking { background: rgba(220,53,69,0.15); border-color: rgba(220,53,69,0.3); color: #ff6b7a; }
.trait-badge-defending { background: rgba(13,110,253,0.15); border-color: rgba(13,110,253,0.3); color: #6ea8fe; }
.trait-badge-mental { background: rgba(255,193,7,0.15); border-color: rgba(255,193,7,0.3); color: #ffda6a; }
.trait-badge-physical { background: rgba(25,135,84,0.15); border-color: rgba(25,135,84,0.3); color: #75b798; }
.trait-badge-goalkeeping { background: rgba(111,66,193,0.15); border-color: rgba(111,66,193,0.3); color: #a98eda; }
.trait-badge .trait-emoji { font-size: 0.9rem; }
.traits-grid { display: flex; flex-wrap: wrap; gap: 6px; }

/* ═══════════ TACTICAL PRESETS ═══════════ */
.mentality-card { cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; border-radius: 12px; padding: 1rem; text-align: center; background: var(--card-bg, rgba(255,255,255,0.05)); }
.mentality-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.3); }
.mentality-card.active { border-color: #198754; background: rgba(25,135,84,0.15); box-shadow: 0 0 20px rgba(25,135,84,0.3); }
.mentality-emoji { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.preset-btn { padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); cursor: pointer; transition: all 0.2s; color: inherit; }
.preset-btn:hover { background: rgba(255,255,255,0.1); }
.preset-btn.active { background: rgba(25,135,84,0.2); border-color: #198754; }
.condition-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.condition-label { flex: 1; font-weight: 500; }
.condition-select { flex: 0 0 200px; }

/* ═══════════ OPPOSITION SCOUTING ═══════════ */
.report-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; }
.strength-item { color: #75b798; padding: 4px 0; }
.strength-item::before { content: "✅ "; }
.weakness-item { color: #ff6b7a; padding: 4px 0; }
.weakness-item::before { content: "⚠️ "; }
.tactical-advice { background: rgba(255,193,7,0.1); border: 1px solid rgba(255,193,7,0.3); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.tactical-advice::before { content: "💡 "; font-size: 1.2rem; }
.threat-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.threat-watch { background: rgba(255,193,7,0.2); color: #ffda6a; }
.threat-danger { background: rgba(255,152,0,0.2); color: #ffb74d; }
.threat-key { background: rgba(220,53,69,0.2); color: #ff6b7a; }
.set-piece-indicator { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; }
.set-piece-low { background: rgba(25,135,84,0.15); color: #75b798; }
.set-piece-medium { background: rgba(255,193,7,0.15); color: #ffda6a; }
.set-piece-high { background: rgba(255,152,0,0.15); color: #ffb74d; }
.set-piece-dangerous { background: rgba(220,53,69,0.15); color: #ff6b7a; }

/* ═══════════ PRE-SEASON ═══════════ */
.camp-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1.5rem; transition: all 0.3s; cursor: pointer; }
.camp-card:hover { transform: translateY(-3px); border-color: rgba(25,135,84,0.5); }
.camp-card.booked { border-color: #198754; background: rgba(25,135,84,0.1); }
.camp-emoji { font-size: 2.5rem; display: block; text-align: center; margin-bottom: 0.75rem; }
.camp-location { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.friendly-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
.friendly-result { font-size: 1.5rem; font-weight: 700; }
.preview-section { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.fixture-preview { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.fixture-label { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.fixture-label-derby { background: rgba(220,53,69,0.15); color: #ff6b7a; }
.fixture-label-opener { background: rgba(13,110,253,0.15); color: #6ea8fe; }
.fixture-label-finale { background: rgba(255,193,7,0.15); color: #ffda6a; }

/* ═══════════ SQUAD CHEMISTRY ═══════════ */
.chemistry-meter { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--chem-color, #ffc107) 0%, rgba(255,255,255,0.08) 0%); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 30px rgba(0,0,0,0.3); }
.chemistry-meter::before { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--card-bg, #1a1a2e); }
.chemistry-meter-value { position: relative; z-index: 1; font-size: 2.5rem; font-weight: 800; color: var(--chem-color, #ffc107); line-height: 1; }
.chemistry-meter-label { position: relative; z-index: 1; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.chemistry-label-toxic { color: #dc3545; }
.chemistry-label-poor { color: #fd7e14; }
.chemistry-label-average { color: #ffc107; }
.chemistry-label-good { color: #20c997; }
.chemistry-label-excellent { color: #28a745; }
.relationship-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.relationship-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.relationship-card-positive { border-left: 4px solid #28a745; background: linear-gradient(135deg, rgba(40,167,69,0.08), rgba(255,255,255,0.03)); }
.relationship-card-mentor { border-left: 4px solid #6f42c1; background: linear-gradient(135deg, rgba(111,66,193,0.08), rgba(255,255,255,0.03)); }
.relationship-card-neutral { border-left: 4px solid #6c757d; }
.relationship-card-negative { border-left: 4px solid #fd7e14; background: linear-gradient(135deg, rgba(253,126,20,0.08), rgba(255,255,255,0.03)); }
.relationship-card-danger { border-left: 4px solid #dc3545; background: linear-gradient(135deg, rgba(220,53,69,0.08), rgba(255,255,255,0.03)); }
.mentoring-card { border: 1px solid rgba(111,66,193,0.3); }
.chemistry-change-positive { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; background: rgba(40,167,69,0.15); color: #75b798; }
.chemistry-change-negative { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; background: rgba(220,53,69,0.15); color: #ff6b7a; }
.chemistry-timeline { display: flex; flex-direction: column; gap: 0; }
.chemistry-timeline-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.chemistry-timeline-item:last-child { border-bottom: none; }

/* ═══════════ FAN ENGAGEMENT & SUPPORTER TRUST ═══════════ */
.fan-trust-meter { width: 100%; height: 24px; background: rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; position: relative; }
.fan-trust-bar { height: 100%; border-radius: 12px; transition: width 0.8s ease, background 0.5s ease; box-shadow: 0 0 12px rgba(255,255,255,0.15); }
.trust-level-hostile { color: #dc3545; }
.trust-level-angry { color: #e35d6a; }
.trust-level-unhappy { color: #fd7e14; }
.trust-level-neutral { color: #ffc107; }
.trust-level-content { color: #20c997; }
.trust-level-happy { color: #28a745; }
.trust-level-adoring { color: #6f42c1; }
.protest-alert { background: linear-gradient(135deg, rgba(220,53,69,0.15), rgba(220,53,69,0.05)); border: 1px solid rgba(220,53,69,0.4); border-radius: 16px; animation: protest-pulse 2s ease-in-out infinite; }
@keyframes protest-pulse { 0%, 100% { border-color: rgba(220,53,69,0.4); } 50% { border-color: rgba(220,53,69,0.8); box-shadow: 0 0 20px rgba(220,53,69,0.2); } }
.matchday-event-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1rem; cursor: pointer; transition: all 0.2s ease; text-align: center; position: relative; min-height: 160px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.35rem; }
.matchday-event-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.25); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.matchday-event-card.active { border-color: #28a745; background: rgba(40,167,69,0.12); box-shadow: 0 0 15px rgba(40,167,69,0.2); }
.matchday-event-emoji { font-size: 2rem; }
.matchday-event-name { color: #2c3e50; font-weight: 700; font-size: 0.9rem; }
.matchday-event-desc { color: #666; font-size: 0.75rem; line-height: 1.3; }
.matchday-event-stats { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.matchday-event-active-badge { position: absolute; top: 6px; right: 6px; background: #27AE60; color: #FFFFFF; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.fan-favourite-card { background: rgba(39, 174, 96, 0.08); border: 1px solid rgba(39, 174, 96, 0.3); border-radius: 12px; padding: 1rem; text-align: center; transition: transform 0.2s; }
.fan-favourite-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.fan-favourite-name { color: #2c3e50; font-weight: 700; font-size: 1rem; }
.fan-favourite-position { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-bottom: 0.5rem; }
.fan-favourite-stats { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.fan-timeline { display: flex; flex-direction: column; gap: 0; }
.fan-timeline-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.fan-timeline-item:last-child { border-bottom: none; }
.tifo-card { background: linear-gradient(135deg, rgba(111,66,193,0.15), rgba(255,193,7,0.08)); border: 1px solid rgba(111,66,193,0.4); border-radius: 16px; padding: 1.5rem; }

/* === RECORDS & HALL OF FAME === */
.records-tab-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.records-tab-btn { background: rgba(255,255,255,0.06); color: #ccc; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 0.6rem 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.records-tab-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.records-tab-btn.active { background: linear-gradient(135deg, #F39C12, #e5a100); color: #1a1a2e; border-color: #F39C12; }

.record-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,215,0,0.2); border-radius: 12px; padding: 1.25rem; text-align: center; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.record-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,215,0,0.15); }
.record-card.record-new { border-color: rgba(255,215,0,0.6); background: rgba(255,215,0,0.06); }
.record-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.record-name { font-weight: 700; color: #fff; font-size: 0.95rem; margin-bottom: 0.25rem; }
.record-value { font-size: 1.4rem; font-weight: 800; color: #F39C12; margin-bottom: 0.25rem; }
.record-holder { color: #adb5bd; font-size: 0.85rem; margin-bottom: 0.25rem; }
.record-season { background: rgba(255,255,255,0.08); border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.75rem; margin-left: 0.25rem; }
.record-desc { color: #6c757d; font-size: 0.75rem; font-style: italic; }

.record-new-badge { position: absolute; top: -8px; right: -8px; background: linear-gradient(135deg, #F39C12, #ff8c00); color: #1a1a2e; font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 12px; z-index: 1; }

@keyframes recordShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.record-shimmer { background: linear-gradient(90deg, #F39C12 0%, #fff7cc 25%, #F39C12 50%, #fff7cc 75%, #F39C12 100%); background-size: 200% 100%; animation: recordShimmer 2s linear infinite; -webkit-background-clip: text; background-clip: text; }

.hof-card { background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,255,255,0.03)); border: 2px solid rgba(255,215,0,0.3); border-radius: 16px; padding: 1.5rem; text-align: center; position: relative; overflow: hidden; }
.hof-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--hof-color, #F39C12), transparent); }
.hof-tier-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.hof-player-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 0.25rem; }
.hof-position { color: #adb5bd; font-size: 0.85rem; margin-bottom: 0.75rem; }
.hof-stats { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #ccc; margin-bottom: 0.5rem; }
.hof-induction { color: #6c757d; font-size: 0.75rem; font-style: italic; }

.hof-candidate-row { transition: background 0.2s; }
.hof-candidate-row:hover { background: rgba(255,215,0,0.05) !important; }

.hof-tier-legend { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 0.75rem 1rem; }

.record-holder-badge { display: inline-flex; align-items: center; gap: 0.25rem; background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05)); border: 1px solid rgba(255,215,0,0.3); border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.75rem; color: #F39C12; }

/* ═══════════ DEADLINE DAY ═══════════ */

.deadline-page { background: #0a0a1a; min-height: 100vh; }

.deadline-banner { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b00 50%, #1a1a2e 100%); border-bottom: 3px solid #F39C12; }

.deadline-title { font-size: 2.5rem; color: #F39C12; text-shadow: 0 0 20px rgba(255,215,0,0.4); letter-spacing: 2px; }

.deadline-status { display: inline-block; padding: 0.4rem 1.2rem; border-radius: 20px; font-weight: 700; font-size: 0.95rem; letter-spacing: 1px; }
.deadline-status-live { background: rgba(255,0,0,0.2); border: 2px solid #ff0000; color: #ff4444; animation: deadlinePulse 1.5s infinite; }
.deadline-status-open { background: rgba(0,200,0,0.15); border: 2px solid #00cc00; color: #00ff00; }
.deadline-status-closed { background: rgba(100,100,100,0.2); border: 2px solid #666; color: #999; }

@keyframes deadlinePulse { 0%, 100% { box-shadow: 0 0 5px rgba(255,0,0,0.3); } 50% { box-shadow: 0 0 20px rgba(255,0,0,0.6); } }

.deadline-countdown { color: #F39C12; font-size: 1.1rem; }
.countdown-label { opacity: 0.7; margin-right: 0.5rem; }
.countdown-number { font-size: 2rem; font-weight: 900; }

/* Ticker */
.deadline-ticker-wrapper { display: flex; align-items: stretch; background: #F39C12; overflow: hidden; }
.ticker-label { background: #ff0000; color: #fff; font-weight: 800; padding: 0.5rem 1rem; display: flex; align-items: center; white-space: nowrap; font-size: 0.85rem; letter-spacing: 1px; animation: breakingFlash 1s infinite; }
@keyframes breakingFlash { 0%, 100% { background: #ff0000; } 50% { background: #cc0000; } }

.deadline-ticker { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-content { display: flex; white-space: nowrap; animation: tickerScroll 40s linear infinite; }
.ticker-item { padding: 0.5rem 0.75rem; font-weight: 700; color: #1a1a2e; font-size: 0.85rem; }
.ticker-separator { margin: 0 0.5rem; color: rgba(0,0,0,0.3); }

@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Stats */
.deadline-stat-card { background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.03)); border: 1px solid rgba(255,215,0,0.3); border-radius: 12px; padding: 1.25rem; text-align: center; }
.deadline-stat-card .stat-value { font-size: 1.8rem; font-weight: 900; color: #F39C12; }
.deadline-stat-card .stat-label { font-size: 0.8rem; color: #adb5bd; text-transform: uppercase; letter-spacing: 1px; }

/* Event cards */
.deadline-card { background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(255,255,255,0.02)); border: 2px solid rgba(255,215,0,0.25); border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; position: relative; transition: border-color 0.3s, box-shadow 0.3s; }
.deadline-card:hover { border-color: rgba(255,215,0,0.5); box-shadow: 0 4px 20px rgba(255,215,0,0.1); }
.deadline-card-breaking { border-color: #ff0000; animation: cardBreaking 2s infinite; }
@keyframes cardBreaking { 0%, 100% { border-color: #ff0000; } 50% { border-color: #F39C12; } }

.deadline-card-icon { font-size: 2rem; min-width: 48px; text-align: center; }

.deadline-breaking { position: absolute; top: -10px; right: 12px; background: #ff0000; color: #fff; font-weight: 800; font-size: 0.7rem; padding: 0.2rem 0.75rem; border-radius: 4px; letter-spacing: 1px; animation: breakingFlash 1s infinite; }

.deadline-event-type { background: rgba(255,215,0,0.2); color: #F39C12; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }

.deadline-fee { color: #00ff88; font-size: 1rem; }

.deadline-team-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.75rem; color: #ccc; }

.deadline-player-badge { background: rgba(0,200,255,0.1); border: 1px solid rgba(0,200,255,0.25); border-radius: 6px; padding: 0.2rem 0.5rem; font-size: 0.75rem; color: #00ccff; }

.deadline-timeline { position: relative; padding-left: 0; }

/* ═══════════ MIND GAMES ═══════════ */

.mindgame-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem; transition: all 0.3s ease; }
.mindgame-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.active-mindgame { border-left: 4px solid #f59e0b; animation: mindgame-pulse 3s ease-in-out infinite; }

@keyframes mindgame-pulse { 0%,100% { box-shadow: 0 0 0 rgba(245,158,11,0); } 50% { box-shadow: 0 0 20px rgba(245,158,11,0.1); } }

.mindgame-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }

/* Speech Bubbles */
.speech-bubble { position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 1rem 1.25rem; margin: 0.5rem 0; }
.speech-bubble-content { color: rgba(255,255,255,0.9); font-style: italic; line-height: 1.6; }
.speech-bubble-arrow { position: absolute; bottom: -8px; left: 24px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid rgba(255,255,255,0.12); }
.response-bubble { background: rgba(25,135,84,0.08); border-color: rgba(25,135,84,0.2); }
.response-bubble .speech-bubble-arrow { border-top-color: rgba(25,135,84,0.2); }
.small-bubble { padding: 0.6rem 0.9rem; }
.small-bubble .speech-bubble-arrow { display: none; }
.quote-mark { font-size: 1.4em; color: #f59e0b; font-weight: bold; opacity: 0.6; }

/* Personality Badges */
.personality-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.personality-professor { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.personality-firebrand { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.personality-joker { background: rgba(250,204,21,0.15); color: #fbbf24; border: 1px solid rgba(250,204,21,0.3); }
.personality-veteran { background: rgba(107,114,128,0.2); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.personality-tactician { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.personality-motivator { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }
.personality-silent { background: rgba(75,0,130,0.15); color: #a78bfa; border: 1px solid rgba(75,0,130,0.3); }
.personality-showman { background: rgba(236,72,153,0.15); color: #f472b6; border: 1px solid rgba(236,72,153,0.3); }
.personality-default { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.15); }

/* Response Buttons */
.btn-mindgame { border-radius: 20px; font-weight: 600; font-size: 0.85rem; padding: 0.4rem 1rem; transition: all 0.2s ease; }
.btn-ignore { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.btn-ignore:hover { background: rgba(107,114,128,0.3); color: #d1d5db; }
.btn-calm { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.btn-calm:hover { background: rgba(59,130,246,0.3); color: #93c5fd; }
.btn-aggressive { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.btn-aggressive:hover { background: rgba(239,68,68,0.3); color: #fca5a5; }
.btn-witty { background: rgba(250,204,21,0.15); color: #fbbf24; border: 1px solid rgba(250,204,21,0.3); }
.btn-witty:hover { background: rgba(250,204,21,0.3); color: #fde68a; }

/* Result Cards */
.mindgame-result-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.25rem; animation: result-slide-in 0.5s ease; }
.result-success { border-left: 4px solid #22c55e; }
.result-backfired { border-left: 4px solid #ef4444; }
.result-ignored { border-left: 4px solid #6b7280; }
.result-icon { font-size: 1.5rem; }

@keyframes result-slide-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Newspaper Headline */
.newspaper-headline { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.75rem 1rem; font-weight: 700; color: rgba(255,255,255,0.9); font-family: Georgia, 'Times New Roman', serif; font-size: 0.95rem; letter-spacing: 0.3px; border-left: 3px solid #f59e0b; }

/* Rival Manager Card */
.rival-manager-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem; transition: all 0.3s ease; }
.rival-manager-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* Manager Profile Card */
.manager-profile-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 1.25rem; text-align: center; transition: all 0.3s ease; }
.manager-profile-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.manager-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, rgba(25,135,84,0.3), rgba(25,135,84,0.1)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; color: #1db954; margin: 0 auto 0.75rem; border: 2px solid rgba(25,135,84,0.3); }

/* Rivalry Tracker */
.rivalry-tracker .progress { border-radius: 4px; }

/* ═══════════ FINANCIAL FAIR PLAY ═══════════ */

/* Traffic Light */
.ffp-traffic-light { display: flex; justify-content: center; gap: 0.75rem; font-size: 2rem; }
.ffp-light { opacity: 0.2; filter: grayscale(80%); transition: all 0.3s ease; }
.ffp-light.active-green, .ffp-light.active-yellow, .ffp-light.active-amber, .ffp-light.active-orange, .ffp-light.active-red { opacity: 1; filter: none; transform: scale(1.3); }

/* Status card backgrounds */
.ffp-compliant { border-left: 4px solid #198754 !important; }
.ffp-warning { border-left: 4px solid #ffc107 !important; }
.ffp-minor { border-left: 4px solid #fd7e14 !important; }
.ffp-major { border-left: 4px solid #dc3545 !important; }
.ffp-critical { border-left: 4px solid #8b0000 !important; background: rgba(139,0,0,0.08) !important; }

/* Status badges */
.ffp-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.ffp-badge.compliant { background: rgba(25,135,84,0.15); color: #198754; }
.ffp-badge.warning { background: rgba(255,193,7,0.15); color: #ffc107; }
.ffp-badge.minor { background: rgba(253,126,20,0.15); color: #fd7e14; }
.ffp-badge.major { background: rgba(220,53,69,0.15); color: #dc3545; }
.ffp-badge.critical { background: rgba(139,0,0,0.2); color: #ff4444; }

/* Financial meter */
.ffp-meter { height: 12px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; }
.ffp-meter-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.ffp-meter-fill.safe { background: linear-gradient(90deg, #198754, #1db954); }
.ffp-meter-fill.caution { background: linear-gradient(90deg, #ffc107, #fd7e14); }
.ffp-meter-fill.danger { background: linear-gradient(90deg, #dc3545, #8b0000); }

/* ═══════════ MATCH OF THE DAY ═══════════ */

/* Wrapper & Header */
.motd-wrapper { min-height: 100vh; }
.motd-header { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%); padding: 2rem 0; border-bottom: 3px solid #ffc107; position: relative; overflow: hidden; }
.motd-title-banner { text-align: center; position: relative; z-index: 1; }
.motd-spotlight { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,193,7,0.15) 0%, transparent 70%); pointer-events: none; }
.motd-title { font-size: 2.5rem; font-weight: 900; letter-spacing: 4px; color: #ffc107; text-shadow: 0 0 30px rgba(255,193,7,0.4), 0 2px 4px rgba(0,0,0,0.5); margin: 0; }
.motd-subtitle { color: rgba(255,255,255,0.6); font-size: 0.95rem; margin-top: 0.5rem; letter-spacing: 2px; }

/* Controls */
.motd-controls { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,0.08); }

/* Headline Card */
.motd-headline-card { background: linear-gradient(135deg, #1a1a2e, #16213e); border: 1px solid rgba(255,193,7,0.3); border-radius: 16px; padding: 1.5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.motd-headline-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 200px; height: 3px; background: linear-gradient(90deg, transparent, #ffc107, transparent); }
.motd-headline-text { font-size: 1.4rem; font-weight: 700; color: #2c3e50; line-height: 1.4; }

/* Match Cards */
.motd-match-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.25rem; transition: transform 0.2s, box-shadow 0.2s; position: relative; }
.motd-match-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.motd-match-card.motd-derby { border-left: 4px solid #ff6b6b; }
.motd-match-card.motd-upset { border-left: 4px solid #ffd93d; }
.motd-badge-derby, .motd-badge-upset { position: absolute; top: 8px; right: 8px; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.motd-badge-derby { background: rgba(255,107,107,0.2); color: #ff6b6b; }
.motd-badge-upset { background: rgba(255,217,61,0.2); color: #ffd93d; }

/* Score Row */
.motd-score-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.motd-team-col { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }
.motd-team-col.text-end { justify-content: flex-end; }
.motd-team-badge { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.65rem; flex-shrink: 0; }
.motd-team-name { font-weight: 600; color: #2c3e50; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.motd-score { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.motd-score-num { font-size: 2rem; font-weight: 900; color: #2c3e50; min-width: 1.5rem; text-align: center; }
.motd-score-dash { font-size: 1.5rem; color: rgba(255,255,255,0.3); }

/* Events */
.motd-events { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.5rem; }
.motd-event { font-size: 0.72rem; color: #2c3e50; padding: 2px 6px; background: rgba(255,255,255,0.05); border-radius: 6px; }
.motd-event.away { text-align: right; margin-left: auto; }

/* Star Man */
.motd-starman { background: linear-gradient(90deg, rgba(255,193,7,0.1), transparent); border-left: 3px solid #ffc107; padding: 0.4rem 0.75rem; border-radius: 0 8px 8px 0; font-size: 0.8rem; color: #2c3e50; margin-top: 0.5rem; }
.motd-starman-rating { color: #ffc107; font-weight: 700; margin-left: 0.25rem; }
.motd-starman-note { color: #2c3e50; font-style: italic; }

/* Commentary */
.motd-commentary { font-style: italic; color: #2c3e50; font-size: 0.78rem; margin-top: 0.5rem; padding: 0.4rem 0.75rem; background: rgba(255,255,255,0.03); border-radius: 8px; }

/* Ratings Panel */
.motd-ratings-panel { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.08); }
.motd-rating-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.78rem; }
.motd-rating-pos { color: #2c3e50; width: 24px; text-align: center; font-size: 0.7rem; }
.motd-rating-name { flex: 1; color: #2c3e50; }
.motd-rating-name.starman { color: #ffc107; font-weight: 600; }
.motd-rating-badge { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.motd-rating-elite { background: rgba(255,193,7,0.25); color: #ffc107; }
.motd-rating-good { background: rgba(25,135,84,0.25); color: #1db954; }
.motd-rating-average { background: rgba(255,255,255,0.1); color: #aaa; }
.motd-rating-poor { background: rgba(220,53,69,0.25); color: #dc3545; }

/* Goal of the Day */
.motd-gotd-card { background: linear-gradient(135deg, #1a1a2e, #0f3460); border: 1px solid rgba(255,193,7,0.25); border-radius: 16px; padding: 1.5rem; text-align: center; position: relative; }
.motd-gotd-card::before { content: '🎯'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 1.8rem; }
.motd-gotd-player { font-size: 1.5rem; font-weight: 800; color: #ffc107; }
.motd-gotd-team { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.motd-gotd-desc { font-style: italic; color: #2c3e50; font-size: 0.95rem; line-height: 1.5; }

/* Pundit Corner */
.motd-pundit-section { background: rgba(255,255,255,0.02); border-radius: 16px; padding: 1.5rem; }
.motd-debate-card { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.08); }
.motd-debate-topic { font-size: 0.75rem; font-weight: 700; color: #ffc107; text-transform: uppercase; letter-spacing: 1px; }
.motd-debate-question { font-size: 1.1rem; font-weight: 600; color: #2c3e50; margin-top: 0.25rem; }
.motd-pundit-bubble { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1rem; border: 1px solid rgba(255,255,255,0.06); position: relative; }
.motd-pundit-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.motd-pundit-avatar { font-size: 1.5rem; }
.motd-pundit-name { font-weight: 700; color: #2c3e50; font-size: 0.85rem; }
.motd-agree-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: auto; }
.motd-agree-badge.agree { background: rgba(25,135,84,0.2); color: #1db954; }
.motd-agree-badge.disagree { background: rgba(220,53,69,0.2); color: #dc3545; }
.motd-pundit-quote { font-style: italic; color: #2c3e50; font-size: 0.88rem; line-height: 1.5; }

/* Section Cards (Table Talk, Look Ahead) */
.motd-section-card { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.08); }
.motd-section-text { color: #2c3e50; font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* Responsive */
@media (max-width: 768px) {
    .motd-title { font-size: 1.5rem; letter-spacing: 2px; }
    .motd-score-num { font-size: 1.5rem; }
    .motd-headline-text { font-size: 1.1rem; }
    .motd-headline-card { padding: 1rem; }
    .motd-team-name { font-size: 0.75rem; }
}

/* ==================== FAREWELL ==================== */
.farewell-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    border-bottom: 3px solid #d4a017;
}

.farewell-section-title {
    font-weight: 700;
    color: #d4a017;
    border-bottom: 2px solid rgba(212, 160, 23, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.farewell-player-card {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a3d 100%);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.farewell-player-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.15);
}

.farewell-player-badge {
    font-size: 2rem;
    line-height: 1;
}

.farewell-player-info {
    flex: 1;
}

.farewell-player-card .d-flex:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.farewell-ceremony-select {
    background: #2a2a3d;
    border-color: rgba(212, 160, 23, 0.4);
    color: #2c3e50;
    font-size: 0.8rem;
    max-width: 180px;
}

.farewell-ceremony-select:focus {
    border-color: #d4a017;
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.25);
}

.btn-farewell-gold {
    background: linear-gradient(135deg, #d4a017, #f5c842);
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}

.btn-farewell-gold:hover {
    background: linear-gradient(135deg, #f5c842, #d4a017);
    color: #1a1a2e;
    transform: scale(1.02);
}

.btn-farewell-complete {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}

.btn-farewell-complete:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.btn-farewell-gift {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #d4a017;
    font-weight: 600;
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.btn-farewell-gift:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: #f5c842;
    border-color: #d4a017;
}

.farewell-event-card {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a3d 100%);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.farewell-event-card.farewell-active {
    border-left: 4px solid #d4a017;
}

.farewell-event-card.farewell-completed {
    background: linear-gradient(135deg, #1a1a2e 0%, #1e2a3a 50%, #2a2a3d 100%);
    border: 1px solid rgba(212, 160, 23, 0.4);
}

.farewell-event-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.farewell-ceremony-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.farewell-event-desc {
    color: #aaa;
}

.farewell-quote {
    background: rgba(212, 160, 23, 0.08);
    border-left: 3px solid #d4a017;
    padding: 0.6rem 0.8rem;
    border-radius: 0 6px 6px 0;
    color: #e8d5a3;
    font-size: 0.9rem;
}

.farewell-fan-banner {
    background: rgba(46, 204, 113, 0.1);
    border: 1px dashed rgba(46, 204, 113, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: #a3e8c7;
}

.farewell-crowd {
    color: #bbb;
    font-style: italic;
}

.farewell-tribute-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(135deg, #d4a017, #f5c842);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.2rem 2.5rem;
    transform: rotate(35deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1;
}

.farewell-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.farewell-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    min-width: 70px;
}

.farewell-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

.farewell-stat-value {
    font-weight: 700;
    color: #d4a017;
    font-size: 0.95rem;
}

.farewell-legacy-legend { color: #d4a017; font-weight: 700; }
.farewell-legacy-hero { color: #f5c842; font-weight: 600; }
.farewell-legacy-favourite { color: #5dade2; font-weight: 600; }

.farewell-legacy-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.farewell-legacy-badge.farewell-legacy-legend {
    background: rgba(212, 160, 23, 0.2);
    border: 1px solid rgba(212, 160, 23, 0.5);
}

.farewell-legacy-badge.farewell-legacy-hero {
    background: rgba(245, 200, 66, 0.15);
    border: 1px solid rgba(245, 200, 66, 0.4);
}

.farewell-legacy-badge.farewell-legacy-favourite {
    background: rgba(93, 173, 226, 0.15);
    border: 1px solid rgba(93, 173, 226, 0.4);
}

.farewell-empty-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 160, 23, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #888;
}

.farewell-status {
    border-left: 4px solid #d4a017;
    background: rgba(212, 160, 23, 0.08);
    border-color: rgba(212, 160, 23, 0.3);
    color: #e8d5a3;
}

.farewell-gifts .badge {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .farewell-tribute-ribbon {
        font-size: 0.6rem;
        padding: 0.15rem 2rem;
        right: -35px;
        top: 8px;
    }
    .farewell-ceremony-emoji { font-size: 1.4rem; }
    .farewell-stats { gap: 0.5rem; }
    .farewell-stat { min-width: 60px; padding: 0.3rem 0.5rem; }
    .farewell-stat-value { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════
   STADIUM CUSTOMIZATION
   ═══════════════════════════════════════════ */

.stadium-custom-header {
    background: linear-gradient(135deg, #1a472a 0%, #2d6a4f 50%, #40916c 100%);
    padding: 2rem 0;
}

.stadium-overview-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.stadium-atmos-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.stadium-atmos-label { font-size: 0.8rem; opacity: 0.7; }
.stadium-atmos-value { font-size: 2rem; font-weight: 800; color: #ffc107; }
.stadium-atmos-bonus { font-size: 0.8rem; color: #4ade80; }

.stadium-section {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.stadium-section-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

/* === STAND MAP === */
.stadium-map {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
    min-height: 300px;
}
.stand {
    background: #2a2a3e;
    border: 2px solid #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.stand:hover { border-color: #ffc107; background: #333350; }
.stand-named { border-color: #4ade80; background: rgba(74,222,128,0.08); }

.stand-north { grid-column: 1 / 4; grid-row: 1; min-height: 60px; }
.stand-south { grid-column: 1 / 4; grid-row: 3; min-height: 60px; }
.stand-west { grid-column: 1; grid-row: 2; min-height: 140px; }
.stand-east { grid-column: 3; grid-row: 2; min-height: 140px; }

.stand-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.stand-name { font-weight: 700; font-size: 0.9rem; color: #2c3e50; }
.stand-capacity { font-size: 0.7rem; color: #999; }
.stand-edit-icon { font-size: 0.7rem; opacity: 0.4; }
.stand:hover .stand-edit-icon { opacity: 1; }

.stand-edit {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 250px;
}
.stand-edit .form-control { background: #1a1a2e; color: #fff; border-color: #555; }

.stadium-pitch {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === PITCH PREVIEW === */
.pitch-preview {
    width: 100%;
    height: 100%;
    min-height: 140px;
    border-radius: 6px;
    border: 2px solid #4ade80;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pitch-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); z-index: 2; }
.pitch-centre-circle {
    position: absolute;
    width: 40px; height: 40px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}
.pitch-halfway {
    position: absolute;
    width: 2px; height: 100%;
    background: rgba(255,255,255,0.15);
    left: 50%;
}

/* Pitch pattern backgrounds */
.pitch-classicstripes { background: repeating-linear-gradient(90deg, #2d6a4f 0px, #2d6a4f 25px, #40916c 25px, #40916c 50px); }
.pitch-diamondcut { background: repeating-linear-gradient(45deg, #2d6a4f 0px, #2d6a4f 20px, #40916c 20px, #40916c 40px); }
.pitch-checkerboard { background: repeating-conic-gradient(#2d6a4f 0% 25%, #40916c 0% 50%) 0 0 / 30px 30px; }
.pitch-circlepattern { background: radial-gradient(circle, #40916c 20%, #2d6a4f 21%, #2d6a4f 40%, #40916c 41%, #40916c 60%, #2d6a4f 61%, #2d6a4f 80%, #40916c 81%); }
.pitch-plain { background: #2d6a4f; }
.pitch-crisscross { background: repeating-linear-gradient(45deg, transparent 0px, transparent 15px, rgba(64,145,108,0.5) 15px, rgba(64,145,108,0.5) 17px), repeating-linear-gradient(-45deg, transparent 0px, transparent 15px, rgba(64,145,108,0.5) 15px, rgba(64,145,108,0.5) 17px), #2d6a4f; }

/* === PITCH PATTERN CARDS === */
.pitch-pattern-card {
    background: #2a2a3e;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.pitch-pattern-card:hover { border-color: #ffc107; transform: translateY(-2px); }
.pitch-pattern-active { border-color: #4ade80 !important; background: rgba(74,222,128,0.08); }
.pitch-pattern-name { font-size: 0.8rem; font-weight: 600; color: #2c3e50; margin-top: 0.3rem; }

.pitch-mini-preview {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    border: 1px solid rgba(74,222,128,0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pitch-mini-circle {
    width: 16px; height: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
}

/* === THEME CARDS === */
.theme-card {
    background: #2a2a3e;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s;
}
.theme-card:hover { border-color: #ffc107; }
.theme-card-active { border-color: #4ade80 !important; background: rgba(74,222,128,0.06); }
.theme-card-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.theme-emoji { font-size: 1.5rem; }
.theme-desc { color: #aaa; }

/* === UPGRADE CARDS === */
.upgrade-card {
    background: #2a2a3e;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
}
.upgrade-card:hover { border-color: #ffc107; transform: translateY(-2px); }
.upgrade-card-owned { border-color: #4ade80 !important; background: rgba(74,222,128,0.06); }
.upgrade-card-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.upgrade-card-stats { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

.stadium-upgrade-summary {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.upgrade-summary-item { display: flex; flex-direction: column; }
.upgrade-summary-label { font-size: 0.75rem; opacity: 0.6; }
.upgrade-summary-value { font-size: 1.5rem; font-weight: 800; }

/* === CONFIRMATION MODAL === */
.modal-backdrop-custom {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
}
.stadium-confirm-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e2e;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 90vw;
    z-index: 1051;
    color: #2c3e50;
}

.stadium-status {
    border-radius: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .stadium-map {
        grid-template-columns: 60px 1fr 60px;
        min-height: 250px;
    }
    .stand-name { font-size: 0.75rem; }
    .stand-capacity { font-size: 0.6rem; }
    .upgrade-card-icon { font-size: 1.5rem; }
    .stadium-atmos-value { font-size: 1.5rem; }
    .upgrade-summary-value { font-size: 1.2rem; }
    .stadium-section { padding: 1rem; }
    .stadium-overview-card { padding: 1rem; }
}

/* ============================================
   SIDEBAR NAVIGATION & TOP BAR
   ============================================ */

/* --- App Layout --- */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* --- Top Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--dark) 0%, #FFFFFF 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #2c3e50;
    font-size: 1.2rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.top-bar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pitch-lighter);
    color: var(--pitch-lighter);
}

.top-bar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
}
.top-bar-brand:hover { color: var(--gold); text-decoration: none; }
.top-bar-brand-text {
    white-space: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-credits {
    display: inline-flex;
    align-items: center;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27AE60;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.top-bar-credits:hover {
    background: rgba(39, 174, 96, 0.15);
    color: #1a6b2d;
    text-decoration: none;
    transform: translateY(-1px);
}

.top-bar-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s;
}
.top-bar-link:hover { color: #fff; text-decoration: none; }

/* Public top bar override */
.top-bar-public {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
.top-bar-public .top-bar-brand-text { color: #2c3e50 !important; }
.top-bar-public .top-bar-link { color: #2c3e50 !important; }
.top-bar-public .top-bar-link:hover { color: var(--pitch-green) !important; }

.top-bar-register {
    background: linear-gradient(135deg, var(--pitch-green), var(--pitch-light));
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.top-bar-register:hover {
    background: linear-gradient(135deg, var(--pitch-light), var(--pitch-lighter));
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* --- User Dropdown in Top Bar --- */
.top-bar-user-dropdown {
    position: relative;
}
.top-bar-user-btn {
    background: none;
    border: 1px solid #ecf0f1;
    color: #2c3e50;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.top-bar-user-btn:hover {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27AE60;
    color: #27AE60;
}
.top-bar-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #FFFFFF;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    overflow: hidden;
}
.top-bar-user-menu a,
.top-bar-user-menu button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.875rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}
.top-bar-user-menu a:hover,
.top-bar-user-menu button:hover {
    background: rgba(39, 174, 96, 0.08);
    color: #27AE60;
}
.top-bar-user-menu hr {
    margin: 0;
    border-color: #ecf0f1;
}
.top-bar-user-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1055;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 56px;
    left: -260px;
    width: 260px;
    height: calc(100vh - 56px);
    background: #f8f9fa;
    border-right: 1px solid #ecf0f1;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1035;
    transition: left 0.3s ease;
}
.sidebar.open {
    left: 0;
}

.sidebar-content {
    padding: 0.75rem 0;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(39, 174, 96, 0.3); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(39, 174, 96, 0.5); }

.sidebar-divider {
    height: 1px;
    background: #ecf0f1;
    margin: 0.5rem 1rem;
}

/* --- Sidebar Links --- */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.855rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    cursor: pointer;
}
.sidebar-link:hover {
    background: rgba(39, 174, 96, 0.1);
    color: #1a6b2d;
    text-decoration: none;
}
.sidebar-link.active {
    background: rgba(27, 94, 32, 0.15);
    color: #1a6b2d;
    border-left-color: #27AE60;
    font-weight: 600;
}
.sidebar-dashboard {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    color: #2c3e50;
}

.sidebar-icon {
    display: inline-flex;
    width: 24px;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* --- Sidebar Sections --- */
.sidebar-section {
    margin-bottom: 2px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    color: #555;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s;
}
.sidebar-section-header:hover {
    color: #27AE60;
    background: rgba(39, 174, 96, 0.08);
}
.sidebar-section-header > span {
    display: flex;
    align-items: center;
}

.sidebar-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    opacity: 0.5;
}
.sidebar-chevron.expanded {
    transform: rotate(90deg);
}

.sidebar-section-items {
    padding-bottom: 0.25rem;
}
.sidebar-section-items .sidebar-link {
    padding-left: 2.5rem;
    font-size: 0.83rem;
}

/* --- Sidebar Overlay (mobile) --- */
.sidebar-overlay {
    display: none;
}

/* --- Main Wrapper --- */
.main-wrapper {
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-content {
    flex: 1;
}

/* Desktop: push content when sidebar open */
@media (min-width: 992px) {
    .main-wrapper.sidebar-is-open {
        margin-left: 260px;
    }
    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile: overlay sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        z-index: 1050;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }
    .main-wrapper.sidebar-is-open {
        margin-left: 0;
    }
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1045;
        backdrop-filter: blur(2px);
    }
    .top-bar-brand-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .top-bar-credits span {
        display: none;
    }
    .top-bar-credits {
        padding: 0.3rem 0.5rem;
    }
}

/* ============================================
   VALIDATION STYLES
   ============================================ */
.validation-message { color: #dc3545; font-size: 0.85rem; margin-top: 0.25rem; }
.input-validation-error { border-color: #dc3545 !important; }
.validation-errors { color: #dc3545; font-size: 0.85rem; margin-bottom: 1rem; }
.validation-errors ul { padding-left: 1.2rem; margin-bottom: 0; }

/* === DARK THEME OVERRIDES === */
.bg-light { background-color: rgba(255,255,255,0.04) !important; color: #2c3e50; }
.text-muted-light { color: #6c757d !important; }
h2, h3, h4, h5, h6 { color: #2c3e50; }
.card { background: #FFFFFF; color: #2c3e50; border-color: rgba(255,255,255,0.08); }
/* Dark theme form controls — !important needed to override Bootstrap 5.3 CDN specificity */
.form-control,
.form-control:not(:focus),
input.form-control,
textarea.form-control,
.auth-card .form-control,
.card .form-control { background-color: #FFFFFF !important; color: #2c3e50 !important; border-color: #333 !important; }
.form-control:focus,
.auth-card .form-control:focus,
.card .form-control:focus { background-color: #FFFFFF !important; color: #2c3e50 !important; border-color: var(--pitch-lighter) !important; box-shadow: 0 0 0 0.2rem rgba(76,175,80,0.25) !important; }
.form-control::placeholder { color: #6c757d !important; opacity: 1 !important; }
.form-select,
.auth-card .form-select,
.card .form-select { background-color: #FFFFFF !important; color: #2c3e50 !important; border-color: #333 !important; }
.form-select:focus { background-color: #FFFFFF !important; color: #2c3e50 !important; border-color: var(--pitch-lighter) !important; box-shadow: 0 0 0 0.2rem rgba(76,175,80,0.25) !important; }
.form-select option { background-color: #FFFFFF; color: #2c3e50; }
.form-label { color: #2c3e50 !important; }
.auth-card .form-label { color: #2c3e50 !important; }
.input-group-text { background-color: #FFFFFF !important; color: #8b949e !important; border-color: #333 !important; }
/* Autofill override for Chromium browsers */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 30px #FFFFFF inset !important; -webkit-text-fill-color: #2c3e50 !important; border-color: #333 !important; }
.text-muted { color: #8b949e !important; }

/* === SIDEBAR DISABLED STATE === */
.sidebar-section-disabled .sidebar-section-header { opacity: 0.35; cursor: default; }
.sidebar-section-disabled .sidebar-section-header:hover { color: #8b95a5; background: none; }
.sidebar-section-disabled .sidebar-link { opacity: 0.3; pointer-events: none; }
.sidebar-setup-prompt { padding: 0.75rem 1rem; margin: 0.5rem 0.75rem; background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,160,0,0.05)); border: 1px solid rgba(255,215,0,0.25); border-radius: 8px; color: #2c3e50; font-size: 0.8rem; line-height: 1.4; }
.sidebar-setup-prompt a { color: var(--gold); font-weight: 600; text-decoration: none; }
.sidebar-setup-prompt a:hover { text-decoration: underline; }

/* === LANDING PAGE === */
.landing-page { background: #FFFFFF; }
.landing-badge { display: inline-flex; align-items: center; padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.landing-badge-free { background: rgba(40,167,69,0.2); color: #5bff8a; border: 1px solid rgba(40,167,69,0.4); }
.landing-badge-features { background: rgba(255,215,0,0.15); color: var(--gold); border: 1px solid rgba(255,215,0,0.3); }
.landing-badge-multi { background: rgba(13,110,253,0.15); color: #6ea8fe; border: 1px solid rgba(13,110,253,0.3); }
.landing-free-banner { background: linear-gradient(135deg, #1a472a, #27AE60); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.landing-features-section { background: #f8faf8; padding: 4rem 0; }
.landing-feature-card { display: flex; align-items: flex-start; gap: 1rem; background: #FFFFFF; border: 1px solid #e8ece8; border-radius: 12px; padding: 1.25rem; transition: all 0.3s; height: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.landing-feature-card:hover { border-color: var(--pitch-lighter); background: #FFFFFF; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(39,174,96,0.12); }
.landing-feature-emoji { font-size: 2rem; flex-shrink: 0; }
.landing-feature-card h5 { color: #2c3e50 !important; }
.landing-feature-card p { color: #6c757d !important; }
.landing-more-section { background: linear-gradient(135deg, #1a472a, #1B5E20); border-top: none; padding: 4rem 0; }

/* Public footer */
.main-wrapper-public .soccer-footer { background: #1a2e1a !important; }
.main-wrapper-public .soccer-footer p { color: rgba(255,255,255,0.7) !important; }

/* Social proof section */
.landing-social-proof { background: #FFFFFF; padding: 4rem 0; }
.landing-stat-card { text-align: center; padding: 2rem 1rem; }
.landing-stat-card .stat-number { font-size: 2.5rem; font-weight: 800; color: var(--pitch-green); line-height: 1; }
.landing-stat-card .stat-label { font-size: 0.95rem; color: #6c757d; margin-top: 0.5rem; }
.landing-stat-card .stat-icon { font-size: 1.5rem; color: var(--gold); margin-bottom: 0.75rem; }
