/* ==========================================
   VENUE PLATFORM - PREMIUM DESIGN SYSTEM
   ========================================== */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors - Vibrant Purple Gradient */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-glow: 0 8px 32px rgba(102, 126, 234, 0.35);

    /* Secondary Colors */
    --secondary: #ec4899;
    --secondary-light: #f472b6;
    --accent: #14b8a6;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Neutrals - Dark Mode */
    --dark: #f8fafc;
    /* Text Main (Light) */
    --dark-light: #cbd5e1;
    /* Text Secondary */
    --gray: #94a3b8;
    /* Muted */
    --gray-light: #475569;
    /* Borders */
    --gray-lighter: #334155;
    /* Dividers */
    --white: #ffffff;
    /* Pure White (Keep for text on primary) */

    /* Component Backgrounds */
    --card-bg: #1e1e1e;
    /* Dark Grey for Cards */
    --nav-bg: rgba(20, 20, 20, 0.9);

    /* Background */
    --bg-primary: #000000;
    /* Main Black Background */
    --bg-secondary: #121212;
    /* Secondary Dark Background */
    --bg-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows - Adjusted for Dark Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* Glassmorphism */
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation Bar - Premium Style */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-lighter);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    /* Use dark text by default if there's text */
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.navbar-logo {
    height: 40px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-menu a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.navbar-menu a:hover::after {
    width: 80%;
}

/* Buttons - Multiple Variants */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Cards - Premium Design */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-top: 1px solid var(--gray-lighter);
}

/* Forms - Modern & Clean */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--card-bg);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.form-control:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
}

.form-error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20%, 10%) scale(1.1);
    }
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.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-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Alerts */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid;
    animation: slideIn var(--transition-base);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: var(--info);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn var(--transition-base);
    box-shadow: var(--shadow-2xl);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-lighter);
    border: none;
    border-radius: var(--radius-full);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray);
    color: var(--white);
    transform: rotate(90deg);
}

/* Spinner */
.spinner {
    border: 4px solid var(--gray-lighter);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp var(--transition-slow) ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {}

/* Checkout & Premium Forms */
.glass-card {
    background: var(--card-bg);
    /* Fallback */
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.checkout-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.checkout-header h2 {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--dark-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-with-icon {
    position: relative;
}

.input-with-icon-symbol {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 10;
}

.input-with-icon input {
    padding-left: 3.5rem;
}

.summary-sticky {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.step {
    width: 3rem;
    height: 0.4rem;
    border-radius: 4px;
    background: var(--gray-lighter);
    transition: all 0.4s ease;
}

.step.active {
    background: var(--primary-gradient);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

/* Cinema Poster Mood Styles */
.cinema-hero-section {
    position: relative;
    /* overflow: hidden; Removed to allow sticky elements to work if needed, or better overflow handling */
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Background Backdrop */
.cinema-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.cinema-backdrop-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.3) saturate(1.2);
    transform: scale(1.1);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.cinema-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Fixed poster width */
    gap: 3rem;
    position: relative;
    z-index: 10;
    align-items: start;
}

/* The Vertical Poster */
.cinema-poster-frame {
    width: 100%;
    aspect-ratio: 2/3;
    /* Standard movie poster ratio */
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(2deg);
    /* Subtle 3D effect */
    transition: transform 0.3s ease;
    background: #000;
}

.cinema-poster-frame:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(99, 102, 241, 0.3);
}

.cinema-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Section */
.cinema-info h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cinema-meta-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.cinema-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.cinema-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ticket Cards (retained but polished) */
.ticket-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ticket-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ticket-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: rgba(30, 30, 30, 0.9);
}

.ticket-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.ticket-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .cinema-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .cinema-poster-frame {
        width: 280px;
        margin: 0 auto;
        transform: none;
        /* Disable shift on mobile for simple view */
    }

    .cinema-info h1 {
        font-size: 2.5rem;
    }

    .flex-between.align-start {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Mobile Navigation */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 1rem 0;
        border-top: 1px solid var(--gray-lighter);
        margin-top: 1rem;
        animation: slideDown 0.3s ease-out;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .navbar-menu a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: var(--radius-md);
    }

    .navbar-menu a:hover {
        background: var(--bg-secondary);
    }
}

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

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

/* Mobile Tweaks for Event Detail */
@media (max-width: 500px) {
    .cinema-hero-section {
        padding: 1rem 0;
        /* Reduce vertical padding */
    }

    .cinema-grid {
        gap: 1.5rem;
    }

    .cinema-poster-frame {
        width: 100%;
        max-width: 250px;
        /* Smaller poster on mobile */
    }

    .cinema-info h1 {
        font-size: 2rem;
        /* Smaller title */
        word-wrap: break-word;
    }

    .ticket-card {
        padding: 1rem;
    }

    /* Stack the ticket row on very small screens */
    .ticket-card .flex-between.align-end {
        flex-direction: column;
        align-items: stretch;
        /* Full width button */
        gap: 1rem;
    }

    .ticket-card .btn {
        width: 100%;
        /* Full width buy button */
        display: block;
        margin-top: 0.5rem;
    }

    /* Adjust the quantity selector row */
    .ticket-card .flex-between.align-end>div:last-child {
        display: flex;
        width: 100%;
        gap: 0.5rem;
    }

    .ticket-card select {
        flex-grow: 1;
        /* Make select grow */
    }

    .glass-card {
        padding: 1.5rem 1rem;
        /* Reduce side padding */
    }

    /* Fix Alignment for Stats Row */
    .cinema-stats-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        justify-content: center;
        text-align: center;
        width: 100%;
        /* Ensure full width for centering */
    }

    .cinema-stat-divider {
        display: none;
        /* Hide vertical divider on mobile */
    }

    .cinema-stat-item {
        text-align: center;
        width: 100%;
        margin: 0;
        /* Override any inline margins if left */
    }
}

/* Base Styles for Cinema Stats (Desktop default) */
.cinema-stats-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cinema-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.cinema-stat-item p:last-child {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

/* Mobile Optimization Overrides */
@media (max-width: 768px) {

    /* Stack all grids */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Adjust Flex-Between Headers */
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .flex-between>div {
        width: 100%;
    }

    .flex-between .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Dashboard specific center alignment */
    .dashboard-header .flex-between {
        align-items: center;
        text-align: center;
    }

    /* Table Responsiveness */
    #eventsTable,
    #attendeesTable,
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
        display: block;
        width: 100%;
    }

    table {
        min-width: 600px;
        /* Ensure table doesn't squash */
    }

    /* Stats cards spacing */
    .card {
        margin-bottom: 1rem;
    }
}