:root {
    --bg-primary: #080c14;
    --bg-secondary: #101626;
    --surface-glass: rgba(18, 26, 44, 0.65);
    --border-glass: rgba(255, 255, 255, 0.07);
    --accent-gold: #e5b842;
    --accent-gold-glow: rgba(229, 184, 66, 0.25);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.2);
    --accent-red: #ef4444;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

/* Base Reset & Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(229, 184, 66, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(16, 22, 38, 0.8) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* General Layout */
.app-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    z-index: 2;
}

/* PANEL DE SIMULACIÓN */
.simulation-bar {
    background: rgba(16, 22, 38, 0.95);
    border-bottom: 2px solid var(--accent-gold);
    color: var(--text-primary);
    width: 100%;
    z-index: 100;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
}
.sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.sim-badge {
    color: var(--accent-gold);
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sim-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition-smooth);
}
.sim-toggle-btn:hover {
    color: var(--text-primary);
}
.sim-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 20px;
    align-items: center;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.simulation-bar.collapsed .sim-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none;
}
.sim-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 200px;
}
.sim-field label {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.sim-field input, .sim-field select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    transition: var(--transition-smooth);
}
.sim-field input:focus, .sim-field select:focus {
    border-color: var(--accent-gold);
}
.sim-user-input-group {
    display: flex;
    width: 100%;
    gap: 4px;
}
.btn-sim-action {
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-smooth);
}
.btn-sim-action:hover {
    background: #ffeb60;
}
.sim-actions {
    display: flex;
    align-items: center;
}
.btn-sim-reset {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
}
.btn-sim-reset:hover {
    background: var(--accent-red);
    color: white;
}

/* APP HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(229, 184, 66, 0.1) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-premium);
}
.gold-glow {
    color: var(--accent-gold);
    text-shadow: 0 0 12px var(--accent-gold-glow);
}
.gold-glow-strong {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(229, 184, 66, 0.6);
}
.app-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1.1;
}
.app-title span {
    color: var(--accent-gold);
    background: linear-gradient(to right, var(--accent-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.app-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.user-status-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.user-info-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
}
.user-info-badge.anonym {
    border-color: rgba(229, 184, 66, 0.3);
    background: rgba(229, 184, 66, 0.05);
}
.user-info-badge.anonym i {
    color: var(--accent-gold);
}
.user-info-badge.identified {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}
.user-info-badge.identified i {
    color: var(--accent-green);
}
.user-info-badge i {
    font-size: 1.5rem;
}
.user-details {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* NAVIGATION */
.main-nav {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
}
.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-btn:hover {
    color: var(--text-primary);
}
.nav-btn.active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.admin-only-btn {
    border: 1px dashed rgba(229, 184, 66, 0.4);
    color: var(--accent-gold);
}
.admin-only-btn:hover {
    background: rgba(229, 184, 66, 0.1);
}

.hidden {
    display: none !important;
}

/* SECTIONS & HEADERS */
.app-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.app-section.active {
    display: block;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h2 i {
    color: var(--accent-gold);
}
.section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* DATE FILTER */
.date-filter-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
}
.date-filter-container label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.date-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.day-nav-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.day-nav-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--accent-gold);
}
.elegant-select {
    background: var(--bg-primary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.elegant-select:focus {
    border-color: var(--accent-gold);
}

/* CHAMPION BANNER */
.champion-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(229, 184, 66, 0.1) 0%, rgba(16, 22, 38, 0.4) 100%);
    border: 1px solid rgba(229, 184, 66, 0.2);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
    animation: pulseGlow 4s infinite alternate;
}
.banner-icon {
    font-size: 1.3rem;
}
.banner-text {
    flex: 1;
    font-size: 0.9rem;
}
.banner-text span {
    color: var(--accent-gold);
    font-weight: 700;
    margin-left: 5px;
}
.btn-small-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}
.btn-small-link:hover {
    color: var(--accent-gold);
}

/* MATCH CARDS GRID */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
@media (max-width: 480px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.loading-state i {
    font-size: 2rem;
    color: var(--accent-gold);
}
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: var(--surface-glass);
    border: 1px dashed var(--border-glass);
    border-radius: var(--border-radius-lg);
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
}
.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* MATCH CARD */
.match-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.match-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.8);
}
.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}
.match-card.saved::before {
    background: var(--accent-green);
}
.match-card.locked::before {
    background: var(--text-muted);
}
.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 10px;
}
.phase-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(229, 184, 66, 0.08);
    border: 1px solid rgba(229, 184, 66, 0.2);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.match-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* TEAMS AND SCORE INPUTS */
