/* ==========================================================================
   Maccabi Lod Badminton 2.0 - Premium CSS Design System
   ========================================================================== */

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

:root {
    /* Color Palette - Light Mode (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #1e3a8a; /* Deep Navy Blue */
    --primary-light: #2563eb;
    --primary-rgb: 30, 58, 138;
    
    --accent: #d4af37; /* Matte Gold */
    --accent-light: #fbbf24;
    --accent-rgb: 212, 175, 55;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Card/Glass details */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
    --hover-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 15px rgba(212, 175, 55, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-hebrew: 'Heebo', sans-serif;
    --font-number: 'Outfit', sans-serif;
    
    --header-height: 80px;
    
    /* Hero background overlay variables */
    --hero-overlay: rgba(248, 250, 252, 0.9);
    --hero-overlay-end: rgba(255, 255, 255, 0.95);
}

/* Dark Mode overrides */
[data-theme="dark"] {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --primary: #3b82f6; /* Lighter Navy/Blue for dark contrast */
    --primary-light: #60a5fa;
    --primary-rgb: 59, 130, 246;
    
    --accent: #fbbf24; /* Golden glow */
    --accent-light: #fef08a;
    
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.7);
    --hover-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(251, 191, 36, 0.15);
    
    --hero-overlay: rgba(9, 13, 22, 0.88);
    --hero-overlay-end: rgba(15, 23, 42, 0.95);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-hebrew);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
}

ul {
    list-style: none;
}

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

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.num {
    font-family: var(--font-number);
    direction: ltr;
    display: inline-block;
}

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

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    padding: 4px 16px;
    border-radius: 50px;
    background: rgba(var(--accent-rgb), 0.05);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(var(--primary-rgb), 0.4);
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.btn-primary:hover::after {
    left: 100%;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(var(--primary-rgb), 0.6);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #0f172a;
    box-shadow: 0 8px 20px -6px rgba(var(--accent-rgb), 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(var(--accent-rgb), 0.5);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(var(--accent-rgb), 0.3);
}

/* Badges */
.badge {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-primary { background: rgba(37, 99, 235, 0.1); color: var(--primary-light); }

/* Grid systems */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    height: var(--header-height);
    background: transparent;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
}
.header.sticky {
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 70px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-primary);
}
.logo-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #b2932c 100%);
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}
.logo-img {
    width: 42px; height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--accent);
    border-radius: 10px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}
.theme-toggle:hover {
    background: var(--glass-border);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    width: 28px; height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: var(--bg-secondary);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    .nav-menu.open { right: 0; }
    .nav-actions { margin-right: auto; gap: 10px; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--hero-overlay), var(--hero-overlay-end)), 
                url('hero_bg.png') no-repeat center center / cover;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-title-badge {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    color: var(--primary-light);
    font-size: 1.05rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-title span {
    color: var(--accent);
    -webkit-text-fill-color: initial;
    display: block;
    font-size: 3rem;
    margin-top: 10px;
    font-weight: 800;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 500;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-glow-ring {
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
    filter: blur(10px);
    animation: pulse 6s infinite alternate;
}
.hero-card-display {
    width: 320px; height: 420px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: rotate(-6deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.hero-card-display::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.25) 0%, transparent 60%);
    pointer-events: none;
}
.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.hero-card-logo {
    font-weight: 900;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}
.hero-card-main {
    margin-bottom: 20px;
}
.hero-card-val {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-number);
    line-height: 1;
}
.hero-card-lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 992px) {
    .hero { min-height: auto; padding-top: 140px; }
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-title { font-size: 2.8rem; }
    .hero-title span { font-size: 2rem; }
    .hero-visual { order: -1; height: 350px; }
    .hero-card-display { width: 260px; height: 340px; padding: 24px; }
    .hero-glow-ring { width: 300px; height: 300px; }
}

/* ==========================================================================
   Trust Bar (רצועת אמון)
   ========================================================================== */
