/* ==========================================================
   CSS Variables & Reset
   ========================================================== */
:root {
    /* Colors */
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --secondary: #8B5CF6;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #0EA5E9;
    
    /* Backgrounds (Light Mode Focus) */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Borders & Shadows */
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ==========================================================
   Typography & Gradients
   ========================================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn-primary, .btn-primary-large, .btn-secondary-large, .btn-outline, .btn-outline-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}
.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-block {
    width: 100%;
}

/* ==========================================================
   Navbar
   ========================================================== */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i { color: var(--primary); }
.navbar-brand span { color: var(--primary); }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}
.nav-link:hover { color: var(--primary); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

.nav-user {
    position: relative;
}
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
}
.dropdown-menu a:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}
.text-danger { color: var(--danger) !important; }

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .navbar-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--bg-surface) 0%, var(--bg-base) 100%);
    z-index: -2;
}

.hero-shape {
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
}

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

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-fields {
    display: flex;
    flex: 1;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    border: 1px solid var(--border);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--border);
}
.search-field:last-child { border-right: none; }
.search-field i { color: var(--primary); font-size: 1.25rem; }

.search-field select, .search-field input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    color-scheme: dark;
    text-overflow: ellipsis;
}
.search-field select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.btn-search-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-search-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

@media (max-width: 992px) {
    .search-form { flex-direction: column; }
    .search-fields { flex-direction: column; width: 100%; }
    .search-field { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem; }
    .search-field:last-child { border-bottom: none; }
    .btn-search-hero { width: 100%; justify-content: center; }
    .hero-title { font-size: 3rem; }
}

/* ==========================================================
   Stats Section
   ========================================================== */
.stats-section {
    padding: 4rem 0;
    margin-top: -6rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-icon {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* ==========================================================
   Sections General
   ========================================================== */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
    display: inline-block;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* ==========================================================
   Sports Section
   ========================================================== */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sport-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: block;
}

.sport-card-bg {
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, var(--sport-color) 0%, transparent 70%);
    opacity: 0.15;
    transition: var(--transition);
    border-radius: 50%;
}

.sport-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.sport-card:hover .sport-card-bg {
    transform: scale(1.5);
    opacity: 0.25;
}

.sport-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.sport-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.sport-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.sport-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-base);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}
.sport-card:hover .sport-arrow {
    background: var(--primary);
    color: white;
}

/* ==========================================================
   Venues Cards
   ========================================================== */
.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.venue-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.venue-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.venue-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--bg-surface), var(--bg-surface-hover));
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: #475569;
    transition: var(--transition);
}
.venue-card:hover .venue-img-placeholder { transform: scale(1.05); }

.venue-rating-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #F59E0B;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex; align-items: center; gap: 0.25rem;
}
.venue-status-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--success); color: white;
}

.venue-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.venue-sports-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.sport-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.venue-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.venue-location {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex; align-items: flex-start; gap: 0.5rem;
}

.venue-info-row {
    display: flex; justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.btn-venue-detail {
    display: block; width: 100%;
    text-align: center;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}
.venue-card:hover .btn-venue-detail {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==========================================================
   How it works
   ========================================================== */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.step-number {
    position: absolute;
    top: -20px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin: 1.5rem 0;
    opacity: 0.8;
}

.step-card h3 { margin-bottom: 1rem; }
.step-card p { color: var(--text-secondary); font-size: 0.875rem; }

.step-connector {
    color: var(--border);
    font-size: 2rem;
}

@media (max-width: 992px) {
    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
}

/* ==========================================================
   CTA Section
   ========================================================== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    text-align: center;
}
.cta-bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    z-index: -1;
}
.cta-content h2 { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
.cta-content p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
    background: #0b1120;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    font-size: 1.5rem; font-weight: 800; color: white;
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem;
}
.footer-brand i, .footer-brand span { color: var(--primary); }

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links { display: flex; gap: 1rem; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

.footer-title { color: white; font-weight: 700; margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =================================================================
   Modal System — TWO patterns coexist:
   1. .modal-overlay (wrapper shown/hidden) > .modal (always visible inside)
      → used by auth-modal.php, venue.php success modal
   2. .modal (standalone — acts as its own overlay, shown/hidden directly)
      → used by my-bookings.php (review, pass, payment modals)
   ================================================================= */

/* Pattern 1 — outer overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

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

/* Inner modal card inside .modal-overlay is ALWAYS visible */
.modal-overlay > .modal {
    display: block !important;
    position: static !important;
    inset: unset !important;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: scale(0.9);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Pattern 2 — standalone modal (is its own overlay) */
.modal:not(.modal-overlay > .modal) {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease forwards;
}

/* Inner dialog card inside standalone .modal */
.modal-dialog {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
    transform: scale(0.92);
    animation: zoomIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

@keyframes zoomIn { to { transform: scale(1); } }

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.25rem; color: var(--text-muted);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--bg-surface); color: white; }

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-secondary); }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; }

