/* ==========================================================================
   SpaceJam Match Schedule Viewer - Premium Light Theme Design System
   ========================================================================== */

:root {
    /* Light Theme Color Palette */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-hover: #f8fafc;
    --bg-card: #ffffff;
    
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.1);
    
    --accent: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --card-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: #e2e8f0;
    --border-highlight: rgba(37, 99, 235, 0.3);
    
    /* Semantic Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #d97706;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #dc2626;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --info: #0284c7;
    --info-bg: rgba(6, 182, 212, 0.12);
    
    /* Radii & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    background-image: 
        radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(124, 58, 237, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.font-mono {
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
}

.font-bold {
    font-weight: 700;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: #059669 !important; }
.text-danger { color: #dc2626 !important; }
.text-warning { color: #d97706 !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    height: 44px;
    width: auto;
}

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

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-link, .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover, .nav-btn:hover {
    color: var(--primary);
    background-color: var(--bg-surface-elevated);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.admin-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.admin-badge:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

/* Dropdowns */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 6px 0;
    z-index: 1000;
    margin-top: 4px;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.dropdown-menu li a {
    display: block;
    padding: 9px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-menu li a:hover {
    background: var(--bg-surface-elevated);
    color: var(--primary);
    padding-left: 20px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================================================
   Alerts & Flash Messages
   ========================================================================== */

.flash-container {
    margin-top: 16px;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease;
}

.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-danger { background: var(--danger-bg); color: #991b1b; border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid rgba(245, 158, 11, 0.3); }
.alert-info { background: var(--info-bg); color: #075985; border: 1px solid rgba(6, 182, 212, 0.3); }

.alert-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding-left: 12px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(37, 99, 235, 0.25); }
.badge-warning { background: var(--warning-bg); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-info { background: var(--info-bg); color: #0284c7; border: 1px solid rgba(6, 182, 212, 0.25); }
.badge-neutral { background: var(--bg-surface-elevated); color: var(--text-secondary); border: 1px solid var(--border-color); }

.time-badge {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: #1e293b;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}

.court-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.08);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.2);
    font-weight: 700;
    font-size: 0.8rem;
}

.court-badge-all {
    background: var(--bg-surface-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.score-badge-finished {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.score-badge-pending {
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px dashed #cbd5e1;
}

.points-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 800;
}

/* Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.rank-qualifier { background: linear-gradient(135deg, #10b981, #059669); color: #ffffff; border: none; box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28); }

.qualifier-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding: 1px 4px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rank-qualified {
    background: rgba(16, 185, 129, 0.045);
}

/* ==========================================================================
   Hero Section (Home)
   ========================================================================== */

.hero-section {
    padding: 40px 0 60px 0;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.hero-logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(37, 99, 235, 0.15));
}

.hero-sponsor-badge {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 12px 28px 14px 28px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
    border: 2px solid #e2e8f0;
}

.sponsor-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

.hero-sponsor-logo {
    height: 44px;
    width: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
}

/* Tournament Cards Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
    margin-bottom: 40px;
}

.tournament-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.tournament-card:hover::before {
    opacity: 1;
}

.tournament-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tournament-icon {
    font-size: 1.25rem;
    background: var(--bg-surface-elevated);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.tournament-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tournament-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.tournament-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Quick Links Card */
.quick-links-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: left;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.quick-link-item:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-link-icon {
    font-size: 1.75rem;
}

.quick-link-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-link-item p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Page Headers & Switchers
   ========================================================================== */

.page-container {
    padding: 30px 20px 60px 20px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-header-titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.tournament-switcher {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    gap: 4px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.switcher-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.switcher-btn:hover {
    color: var(--primary);
    background: var(--bg-surface-elevated);
}

.switcher-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.switcher-btn-standings {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.switcher-btn-standings:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

/* ==========================================================================
   Filter Cards & Forms
   ========================================================================== */

.filter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.form-select, .form-input {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   Tables & Data Cards
   ========================================================================== */

.table-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.table-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color 0.15s ease;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Match Table Specifics */
.match-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.team-name {
    font-weight: 600;
    color: var(--text-primary);
}

.team-with-warning {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.conflict-warning {
    margin-left: 4px;
    color: #d97706;
    font-size: 0.95em;
    vertical-align: text-bottom;
}

.conflict-players {
    display: block;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
}

.team-winner {
    color: #059669;
    font-weight: 700;
}

.vs-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-subname {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.row-official {
    background: rgba(6, 182, 212, 0.03);
}

.row-final {
    background: rgba(245, 158, 11, 0.03);
}

.event-official-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
    font-size: 0.95rem;
}

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 24px;
}

.group-card .table-card-header {
    background: rgba(37, 99, 235, 0.05);
    border-bottom: 1px solid rgba(37, 99, 235, 0.15);
}

.finals-card .table-card-header {
    background: rgba(245, 158, 11, 0.05);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

/* Admin Results Table */
.admin-table td {
    padding: 10px 12px;
}

.score-input {
    width: 65px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px;
}

.select-team {
    min-width: 160px;
}

.table-card-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   Form Cards & Auth
   ========================================================================== */

.form-card, .legal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Auth Card */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

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

.auth-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Legal Card */
.legal-card {
    max-width: 900px;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 16px 0 8px 0;
}

.legal-section h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 12px 0 6px 0;
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Empty State Card */
.empty-state-card {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.empty-state-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 36px 0 24px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo {
    height: 36px;
    width: auto;
}

.footer-sponsor {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.footer-sponsor span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.sponsor-logo {
    height: 18px;
    width: auto;
}

.footer-links ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

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

.footer-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-credits a {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-credits a:hover {
    color: var(--primary);
}

.version-tag {
    font-size: 0.7rem;
    background: var(--bg-surface-elevated);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Court Plan Modal
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 950px;
    width: 100%;
    overflow: hidden;
    animation: scaleUp 0.2s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 16px;
    display: flex;
    justify-content: center;
    background: #f1f5f9;
}

.court-img {
    max-height: 75vh;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */

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

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 992px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        position: relative;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: 16px 20px;
    }

    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dropdown-menu {
        position: static;
        display: block;
        background: #f8fafc;
        border: 1px solid var(--border-color);
        box-shadow: none;
        margin-top: 6px;
        padding: 4px 0;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

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

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

    .tournament-card-actions {
        grid-template-columns: 1fr;
    }

    .tournament-switcher {
        width: 100%;
        justify-content: center;
    }
}

/* Sponsor and 2026 court overview additions */
.hero-sponsor-logo-exolaunch,
.sponsor-logo-exolaunch {
    height: 78px;
    max-width: 320px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px 12px;
}

.footer-sponsor {
    background: #ffffff;
}

.home-court-plan-card,
.court-plan-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.4fr);
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.home-court-plan-text,
.court-plan-copy {
    text-align: left;
}

.home-court-plan-text h2,
.court-plan-copy h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    margin: 10px 0 8px 0;
}

.home-court-plan-text p,
.court-plan-copy p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.home-court-plan-image,
.court-plan-preview-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.home-court-plan-image img,
.court-plan-preview-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.modal-card {
    max-width: min(96vw, 1300px);
}

.court-img {
    max-width: 100%;
    height: auto;
}

.court-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: start;
}

.court-column-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.court-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    border-bottom: 1px solid var(--border-color);
}

.court-number-large {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.court-slot-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.court-slot {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 12px;
    background: var(--bg-surface-hover);
}

.court-slot-final {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

.court-slot-free {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}

.court-slot-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.duration-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px 8px;
}

.court-slot-match {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.court-slot-match span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.court-slot-name {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.court-slot-free-title {
    font-weight: 800;
    color: var(--success);
}

@media (max-width: 768px) {
    .home-court-plan-card,
    .court-plan-card {
        grid-template-columns: 1fr;
    }
}