.trust-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 32px 0;
}
.trust-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.trust-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.trust-info h4 {
    font-size: 1.8rem;
    font-family: var(--font-number);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.trust-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .trust-grid { justify-content: flex-start; display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Program Tracks (למי זה מתאים)
   ========================================================================== */
.track-card {
    position: relative;
    overflow: hidden;
}
.track-icon {
    font-size: 2.2rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #b2932c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
}
.track-name {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.track-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.track-meta {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.track-price {
    font-size: 1.1rem;
    font-weight: 800;
}
.track-price span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.track-link {
    color: var(--primary-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.track-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   Why Badminton Section
   ========================================================================== */
.benefit-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.benefit-num {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-number);
    color: rgba(var(--accent-rgb), 0.25);
    line-height: 1;
}
.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.benefit-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Development Timeline (מסלול התפתחות)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--accent) 100%);
    top: 0; bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    width: 50%;
    box-sizing: border-box;
    padding: 10px 40px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background-color: var(--bg-secondary);
    border: 4px solid var(--accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

/* Alignments in RTL document */
.timeline-item.right {
    margin-right: 0;
    margin-left: auto;
}
.timeline-item.right::after {
    left: -10px;
    right: auto;
}

.timeline-item.left {
    margin-right: auto;
    margin-left: 0;
}
.timeline-item.left::after {
    right: -10px;
    left: auto;
}

.timeline-content {
    padding: 24px;
    background: var(--bg-secondary);
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}
.timeline-step {
    font-family: var(--font-number);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    display: inline-block;
}
.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .timeline::after {
        left: auto;
        right: 30px;
        margin-right: -2px;
    }
    .timeline-item {
        width: 100%;
        padding-right: 60px;
        padding-left: 10px;
        margin-right: 0 !important;
        margin-left: auto !important;
    }
    .timeline-item::after {
        right: 20px !important;
        left: auto !important;
    }
}

/* ==========================================================================
   Weekly Schedule Table
   ========================================================================== */
.schedule-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-top: 40px;
}
.schedule-filters {
    padding: 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}
.filter-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.filter-group select {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}
.filter-group select:focus {
    border-color: var(--primary-light);
}

.table-wrapper {
    overflow-x: auto;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}
.schedule-table th {
    background: rgba(var(--primary-rgb), 0.03);
    color: var(--text-primary);
    font-weight: 800;
    padding: 18px 24px;
    border-bottom: 2px solid var(--glass-border);
}
.schedule-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 500;
}
.schedule-table tr:last-child td {
    border-bottom: none;
}
.schedule-table tr {
    transition: var(--transition);
}
.schedule-table tr:hover td {
    background: rgba(var(--accent-rgb), 0.03);
}

@media (max-width: 768px) {
    .schedule-filters { flex-direction: column; align-items: stretch; }
    .schedule-table th, .schedule-table td { padding: 12px 16px; font-size: 0.9rem; }
}

/* ==========================================================================
   Tournament Section & Cards
   ========================================================================== */
.tournament-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.tournament-media {
    background-color: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tournament-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.tournament-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(var(--primary-rgb), 0.95) 0%, transparent 100%);
}
.tournament-badge {
    position: absolute;
    top: 24px; right: 24px;
}
.tournament-body {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tournament-title {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.tournament-meta-list {
    margin-bottom: 32px;
}
.tournament-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.tournament-meta-item i {
    color: var(--accent);
}

@media (max-width: 992px) {
    .tournament-card { grid-template-columns: 1fr; }
    .tournament-media { height: 260px; }
    .tournament-body { padding: 32px; }
}

/* ==========================================================================
   Knowledge Hub tab widget
   ========================================================================== */
.kb-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.kb-tab-btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    white-space: nowrap;
}
.kb-tab-btn:hover, .kb-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.kb-content-panel {
    display: none;
}
.kb-content-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.kb-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.kb-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.kb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}
.kb-card-img {
    height: 180px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
}
.kb-card-body {
    padding: 24px;
}
.kb-card-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}
.kb-card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-card-link {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .kb-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .kb-article-grid { grid-template-columns: 1fr; }
}

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

