/* نجوم الابتكار — Innovation Stars Theme */
:root {
    --bg-dark: #0a0e1a;
    --bg-card: rgba(15, 25, 45, 0.75);
    --primary-dark: #1B4F9B;
    --primary-light: #4A90E2;
    --accent-cyan: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.35);
    --jordan-red: #d32f2f;
    --jordan-gold: #f5a623;
    --text-primary: #f0f4ff;
    --text-muted: #8ba3c7;
    --border-glow: rgba(74, 144, 226, 0.4);
    --glass: rgba(10, 20, 40, 0.6);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-glow: 0 0 30px rgba(0, 210, 255, 0.15);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ar);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Background effects */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 500px; height: 500px;
    background: rgba(27, 79, 155, 0.25);
    top: -100px; right: -100px;
}

.bg-glow-2 {
    width: 400px; height: 400px;
    background: rgba(0, 210, 255, 0.12);
    bottom: 10%; left: -80px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-text { display: flex; flex-direction: column; }

.brand-en {
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

.brand-ar {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--jordan-gold), var(--jordan-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.06);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero h1 .highlight-stars {
    background: linear-gradient(90deg, var(--jordan-gold), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight-innovation {
    background: linear-gradient(90deg, var(--jordan-red), #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: var(--font-en);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.countdown-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 1.5rem 0 0.75rem;
    letter-spacing: 1px;
}

.hero-badge-live {
    background: rgba(211, 47, 47, 0.2) !important;
    border-color: rgba(211, 47, 47, 0.5) !important;
    color: #ff6b6b !important;
    animation: liveGlow 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.5rem;
}

.hero-badge-ended {
    background: rgba(245, 166, 35, 0.15) !important;
    border-color: rgba(245, 166, 35, 0.4) !important;
    color: var(--jordan-gold) !important;
    margin-right: 0.5rem;
}

.countdown-ended {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}

.countdown-ended-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.countdown-ended h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.countdown-ended p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-item.stat-live .stat-value {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(211,47,47,0.3); }
    50% { box-shadow: 0 0 20px rgba(211,47,47,0.6); }
}

.countdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 80px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    font-family: var(--font-en);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-ar);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(27, 79, 155, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 210, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
}

.btn-jordan {
    background: linear-gradient(135deg, var(--jordan-red), #b71c1c);
    color: white;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
}

.section-title span {
    color: var(--accent-cyan);
}

.section-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.section-link:hover { text-decoration: underline; }

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* Match card */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.match-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.match-card.status-live {
    border-color: var(--jordan-red);
    box-shadow: 0 0 25px rgba(211, 47, 47, 0.2);
}

.match-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.match-stage, .match-group {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(74, 144, 226, 0.15);
    color: var(--primary-light);
    font-weight: 600;
}

.match-status {
    margin-right: auto;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.status-live { background: rgba(211, 47, 47, 0.2); color: #ff6b6b; animation: pulse 2s infinite; }
.status-upcoming { background: rgba(0, 210, 255, 0.1); color: var(--accent-cyan); }
.status-finished { background: rgba(139, 163, 199, 0.15); color: var(--text-muted); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    text-align: center;
}

.team-flag {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.team-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.team-score {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: var(--accent-cyan);
}

.match-vs {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.match-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.75rem;
}

.match-countdown {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    text-align: center;
}

.match-countdown-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.match-countdown-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.match-countdown-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(211, 47, 47, 0.12);
    border-color: rgba(211, 47, 47, 0.35);
    color: #ff6b6b;
    font-weight: 700;
    font-size: 0.9rem;
}

.match-countdown-done {
    background: rgba(139, 163, 199, 0.1);
    border-color: rgba(139, 163, 199, 0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.match-countdown-soon .match-countdown-value {
    color: var(--jordan-gold);
    animation: pulse 1.5s infinite;
}

.match-countdown-pending {
    background: rgba(245, 166, 35, 0.12) !important;
    border-color: rgba(245, 166, 35, 0.35) !important;
    color: var(--jordan-gold) !important;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

.match-link {
    display: block;
    margin-top: 0.75rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.match-card-actions .follow-match-btn {
    flex: 1;
    margin-top: 0;
}

.match-link-inline {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.4rem 0.5rem;
}

.match-link-inline:hover {
    text-decoration: underline;
}

.nshama-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: rgba(12, 18, 35, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    text-align: center;
    max-width: 90vw;
}

.nshama-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Notification permission prompt */
.notif-prompt {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 9998;
    animation: popupSlideUp 0.5s ease;
}

.notif-prompt-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(12, 18, 35, 0.98), rgba(0, 40, 80, 0.95));
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(16px);
}

.notif-prompt-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.notif-prompt-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.notif-prompt-text strong {
    font-size: 0.95rem;
    color: var(--accent-cyan);
}

.notif-prompt-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notif-prompt-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.notif-prompt-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
}

.notif-prompt-close:hover {
    color: #ff6b6b;
}

@media (max-width: 480px) {
    .notif-prompt-inner {
        flex-wrap: wrap;
    }
    .notif-prompt-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Jordan spotlight */
.jordan-spotlight {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(27, 79, 155, 0.15));
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.jordan-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.jordan-info .group-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.jordan-flag-large {
    width: 80px;
    height: 56px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Groups table */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.group-card.jordan-group {
    border-color: var(--jordan-red);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.15);
}

.group-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 0.75rem 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.group-table th,
.group-table td {
    padding: 0.5rem 0.6rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.group-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
}

.group-table td:first-child {
    text-align: right;
    font-weight: 600;
}

.group-table tr:first-child td {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Teams grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.team-card.jordan {
    border-color: var(--jordan-red);
    background: linear-gradient(135deg, rgba(211,47,47,0.08), var(--bg-card));
}

.team-card img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.team-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.team-card .team-code {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.team-card .team-group {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--accent-cyan);
}

/* Stadiums */
.stadiums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.stadium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.stadium-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.stadium-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.stadium-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stadium-capacity {
    margin-top: 0.75rem;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-light);
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border-glow);
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    font-family: var(--font-ar);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.08);
}

/* Page header */
.page-header {
    position: relative;
    z-index: 1;
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* Match detail */
.match-detail {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.match-detail .match-teams {
    margin: 2rem 0;
}

.match-detail .team-score {
    font-size: 3rem;
}

.scorers {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.scorers h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.back-link {
    display: inline-block;
    color: var(--accent-cyan);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    border-top: 1px solid var(--border-glow);
    background: var(--glass);
    backdrop-filter: blur(20px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-logo {
    width: 60px;
    margin-bottom: 0.75rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-info h4 {
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent-cyan); }

.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.footer-info a {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-tag {
    color: var(--jordan-red);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--glass);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-glow);
        padding: 1rem;
    }

    .nav-links.open { display: flex; }

    .navbar { position: relative; flex-wrap: wrap; }

    .jordan-spotlight {
        grid-template-columns: 1fr;
    }

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

    .hero-stats { gap: 1rem; }

    .stat-item { min-width: 100px; padding: 0.75rem 1rem; }
}

/* Jordan page */
.jordan-header .jordan-hero-flag {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.3);
}

.jordan-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Notifications */
.notif-link {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem !important;
    padding: 0.5rem 0.75rem !important;
}

.notif-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--jordan-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
}

.notification-panel {
    display: grid;
    gap: 2rem;
}

.notification-settings {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.notification-settings h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
}

.text-muted { color: var(--text-muted); font-size: 0.9rem; }

.settings-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.25rem 0;
}

.push-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.push-feature {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notification-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.granted { background: #4caf50; box-shadow: 0 0 8px #4caf50; }
.status-dot.denied { background: var(--jordan-red); }
.status-dot.default { background: var(--jordan-gold); }

.notification-match-card {
    position: relative;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
    width: 100%;
}

.match-card-actions .btn-sm {
    margin-top: 0;
    width: auto;
}

.follow-match-btn.following {
    border-color: #4caf50;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

/* Admin */
.admin-login-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glow);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    font-family: var(--font-ar);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-glow);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.admin-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.admin-stats-list {
    list-style: none;
}

.admin-stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.admin-stats-list li span { color: var(--text-muted); }

.health-status {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-weight: 600;
}

.health-status.healthy {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.health-status.error {
    background: rgba(211, 47, 47, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert-error {
    background: rgba(211, 47, 47, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Match detail page */
.match-detail-page {
    padding-bottom: 3rem;
}

.match-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.match-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.detail-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Events timeline */
.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.2);
    border-right: 3px solid transparent;
}

.event-team-home { border-right-color: var(--primary-light); }
.event-team-away { border-right-color: var(--jordan-red); }
.event-neutral { border-right-color: var(--text-muted); }

.event-goal { background: rgba(0, 210, 255, 0.08); }
.event-yellow { background: rgba(245, 166, 35, 0.1); }
.event-substitution { background: rgba(76, 175, 80, 0.08); }
.event-kickoff, .event-halftime, .event-fulltime { background: rgba(139, 163, 199, 0.08); }

.event-minute {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-cyan);
    min-width: 36px;
    text-align: center;
}

.event-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.event-label {
    font-weight: 700;
    font-size: 0.85rem;
}

.event-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Lineups */
.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.lineup-team {
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.lineup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lineup-flag {
    width: 48px;
    height: 34px;
    border-radius: 4px;
    object-fit: cover;
}

.lineup-header h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.lineup-formation {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 210, 255, 0.12);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-family: var(--font-en);
    font-weight: 700;
    margin-left: 0.5rem;
}

.lineup-coach {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pitch-visual {
    height: 80px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.home-pitch {
    background: linear-gradient(135deg, rgba(27, 79, 155, 0.3), rgba(74, 144, 226, 0.15));
}

.away-pitch {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(211, 47, 47, 0.08));
}

.pitch-formation {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
}

.lineup-section-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lineup-list {
    list-style: none;
    margin-bottom: 1rem;
}

.lineup-list.substitutes .lineup-player {
    opacity: 0.75;
}

.lineup-player {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}

.player-number {
    font-family: var(--font-en);
    font-weight: 800;
    color: var(--accent-cyan);
    text-align: center;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 4px;
    padding: 0.15rem 0;
    font-size: 0.8rem;
}

.player-name {
    font-weight: 600;
}

.captain-badge {
    display: inline-block;
    background: var(--jordan-gold);
    color: #000;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-right: 0.25rem;
    font-family: var(--font-en);
}

.player-position {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .match-detail-grid {
        grid-template-columns: 1fr;
    }

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

/* Data source badge */
.data-source-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-glow);
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent-cyan);
}

.data-source-badge.source-hybrid {
    background: rgba(76, 175, 80, 0.12);
    color: #81c784;
    border-color: rgba(76, 175, 80, 0.3);
}

/* Event photos */
.event-player-photo,
.event-team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.event-team-logo {
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
}

.event-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.event-var { background: rgba(156, 39, 176, 0.1); }
.event-red { background: rgba(211, 47, 47, 0.12); }

/* Player photos in lineup */
.player-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    grid-column: 1;
    grid-row: 1;
}

.lineup-player:has(.player-photo) {
    grid-template-columns: 28px 32px 1fr auto;
}

.coach-photo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 4px;
    object-fit: cover;
}

/* Match statistics */
.stats-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.stats-header span:first-child { text-align: right; }
.stats-header span:last-child { text-align: left; }

.stat-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}

.stat-home {
    text-align: right;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--primary-light);
}

.stat-away {
    text-align: left;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--jordan-red);
}

.stat-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* API notice */
.api-notice {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.api-notice p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.api-notice code {
    background: rgba(0,0,0,0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}