.input-icon-wrapper { position: relative; }
.input-icon-wrapper i {
    position: absolute;
    left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}
.input-icon-wrapper .form-control { padding-left: 2.75rem; }
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.form-options {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; font-size: 0.875rem;
}
.forgot-pwd { color: var(--primary); font-weight: 500; }

.auth-footer {
    text-align: center; margin-top: 1.5rem; color: var(--text-secondary);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

/* Custom Checkbox */
.custom-checkbox {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
}

/* ==========================================================
   Toasts
   ========================================================== */
.toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 2000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    min-width: 300px;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 1rem;
    animation: slideInRight 0.3s ease forwards;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1.25rem; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-content { flex: 1; font-weight: 500; }

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

/* ==========================================================
   Search Page & Venue Detail (Quick styling)
   ========================================================== */
.search-page { display: flex; gap: 2rem; padding: 2rem; max-width: 1400px; margin: 0 auto; }
.filter-sidebar { width: 300px; background: var(--bg-surface); padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); height: fit-content; position: sticky; top: 100px; }
.search-main { flex: 1; }
.filter-group { margin-bottom: 1.5rem; }
.filter-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.filter-select, .filter-input { width: 100%; background: var(--bg-base); border: 1px solid var(--border); color: var(--text-primary); padding: 0.75rem; border-radius: var(--radius-md); outline: none; }
.price-range { display: flex; align-items: center; gap: 0.5rem; }
.btn-filter-apply { width: 100%; background: var(--primary); color: white; padding: 0.75rem; border-radius: var(--radius-md); font-weight: 600; margin-bottom: 1rem; }
.btn-filter-reset { display: block; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
.search-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.results-count { color: var(--text-muted); }

.venue-card-horizontal { display: flex; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; transition: var(--transition); }
.venue-card-horizontal:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.venue-card-img { width: 300px; position: relative; }
.venue-card-body { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; }
.venue-meta-row { display: flex; gap: 1.5rem; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.venue-amenities { display: flex; gap: 0.5rem; margin-top: auto; }
.amenity-tag { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-base); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.875rem; }
.venue-card-action { width: 200px; background: rgba(59, 130, 246, 0.04); border-left: 1px dashed var(--border); padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 1rem; }
.venue-price-big { font-size: 0.875rem; color: var(--text-secondary); }
.venue-price-big strong { font-size: 1.5rem; color: var(--accent); display: block; }
.btn-book-now { background: var(--primary); color: white; padding: 0.75rem; border-radius: var(--radius-md); font-weight: 600; }

.venue-hero { position: relative; height: 400px; display: flex; align-items: flex-end; padding-bottom: 3rem; }
.venue-hero-bg { position: absolute; top:0; left:0; width:100%; height:100%; z-index: -2; }
.venue-hero-placeholder { width: 100%; height: 100%; background: linear-gradient(45deg, var(--bg-base), var(--bg-surface)); display: flex; align-items: center; justify-content: center; font-size: 10rem; color: var(--border); }
.venue-hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 60%, rgba(15,23,42,0.3) 100%); z-index: -1; }
.venue-breadcrumb { margin-bottom: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.venue-breadcrumb a { color: #60a5fa; font-weight: 500; transition: var(--transition); }
.venue-breadcrumb a:hover { color: #93c5fd; }
.venue-title { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.venue-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-size: 1.125rem; color: rgba(255,255,255,0.9); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }

.venue-detail-layout { display: flex; gap: 2rem; margin-top: -2rem; position: relative; z-index: 10; padding-bottom: 5rem; }
.venue-info-col { flex: 2; }
.venue-booking-col { flex: 1; }

.detail-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 2rem; }
.detail-card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.detail-card-title i { color: var(--primary); }
.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.amenity-item { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.amenity-item i { width: 40px; height: 40px; border-radius: 50%; background: rgba(59, 130, 246, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; }

.booking-widget { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; position: sticky; top: 100px; box-shadow: var(--shadow-lg); }
.booking-widget-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--accent); }
.booking-step { margin-bottom: 1.5rem; animation: slideUp 0.3s ease; }
.booking-label { display: block; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-secondary); }

.sport-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sport-btn { padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-base); color: var(--text-primary); font-weight: 600; flex: 1; min-width: 120px; transition: var(--transition); }
.sport-btn:hover, .sport-btn.active { border-color: var(--sc, var(--primary)); background: var(--bg-surface-hover); }