/* ==========================================================================
   Achievements & Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 240px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #ffffff;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}
.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.faq-question {
    padding: 24px;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover {
    background: rgba(var(--primary-rgb), 0.02);
}
.faq-icon-arrow {
    width: 24px; height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 200px;
}
.faq-item.active .faq-icon-arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   Footer & Contact form
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 900;
}
.footer-desc {
    color: var(--text-secondary);
    max-width: 360px;
}
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-weight: 600;
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-contact-item i {
    color: var(--accent);
}

.footer-form-col {
    padding: 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}
.form-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.form-input {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-weight: 600;
}
.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.form-group.checkbox label {
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}
.social-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-form-col { padding: 24px; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* ==========================================================================
   Universal Modals
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(9, 13, 22, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease;
}
.modal.open {
    display: flex;
}
.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-close-btn {
    position: absolute;
    top: 24px; left: 24px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 10;
}
.modal-close-btn:hover {
    background: var(--glass-border);
    transform: rotate(90deg);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleInModal {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Multi-Step Registration Wizard */
.wizard-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--glass-border);
}
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
}
.wizard-progress::after {
    content: '';
    position: absolute;
    top: 15px; left: 0; right: 0;
    height: 4px;
    background: var(--bg-tertiary);
    z-index: 1;
}
.wizard-progress-bar {
    position: absolute;
    top: 15px; right: 0;
    height: 4px;
    background: var(--accent);
    width: 0%;
    z-index: 2;
    transition: var(--transition);
}
.wizard-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 700;
    font-family: var(--font-number);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    font-size: 0.9rem;
    transition: var(--transition);
}
.wizard-dot.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--accent);
}
.wizard-dot.completed {
    background: var(--accent);
    color: #0f172a;
}

.wizard-body {
    padding: 40px;
}
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.wizard-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
}

.wizard-option-card {
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}
.wizard-option-card:hover {
    border-color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.02);
}
.wizard-option-card.selected {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}
.wizard-option-indicator {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wizard-option-card.selected .wizard-option-indicator {
    border-color: var(--accent);
    background: var(--accent);
}
.wizard-option-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.wizard-option-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .wizard-header { padding: 30px 20px 10px; }
    .wizard-body { padding: 20px; }
    .wizard-footer { padding: 20px; }
    .wizard-dot { width: 28px; height: 28px; font-size: 0.8rem; }
}

/* ==========================================================================
   Dashboard Simulator UI
   ========================================================================== */
.dash-modal-container {
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}
.dash-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 100%;
}
.dash-sidebar {
    width: 250px;
    background: var(--bg-tertiary);
    border-left: 1px solid var(--glass-border);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dash-nav-btn {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.dash-nav-btn:hover, .dash-nav-btn.active {
    background: var(--primary);
    color: #ffffff;
}
.dash-role-selector {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dash-role-selector select {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
}

.dash-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.dash-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
}
.dash-stat-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.dash-stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-number);
    line-height: 1;
}

.dash-panel {
    display: none;
}
.dash-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.dash-table th {
    text-align: right;
    padding: 12px 16px;
    font-weight: 800;
    border-bottom: 2px solid var(--glass-border);
}
.dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 500;
}
.dash-table tr:last-child td { border-bottom: none; }

/* Attendance toggle styling in Coach Portal */
.attendance-toggle {
    display: flex;
    gap: 6px;
}
.attendance-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}
.attendance-btn.present.active {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}
.attendance-btn.absent.active {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}

@media (max-width: 992px) {
    .dash-layout { flex-direction: column; }
    .dash-sidebar { width: 100%; border-left: none; border-bottom: 1px solid var(--glass-border); flex-direction: row; justify-content: space-between; align-items: center; padding: 16px; }
    .dash-nav { flex-direction: row; overflow-x: auto; gap: 8px; width: 100%; }
    .dash-role-selector { display: none; }
    .dash-main { padding: 20px; }
    .dash-stats-grid { grid-template-columns: 1fr; }
}

/* Floating WhatsApp Quick Contact */
.floating-whatsapp {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 999;
    transition: var(--transition);
}
.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Dashboard Sub-panels & Billing Animations (WOW additions)
   ========================================================================== */
.player-sub-panel {
    animation: fadeIn 0.4s ease;
}

