/* --- CSS STYLING: UNIFIED REAL-TIME PREDICTIONS APP --- */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* Color Variables */
:root {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --color-gold: #fbbf24;
    --color-silver: #cbd5e1;
    --color-bronze: #d97706;
    --color-primary: #6366f1; /* Indigo */
    --color-primary-hover: #4f46e5;
    --color-accent-blue: #38bdf8; /* Neon blue */
    --color-accent-purple: #c084fc; /* Neon purple */
    --color-emerald: #10b981; /* Success Green */
    --color-red: #ef4444; /* Danger Red */
    --card-bg-glass: rgba(15, 23, 42, 0.65);
    --card-border-glass: rgba(255, 255, 255, 0.08);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(circle at top right, #1e1b4b 0%, #090d16 60%, #020617 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* App Container Layout */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header Styling */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 24px;
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border-glass);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trophy-logo {
    font-size: 3rem;
    color: var(--color-gold);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.6)); }
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to left, var(--text-main), var(--color-accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.header-stats {
    display: flex;
    gap: 12px;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-blue);
}

/* Sync status banner */
.sync-banner {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 10px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.sync-banner.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--color-emerald);
}

.sync-banner.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--color-red);
}

/* Navigation Menu */
.app-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.nav-btn {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border-glass);
    color: var(--text-muted);
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    backdrop-filter: blur(12px);
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-btn.active {
    color: var(--text-main);
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.admin-nav-btn {
    border-color: rgba(192, 132, 252, 0.25);
    color: var(--color-accent-purple);
}
.admin-nav-btn.active {
    background: var(--color-accent-purple);
    border-color: var(--color-accent-purple);
    color: #0b0f19;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.35);
}

/* App Main Content & Tabs */
.app-content {
    flex-grow: 1;
    margin-bottom: 24px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active-tab {
    display: block;
}

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

/* Cards Design */
.card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border-glass);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-header h2, .card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.flex-header {
    flex-wrap: wrap;
    gap: 16px;
}

/* Login Auth Card */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    width: 100%;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    padding: 35px 30px;
    text-align: center;
}

.auth-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--color-accent-blue);
    border-radius: 50%;
    font-size: 2.2rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* Mode toggles */
.mode-toggle-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mode-buttons {
    display: flex;
    gap: 6px;
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.mode-btn.active {
    background: var(--bg-tertiary);
    color: var(--color-accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.15);
}

/* User Greeting bar */
.user-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-accent-blue);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Form Controls & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.form-control {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

/* Tables Styling */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table, .pins-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.leaderboard-table th, .leaderboard-table td,
.pins-table th, .pins-table td {
    padding: 14px 18px;
}

.leaderboard-table th, .pins-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-table tbody tr, .pins-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-fast);
}

.leaderboard-table tbody tr:hover, .pins-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Compact Pin input in admin table */
.pin-admin-input {
    width: 90px;
    height: 34px;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    padding: 4px;
}

/* Rank Styling */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.rank-1 { background: var(--color-gold); color: #1e1b4b; box-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.rank-2 { background: var(--color-silver); color: #1e293b; }
.rank-3 { background: var(--color-bronze); color: #fff; }
.rank-normal { background: rgba(255, 255, 255, 0.08); color: var(--text-main); }

.player-name {
    font-weight: 700;
    color: var(--text-main);
}

.points-cell {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-accent-blue);
}

/* Time Limit Warning Banner */
.time-limit-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--color-gold);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Rules Section */
.info-card {
    border-left: 4px solid var(--color-primary);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.rule-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rule-points {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.bg-gold { background: var(--color-gold); color: #1e1b4b; }
.bg-purple { background: var(--color-accent-purple); color: #1e1b4b; }
.bg-blue { background: var(--color-accent-blue); color: #1e1b4b; }
.bg-red { background: var(--color-red); color: white; }

.rule-desc strong {
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
}

.rule-desc p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Status Banner (Locked / Open) */
.status-banner {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.status-open {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-emerald);
}

.status-locked {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-red);
}

/* Matches Grid & Match Cards */
.matches-pred-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.match-pred-row {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

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

.team-home { justify-content: flex-end; text-align: left; }
.team-away { justify-content: flex-start; text-align: right; }

.team-flag-name {
    font-size: 1.05rem;
    font-weight: 600;
}

.score-inputs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.score-input {
    width: 44px;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    outline: none;
}

.score-input:focus {
    border-color: var(--color-accent-blue);
}

.score-input:disabled {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

.score-separator {
    color: var(--text-muted);
    font-weight: bold;
}

/* Match View Cards */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.match-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.match-card-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.match-card-team-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.match-card-scores {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    gap: 12px;
    color: var(--color-accent-blue);
}

.score-unplayed {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* User Predictions Sub-List in Match Card */
.match-card-predictions {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pred-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pred-row-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
}

.pred-points-badge {
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-emerald { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: var(--color-red); border: 1px solid rgba(239, 68, 68, 0.25); }

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--glow-shadow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-success {
    background: var(--color-emerald);
    color: #0b0f19;
    font-weight: 700;
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--color-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-info {
    background: var(--color-accent-blue);
    color: #0b0f19;
    font-weight: 700;
}

.btn-info:hover {
    background: #0ea5e9;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-lock {
    background: var(--color-red);
    color: white;
}

.btn-lock.unlocked {
    background: var(--color-emerald);
    color: #0b0f19;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.w-full { width: 100%; }
.cursor-pointer { cursor: pointer; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-red { color: var(--color-red); }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 24px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

/* Admin Panel layout */
.grid-2-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.admin-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lock-control-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.lock-status-label {
    font-weight: 600;
}

.admin-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-match-row {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px 14px;
    border-radius: 10px;
    gap: 4px 0;
}

.admin-match-row .match-time-header {
    grid-column: 1 / -1;
    margin-bottom: 6px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 0 0 6px 0;
}

.import-wrapper {
    position: relative;
    overflow: hidden;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 16px 0;
}

.backup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Footer Styling */
.app-footer {
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 40px;
    text-align: center;
}

.app-footer .version {
    font-size: 0.7rem;
    margin-top: 6px;
}

/* Match Time Header (shown above each match row) */
.match-pred-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2px;
}

.match-time-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.06);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    padding: 6px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-time-badge {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-gold);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 1px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.match-pred-wrapper .match-pred-row {
    border: none;
    border-radius: 0;
}

.admin-match-row {
    grid-template-rows: auto 1fr;
}

/* Special Predictions Tab */
.special-nav-btn {
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--color-gold);
}
.special-nav-btn.active {
    background: rgba(251, 191, 36, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.special-champion-card {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 6px;
}

.groups-pred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}

.group-pred-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-pred-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent-blue);
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.group-team-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    user-select: none;
}

.group-team-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.group-team-option.selected {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-main);
}

.group-team-option input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .matches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .logo-area {
        flex-direction: column;
    }
    
    .app-nav {
        grid-template-columns: repeat(3, 1fr);
    }
    .groups-pred-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .match-pred-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    
    .team-home { justify-content: center; }
    .team-away { justify-content: center; }
    
    .admin-match-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
}