.court-selector { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.court-btn { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-base); color: var(--text-primary); text-align: left; transition: var(--transition); }
.court-btn strong { display: block; font-size: 1.125rem; margin-bottom: 0.25rem; }
.court-btn span { font-size: 0.875rem; color: var(--text-muted); }
.court-btn:hover, .court-btn.active { border-color: var(--primary); background: rgba(59, 130, 246, 0.1); }

.booking-input { width: 100%; padding: 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-base); color: var(--text-primary); font-family: inherit; font-size: 1rem; outline: none; }
.booking-input:focus { border-color: var(--primary); }

.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.slot-btn { padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-base); color: var(--text-primary); text-align: center; transition: var(--transition); }
.slot-btn.past { opacity: 0.5; pointer-events: none; }
.slot-btn.booked { background: #334155; border-color: #334155; color: #94a3b8; text-decoration: line-through; cursor: not-allowed; }
.slot-btn:not(.booked):not(.past):hover { border-color: var(--primary); }
.slot-btn.selected { background: var(--primary); border-color: var(--primary); color: white; }
.slot-time { display: block; font-weight: 600; font-size: 0.875rem; }
.slot-price { display: block; font-size: 0.75rem; color: var(--accent); }
.slot-btn.selected .slot-price { color: rgba(255,255,255,0.9); }

.selected-slots-summary { margin-top: 1rem; padding: 1rem; background: rgba(16, 185, 129, 0.1); border-radius: var(--radius-md); display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(16, 185, 129, 0.2); }
#slotsPrice { color: var(--success); font-size: 1.25rem; }

.price-summary { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 1.125rem; }
.discount-row { color: var(--success); }
.final-row { font-size: 1.5rem; font-weight: 800; margin-top: 1rem; border-top: 1px dashed var(--border); padding-top: 1rem; color: var(--accent); }

.btn-book-confirm { width: 100%; background: linear-gradient(135deg, #10B981, #059669); color: white; border: none; padding: 1.25rem; border-radius: var(--radius-md); font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; transition: var(--transition); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-book-confirm:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5); }

.coupon-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.btn-apply-coupon { background: var(--bg-surface-hover); color: white; padding: 0 1rem; border-radius: var(--radius-md); font-weight: 600; white-space: nowrap; }
.btn-apply-coupon:hover { background: var(--primary); }
.coupon-info { font-size: 0.875rem; color: var(--info); }

.success-modal { text-align: center; }
.success-icon { font-size: 4rem; color: var(--success); margin-bottom: 1rem; }
.booking-code-display { font-size: 2rem; font-weight: 900; letter-spacing: 2px; color: var(--accent); background: rgba(245, 158, 11, 0.1); padding: 1rem; border-radius: var(--radius-md); margin: 1.5rem 0; border: 1px dashed var(--accent); }
.success-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

.booking-login-note { text-align: center; margin-top: 1.5rem; padding: 1rem; background: rgba(239, 68, 68, 0.1); border-radius: var(--radius-md); color: #fca5a5; }
.booking-login-note a { color: white; font-weight: 700; text-decoration: underline; }

@media (max-width: 992px) {
    .venue-detail-layout { flex-direction: column; }
    .venue-card-horizontal { flex-direction: column; }
    .venue-card-img { width: 100%; height: 200px; }
    .venue-card-action { width: 100%; border-left: none; border-top: 1px solid var(--border); flex-direction: row; justify-content: space-between; align-items: center; }
    .btn-filter-mobile { display: block; background: var(--primary); color: white; padding: 0.5rem 1rem; border-radius: var(--radius-md); }
    .filter-sidebar { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; z-index: 2000; border-radius: 0; transition: var(--transition); overflow-y: auto; }
    .filter-sidebar.open { left: 0; }
    .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
    .filter-close { display: block; font-size: 1.5rem; color: white; }
}
@media (min-width: 993px) {
    .btn-filter-mobile, .filter-close { display: none; }
}

/* Timeline Grid for Customer Booking */
.calendar-timeline-wrapper { background: var(--bg-surface); padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--border); overflow-x: auto; }
.timeline-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.timeline-cell { flex: 1 1 calc(25% - 0.5rem); min-width: 120px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.timeline-cell .time-label { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.timeline-cell .time-status { font-size: 0.75rem; }
.timeline-available { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--text-primary); }
.timeline-available:hover { background: rgba(16, 185, 129, 0.2); }
.timeline-booked { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: var(--danger); cursor: not-allowed; opacity: 0.7; }
.timeline-past { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--text-muted); cursor: not-allowed; }
.timeline-cell.selected { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2); }
.timeline-cell.selected .time-status { color: #fff; }