.match-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    gap: 10px;
}
.team-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
    width: 0; /* Ensures equal flex columns */
}
.team-flag {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 1.5px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}
.match-card:hover .team-flag {
    transform: scale(1.08);
}
.team-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.score-inputs-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
}
.score-input {
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: var(--transition-smooth);
    -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.score-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
    background: rgba(0,0,0,0.4);
}
.score-input:disabled {
    opacity: 0.6;
    color: var(--text-secondary);
    cursor: not-allowed;
    background: rgba(0,0,0,0.1);
}
.score-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* CARD ACTION */
.match-card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 12px;
}
.match-status-info {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.match-status-info.pending {
    color: var(--accent-gold);
}
.match-status-info.saved {
    color: var(--accent-green);
}
.match-status-info.locked {
    color: var(--text-muted);
}
.btn-save-prediction {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-save-prediction:hover:not(:disabled) {
    background: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}
.btn-save-prediction:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* REAL RESULTS INFO BANNER */
.real-result-indicator {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 4px 8px;
    font-size: 0.75rem;
    text-align: center;
    color: var(--accent-green);
    width: 100%;
    margin-bottom: 12px;
}

/* GLASS CARD & TABLES */
.glass-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium);
    margin-bottom: 25px;
}
.table-responsive {
    overflow-x: auto;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.premium-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-glass);
    padding: 14px 18px;
}
.premium-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}
.premium-table tr:hover td {
    background: rgba(255,255,255,0.02);
}
.leaderboard-pos {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
}
tr:nth-child(1) .leaderboard-pos {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}
tr:nth-child(2) .leaderboard-pos {
    background: linear-gradient(135deg, #c0c0c0, #708090);
    color: #000;
    border-color: #c0c0c0;
    box-shadow: 0 0 10px rgba(192,192,192,0.3);
}
tr:nth-child(3) .leaderboard-pos {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
    color: white;
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205,127,50,0.3);
}
.points-pill {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    display: inline-block;
    text-align: center;
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #cc9c2d 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ffe17d 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 184, 66, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary.btn-full-width {
    width: 100%;
    padding: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ADMIN PANEL DETAILS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.metric-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(12px);
}
.metric-icon {
    width: 48px;
    height: 48px;
    background: rgba(229, 184, 66, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-gold);
}
.metric-info {
    display: flex;
    flex-direction: column;
}
.metric-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
}
.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ADMIN TABS */
.admin-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 24px;
    gap: 8px;
}
.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}
.admin-tab-btn:hover {
    color: var(--text-primary);
}
.admin-tab-btn.active {
    color: var(--accent-gold);
}
.admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gold);
}
.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.admin-tab-content.active {
    display: block;
}
.tab-header {
    margin-bottom: 20px;
}
.tab-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.tab-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ADMIN MATCH CARDS LIST */
.admin-matches-list-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.admin-match-row {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-match-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-match-date-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.admin-match-teams {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}
.admin-match-form {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-match-form .score-input {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}
.btn-save-real-result {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-save-real-result:hover {
    background: var(--accent-green);
    color: #000;
}

/* ADMIN FILTERS */
.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.admin-filters .filter-field {
    flex: 1 1 200px;
    position: relative;
}
.admin-filters .filter-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.admin-filters .filter-field input, .admin-filters .filter-field select {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 12px 10px 36px;
    border-radius: var(--border-radius-sm);
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.admin-filters .filter-field input:focus, .admin-filters .filter-field select:focus {
    border-color: var(--accent-gold);
}

/* DOWNLOADS GRID */
.download-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.download-card {
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-premium);
}
.dl-icon {
    width: 56px;
    height: 56px;
    background: rgba(229, 184, 66, 0.08);
    border: 1px solid rgba(229, 184, 66, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 16px;
}
.download-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.download-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}
.download-card button {
    width: 100%;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card {
    background: #0f1524;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
    position: relative;
}
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.modal-logo {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.modal-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.modal-warning-badge {
    background: rgba(229, 184, 66, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(229, 184, 66, 0.2);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    margin-top: 10px;
    display: inline-block;
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.input-wrapper {
    position: relative;
}
.input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.input-wrapper input, .input-wrapper select {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 10px 12px 10px 36px;
    border-radius: var(--border-radius-sm);
    width: 100%;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.input-wrapper input:focus, .input-wrapper select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold-glow);
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.form-actions button {
    flex: 1;
}

/* TOASTS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    max-width: 360px;
    width: 100%;
}
.toast {
    background: rgba(16, 22, 38, 0.95);
    border-left: 4px solid var(--accent-gold);
    color: white;
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.toast.success {
    border-left-color: var(--accent-green);
}
.toast.error {
    border-left-color: var(--accent-red);
}
.toast-icon {
    font-size: 1.1rem;
}
.toast.success .toast-icon {
    color: var(--accent-green);
}
.toast.error .toast-icon {
    color: var(--accent-red);
}
.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
}

/* FOOTER */
.app-footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-note {
    margin-top: 6px;
    font-size: 0.75rem;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 5px rgba(229, 184, 66, 0.1);
    }
    to {
        box-shadow: 0 0 20px rgba(229, 184, 66, 0.2);
    }
}

.animate-slide-up {
    animation: slideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