#tournament-payment-widget {
    background: var(--bg-tertiary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}
#tournament-payment-widget:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.invoice-download-btn {
    background: var(--bg-tertiary);
    color: var(--accent);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.invoice-download-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ==========================================================================
   Immersive WebGL & Holographic Interaction Styling
   ========================================================================== */

/* Neon variables for neon accents */
:root {
    --neon-gold: #fbbf24;
    --neon-blue: #3b82f6;
    --neon-pink: #ec4899;
    --neon-glow-gold: 0 0 15px rgba(251, 191, 36, 0.4);
    --neon-glow-blue: 0 0 15px rgba(59, 130, 246, 0.4);
    --neon-glow-pink: 0 0 15px rgba(236, 72, 153, 0.4);
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Canvas Container */
#hero-canvas-container {
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    z-index: 1;
    pointer-events: none;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}

/* Floating Glassmorphic Hologram Controller */
.hologram-control-panel {
    position: absolute;
    bottom: -30px;
    left: -20px;
    width: 280px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    z-index: 10;
    padding: 20px;
    border-radius: var(--radius-md);
    transform: translateY(0);
    transition: var(--transition), border-color 0.5s ease;
    direction: rtl;
    text-align: right;
}

.hologram-control-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 15px rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.hologram-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    position: relative;
}

.glow-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 3px var(--accent));
    animation: rotateSlow 8s linear infinite;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: auto; /* in RTL pulls to the left */
    box-shadow: 0 0 8px #10b981;
    animation: indicatorPulse 1.5s infinite alternate;
}

.hologram-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.hologram-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-align: right;
}

.hologram-btn i {
    width: 16px;
    text-align: center;
    font-size: 0.95rem;
}

.hologram-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.hologram-btn.active {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.hologram-btn.active::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 20px;
    margin-left: -4px;
    margin-right: -4px;
}

.hologram-smash-container {
    margin-bottom: 12px;
}

.btn-smash {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: var(--neon-glow-gold);
    color: #090d16 !important;
    font-weight: 800;
    transition: var(--transition);
}

.btn-smash:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.7);
}

.hologram-slider-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hologram-slider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.color-selectors {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.active {
    border-color: #fff;
    box-shadow: 0 0 8px currentColor;
    transform: scale(1.1);
}

/* Floating Depth-Parallax Statistics Card (The exact original card look with living 3D parallax!) */
.floating-parallax-card {
    position: absolute;
    top: 50%;
    left: 12%; /* Shifted to the far-left side of the visual area on desktop (above WhatsApp) */
    transform: translate(-50%, -50%) rotate(-6deg);
    width: 270px; /* Shrunk width for compact premium feel */
    height: 360px; /* Shrunk height for compact premium feel */
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg) !important;
    padding: 24px !important; /* Shrunk padding */
    z-index: 5;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    transition: box-shadow 0.3s ease, border-color 0.5s ease;
    animation: floatOriginalCard 6s ease-in-out infinite alternate;
}

.floating-parallax-card .hero-card-val {
    font-size: 2.8rem !important; /* Shrunk font-size for compact layout */
}

.floating-parallax-card:hover {
    border-color: rgba(var(--accent-rgb), 0.4) !important;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5), 0 0 25px rgba(var(--accent-rgb), 0.15);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.pulse-wifi {
    animation: indicatorPulse 1.8s infinite alternate;
}

/* Sci-fi animations */
@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes indicatorPulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes floatOriginalCard {
    0% { transform: translate(-50%, -50%) rotate(-5deg); }
    100% { transform: translate(-50%, -50%) rotate(-7deg) translateY(-12px); }
}

@keyframes floatOriginalCardMobile {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(-4deg) translateY(-10px); }
}

/* Screen Adapters & Mobile Resizing Responsiveness */
@media (max-width: 992px) {
    .hero-visual {
        height: 480px;
        margin-top: 20px;
    }
    #hero-canvas-container {
        width: 110%;
        height: 110%;
        top: -5%;
        left: -5%;
    }
    .floating-parallax-card {
        position: relative;
        top: auto;
        left: auto;
        transform: rotate(-3deg);
        margin: 30px auto 0;
        width: 320px;
        height: 420px;
        padding: 32px !important;
        z-index: 5;
        animation: floatOriginalCardMobile 6s ease-in-out infinite alternate;
    }
}

@media (max-width: 576px) {
    .hero-visual {
        height: 440px;
    }
    #hero-canvas-container {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    .floating-parallax-card {
        margin: 20px auto 0;
        width: 290px;
        height: 380px;
        padding: 24px !important;
    }
    .floating-parallax-card .hero-card-val {
        font-size: 2.8rem !important;
    }
}

/* Floating Cinematic Logo Overlay (CORS-immune & aligned to 3D stardust torus ring) */
#hero-logo-overlay {
    position: absolute;
    top: 55%; /* Aligns perfectly with Three.js y=0.2 (centered on desktop) */
    left: 64%; /* Aligns perfectly with Three.js x=1.2 (shifted right on desktop) */
    transform: translate(-50%, -50%) scale(0.8);
    width: 135px; /* Shrunk size to match the pulled-back Three.js scene */
    height: 135px; /* Shrunk size to match the pulled-back Three.js scene */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 4px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(251, 191, 36, 0.6), inset 0 0 15px rgba(251, 191, 36, 0.2);
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#hero-logo-overlay.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#hero-logo-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
}

@media (max-width: 992px) {
    #hero-logo-overlay {
        top: 50%;
        left: 50%;
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 576px) {
    #hero-logo-overlay {
        top: 50%;
        left: 50%;
        width: 120px;
        height: 120px;
    }
}


/* ==========================================================================
   Site lock screen (Overlay Login) Styles
   ========================================================================== */

/* חסימת התוכן של האתר כאשר הדף נעול */
html.site-locked-html body > *:not(#site-lock-overlay) {
    visibility: hidden !important;
}

html.site-locked-html body {
    overflow: hidden !important;
    background: #090d16 !important;
    height: 100vh !important;
}

html.site-locked-html #site-lock-overlay {
    display: flex !important;
}

/* שכבת הכיסוי של מסך הנעילה */
#site-lock-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: linear-gradient(135deg, #090d16 0%, #040811 100%);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    direction: rtl;
    font-family: var(--font-hebrew), sans-serif;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* אפקט פייד-אאוט בהתחברות מוצלחת */
#site-lock-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* כדורי אור מונפשים ברקע */
.lock-bg-blob {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    animation: lock-float-blob 10s infinite alternate ease-in-out;
}

.lock-blob-1 {
    background: var(--primary, #3b82f6);
    top: 15%;
    left: 15%;
}

.lock-blob-2 {
    background: var(--accent, #fbbf24);
    bottom: 15%;
    right: 15%;
    animation-delay: -5s;
}

@keyframes lock-float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* כרטיס הזכוכית (Glassmorphism) */
.lock-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 24px);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10;
    text-align: center;
    position: relative;
    animation: lock-slide-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lock-slide-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* לוגו המועדון */
.lock-logo-wrapper {
    margin-bottom: 24px;
}

.lock-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    padding: 4px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lock-card h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
}

.lock-card p {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 32px;
}

/* שדות הקלט */
.lock-input-group {
    margin-bottom: 20px;
    text-align: right;
}

.lock-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent, #fbbf24);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.lock-input-wrapper {
    position: relative;
}

.lock-input-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #64748b);
    font-size: 1rem;
    transition: var(--transition);
}

.lock-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 16px);
    color: #ffffff;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.lock-input:focus {
    border-color: var(--accent, #fbbf24);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.lock-input:focus + i {
    color: var(--accent, #fbbf24);
}

/* הודעת שגיאה */
.lock-error-msg {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--danger, #ef4444);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-sm, 8px);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: right;
    box-sizing: border-box;
}

.lock-error-msg i {
    font-size: 1rem;
}

/* כפתור כניסה */
#lock-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, var(--accent, #fbbf24) 0%, #fbbf24 100%);
    border: none;
    border-radius: var(--radius-md, 16px);
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(251, 191, 36, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

#lock-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(251, 191, 36, 0.6);
}

#lock-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* אנימציית רטט בשגיאה (Shake) */
.lock-card.shake {
    animation: lock-shake 0.4s ease-in-out;
}

@keyframes lock-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

@media (max-width: 480px) {
    .lock-card {
        padding: 36px 24px;
    }
}


/* ==========================================================================
   Advanced Operating System Modules Styles
   ========================================================================== */

/* 1. Language Selector in Header */
.lang-select-container {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 12px;
}
.lang-select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.lang-select:hover {
    border-color: var(--accent);
}

/* 2. Impact Dashboard Section */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.impact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(var(--accent-rgb), 0.3);
}
.impact-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
}
.impact-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-number);
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}
.impact-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .impact-grid { grid-template-columns: 1fr; }
}

/* 3. Sponsors Public Form */
.sponsors-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}
.sponsor-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--card-shadow);
}
.sponsor-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.sponsor-badge-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}
.sponsor-badge-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .sponsors-layout { grid-template-columns: 1fr; }
}

/* 4. Parent Action Center */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 32px;
}
.action-card {
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.action-card.completed {
    background: rgba(16, 185, 129, 0.03);
    border-color: rgba(16, 185, 129, 0.18);
}
.action-card-info {
    flex: 1;
}
.action-card-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.action-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.action-card-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

/* 5. Player Journey Visual Timeline */
.journey-timeline {
    position: relative;
    padding-right: 32px;
    margin: 24px 0;
}
.journey-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 8px;
    width: 2px;
    background: var(--glass-border);
}
.journey-node {
    position: relative;
    margin-bottom: 24px;
}
.journey-node::before {
    content: '';
    position: absolute;
    right: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    z-index: 2;
}
.journey-node.completed::before {
    background: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.journey-node.critical::before {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.journey-node-date {
    font-size: 0.8rem;
    font-family: var(--font-number);
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 4px;
}
.journey-node-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* 6. Player Pathway Star Ratings */
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.skill-rating-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: var(--radius-md);
}
.skill-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}
.skill-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.stars-display {
    display: flex;
    gap: 4px;
    color: var(--text-muted);
}
.stars-display i.active {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

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

/* 7. CSS Financial Charts */
.finance-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 180px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px 32px 12px;
    margin-bottom: 32px;
}
.finance-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}
.finance-bar {
    width: 60%;
    background: linear-gradient(to top, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.finance-bar:hover {
    background: linear-gradient(to top, var(--accent) 0%, var(--accent-light) 100%);
}
.finance-bar-val {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-family: var(--font-number);
    font-weight: 800;
    color: var(--text-primary);
}
.finance-bar-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* 8. Team Tasks and Priority Badges */
.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.task-row:hover {
    transform: translateX(-2px);
    border-color: rgba(var(--accent-rgb), 0.3);
}
.task-info-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.task-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.task-meta-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.priority-tag {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
}
.priority-high { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.priority-medium { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.priority-low { background: rgba(59, 130, 246, 0.1); color: var(--primary-light); }

/* 9. Dashboard Action Sub-Logins */
.sub-login-box {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
    box-shadow: var(--card-shadow);
}
.sub-login-box h3 {
    margin-bottom: 8px;
    font-size: 1.4rem;
    color: var(--text-primary);
}
.sub-login-box p {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 10. NPS / Feedback Widget Card */
.nps-widget {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    margin-bottom: 28px;
    text-align: center;
}
.nps-scale-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.nps-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 800;
    font-family: var(--font-number);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nps-btn:hover, .nps-btn.active {
    background: var(--accent);
    color: #0f172a;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
    border-color: var(--accent);
}

/* ==========================================================================
   Database Sync Loader Overlay
   ========================================================================== */
#db-sync-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000000; /* above everything including site-lock-overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: var(--font-hebrew), sans-serif;
    transition: opacity 0.5s ease;
    direction: rtl;
}

#db-sync-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.sync-loader-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg, 24px);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

.sync-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--accent, #fbbf24);
    border-radius: 50%;
    animation: sync-spin 1s linear infinite;
}

.sync-loader-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.sync-loader-card p {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

@keyframes sync-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




