/* 
  EventHub Global Style System
  Theme: Modern Red & Black (Dark-First)
  Refined & Optimized
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('./sales-report.css');

:root {
    /* Color Palette */
    --primary: #E63946;
    --primary-hover: #C12A36;
    --bg-dark: #0A0A0A;
    --bg-surface: #161616;
    --bg-card: #1E1E1E;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.85); 
    --text-dim: rgba(255, 255, 255, 0.6);   
    --border: rgba(255, 255, 255, 0.1);
    --border-red: rgba(230, 57, 70, 0.3);

    /* Layout & Spacing */
    --max-width: 1366px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   1. RESET & BASE
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* ──────────────────────────────────────────
   FLATICON UICONS FIX
   The library renders via CSS ::before pseudo-elements.
   Without inline-flex the icon's bounding box collapses
   and becomes invisible. vertical-align aligns with text.
   line-height:1 removes phantom spacing from the icon font.
────────────────────────────────────────── */
[class*="fi-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.text-gradient {
    background: linear-gradient(135deg, #FF4D4D 0%, #E63946 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text { text-shadow: 0 0 20px rgba(230, 57, 70, 0.4); }
.glow-primary { box-shadow: 0 0 20px rgba(230, 57, 70, 0.2); }

/* ==========================================
   2. LAYOUT & CONTAINERS
========================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 5rem 0; }

section.container.animate.stagger-4 {
    margin-bottom: 5rem !important; 
}

/* ==========================================
   3. NAVIGATION BAR
========================================== */
header {
    min-height: 70px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    transition: var(--transition);
    position: relative;
    overflow: visible;
}

.navbar-fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1000; /* Keeps it above all your dashboard content */
    width: 100%;
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 0.5rem 0;
    overflow: visible !important;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;

}

.nav-links .d-flex { gap: 1rem !important; }

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ==========================================
   4. USER PROFILE & DROPDOWN MENU
========================================== */
.user-menu { position: relative; }

.profile-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1); 
    border: 1px solid var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    outline: none;
}

.profile-avatar-btn:hover {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transform: translateY(-2px);
}

.dropdown-menu {
    min-width: 220px;
    display: none; 
    flex-direction: column;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 0.5rem 0;
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-header {
    padding: 1rem 1.5rem 0.8rem !important; 
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

/* Bulletproof Dropdown Link Hover */
.dropdown-menu .dropdown-item {
    padding: 0.6rem 1.5rem !important; 
    font-weight: 400 !important; 
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    text-align: left;
    width: 100%;
    display: block !important; 
    transition: all 0.3s ease !important;
}

.dropdown-menu .dropdown-item::after { display: none !important; }

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(230, 57, 70, 0.1) !important; 
    color: white !important;
    padding-left: 1.85rem !important; 
}

.dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(230, 57, 70, 0.15) !important;
    color: #ff4d4d !important;
}

/* ==========================================
   5. BUTTONS
========================================== */
.btn {
    padding: 0.6rem 1.6rem !important; 
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; 
    height: 42px;
    outline: none !important; 
}

.btn:focus { box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3) !important; }
.btn:active { transform: translateY(0); }

.btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.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-outline {
    background-color: transparent;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-google {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #ffffff;
    font-weight: 600;
}
.btn-google:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* ==========================================
   6. FORMS & INPUTS
========================================== */
.form-group { margin-bottom: 1.5rem; }

.label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    /* Include the 9999s delay here so the browser reads it BEFORE autofill fires */
    transition: var(--transition), background-color 9999s ease-in-out 0s;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.input:disabled, .input:readonly {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-dim);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.input::placeholder { color: rgba(255, 255, 255, 0.6); }

/* ── Browser Autofill Override ──────────────────────────────────────────────
   Browsers force their own background on autofilled inputs and block
   background-color overrides. Painting over it with a large inset box-shadow
   is the only reliable fix. Hardcoded hex is used because CSS variables are
   not always resolved inside webkit-specific pseudo-classes.
   The 9999s transition is on .input (base) so it's read BEFORE autofill fires. */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #161616 inset !important;
    box-shadow:         0 0 0 1000px #161616 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #161616 inset,
                        0 0 0 4px rgba(230, 57, 70, 0.1) !important;
    box-shadow:         0 0 0 1000px #161616 inset,
                        0 0 0 4px rgba(230, 57, 70, 0.1) !important;
    border-color: #E63946 !important;
}

/* Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 1.8rem !important;
    width: 100%;
}

.form-floating .input {
    height: 3.2rem !important; 
    padding: 1.2rem 1rem 0.2rem !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.03);
}

.form-floating label {
    position: absolute;
    top: 1.6rem !important; 
    left: 1.2rem;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
}

.form-floating .input:focus ~ label,
.form-floating .input:not(:placeholder-shown) ~ label {
    top: 0.8rem !important;
    font-size: 0.7rem !important;
    color: var(--primary);
    font-weight: 500;
}

/* Password Toggle */
.password-group { position: relative; display: flex; align-items: center; }
.password-group .input, .form-floating .input[type="password"] { padding-right: 3rem !important; }

.password-toggle {
    position: absolute;
    right: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
}

.form-floating .password-toggle {
    top: 1.6rem !important; 
    transform: translateY(-50%);
}

.password-toggle:hover { color: var(--primary); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }

/* Select Inputs */
select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    cursor: pointer;
}
select.input option { background: var(--bg-surface); color: white; }

/* Modern Switch */
.modern-switch { position: relative; display: inline-block; width: 36px; height: 20px; margin-right: 8px; }
.modern-switch input { opacity: 0; width: 0; height: 0; }
.modern-switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.1); transition: .4s; border-radius: 34px; }
.modern-switch .slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 50%; }
.modern-switch input:checked + .slider { background-color: var(--primary); }
.modern-switch input:checked + .slider:before { transform: translateX(16px); }

/* Form Errors */
.input-error {
    border: 1px solid #E63946 !important;
    background: rgba(230, 57, 70, 0.05) !important;
}
.input-error::placeholder { color: #E63946 !important; font-weight: 500; opacity: 1; }

.error-text {
    color: #E63946;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    animation: fadeIn 0.2s ease-out;
}
.form-floating .error-text {
    position: absolute;
    bottom: -1.4rem; /* Pushed down slightly further to clear the input border */
    left: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap; /* Keeps the text on a single, clean line */
}

/* ==========================================
   7. AUTH SPLIT SCREEN LAYOUT
========================================== */
.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-image-side {
    flex: 1;
    display: none; 
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (min-width: 992px) { .auth-image-side { display: flex; } }

.auth-image-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(230,57,70,0.4) 100%);
    display: flex; flex-direction: column; justify-content: center; padding: 4rem;
}
.auth-image-overlay p { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #050505 0%, #150f10 100%) !important;
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 380px !important; 
    padding: 0 1rem !important; 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 10;
}

.auth-form-container h2 { font-size: 1.75rem !important; }
.auth-form-container .mb-5 { margin-bottom: 2rem !important; }
.auth-form-container .btn { height: 3.2rem !important; font-size: 0.95rem !important; }

.auth-back-btn {
    position: absolute; top: 2rem; left: 2rem;
    color: var(--text-muted); font-size: 0.9rem; z-index: 20;
}
.auth-back-btn:hover { color: var(--primary); }

/* ==========================================
   8. COMPONENTS (Cards, Search, Toasts, Modals)
========================================== */
/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.glass-dark {
    background: rgba(15, 15, 15, 0.65) !important; 
    backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}
.glass-dark .d-flex { padding: 0.5rem 1rem !important; }
.glass-dark input { color: white !important; font-size: 1rem; }
.glass-dark input::placeholder { color: rgba(255, 255, 255, 0.5) !important; }

/* Cards */
.card {
    background: rgba(22, 22, 22, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(230, 57, 70, 0.4) !important;
    background: rgba(30, 30, 30, 0.6) !important;
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}
.card-img { transition: transform 0.6s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-badge {
    background: rgba(10, 10, 10, 0.6) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary) !important;
    border-radius: 8px !important;
}
.card-content { padding: 1.5rem; }
.card-title { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

/* Search Container */
.search-container {
    padding: 0.8rem 1.5rem !important; 
    min-height: 80px; 
    display: flex; align-items: center; gap: 1.5rem;
}
.search-container svg { margin-right: 1rem; opacity: 0.6; }

/* Toasts */
/* ==========================================
   UPGRADED TOAST NOTIFICATIONS (WITH TIMER)
========================================== */
#toast-container { 
    position: fixed; top: 30px; right: 30px; z-index: 100000; 
    display: flex; flex-direction: column; gap: 16px; 
}

.toast {
    min-width: 320px;
    max-width: 400px;
    
    /* 1. LOWER OPACITY: Let the background bleed through more */
    background: rgba(22, 22, 22, 0.35); 
    
    /* 2. HIGHER BLUR & SATURATION: Creates the heavy frosted effect */
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%); /* For Safari */
    
    border-radius: 12px; 
    
    /* 3. EDGE REFLECTION: Stronger top/left borders mimic light hitting glass */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    
    /* 4. INSET SHADOW: Adds depth inside the glass */
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6), /* Outer dark shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Inner light reflection */
        
    color: var(--text-main); 
    transform: translateX(120%) scale(0.9); 
    opacity: 0; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden; 
    position: relative;
}

.toast.show { transform: translateX(0) scale(1); opacity: 1; }

.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.2rem 1.25rem;
}

/* Icon Glowing Effects */
.toast-icon { display: flex; align-items: center; justify-content: center; }
.toast-success .toast-icon svg { filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.4)); }
.toast-error .toast-icon svg { filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.4)); }

.toast-message { 
    flex-grow: 1; 
    font-size: 0.95rem; 
    font-weight: 500; 
    line-height: 1.4;
    letter-spacing: 0.3px; 
}

.toast-close { 
    cursor: pointer; color: var(--text-dim); transition: var(--transition); 
    display: flex; align-items: center; 
}
.toast-close:hover { color: var(--text-main); transform: scale(1.1); }

/* --- THE TIMER PROGRESS BAR --- */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    /* The duration is injected by JS so they always match perfectly! */
    animation: toastTimer linear forwards;
}

.toast-success .toast-progress {
    background: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.toast-error .toast-progress {
    background: var(--primary); /* EventHub Red */
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.5);
}

@keyframes toastTimer {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Kills the old left-border stripe if you have it elsewhere */
.toast::before { display: none !important; }

/* Modals */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px);
    z-index: 99999 !important; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 2rem;
    opacity: 0; 
    transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-container {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    width: 100%; max-width: 500px; position: relative;
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.modal-overlay.active .modal-container { transform: scale(1); }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 2rem; }
.modal-footer { padding: 1.5rem 2rem; background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 1rem; }
.modal-close { cursor: pointer; color: var(--text-dim); transition: var(--transition); font-size: 1.2rem; }
.modal-close:hover { color: var(--primary); }

.modal-delete .modal-header { border-bottom-color: rgba(230, 57, 70, 0.2); }
.modal-delete .modal-icon { width: 60px; height: 60px; background: rgba(230, 57, 70, 0.1); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem; }
.modal-confirm .modal-icon { width: 60px; height: 60px; background: rgba(46, 204, 113, 0.1); color: #2ECC71; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.5rem; }

/* Full Screen Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(22, 22, 22, 0.9); /* Dark semi-transparent background */
    backdrop-filter: blur(12px); /* Beautiful frosted glass effect */
    z-index: 9999;
    display: flex; /* Kept as flex so we can center it */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.custom-loader-img {
    width: 180px; /* Adjust this to make your logo bigger or smaller */
    height: auto;
    
    /* The animation link */
    animation: elasticBounce 1.5s infinite ease-in-out;
}

@keyframes elasticBounce {
    0%, 100% { 
        transform: translateY(0) scaleY(1) scaleX(1); 
        filter: drop-shadow(0 15px 10px rgba(230, 57, 70, 0.2));
    }
    15% { 
        /* The Squash on impact */
        transform: translateY(15px) scaleY(0.8) scaleX(1.15); 
        filter: drop-shadow(0 5px 5px rgba(230, 57, 70, 0.6));
    }
    30% { 
        /* The Stretch on the way up */
        transform: translateY(-35px) scaleY(1.1) scaleX(0.9); 
        filter: drop-shadow(0 30px 15px rgba(230, 57, 70, 0.1));
    }
    50% { transform: translateY(0) scaleY(1) scaleX(1); } 
    65% { transform: translateY(-15px) scaleY(1.05) scaleX(0.95); } /* Mini bounce */
    80% { transform: translateY(0) scaleY(1) scaleX(1); } 
}

.loader-text {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: fadeInOut 2s infinite ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==========================================
   9. ADMIN / DASHBOARD
========================================== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 280px; background: var(--bg-surface); border-right: 1px solid var(--border);
    padding: 2rem 1rem; position: fixed; top: var(--header-height); height: calc(100vh - var(--header-height));
    display: flex; flex-direction: column;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding-right: 0.5rem; }
.sidebar a { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--radius-sm); color: var(--text-muted); margin-bottom: 0.5rem; }
.sidebar a:hover { background: rgba(230, 57, 70, 0.1); color: var(--primary); }
.sidebar a.active {
    background: rgba(230, 57, 70, 0.1); color: var(--primary);
    box-shadow: inset 4px 0 0 var(--primary); position: relative; border: none;
}
.sidebar a.active::after {
    content: ''; position: absolute; left: 0; top: 0; width: 10px; height: 100%;
    background: var(--primary); filter: blur(15px); opacity: 0.3;
}
.dashboard-main { flex: 1; margin-left: 280px; padding: 2rem; }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; }
.data-table thead th { padding: 1.25rem 1.5rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); border-bottom: 2px solid var(--border); }
.data-table tbody td { padding: 1.5rem; vertical-align: middle; border-bottom: 1px solid var(--border); color: var(--text-main); font-size: 0.95rem; }
.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.data-table .secondary { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }

.status-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }
.status-badge i { font-size: 0.5rem; }
.status-pending { background: rgba(241, 196, 15, 0.1); color: #f1c40f; border: 1px solid rgba(241, 196, 15, 0.2); }
.status-approved { background: rgba(46, 204, 113, 0.1); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.2); }
.status-rejected { background: rgba(231, 76, 60, 0.1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.2); }

/* ==========================================
   10. FOOTER & MISC
========================================== */
footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; color: var(--text-dim); font-size: 0.9rem; }

.trending-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2.5rem !important; }
.trending-header h2 { font-size: 2.2rem; font-weight: 700; }
.text-muted.view-all { font-size: 0.9rem; font-weight: 500; opacity: 0.6; }

/* Backgrounds & Animations */
.bg-mesh {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(230, 57, 70, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(230, 57, 70, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(230, 57, 70, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(230, 57, 70, 0.05) 0px, transparent 50%);
}

.floating-blob {
    position: fixed; width: 300px; height: 300px; background: var(--primary);
    filter: blur(100px); border-radius: 50%; z-index: -1; opacity: 0.15;
    pointer-events: none; animation: blobFloat 15s infinite alternate;
}

@keyframes blobFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(100px, 50px) scale(1.2); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate { animation: fadeIn 0.8s ease forwards; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Spacing & Flex Utilities */
.m-0 { margin: 0 !important; } .mt-1 { margin-top: var(--space-xs) !important; } .mt-2 { margin-top: var(--space-sm) !important; } .mt-3 { margin-top: var(--space-md) !important; } .mt-4 { margin-top: var(--space-lg) !important; } .mt-5 { margin-top: var(--space-xl) !important; }
.mb-1 { margin-bottom: var(--space-xs) !important; } .mb-2 { margin-bottom: var(--space-sm) !important; } .mb-3 { margin-bottom: var(--space-md) !important; } .mb-4 { margin-bottom: var(--space-lg) !important; } .mb-5 { margin-bottom: var(--space-xl) !important; }
.p-0 { padding: 0 !important; } .p-1 { padding: var(--space-xs) !important; } .p-2 { padding: var(--space-sm) !important; } .p-3 { padding: var(--space-md) !important; } .p-4 { padding: var(--space-lg) !important; } .p-5 { padding: var(--space-xl) !important; }
.gap-1 { gap: var(--space-xs) !important; } .gap-2 { gap: var(--space-sm) !important; } .gap-3 { gap: var(--space-md) !important; } .gap-4 { gap: var(--space-lg) !important; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.align-center { align-items: center !important; }
.text-center { text-align: center !important; }
.d-flex.justify-between.align-center { align-items: baseline !important; margin-bottom: 2rem; }

/* Google Maps Overrides */
#mapContainer { border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#locationInput { background-color: #fff; }
.pac-container { border-radius: var(--radius-md); }

/* ==========================================
   11. RESPONSIVE DESIGN
========================================== */
@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .sidebar-nav span { display: none; }
    .dashboard-main { margin-left: 80px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .container { padding: 0 1rem; }
}

/* ==========================================
   BULLETPROOF DROPDOWN OVERRIDES
========================================== */

.nav-links .dropdown-menu a.dropdown-item {
    font-weight: 400 !important; 
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.6rem 1.5rem !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    
    /* NEW: Force the hand cursor and bring to front */
    cursor: pointer !important; 
    position: relative !important;
    z-index: 50 !important;
}

.nav-links .dropdown-menu a.dropdown-item::after {
    display: none !important;
}

.nav-links .dropdown-menu a.dropdown-item:hover {
    color: #ffffff !important; 
    background-color: rgba(230, 57, 70, 0.1) !important; 
    padding-left: 1.85rem !important; 
}

.nav-links .dropdown-menu a.dropdown-item.text-danger {
    color: #ff4d4d !important;
    font-weight: 500 !important;
}

.nav-links .dropdown-menu a.dropdown-item.text-danger:hover {
    background-color: rgba(230, 57, 70, 0.15) !important;
    color: #ff4d4d !important;
}

/* ==========================================
   SEAMLESS AUTH FORM STYLING (NO CARD)
========================================== */

/* 1. Ensure the container has no background or borders */
.auth-form-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
}

/* 2. Space out the headers so they don't touch the inputs */
.auth-form-container .text-center.mb-5,
.auth-form-container .text-center.mb-4 {
    margin-bottom: 3rem !important; 
}

/* 3. Make inputs slightly darker to pop against the background */
.form-floating .input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.form-floating .input:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15) !important;
}

/* 4. FIX CHROME AUTOFILL IN DARK MODE */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #111111 inset !important; /* Matches your dark bg */
    -webkit-text-fill-color: #ffffff !important; /* Keeps text white */
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Make sure the floating label stays readable over the autofill */
.form-floating .input:-webkit-autofill ~ label {
    top: 0.8rem !important;
    font-size: 0.7rem !important;
    color: var(--primary);
    font-weight: 500;
}

/* ==========================================
   FIT-TO-SCREEN AUTH OVERRIDES (NO SCROLLING)
========================================== */

/* 1. Reduce outer padding of the right-side panel */
.auth-form-side {
    padding: 1rem 2rem !important; 
}

/* 2. Shrink the massive gap under the "Join EventHub" title */
.auth-form-container .text-center.mb-5,
.auth-form-container .text-center.mb-4 {
    margin-bottom: 1.5rem !important; /* Reduced from 3rem */
}

/* 3. Tighten the space between the input fields */
.form-floating {
    margin-bottom: 1.2rem !important; /* Reduced from 1.8rem */
}

/* 4. Adjust error text so it still fits in the smaller gaps */
.form-floating .error-text {
    position: absolute;
    bottom: -1.4rem; /* Pushed down slightly further to clear the input border */
    left: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap; /* Keeps the text on a single, clean line */
}

/* 5. Reduce the spacing around the "OR REGISTER WITH" text */
.mt-4 { margin-top: 1rem !important; }
.mb-4 { margin-bottom: 1rem !important; }

/* 6. Slightly slim down the heights of the inputs and buttons */
.form-floating .input,
.auth-form-container .btn {
    height: 3rem !important; /* Slimmed down from 3.2rem */
}

/* 7. Re-align floating label for the slimmer inputs */
.form-floating label,
.form-floating .password-toggle {
    top: 1.5rem !important; 
}

/* ==========================================
   FIX FLOATING LABEL WHITE RECTANGLE
========================================== */

/* 1. Kill the default white background block injected by Bootstrap */
.form-floating > label::after {
    background-color: transparent !important;
}

/* 2. Style the default inactive label */
.form-floating > label {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.2s ease-in-out;
}

/* 3. Add the sleek new hover/focus effect (No backgrounds, just text styling) */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .input:-webkit-autofill ~ label {
    color: #E63946 !important; /* Your EventHub Red */
    transform: scale(0.85) translateY(-0.75rem) translateX(0.5rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    background: transparent !important;
    /* Optional: Add a tiny text shadow for a subtle glow */
    text-shadow: 0 0 8px rgba(230, 57, 70, 0.4); 
}


/* ==========================================
   BULLETPROOF FLOATING LABEL ANIMATION
========================================== */

/* 1. Kill the default white background block */
.form-floating > label::after {
    display: none !important; 
}

/* 2. Default state (Inactive - sitting inside the input) */
.form-floating > label {
    color: rgba(255, 255, 255, 0.5) !important;
    padding-top: 1rem !important; 
    padding-left: 1.2rem !important;
    transition: all 0.2s ease-in-out !important;
}
/* 3. Active state (When clicked/focused, or when text is inside) */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .input:-webkit-autofill ~ label {
    /* Adjust translateY to keep it inside the rounded box */
    transform: scale(0.82) translateY(-0.6rem) translateX(0.1rem) !important; 
    color: #E63946 !important; 
    font-weight: 600;
}

/* ==========================================
   PASSWORD TOGGLE EYE ICON
========================================== */

/* ==========================================
   PASSWORD TOGGLE EYE ICON (FORCED POSITION)
========================================== */

.password-toggle {
    position: absolute !important;
    right: 15px !important;
    
    /* THE FIX: Anchor it to the bottom instead of the top */
    bottom: 12px !important; 
    top: auto !important; /* Kills any old 'top' rules */
    transform: none !important; /* Kills the old centering translation */
    
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    z-index: 10 !important;
    padding: 0 !important;
    transition: color 0.2s ease-in-out !important;
}

.password-toggle:hover {
    color: #E63946 !important; 
}

/* ==========================================
   GLOBAL INPUT STYLING (MATCHING SCREENSHOT)
========================================== */

/* 1. The main input box styling */
.form-floating .form-control,
.form-floating .input {
    background-color: #161616 !important; /* Sleek dark grey background */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; /* Subtle border */
    border-radius: 12px !important; /* The smooth rounded corners from your image */
    color: #ffffff !important;
    box-shadow: none !important;
    height: 3.5rem !important;
    /* Ensure text doesn't type over the eye icon */
    padding-right: 2.5rem !important; 
}

/* 2. The glow effect when you click inside */
.form-floating .form-control:focus,
.form-floating .input:focus {
    border-color: #E63946 !important; /* EventHub Red */
    background-color: #1a1a1a !important;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15) !important;
}

/* 3. The exact positioning and color of the "Password" placeholder text */
.form-floating > label {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 500 !important;
    padding-left: 1.2rem !important;
    /* Centers the text perfectly when inactive */
    display: flex;
    align-items: center;
    height: 100%;
    top: 0 !important;
    transform-origin: 0 0;
}

/* 4. Fix Chrome's ugly white autofill to match the dark theme perfectly */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #161616 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
}


/* ==========================================
   MASTER FLOATING LABEL FIX (RESOLVES CONFLICTS)
========================================== */

/* 1. Ensure the typed text has enough room at the bottom so it doesn't overlap the red label */
.form-floating > .form-control,
.form-floating > .input {
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1.2rem !important;
}

/* 2. Reset the label position to sit perfectly in the vertical center when empty */
.form-floating > label {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    padding: 0 0 0 1.2rem !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease-in-out !important;
    transform-origin: 0 0 !important;
    align-items: flex-start !important;
}

/* 3. Destroy Bootstrap's glitchy white border mask completely */
.form-floating > label::after {
    display: none !important;
}

/* 4. The precise active state (shrinks and snaps to the top-left inside the box) */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .input:-webkit-autofill ~ label,
.form-floating > input:-webkit-autofill ~ label {
    top: 0.6rem !important; 
    transform: translateY(0) scale(0.82) !important; 
    color: #E63946 !important; 
    font-weight: 600 !important;
}



/* ==========================================
   BOOTSTRAP TEXT COLOR OVERRIDES
========================================== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

/* Ensure standard text is always white */
p {
    color: var(--text-main);
}

/* Google Button Disabled State */
.google-btn-disabled {
    /* 1. Blur the entire button and remove the color */
    filter: blur(3px) grayscale(100%) !important;
    
    /* 2. Drop the opacity slightly so it fades back */
    opacity: 0.6;
    
    /* 3. Disable interactions */
    cursor: not-allowed !important;
    pointer-events: none;
    
    /* Smooth transition when it blurs */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-image-side {
    flex: 1;
    display: none; 
    /* The deep, smooth red-to-black gradient */
    background: radial-gradient(circle at 80% 50%, #4a0e13 0%, #150507 40%, #0a0a0a 100%) !important;
    position: relative;
}

@media (min-width: 992px) { 
    .auth-image-side { display: flex; } 
}

/* ==========================================
   SIDEBAR POLISH & OVERRIDES
========================================== */

/* 1. Hide the scrollbar but keep it scrollable */
.sidebar-nav {
    padding-right: 0 !important; /* Removes the gap left by the old scrollbar */
    margin-top: 1rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 2. Smooth Hover Animations */
.sidebar a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make inactive links slide right slightly on hover */
.sidebar a:not(.active):hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.03) !important; /* Subtle white hover */
    color: var(--text-main) !important;
}

/* 3. Refine the Logout Button area */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator line */
    padding-top: 1rem !important;
    margin-top: 1rem;
}
.sidebar-footer a:hover {
    background: rgba(230, 57, 70, 0.1) !important;
    transform: translateY(-2px) !important; /* Pops up instead of sliding right */
}

/* ==========================================
   LEAFLET DARK MODE OVERRIDES
========================================== */

/* 1. Fix the weird white grid lines between map tiles */
.leaflet-tile {
    border: none !important;
    outline: none !important;
    margin-top: -1px; /* Sometimes required to kill fractional pixel gaps */
    margin-left: -1px;
}
.leaflet-container {
    background: #0a0a0a !important; /* Matches your --bg-dark so gaps are invisible */
    outline: none !important;
}

/* 2. Style the Zoom Controls (Dark & Sleek) */
.leaflet-bar {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.leaflet-bar a {
    background-color: rgba(22, 22, 22, 0.8) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    transition: all 0.2s ease !important;
}
.leaflet-bar a:hover {
    background-color: rgba(230, 57, 70, 0.2) !important; /* EventHub Red Hover */
    color: #E63946 !important;
}
.leaflet-bar a:first-child {
    border-bottom: none !important;
}

/* 3. Style the Attribution Bar (Make it blend in) */
.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.6) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(4px);
    border-top-left-radius: 6px;
    padding: 2px 8px !important;
    font-size: 0.7rem !important;
}
.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
}
.leaflet-control-attribution a:hover {
    color: #ffffff !important;
}

/* Hide the ugly default Leaflet flag icon in attribution */
.leaflet-control-attribution svg {
    display: none !important;
}

/* ==========================================
   MODERN AI LOADER STYLES
========================================== */
.ai-spinner-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 1. The outer glowing track (Cyan to Purple gradient) */
.ai-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-top-color: #00f0ff; /* Neon Cyan */
    border-bottom-color: #b500ff; /* Neon Purple */
    animation: spin 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(181, 0, 255, 0.2);
}

/* 2. Inner dashed data ring */
.ai-inner-ring {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    animation: spin-reverse 8s linear infinite;
}

/* 3. The pulsing abstract core */
.ai-glow-core {
    position: absolute;
    width: 65%;
    height: 65%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,0.15) 0%, rgba(181,0,255,0.05) 60%, transparent 80%);
    animation: ai-pulse 2s ease-in-out infinite alternate;
    filter: blur(8px);
}

/* 4. Center Typography */
.ai-loader-text-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ai-percent {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255,255,255,0.4);
    line-height: 1;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums; /* Keeps the numbers from jumping around */
}

.ai-status {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
}

/* Animations */
@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes ai-pulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 1; }
}

.stat-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default; /* Change to pointer if you plan to make them clickable links */
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 57, 70, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(230, 57, 70, 0.1);
    /* Ensure the background stays dark and solid glass */
    background: rgba(22, 22, 22, 0.8) !important; 
}

/* Keep the banned card's red background strong on hover */
.stat-card.border-red:hover {
    background: rgba(30, 15, 15, 0.9) !important;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.action-btn.icon-only {
    padding: 0;
    width: 34px; /* Makes it a perfect square */
}

/* Suspend (Warning) Hover State */
.action-btn-suspend:hover {
    background: rgba(241, 196, 15, 0.1);
    border-color: rgba(241, 196, 15, 0.4);
    color: #f1c40f;
    transform: translateY(-2px);
}

/* Block (Danger) Hover State */
.action-btn-block:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.4);
    color: #E63946;
    transform: translateY(-2px);
}

.action-btn-unblock:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    transform: translateY(-2px);
}

.action-btn-delete:hover {
    background: rgba(230, 57, 70, 0.1);
    border-color: rgba(230, 57, 70, 0.4);
    color: #E63946;
    transform: translateY(-2px);
}

/* Update this section in style.css */
.data-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border); /* Ensures lines stay visible */
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}


/* Update for wider, cleaner select boxes */
#statusFilter, #userSort, #orgSort {
    /* 1. Increase width to prevent text cutting off */
    min-width: 180px !important; 
    
    /* 2. Increase right padding to create a 'safe zone' for the arrow */
    padding: 0 45px 0 15px !important; 
    
    /* 3. Ensure browser defaults are hidden */
    appearance: none !important;
    -webkit-appearance: none !important;
    
    /* 4. Custom arrow styling */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 15l-5-5h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 14px !important;

    /* General styling to match your dashboard */
    color: white !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 45px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
}

/* Optional: Make the Search Bar take up more space to balance the layout */
.search-wrapper {
    flex-grow: 1;
    max-width: 500px !important; /* Increased from 400px */
}

/* Ensure the dropdown list itself is readable in dark mode */
#statusFilter option, #userSort option {
    background-color: #1a1a1a !important;
    color: white !important;
    padding: 12px !important;
}

#statusFilter:hover, #userSort:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================
   FLAWLESS NOTIFICATION DROPDOWN UI & ANIMATIONS
========================================== */

/* 1. Navbar Bell Animation */
.nav-bell-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: color 0.2s ease;
}

.custom-nav-bell {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.85); /* Clean sleek white */
    transition: all 0.2s ease;
}

.nav-bell-btn:hover .custom-nav-bell {
    color: white;
    animation: ringBell 0.6s ease-in-out both;
    transform-origin: top center; 
}
@keyframes ringBell {
    0% { transform: rotate(0); }
    15% { transform: rotate(25deg); }
    30% { transform: rotate(-20deg); }
    45% { transform: rotate(15deg); }
    60% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}


#notificationDropdown {
    position: relative !important; 
}
/* 2. Dropdown Container & Toggle */
/* =========================================
   PREMIUM "ICE" GLASSMORPHISM MODAL
   ========================================= */

/* 1. Main Glass Container */
#notificationDropdown .dropdown-menu {
    /* Keep the positioning fix so it doesn't cut off! */
    top: 60px !important; 
    right: -105px !important;
    left: auto !important;
    max-width: calc(100vw - 20px) !important; 

    /* The Premium Frost Base (Lighter, more crystalline) */
    background: rgba(12, 12, 16, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    
    /* The "Apple-Style" glowing edge (Sharper and brighter) */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
    
    /* Soft but deep elevated shadow */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    
    /* Structural Styling */
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 350px !important; 
    margin-top: 15px !important; 
}

/* 2. Header Separator (Matched to the new ice theme) */
#notificationDropdown .notif-header {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 3. Notification List Items (Default / Read State) */
#notificationDropdown .notification-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease !important;
    padding: 15px 20px !important;
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    opacity: 0.65 !important; /* Dimmed for read items */
    border-left: 3px solid transparent !important;
}

/* 4. Highlight Unread Items */
#notificationDropdown .notification-item.unread {
    background: rgba(230, 57, 70, 0.05) !important; /* Subtle EventHub Red tint */
    opacity: 1 !important; /* Full brightness */
    border-left: 3px solid #E63946 !important; /* EventHub Red indicator line */
}

/* 5. Sleek Hover Effect */
#notificationDropdown .notification-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    cursor: pointer !important;
    opacity: 1 !important; /* Restore brightness on hover */
}

/* 6. Custom Sleek Scrollbar */
#notificationList::-webkit-scrollbar {
    width: 5px !important;
}
#notificationList::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
}
#notificationList::-webkit-scrollbar-track {
    background: transparent !important;
}
#notificationList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

#notificationList {
    max-height: 380px;
    overflow-y: auto;
}

/* 7. New Notification Item Layout */
#notificationDropdown .notif-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Icon Variations */
#notificationDropdown .notif-icon-wrapper.success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}
#notificationDropdown .notif-icon-wrapper.danger {
    background: rgba(230, 57, 70, 0.15);
    color: #E63946;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.2);
}
#notificationDropdown .notif-icon-wrapper.info {
    background: rgba(255, 255, 255, 0.08); /* Clean White/Grey */
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}
#notificationDropdown .notif-icon-wrapper.read {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

#notificationDropdown .notif-icon-wrapper i {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

#notificationDropdown .notif-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#notificationDropdown .notif-message {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

#notificationDropdown .notif-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Pulse Animation for Unread dot */
#notificationDot {
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

#notificationDropdown .dropdown-menu {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#notificationDropdown .dropdown-menu.show {
    display: block !important;
    opacity: 1;
}


/* ==========================================
   ORGANIZER EVENT PAGES
   (new.ejs, index.ejs, edit.ejs, view.ejs)
========================================== */

/* -- Shared glass panel -- */
.glass-panel {
    background: rgba(20,25,30,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    padding: 2rem;
}

/* -- Section label -- */
.section-title {
    font-size: 0.72rem; text-transform: uppercase;
    font-weight: 700; color: rgba(255,255,255,0.4);
    letter-spacing: 1px; margin-bottom: 1rem;
    display: flex; align-items: center; gap: 6px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.05); }

/* -- Wizard Progress Tracker -- */
.wizard-tracker { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    position: relative; 
    margin-bottom: 4rem; 
    padding: 0 1rem; 
    z-index: 10;
}

.wizard-line-container {
    position: absolute; 
    top: 50%; 
    left: 45px; 
    right: 45px; 
    transform: translateY(-50%);
    height: 6px; 
    background: rgba(255,255,255,0.06); 
    border-radius: 10px; 
    z-index: 1; 
    overflow: hidden;
}

.wizard-line { position: absolute; top: 24px; left: 40px; right: 40px; height: 2px; background: rgba(255,255,255,0.08); z-index: 1; }
.wizard-line-progress { 
    height: 100%; 
    background: linear-gradient(90deg, #E63946, #ff6b6b); 
    box-shadow: 0 0 15px rgba(230,57,70,0.6);
    width: 0%; 
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    border-radius: 10px; 
}
.wizard-step { 
        position: relative; 
        z-index: 2; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
        width: 80px; 
    }
.step-circle { 
        width: 55px !important; 
        height: 55px !important; 
        border-radius: 50%; 
        background: var(--bg-dark, #0a0a0a); /* Masks the line behind it */
        border: 2px solid rgba(255,255,255,0.15); 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-weight: 700; 
        font-size: 1.6rem !important; 
        color: rgba(255,255,255,0.4); 
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
    }
.step-label { 
        font-size: 0.75rem; 
        font-weight: 700; 
        color: rgba(255,255,255,0.4); 
        text-transform: uppercase; 
        letter-spacing: 1px; 
        text-align: center; 
        transition: all 0.3s; 
        position: absolute;
        top: 75px;
        white-space: nowrap;
    }
.wizard-step.active .step-circle { 
        border-color: var(--primary); 
        background: rgba(230,57,70,0.1); 
        color: white; 
        box-shadow: 0 0 0 8px rgba(230,57,70,0.15); 
        transform: scale(1.1);
    }
.wizard-step.active .step-label { color: white; }
.wizard-step.completed .step-circle { 
        background: #2ecc71; 
        border-color: #2ecc71; 
        color: #000; 
        transform: scale(1);
    }
.wizard-step.completed .step-label { color: #2ecc71; }
.step-container { display: none; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.step-container.active { display: block; opacity: 1; transform: translateY(0); }

/* -- Ticket variant card -- */
.ticket-variant { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.ticket-variant:hover { border-color: rgba(230,57,70,0.4); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); background: rgba(255,255,255,0.04); }
.ticket-variant-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.25rem; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.04); }
.ticket-variant-body { padding: 1.25rem; }
.remove-ticket-btn { background: transparent; color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.remove-ticket-btn:hover { background: rgba(230,57,70,0.15); color: #E63946; border-color: rgba(230,57,70,0.4); }

/* -- Banner upload slots -- */
.banner-slot { border: 2px dashed rgba(255,255,255,0.15); border-radius: 16px; background: rgba(0,0,0,0.3); cursor: pointer; transition: all 0.3s; overflow: hidden; position: relative; height: 180px; display: flex; align-items: center; justify-content: center; }
.banner-slot:hover { border-color: var(--primary); background: rgba(230,57,70,0.05); transform: translateY(-2px); }
.banner-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.banner-slot-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.banner-slot:hover .banner-slot-overlay { opacity: 1; }
#cropperModal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 99999; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
#cropperModal.active { display: flex; animation: fadeIn 0.3s; }
.cropper-modal-box { background: #121519; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 2rem; width: 90%; max-width: 800px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.field-error { color: #ff6b6b; font-size: 0.78rem; margin: 6px 0 0 4px; display: none; align-items: center; gap: 4px; }

/* -- Event index cards -- */
.summary-stat { background: rgba(20,25,35,0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; transition: transform 0.2s, border-color 0.2s; }
.summary-stat:hover { transform: translateY(-2px); border-color: rgba(230,57,70,0.3); }
.summary-stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.event-card { background: rgba(20,25,35,0.55); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.event-card:hover { transform: translateY(-4px); border-color: rgba(230,57,70,0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.event-card-thumb { width: 100%; height: 160px; object-fit: cover; display: block; }
.event-card-thumb-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(0,0,0,0.4)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.15); }
.event-card-body { padding: 1.25rem; }
.event-card-footer { padding: 0.875rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.action-icon-btn { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s; text-decoration: none; font-size: 0.85rem; }
.action-icon-btn:hover { background: rgba(230,57,70,0.12); border-color: rgba(230,57,70,0.35); color: #E63946; }
.action-icon-btn.success:hover { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.35); color: #2ecc71; }
.action-icon-btn.danger { color: #E63946; border-color: rgba(230,57,70,0.25); }
.action-icon-btn.danger:hover { background: rgba(230,57,70,0.15); border-color: rgba(230,57,70,0.5); }

/* -- View page -- */
.hero-banner { position: relative; height: 320px; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #1a1f2e, #0d1117); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-banner .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,18,0.95) 0%, rgba(10,12,18,0.3) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem 2.5rem; }
.tier-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.07); border-radius: 4px; overflow: hidden; }
.tier-progress-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.ticket-tier-row { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; transition: all 0.2s; }
.ticket-tier-row:hover { background: rgba(255,255,255,0.04); border-color: rgba(230,57,70,0.25); }
.attendee-row { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.attendee-row:last-child { border-bottom: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #E63946, #c1121f); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: white; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 1rem 1.25rem; }
.thumbnail-strip { display: flex; gap: 0.75rem; }
.thumbnail-strip img { flex: 1; height: 90px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255,255,255,0.06); transition: all 0.2s; cursor: pointer; }
.thumbnail-strip img:hover { border-color: var(--primary); transform: scale(1.03); }

/* -- Edit drop zone -- */
.drop-zone { border: 2px dashed rgba(255,255,255,0.12); border-radius: 14px; background: rgba(0,0,0,0.25); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: rgba(230,57,70,0.05); }


/* ==========================================
   ALL PAGE-SPECIFIC STYLES
   (migrated from inline style tags)
========================================== */

/* -- errors/404.ejs -- */
* { box-sizing: border-box; margin: 0; padding: 0; }

        .page-404 {
            min-height: 100vh;
            display: flex; align-items: center; justify-content: center;
            padding: 2rem;
            position: relative; overflow: hidden;
        }

        /* Animated background blobs */
        .blob {
            position: absolute; border-radius: 50%;
            filter: blur(80px); opacity: 0.12; pointer-events: none;
            animation: blobFloat 8s ease-in-out infinite;
        }
        .blob-1 { width: 500px; height: 500px; background: #e63946; top: -100px; left: -100px; }
        .blob-2 { width: 400px; height: 400px; background: #6c63ff; bottom: -80px; right: -80px; animation-delay: -4s; }

        @keyframes blobFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50%       { transform: translate(20px, -20px) scale(1.05); }
        }

        /* Card */
        .card-404 {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.09);
            border-radius: 24px;
            padding: 3.5rem 3rem;
            text-align: center;
            max-width: 500px; width: 100%;
            backdrop-filter: blur(20px);
            position: relative; z-index: 1;
            animation: fadeUp 0.5s ease both;
        }
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(30px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Giant 404 number */
        .num-404 {
            font-size: 7rem; font-weight: 900; line-height: 1;
            background: linear-gradient(135deg, #e63946 0%, #ff6b6b 60%, rgba(230,57,70,0.3) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -4px;
            margin-bottom: 0.25rem;
            animation: pulse404 3s ease-in-out infinite;
        }
        @keyframes pulse404 {
            0%, 100% { opacity: 1; }
            50%       { opacity: 0.75; }
        }

        /* Icon circle */
        .icon-wrap {
            width: 64px; height: 64px; border-radius: 50%;
            background: rgba(230,57,70,0.1);
            border: 1px solid rgba(230,57,70,0.2);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.6rem; color: #e63946;
            margin: 0 auto 1.5rem;
        }

        .title-404 {
            font-size: 1.4rem; font-weight: 700; color: #fff;
            margin-bottom: 0.75rem;
        }
        .subtitle-404 {
            font-size: 0.95rem; color: rgba(255,255,255,0.45);
            line-height: 1.6; margin-bottom: 2rem;
        }

        .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

        .btn-home {
            background: linear-gradient(135deg, #e63946, #c62d3a);
            color: #fff; border: none; border-radius: 12px;
            padding: 12px 28px; font-size: 0.92rem; font-weight: 600;
            cursor: pointer; text-decoration: none;
            display: inline-flex; align-items: center; gap: 6px;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .btn-home:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(230,57,70,0.35);
            color: #fff;
        }
        .btn-back {
            background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 12px; padding: 12px 28px;
            font-size: 0.92rem; font-weight: 500;
            cursor: pointer; text-decoration: none;
            display: inline-flex; align-items: center; gap: 6px;
            transition: all 0.2s;
        }
        .btn-back:hover {
            background: rgba(255,255,255,0.09);
            color: #fff; border-color: rgba(255,255,255,0.22);
        }

        /* Quick links */
        .quick-links {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.06);
            display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
        }
        .quick-link {
            color: rgba(255,255,255,0.35); font-size: 0.82rem;
            text-decoration: none; transition: color 0.2s;
            display: flex; align-items: center; gap: 5px;
        }
        .quick-link:hover { color: #e63946; }

        /* Logo */
        .logo-text {
            font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.6);
            margin-bottom: 2rem; letter-spacing: -0.01em;
        }
        .logo-text span { color: #e63946; }

/* -- users/dashboard.ejs -- */
/* Stat Cards */
        .stat-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px;
            padding: 1.5rem;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
        }
        .stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
        .stat-card.primary { border-color: rgba(230,57,70,0.2); }
        .stat-card.primary:hover { border-color: rgba(230,57,70,0.4); }
        .stat-icon {
            width: 44px; height: 44px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem;
        }
        .stat-icon.red { background: rgba(230,57,70,0.12); color: var(--primary); }
        .stat-icon.green { background: rgba(46,204,113,0.1); color: #2ecc71; }
        .stat-icon.blue { background: rgba(52,152,219,0.1); color: #3498db; }
        .stat-number { font-size: 2.2rem; font-weight: 800; color: white; line-height: 1; }
        .stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); font-weight: 700; }

        /* Next Ticket Card */
        .next-ticket-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-left: 4px solid var(--primary);
            border-radius: 16px;
            overflow: hidden;
            transition: box-shadow 0.2s;
        }
        .next-ticket-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.3); }
        .cat-tag {
            display: inline-block; background: rgba(230,57,70,0.12); color: var(--primary);
            border: 1px solid rgba(230,57,70,0.22); padding: 3px 10px; border-radius: 20px;
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
        }
        .meta-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
        .meta-item p:first-child { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.3); margin-bottom: 3px; }
        .meta-item p:last-child { font-size: 0.9rem; font-weight: 600; color: white; margin: 0; }

        .qr-side {
            padding: 1.5rem;
            border-left: 1px dashed rgba(255,255,255,0.08);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
        }
        .qr-img { border-radius: 10px; border: 3px solid rgba(255,255,255,0.08); }

        /* Empty State */
        .empty-next {
            background: rgba(255,255,255,0.02);
            border: 1px dashed rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 3rem 2rem;
            text-align: center;
        }
        .empty-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.6rem; color: rgba(255,255,255,0.18); }

/* -- users/wallet-failed.ejs -- */
.result-wrap {
            min-height: 100vh;
            display: flex; align-items: center; justify-content: center;
            padding: 2rem 1.5rem;
        }
        .result-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 24px;
            padding: 3rem 2.5rem;
            text-align: center;
            max-width: 460px; width: 100%;
            animation: cardIn 0.4s ease;
        }
        @keyframes cardIn {
            from { transform: translateY(24px); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }
        .failed-icon-ring {
            width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1.75rem;
            background: rgba(230,57,70,0.1);
            border: 2px solid rgba(230,57,70,0.25);
            display: flex; align-items: center; justify-content: center;
        }
        .failed-icon-ring i { font-size: 2.2rem; color: var(--primary); }
        .reason-box {
            background: rgba(230,57,70,0.06);
            border: 1px solid rgba(230,57,70,0.15);
            border-radius: 12px; padding: 1rem 1.25rem;
            margin: 1.5rem 0;
            color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.6;
        }
        .tip-box {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px; padding: 1rem 1.25rem;
            text-align: left; margin-bottom: 1.5rem;
        }
        .tip-item {
            display: flex; align-items: flex-start; gap: 8px;
            color: rgba(255,255,255,0.45); font-size: 0.82rem; margin-bottom: 6px;
        }
        .tip-item:last-child { margin-bottom: 0; }
        .tip-item i { color: rgba(255,255,255,0.25); flex-shrink: 0; margin-top: 2px; }
        .actions { display: flex; gap: 0.75rem; justify-content: center; }

/* -- users/wallet-success.ejs -- */
.result-wrap {
            min-height: 100vh;
            display: flex; align-items: center; justify-content: center;
            padding: 2rem 1.5rem;
        }
        .result-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 24px;
            padding: 3rem 2.5rem;
            text-align: center;
            max-width: 460px; width: 100%;
            animation: cardIn 0.4s ease;
        }
        @keyframes cardIn {
            from { transform: translateY(24px); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }
        .success-icon-ring {
            width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1.75rem;
            background: rgba(46,204,113,0.1);
            border: 2px solid rgba(46,204,113,0.25);
            display: flex; align-items: center; justify-content: center;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.25); }
            50%      { box-shadow: 0 0 0 14px rgba(46,204,113,0); }
        }
        .success-icon-ring i { font-size: 2.2rem; color: #2ecc71; }
        .amount-badge {
            display: inline-block;
            background: rgba(46,204,113,0.08);
            border: 1px solid rgba(46,204,113,0.2);
            color: #2ecc71; font-size: 2rem; font-weight: 800;
            padding: 0.5rem 2rem; border-radius: 50px;
            margin: 1rem 0 1.5rem;
        }
        .detail-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 0.88rem;
        }
        .detail-row:last-of-type { border-bottom: none; }
        .detail-label { color: rgba(255,255,255,0.38); }
        .detail-value { color: rgba(255,255,255,0.9); font-weight: 600; }
        .actions { display: flex; gap: 0.75rem; margin-top: 2rem; justify-content: center; }

/* -- users/wallet.ejs -- */
/* Balance Card */
        .balance-card {
            background: linear-gradient(135deg, rgba(230,57,70,0.12), rgba(100,0,20,0.04));
            border: 1px solid rgba(230,57,70,0.2); border-radius: 20px; padding: 2rem;
            position: relative; overflow: hidden;
        }
        .balance-card::before {
            content:''; position:absolute; right:-40px; top:-40px;
            width:180px; height:180px; border-radius:50%;
            background: radial-gradient(circle, rgba(230,57,70,0.12), transparent 70%);
            pointer-events: none;
        }
        .balance-amount { font-size: 2.8rem; font-weight: 800; color: white; line-height: 1; }
        /* Quick chips */
        .quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
        .amt-chip {
            padding: 6px 16px; border-radius: 50px; background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.65);
            font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
        }
        .amt-chip:hover, .amt-chip.selected { background: rgba(230,57,70,0.15); border-color: rgba(230,57,70,0.4); color: var(--primary); }
        /* Amount input */
        .amount-wrap { position: relative; flex: 1; }
        .amount-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.5); font-weight: 500; }
        .amount-wrap input { padding-left: 36px !important; height: 48px; border-radius: 12px !important; }
        /* Pay method selector */
        .pay-opt {
            flex: 1; padding: 0.85rem 1rem; border-radius: 12px;
            border: 2px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
            cursor: pointer; transition: all 0.2s; text-align: center;
        }
        .pay-opt:hover { border-color: rgba(255,255,255,0.18); }
        .pay-opt.selected { border-color: var(--primary); background: rgba(230,57,70,0.06); }
        /* Transactions */
        .txn-list { display: flex; flex-direction: column; }
        .txn-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .txn-item:last-child { border-bottom: none; }
        .txn-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
        .txn-credit { background: rgba(46,204,113,0.1); color: #2ecc71; }
        .txn-debit { background: rgba(230,57,70,0.1); color: var(--primary); }
        .txn-amount { font-weight: 700; font-size: 0.95rem; }
        .info-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 1.75rem; }

/* -- users/wishlist.ejs -- */
.wishlist-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
            cursor: pointer;
            display: flex; flex-direction: column;
        }
        .wishlist-card:hover {
            transform: translateY(-5px);
            border-color: rgba(230,57,70,0.3);
            box-shadow: 0 16px 36px rgba(0,0,0,0.3);
        }
        .wishlist-img { width:100%; height:160px; object-fit:cover; }
        .wishlist-img-ph { width:100%; height:160px; background:rgba(255,255,255,0.04); display:flex; align-items:center; justify-content:center; }
        .wishlist-body { padding: 1rem 1.2rem 1.2rem; flex:1; display:flex; flex-direction:column; }
        .cat-tag {
            display:inline-block; background:rgba(230,57,70,0.1); color:var(--primary);
            border:1px solid rgba(230,57,70,0.2); padding:2px 9px; border-radius:20px;
            font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em;
        }
        .rm-btn {
            display:inline-flex; align-items:center; justify-content:center;
            width:34px; height:34px; border-radius:50%;
            background:rgba(230,57,70,0.08); border:1px solid rgba(230,57,70,0.2);
            color:var(--primary); cursor:pointer; transition:all 0.2s; flex-shrink:0;
        }
        .rm-btn:hover { background:rgba(230,57,70,0.2); }
        .empty-box {
            background:rgba(255,255,255,0.02); border:1px dashed rgba(255,255,255,0.08);
            border-radius:16px; padding:4rem 2rem; text-align:center;
        }
        .empty-icon { width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem;font-size:1.8rem;color:rgba(255,255,255,0.2); }

/* -- users/auth/otp.ejs -- */
.otp-input {
    width: 65px;
    height: 75px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
    outline: none;
}
.otp-input:focus {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.15);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.2);
    transform: translateY(-2px);
}
.otp-input.filled {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* -- users/booking/failed.ejs -- */
.failed-wrap {
            max-width: 480px; width: 100%;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(230,57,70,0.2);
            border-radius: 20px;
            overflow: hidden;
            text-align: center;
        }
        .failed-top {
            padding: 2.5rem 2rem;
            background: linear-gradient(135deg, rgba(230,57,70,0.08), transparent);
            border-bottom: 1px solid rgba(255,255,255,0.07);
        }
        .failed-icon-ring {
            width: 80px; height: 80px; border-radius: 50%;
            background: rgba(230,57,70,0.1);
            border: 2px solid rgba(230,57,70,0.3);
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 1.25rem;
            font-size: 2.2rem; color: var(--primary);
        }
        .reason-box {
            margin: 1.5rem 2rem;
            padding: 1rem 1.25rem;
            background: rgba(230,57,70,0.06);
            border: 1px solid rgba(230,57,70,0.2);
            border-radius: 12px;
            color: rgba(255,100,100,0.9);
            font-size: 0.88rem;
            line-height: 1.6;
            text-align: left;
        }
        .action-row {
            padding: 1.5rem 2rem;
            border-top: 1px solid rgba(255,255,255,0.07);
            display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
        }

/* -- users/booking/success.ejs -- */
.success-container {
            min-height: calc(100vh - 70px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 3rem 1.5rem;
        }

        /* --- Animations --- */
        @keyframes slideUpFade {
            0% { opacity: 0; transform: translateY(40px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        @keyframes popIn {
            0% { opacity: 0; transform: scale(0.5); }
            60% { opacity: 1; transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .success-wrap {
            max-width: 680px; /* Widened for horizontal ticket */
            width: 100%;
            background: #161b21;
            background: rgba(20, 25, 30, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(46,204,113,0.25);
            border-radius: 24px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 40px rgba(46,204,113,0.05);
            overflow: hidden;
            animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* --- Header Section --- */
        .success-top {
            padding: 2.5rem 2rem 1.5rem;
            background: radial-gradient(circle at top, rgba(46,204,113,0.1) 0%, transparent 70%);
            text-align: center;
        }
        
        .success-icon-ring {
            width: 75px;
            height: 75px; 
            border-radius: 50%;
            background: rgba(46,204,113,0.15);
            border: 3px solid #2ecc71;
            box-shadow: 0 0 30px rgba(46,204,113,0.4);
            display: flex; 
            align-items: center; 
            justify-content: center;
            margin: 0 auto 1.25rem;
            font-size: 2.2rem; 
            color: #2ecc71;
            animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        /* --- Horizontal Ticket Design --- */
        .event-ticket {
            margin: 0 2rem 1.5rem;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
            display: flex;
            flex-direction: row;
        }

        /* Left Side: Event Details */
        .ticket-main {
            background: rgba(30, 35, 42, 0.95);
            padding: 1.75rem;
            border-radius: 16px 0 0 16px;
            border: 1px solid rgba(255,255,255,0.06);
            border-right: none;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Vertical Perforation Line */
        .ticket-divider {
            position: relative;
            width: 2px;
            background: rgba(30, 35, 42, 0.95);
            border-top: 1px solid rgba(255,255,255,0.06);
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        
        /* Top and Bottom Notches */
        .ticket-divider::before, .ticket-divider::after {
            content: '';
            position: absolute;
            left: -11px; /* Center 24px circle on 2px line */
            width: 24px;
            height: 24px;
            background: #161b21; /* Matches wrapper background */
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.06);
            z-index: 2;
        }
        .ticket-divider::before { 
            top: -12px; 
            border-top-color: transparent; /* Hide upper curve border */
        }
        .ticket-divider::after { 
            bottom: -12px; 
            border-bottom-color: transparent; /* Hide lower curve border */
        }
        
        /* Dashed Line */
        .dash-line-vert {
            position: absolute;
            left: 0px;
            top: 15px; 
            bottom: 15px;
            border-left: 2px dashed rgba(255,255,255,0.15);
            z-index: 1;
        }

        /* Right Side: QR & Payment */
        .ticket-stub {
            background: rgba(30, 35, 42, 0.95);
            padding: 1.5rem;
            border-radius: 0 16px 16px 0;
            border: 1px solid rgba(255,255,255,0.06);
            border-left: none;
            width: 180px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            flex-shrink: 0;
        }

        /* Ticket Typography */
        .t-label {
            color: rgba(255,255,255,0.4);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
            font-weight: 600;
        }
        .t-val {
            color: white;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        .t-val:last-child { margin-bottom: 0; }

        /* QR Code Styling */
        .qr-box {
            background: white;
            padding: 8px;
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .qr-box img {
            display: block;
            width: 90px;
            height: 90px;
        }

        /* --- Action Buttons --- */
        .action-row {
            padding: 1rem 2rem 2.5rem;
            display: flex; 
            gap: 1rem;
        }
        
        .btn-view-ticket {
            background: #2ecc71;
            color: #000;
            border: none;
            font-weight: 700;
            border-radius: 12px;
            transition: all 0.3s ease;
        }
        .btn-view-ticket:hover {
            background: #27ae60;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(46,204,113,0.25);
            color: #000;
        }

        .btn-browse {
            border-radius: 12px;
            font-weight: 600;
            border: 1px solid rgba(255,255,255,0.15);
            color: white;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        .btn-browse:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,255,255,0.3);
            transform: translateY(-2px);
        }

        /* --- Responsive: Stack on Mobile --- */
        @media (max-width: 650px) {
            .event-ticket {
                flex-direction: column;
            }
            .ticket-main {
                border-radius: 16px 16px 0 0;
                border-right: 1px solid rgba(255,255,255,0.06);
                border-bottom: none;
            }
            .ticket-divider {
                width: 100%;
                height: 2px;
                border-top: none;
                border-bottom: none;
                border-left: 1px solid rgba(255,255,255,0.06);
                border-right: 1px solid rgba(255,255,255,0.06);
            }
            .ticket-divider::before { 
                top: -11px; left: -12px; 
                border-top-color: rgba(255,255,255,0.06); 
                border-right-color: transparent; 
                border-bottom-color: transparent;
                transform: rotate(-45deg);
            }
            .ticket-divider::after { 
                bottom: auto; top: -11px; right: -12px; left: auto;
                border-bottom-color: rgba(255,255,255,0.06); 
                border-left-color: transparent; 
                border-bottom-color: transparent;
                transform: rotate(45deg);
            }
            .dash-line-vert {
                left: 15px; right: 15px; top: 0; bottom: auto;
                border-left: none;
                border-top: 2px dashed rgba(255,255,255,0.15);
            }
            .ticket-stub {
                width: 100%;
                border-radius: 0 0 16px 16px;
                border-left: 1px solid rgba(255,255,255,0.06);
                border-top: none;
                flex-direction: row;
                text-align: left;
                gap: 1.5rem;
                justify-content: flex-start;
            }
            .qr-box { margin-bottom: 0; }
            .action-row { flex-direction: column; }
            .btn-browse { width: 100%; }
        }

/* -- users/events/browse.ejs -- */
.browse-page { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Hero Ã¢â€â‚¬Ã¢â€â‚¬ */
        .browse-hero {
            background: linear-gradient(135deg, rgba(230,57,70,0.1) 0%, rgba(0,0,0,0) 60%);
            border: 1px solid rgba(230,57,70,0.15);
            border-radius: 20px;
            padding: 2.5rem 3rem;
            margin-bottom: 2rem;
        }
        .hero-search-wrap { position: relative; max-width: 540px; }
        .hero-search-wrap i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: rgba(255,255,255,0.4); }
        .hero-search-wrap input {
            padding-left: 50px !important; height: 52px; font-size: 1rem;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
            border-radius: 12px;
        }
        .hero-search-wrap input:focus {
            border-color: var(--primary); background: rgba(255,255,255,0.08);
            box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Filters Ã¢â€â‚¬Ã¢â€â‚¬ */
        .filter-toolbar {
            display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 14px;
            padding: 10px 16px;
            margin-bottom: 1.75rem;
        }
        .filter-select {
            height: 38px;
            padding: 0 14px;
            width: auto !important;
            border-radius: 8px !important;
            background: rgba(255,255,255,0.06) !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
            color: rgba(255,255,255,0.8) !important;
            font-size: 0.84rem;
            cursor: pointer;
            min-width: 160px;
            max-width: 200px;
        }
        .filter-select:focus {
            border-color: rgba(230,57,70,0.5) !important;
            outline: none;
            box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
        }
        .filter-select option {
            background-color: #1a1a2e; /* dark theme background */
            color: white;
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Event Grid Ã¢â€â‚¬Ã¢â€â‚¬ */
        .event-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1.5rem;
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Event Card Ã¢â€â‚¬Ã¢â€â‚¬ */
        .event-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px; overflow: hidden;
            transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
            cursor: pointer; display: flex; flex-direction: column;
        }
        .event-card:hover {
            transform: translateY(-6px);
            border-color: rgba(230,57,70,0.35);
            box-shadow: 0 20px 40px rgba(0,0,0,0.35);
        }
        .event-card-img { width: 100%; height: 190px; object-fit: cover; display: block; }
        .event-card-img-ph {
            width: 100%; height: 190px; background: rgba(255,255,255,0.04);
            display: flex; align-items: center; justify-content: center;
        }
        .event-card-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
        .event-cat-tag {
            display: inline-block; background: rgba(230,57,70,0.12); color: var(--primary);
            border: 1px solid rgba(230,57,70,0.25); padding: 2px 10px; border-radius: 20px;
            font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
        }
        .event-price-badge {
            background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85);
            border: 1px solid rgba(255,255,255,0.1); padding: 4px 12px;
            border-radius: 20px; font-size: 0.8rem; font-weight: 700;
        }
        .soldout-badge {
            position: absolute; top: 12px; right: 12px; z-index: 2;
            background: rgba(230,57,70,0.9); color: white;
            padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
        }
        .featured-badge {
            position: absolute; top: 12px; left: 12px; z-index: 2;
            background: rgba(255,193,7,0.9); color: #1a1a1a;
            padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
        }
        .event-meta-row { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.42); font-size: 0.79rem; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Wishlist Heart Button Ã¢â€â‚¬Ã¢â€â‚¬ */
        .wish-btn {
            position: absolute; top: 10px; right: 10px; z-index: 3;
            width: 34px; height: 34px; border-radius: 50%;
            background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
            border: 1px solid rgba(255,255,255,0.12);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: transform 0.2s, background 0.2s;
            color: rgba(255,255,255,0.5);
        }
        .wish-btn:hover { background: rgba(230,57,70,0.25); transform: scale(1.12); }
        .wish-btn.wishlisted { color: #e63946; border-color: rgba(230,57,70,0.4); background: rgba(230,57,70,0.15); }
        .wish-btn i { font-size: 0.9rem; line-height: 1; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Empty State Ã¢â€â‚¬Ã¢â€â‚¬ */
        .empty-state { text-align: center; padding: 5rem 2rem; background: rgba(255,255,255,0.02); border: 1px dashed rgba(255,255,255,0.08); border-radius: 16px; }
        .empty-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: rgba(255,255,255,0.18); }

/* -- users/events/buy-tickets.ejs -- */
.buy-container { 
            max-width: 750px; 
            margin: 0 auto; 
            padding: 3rem 1.5rem; 
            padding-bottom: 140px; 
        }

        /* --- Animations --- */
        @keyframes slideUpFade {
            0% { opacity: 0; transform: translateY(30px); }
            100% { opacity: 1; transform: translateY(0); }
        }
        .animate-ticket {
            opacity: 0;
            animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* --- Event Header --- */
        .event-header {
            background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
            border: 1px solid rgba(255,255,255,0.05);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2.5rem;
            position: relative;
            overflow: hidden;
        }
        .event-header::before {
            content: '';
            position: absolute;
            top: -50px; right: -50px;
            width: 150px; height: 150px;
            background: var(--primary);
            filter: blur(80px);
            opacity: 0.15;
            border-radius: 50%;
        }

        /* --- Ticket Cards --- */
        .ticket-card {
            background: rgba(25, 25, 35, 0.6);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 20px; 
            padding: 1.5rem 2rem; 
            margin-bottom: 1.25rem;
            display: flex; 
            justify-content: space-between; 
            align-items: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        .ticket-card::after {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 4px;
            background: var(--primary);
            transform: scaleY(0);
            transition: transform 0.3s ease;
            transform-origin: bottom;
        }
        .ticket-card:hover { 
            border-color: rgba(230,57,70,0.4); 
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 20px rgba(230,57,70,0.05);
            background: rgba(30, 30, 42, 0.8);
        }
        .ticket-card:hover::after {
            transform: scaleY(1);
        }
        .ticket-card.sold-out { 
            opacity: 0.6; 
            pointer-events: none; 
            filter: grayscale(100%);
        }
        .ticket-card.sold-out:hover {
            transform: none;
            box-shadow: none;
        }
        
        /* --- Pill Quantity Controls --- */
        .qty-controls {
            display: flex; 
            align-items: center; 
            background: rgba(0,0,0,0.4); 
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 50px;
            padding: 4px;
            box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
        }
        .qty-btn {
            width: 36px; 
            height: 36px; 
            border-radius: 50%;
            background: transparent; 
            border: none; 
            color: rgba(255,255,255,0.7);
            display: flex; 
            align-items: center; 
            justify-content: center;
            cursor: pointer; 
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 1.2rem;
        }
        .qty-btn:hover { 
            background: rgba(255,255,255,0.1); 
            color: white;
        }
        .qty-btn:active {
            transform: scale(0.85);
        }
        .qty-display { 
            font-weight: 700; 
            width: 32px; 
            text-align: center; 
            color: white;
            font-size: 1.1rem;
        }
        
        /* --- Glassmorphism Sticky Footer --- */
        .sticky-footer {
            position: fixed; 
            bottom: 0; left: 0; right: 0;
            background: rgba(15, 15, 20, 0.85); 
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255,255,255,0.08);
            padding: 1.5rem 2rem; 
            display: flex; 
            justify-content: center;
            transform: translateY(100%); 
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            z-index: 1000;
            box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
        }
        .sticky-footer.show { 
            transform: translateY(0); 
        }
        .footer-content { 
            max-width: 750px; 
            width: 100%; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
        }
        
        .checkout-btn {
            border-radius: 14px;
            font-weight: 700;
            padding: 0.8rem 1.8rem;
            letter-spacing: 0.5px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(230,57,70,0.3);
        }
        .checkout-btn:active {
            transform: translateY(1px);
        }

        /* Badges */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 30px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        .badge-available { background: rgba(46,204,113,0.1); color: #2ecc71; border: 1px solid rgba(46,204,113,0.2); }
        .badge-soldout { background: rgba(230,57,70,0.1); color: #E63946; border: 1px solid rgba(230,57,70,0.2); }

/* -- users/events/checkout.ejs -- */
body { background: #0a0a10; }
        .checkout-wrap { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Progress Steps Ã¢â€â‚¬Ã¢â€â‚¬ */
        .steps-bar { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2.5rem; }
        .step { display: flex; align-items: center; gap: 8px; }
        .step-circle {
            width: 30px; height: 30px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.78rem; font-weight: 700;
        }
        .step-circle.done { background: rgba(46,204,113,0.2); border: 2px solid #2ecc71; color: #2ecc71; }
        .step-circle.active { background: var(--primary); border: 2px solid var(--primary); color: white; }
        .step-circle.pending { background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.25); }
        .step-label { font-size: 0.8rem; }
        .step-label.active { color: white; font-weight: 600; }
        .step-label.done { color: #2ecc71; }
        .step-label.pending { color: rgba(255,255,255,0.25); }
        .step-line { width: 60px; height: 1px; background: rgba(255,255,255,0.08); margin: 0 4px; }
        .step-line.done { background: rgba(46,204,113,0.3); }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Layout Ã¢â€â‚¬Ã¢â€â‚¬ */
        .checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 1.5rem; }
        @media (max-width: 768px) { .checkout-grid { grid-template-columns: 1fr; } }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Cards Ã¢â€â‚¬Ã¢â€â‚¬ */
        .co-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px; overflow: hidden; margin-bottom: 1.25rem;
        }
        .co-card-header {
            padding: 1rem 1.5rem;
            background: rgba(255,255,255,0.02);
            border-bottom: 1px solid rgba(255,255,255,0.06);
            font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
            color: rgba(255,255,255,0.35); font-weight: 700;
        }
        .co-card-body { padding: 1.25rem 1.5rem; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Event Summary Ã¢â€â‚¬Ã¢â€â‚¬ */
        .event-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
        .detail-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .detail-row:last-child { border-bottom: none; }
        .detail-key { color: rgba(255,255,255,0.38); font-size: 0.85rem; }
        .detail-val { color: rgba(255,255,255,0.88); font-size: 0.88rem; font-weight: 600; }
        .total-highlight {
            display: flex; justify-content: space-between; align-items: center;
            padding: 1rem 1.5rem;
            background: rgba(230,57,70,0.06);
            border-top: 1px solid rgba(230,57,70,0.12);
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Payment Methods Ã¢â€â‚¬Ã¢â€â‚¬ */
        .pay-method-card {
            padding: 1rem 1.25rem;
            border: 2px solid rgba(255,255,255,0.07);
            border-radius: 12px; cursor: pointer;
            transition: border-color 0.2s, background 0.2s;
            margin-bottom: 0.75rem; position: relative;
        }
        .pay-method-card:hover { border-color: rgba(230,57,70,0.3); background: rgba(230,57,70,0.03); }
        .pay-method-card.selected { border-color: var(--primary); background: rgba(230,57,70,0.06); }
        .pay-method-card.disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
        .pay-icon {
            width: 42px; height: 42px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.1rem; flex-shrink: 0;
        }
        .pay-icon.wallet-icon { background: rgba(230,57,70,0.12); color: var(--primary); }
        .pay-icon.rzp-icon { background: rgba(90,120,255,0.12); color: #5a78ff; }
        .selected-dot {
            width: 20px; height: 20px; border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.15);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; transition: all 0.2s;
        }
        .pay-method-card.selected .selected-dot { border-color: var(--primary); background: var(--primary); }
        .selected-dot::after {
            content: ''; width: 8px; height: 8px; border-radius: 50%;
            background: white; opacity: 0; transition: opacity 0.2s;
        }
        .pay-method-card.selected .selected-dot::after { opacity: 1; }

        /* Insufficient warning */
        .warn-box {
            background: rgba(230,57,70,0.07); border: 1px solid rgba(230,57,70,0.2);
            border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.82rem; color: #ff7070;
            margin-top: 0.6rem;
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Razorpay badge Ã¢â€â‚¬Ã¢â€â‚¬ */
        .rzp-methods { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
        .rzp-chip {
            padding: 3px 10px; border-radius: 20px;
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
            font-size: 0.7rem; color: rgba(255,255,255,0.4);
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Sticky confirm panel Ã¢â€â‚¬Ã¢â€â‚¬ */
        .confirm-panel { position: sticky; top: 1.5rem; }
        .confirm-btn {
            width: 100%; height: 3.2rem;
            border-radius: 12px; font-size: 1rem; font-weight: 700;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            transition: all 0.2s;
        }
        .confirm-btn:disabled { opacity: 0.45; cursor: not-allowed; }
        .secure-note { text-align: center; font-size: 0.76rem; color: rgba(255,255,255,0.25); margin-top: 0.75rem; }

/* -- users/events/detail.ejs -- */
/*  Full-width hero banner  */
        .event-hero {
            position: relative;
            width: 100%;
            height: 420px;
            overflow: hidden;
            background: #111;
        }
        .event-hero-img {
            width: 100%; height: 100%;
            object-fit: cover;
            filter: brightness(0.55);
            transition: transform 6s ease;
        }
        .event-hero:hover .event-hero-img { transform: scale(1.03); }
        .event-hero-placeholder {
            width: 100%; height: 100%;
            background: linear-gradient(135deg, #1a0a0e, #0d0d1a);
            display: flex; align-items: center; justify-content: center;
        }
        .event-hero-overlay {
            position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(8,8,12,0.95) 0%, rgba(8,8,12,0.3) 50%, transparent 100%);
        }
        .event-hero-content {
            position: absolute; bottom: 0; left: 0; right: 0;
            padding: 2rem calc(50% - 600px + 1.5rem);
        }
        @media (max-width: 1240px) { .event-hero-content { padding: 2rem 1.5rem; } }

        .event-category-pill {
            display: inline-flex; align-items: center; gap: 5px;
            background: rgba(230,57,70,0.2); border: 1px solid rgba(230,57,70,0.4);
            color: #ff6b6b; padding: 4px 14px; border-radius: 20px;
            font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
            margin-bottom: 0.75rem; backdrop-filter: blur(4px);
        }
        .event-hero-title {
            font-size: clamp(1.6rem, 3.5vw, 2.4rem);
            font-weight: 800; color: white; line-height: 1.15;
            text-shadow: 0 2px 20px rgba(0,0,0,0.5);
            margin-bottom: 0.5rem;
        }
        .event-hero-organizer {
            color: rgba(255,255,255,0.6); font-size: 0.9rem;
        }

        /* Banner thumbnails strip */
        .banner-thumbs-bar {
            max-width: 1200px; margin: 0 auto;
            padding: 10px 1.5rem 0;
            display: flex; gap: 8px;
        }
        .banner-thumb {
            width: 72px; height: 46px; object-fit: cover; border-radius: 8px;
            cursor: pointer; border: 2px solid transparent;
            transition: border-color 0.2s, opacity 0.2s; opacity: 0.6;
        }
        .banner-thumb.active, .banner-thumb:hover { border-color: var(--primary); opacity: 1; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Page container Ã¢â€â‚¬Ã¢â€â‚¬ */
        .detail-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Quick stats bar Ã¢â€â‚¬Ã¢â€â‚¬ */
        .quick-stats {
            display: flex; gap: 0; flex-wrap: wrap;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px; overflow: hidden;
            margin-bottom: 1.5rem;
        }
        .stat-item {
            flex: 1; min-width: 180px;
            padding: 1rem 1.25rem;
            border-right: 1px solid rgba(255,255,255,0.07);
            display: flex; align-items: center; gap: 12px;
        }
        .stat-item:last-child { border-right: none; }
        .stat-icon {
            width: 38px; height: 38px; border-radius: 10px;
            background: rgba(230,57,70,0.1);
            display: flex; align-items: center; justify-content: center;
            color: var(--primary); font-size: 1rem; flex-shrink: 0;
        }
        .stat-label { color: rgba(255,255,255,0.38); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
        .stat-value { color: white; font-size: 0.88rem; font-weight: 600; margin-top: 1px; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Info card Ã¢â€â‚¬Ã¢â€â‚¬ */
        .info-card {
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px; padding: 1.75rem; margin-bottom: 1.25rem;
        }
        .section-label {
            font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
            color: rgba(255,255,255,0.3); font-weight: 700; margin-bottom: 1rem;
        }
        #eventMap { height: 260px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.07); }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Ticket Panel Ã¢â€â‚¬Ã¢â€â‚¬ */
        .ticket-panel {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 16px; padding: 1.5rem;
            position: sticky; top: 1.5rem;
        }
        .ticket-tier {
            padding: 1rem 1.1rem;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 12px;
            transition: border-color 0.2s, background 0.2s;
            margin-bottom: 0.75rem;
        }
        .ticket-tier:last-child { margin-bottom: 0; }
        .ticket-tier:hover { border-color: rgba(230,57,70,0.3); background: rgba(230,57,70,0.03); }
        .ticket-tier.sold-out { opacity: 0.4; pointer-events: none; }
        .avail-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Wishlist btn Ã¢â€â‚¬Ã¢â€â‚¬ */
        .wishlist-btn {
            display: inline-flex; align-items: center; gap: 7px;
            padding: 7px 16px; border-radius: 50px;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.5); font-size: 0.84rem; font-weight: 500;
            cursor: pointer; transition: all 0.2s; white-space: nowrap;
        }
        .wishlist-btn:hover, .wishlist-btn.wishlisted {
            border-color: rgba(230,57,70,0.45); background: rgba(230,57,70,0.1); color: var(--primary);
        }

        /* Ã¢â€â‚¬Ã¢â€â‚¬ Booking Modal Ã¢â€â‚¬Ã¢â€â‚¬ */
        .booking-overlay {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
            z-index: 9999; align-items: center; justify-content: center;
        }
        .booking-overlay.open { display: flex; }
        .booking-modal-box {
            background: #16161e; border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px; padding: 2rem; width: 92%; max-width: 420px;
            animation: modalIn 0.25s ease;
        }
        @keyframes modalIn { from { transform: translateY(24px) scale(0.97); opacity:0; } to { transform: translateY(0) scale(1); opacity:1; } }
        .close-modal-btn {
            width: 34px; height: 34px; border-radius: 50%;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer;
            display: flex; align-items: center; justify-content: center; transition: all 0.15s;
        }
        .close-modal-btn:hover { background: rgba(230,57,70,0.15); color: var(--primary); }
        .qty-row {
            display: flex; align-items: center; justify-content: space-between;
            background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
            border-radius: 12px; padding: 0.6rem 1rem; margin-bottom: 1.25rem;
        }
        .qty-btn {
            width: 34px; height: 34px; border-radius: 50%;
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
            color: white; font-size: 1.25rem; display: flex; align-items: center;
            justify-content: center; cursor: pointer; transition: all 0.15s; user-select: none;
        }
        .qty-btn:hover { background: var(--primary); border-color: var(--primary); }
        .qty-display { font-size: 1.5rem; font-weight: 800; color: white; min-width: 2.5rem; text-align: center; }
        .modal-total {
            display: flex; justify-content: space-between; align-items: center;
            background: rgba(230,57,70,0.07); border: 1px solid rgba(230,57,70,0.18);
            border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.25rem;
        }

/* -- users/tickets/detail.ejs -- */
.ticket-page-wrap {
            max-width: 780px; margin: 0 auto;
        }
        .ticket-body-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-left: 5px solid var(--primary);
            border-radius: 20px;
            overflow: hidden;
        }
        .ticket-body-card.past-event { border-left-color: rgba(255,255,255,0.2); }
        .ticket-detail-left { padding: 2rem; }
        .ticket-detail-right {
            padding: 2rem 1.5rem;
            border-left: 2px dashed rgba(255,255,255,0.08);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-width: 200px;
        }
        .info-line {
            display: flex; justify-content: space-between; align-items: flex-start;
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            gap: 1rem;
        }
        .info-line:last-child { border-bottom: none; }
        .info-key { color: rgba(255,255,255,0.38); font-size: 0.82rem; flex-shrink: 0; }
        .info-val { color: rgba(255,255,255,0.88); font-size: 0.88rem; font-weight: 600; text-align: right; }
        .ticket-tag {
            display: inline-block;
            background: rgba(230,57,70,0.12);
            color: var(--primary); border: 1px solid rgba(230,57,70,0.2);
            padding: 3px 10px; border-radius: 20px;
            font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
        }
        .qr-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 16px;
            padding: 1.25rem;
            text-align: center; margin-bottom: 1rem;
        }
        .qr-card img { border-radius: 10px; border: 3px solid rgba(255,255,255,0.08); }
        .booking-id-chip {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            padding: 0.5rem 0.75rem;
            font-family: monospace;
            font-size: 0.7rem;
            color: rgba(255,255,255,0.35);
            word-break: break-all;
            text-align: center;
        }

/* -- users/tickets/index.ejs -- */
/* Filter Tabs */
        .filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
        .filter-tab {
            padding: 7px 20px; border-radius: 50px;
            font-size: 0.85rem; font-weight: 500;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.03);
            color: rgba(255,255,255,0.5);
            cursor: pointer; text-decoration: none; transition: all 0.2s;
        }
        .filter-tab:hover { color: white; border-color: rgba(255,255,255,0.2); }
        .filter-tab.active {
            background: rgba(230,57,70,0.15);
            border-color: rgba(230,57,70,0.4);
            color: var(--primary);
        }

        /* Ticket Card */
        .ticket-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.07);
            border-left: 4px solid var(--primary);
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .ticket-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.25);
        }
        .ticket-card.past { border-left-color: rgba(255,255,255,0.2); opacity: 0.75; }
        .ticket-card.past:hover { opacity: 1; }
        .ticket-card.cancelled-card { border-left-color: rgba(255,100,100,0.35); opacity: 0.7; }
        .ticket-card.cancelled-card:hover { opacity: 0.85; }

        .ticket-card-left { padding: 1.5rem 1.75rem; }
        .ticket-card-right {
            padding: 1.5rem;
            border-left: 1px dashed rgba(255,255,255,0.08);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-width: 160px; gap: 8px;
        }
        .ticket-tag {
            display: inline-block;
            background: rgba(230,57,70,0.12);
            color: var(--primary); border: 1px solid rgba(230,57,70,0.2);
            padding: 3px 10px; border-radius: 20px;
            font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
        }
        .ticket-meta { display: flex; gap: 20px; flex-wrap: wrap; }
        .ticket-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }
        .qr-img { border-radius: 8px; border: 2px solid rgba(255,255,255,0.08); }

        /* Cancel Button */
        .btn-cancel {
            background: rgba(230,57,70,0.08);
            border: 1px solid rgba(230,57,70,0.25);
            color: var(--primary);
            border-radius: 10px; padding: 7px 16px;
            font-size: 0.82rem; font-weight: 600;
            cursor: pointer; transition: all 0.2s;
            white-space: nowrap; width: 100%;
        }
        .btn-cancel:hover { background: rgba(230,57,70,0.18); border-color: rgba(230,57,70,0.5); }

        /* Cancelled badge */
        .badge-cancelled {
            background: rgba(230,57,70,0.1);
            border: 1px solid rgba(230,57,70,0.25);
            color: var(--primary); padding: 2px 10px;
            border-radius: 20px; font-size: 0.7rem; font-weight: 700;
        }

        /* Empty State */
        .empty-box {
            background: rgba(255,255,255,0.02);
            border: 1px dashed rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 4rem 2rem; text-align: center;
        }
        .empty-icon { width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem;font-size:1.8rem;color:rgba(255,255,255,0.2); }


/* ==========================================
   GLOBAL ANIMATION SYSTEM v2
   Premium micro-interactions & motion design
========================================== */

/* â”€â”€ Extended stagger delays â”€â”€ */
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }
.stagger-7 { animation-delay: 0.7s; }
.stagger-8 { animation-delay: 0.8s; }


/* â”€â”€ New keyframes â”€â”€ */
@keyframes slideInLeft  { from { opacity:0; transform: translateX(-40px); } to { opacity:1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform: translateX(40px);  } to { opacity:1; transform: translateX(0); } }
@keyframes slideInUp    { from { opacity:0; transform: translateY(30px);  } to { opacity:1; transform: translateY(0); } }
@keyframes scaleIn      { from { opacity:0; transform: scale(0.88);       } to { opacity:1; transform: scale(1);    } }
@keyframes scaleInBounce{ from { opacity:0; transform: scale(0.75);       } to { opacity:1; transform: scale(1) cubic-bezier(0.34,1.56,0.64,1); } }
@keyframes blurIn       { from { opacity:0; filter: blur(12px);           } to { opacity:1; filter: blur(0);       } }
@keyframes shimmer      { 0%   { background-position: -700px 0; }   100% { background-position: 700px 0; } }
@keyframes pulse-glow   { 0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); } 50% { box-shadow: 0 0 0 10px rgba(230,57,70,0); } }
@keyframes float-y      { 0%,100% { transform: translateY(0);    } 50% { transform: translateY(-8px); } }
@keyframes ripple-out   { from { transform: scale(0); opacity: 0.5; } to { transform: scale(2.5); opacity: 0; } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes borderGlow   { 0%,100% { border-color: rgba(230,57,70,0.2); box-shadow: none; } 50% { border-color: rgba(230,57,70,0.6); box-shadow: 0 0 20px rgba(230,57,70,0.15); } }
@keyframes tickIn       { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes fadeSlideIn  { from { opacity:0; transform: translateY(16px) scale(0.97); } to { opacity:1; transform: translateY(0) scale(1); } }

/* â”€â”€ Animation utility classes â”€â”€ */
.anim-slide-left   { animation: slideInLeft   0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-slide-right  { animation: slideInRight  0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-slide-up     { animation: slideInUp     0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
.anim-scale        { animation: scaleIn       0.45s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.anim-blur         { animation: blurIn        0.6s ease forwards; }
.anim-float        { animation: float-y       3s ease-in-out infinite; }
.anim-pulse-glow   { animation: pulse-glow    2s ease-in-out infinite; }
.anim-gradient     { background-size: 200% 200%; animation: gradientShift 4s ease infinite; }

/* â”€â”€ Scroll-reveal system â”€â”€ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.revealed     { opacity: 1; transform: none; }

/* Staggered reveal for siblings */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* â”€â”€ Ripple effect â”€â”€ */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    pointer-events: none;
    animation: ripple-out 0.6s ease-out forwards;
    transform-origin: center;
}

/* â”€â”€ Skeleton / shimmer loader â”€â”€ */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 700px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 8px;
}
.skeleton-text  { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; margin-bottom: 12px; width: 60%; }
.skeleton-card  { height: 180px; border-radius: 16px; }
.skeleton-avatar{ width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }

/* â”€â”€ Enhanced card hover animations â”€â”€ */
.card, .event-card, .glass-panel, .stat-card {
    will-change: transform;
}
.event-card:hover .event-card-thumb { transform: scale(1.04); }
.event-card-thumb { transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }

/* â”€â”€ Stat card entrance â”€â”€ */
.stat-card { animation: fadeSlideIn 0.5s ease both; }
.stat-card:nth-child(1) { animation-delay: 0.06s; }
.stat-card:nth-child(2) { animation-delay: 0.12s; }
.stat-card:nth-child(3) { animation-delay: 0.18s; }
.stat-card:nth-child(4) { animation-delay: 0.24s; }

/* â”€â”€ Button improvements â”€â”€ */
.btn { position: relative; overflow: hidden; }
.btn-primary { transition: background-color 0.2s, transform 0.2s, box-shadow 0.25s; }
.btn-primary:active { transform: scale(0.97) !important; }
.btn-outline:active { transform: scale(0.97) !important; }

/* â”€â”€ Input focus glow animation â”€â”€ */
.input, .form-control {
    transition: border-color 0.25s ease, box-shadow 0.3s ease, background-color 0.25s ease !important;
}
.input:focus, .form-control:focus {
    animation: borderGlow 2s ease-in-out 1;
}

/* â”€â”€ Sidebar nav link animation â”€â”€ */
.sidebar a {
    position: relative; overflow: hidden;
}
.sidebar a::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, rgba(230,57,70,0.15), transparent);
    transition: width 0.3s ease;
    border-radius: 0 8px 8px 0;
}
.sidebar a:hover::before, .sidebar a.active::before { width: 100%; }

/* â”€â”€ Status badge pulse for pending â”€â”€ */
.status-pending {
    animation: borderGlow 2.5s ease-in-out infinite;
}

/* â”€â”€ Glass panel hover lift â”€â”€ */
.glass-panel {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
}

/* â”€â”€ Summary stat icon animate on hover â”€â”€ */
.summary-stat:hover .summary-stat-icon { animation: float-y 1s ease-in-out; }

/* â”€â”€ Page header fade â”€â”€ */
.dashboard-main > *:first-child { animation: slideInUp 0.5s ease both; }

/* â”€â”€ Table row slide in â”€â”€ */
.data-table tbody tr {
    animation: fadeSlideIn 0.35s ease both;
}
.data-table tbody tr:nth-child(1)  { animation-delay: 0.04s; }
.data-table tbody tr:nth-child(2)  { animation-delay: 0.08s; }
.data-table tbody tr:nth-child(3)  { animation-delay: 0.12s; }
.data-table tbody tr:nth-child(4)  { animation-delay: 0.16s; }
.data-table tbody tr:nth-child(5)  { animation-delay: 0.20s; }
.data-table tbody tr:nth-child(6)  { animation-delay: 0.24s; }
.data-table tbody tr:nth-child(7)  { animation-delay: 0.28s; }
.data-table tbody tr:nth-child(8)  { animation-delay: 0.32s; }
.data-table tbody tr:nth-child(9)  { animation-delay: 0.36s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.40s; }

/* â”€â”€ Notification dropdown item slide â”€â”€ */
#notificationDropdown .notification-item {
    animation: slideInRight 0.3s ease both;
}

/* â”€â”€ Ticket card entrance â”€â”€ */
.ticket-card {
    animation: fadeSlideIn 0.45s ease both;
}
.ticket-card:nth-child(1) { animation-delay: 0.05s; }
.ticket-card:nth-child(2) { animation-delay: 0.10s; }
.ticket-card:nth-child(3) { animation-delay: 0.15s; }
.ticket-card:nth-child(4) { animation-delay: 0.20s; }
.ticket-card:nth-child(5) { animation-delay: 0.25s; }

/* â”€â”€ Event card entrance â”€â”€ */
.event-card {
    animation: fadeSlideIn 0.45s ease both;
}

/* â”€â”€ Modal entrance â”€â”€ */
.modal-overlay.active .modal-container {
    animation: scaleIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* â”€â”€ Progress bar fill â”€â”€ */
.tier-progress-fill {
    animation: none;
}
@keyframes fillBar { from { width: 0 !important; } }
.tier-progress-fill { animation: fillBar 1s cubic-bezier(0.22,1,0.36,1) both 0.3s; }

/* â”€â”€ Toast slide improved â”€â”€ */
.toast { transition: all 0.45s cubic-bezier(0.34,1.56,0.64,1) !important; }

/* â”€â”€ Gradient animated border for featured events â”€â”€ */
.event-card .status-badge[style*="ffc107"] {
    animation: borderGlow 2s infinite;
}

/* â”€â”€ Wizard step completed bounce â”€â”€ */
.wizard-step.completed .step-circle {
    animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* â”€â”€ Filter tabs hover â”€â”€ */
.filter-tab { transition: all 0.22s cubic-bezier(0.22,1,0.36,1); }
.filter-tab:hover { transform: translateY(-1px); }
.filter-tab.active { animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1); }

/* â”€â”€ Ticket tag sparkle â”€â”€ */
.ticket-tag { transition: all 0.2s ease; }
.ticket-tag:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(230,57,70,0.3); }

/* â”€â”€ QR card hover â”€â”€ */
.qr-card:hover { transform: scale(1.02); transition: transform 0.3s ease; }

/* â”€â”€ Avatar hover â”€â”€ */
.avatar { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.attendee-row:hover .avatar { transform: scale(1.1); box-shadow: 0 0 12px rgba(230,57,70,0.35); }

/* â”€â”€ Info item hover â”€â”€ */
.info-item { transition: background 0.2s ease, border-color 0.2s ease; }
.info-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(230,57,70,0.2); }

/* â”€â”€ Ticket tier row â”€â”€ */
.ticket-tier-row {
    animation: fadeSlideIn 0.4s ease both;
}
.ticket-tier-row:nth-child(1) { animation-delay: 0.05s; }
.ticket-tier-row:nth-child(2) { animation-delay: 0.10s; }
.ticket-tier-row:nth-child(3) { animation-delay: 0.15s; }

/* â”€â”€ Drop zone pulse on dragover â”€â”€ */
.drop-zone.dragover { animation: borderGlow 0.8s ease-in-out infinite; }

/* â”€â”€ Action icon button hover scale â”€â”€ */
.action-icon-btn { transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1); }
.action-icon-btn:hover { transform: scale(1.12); }

/* â”€â”€ Smooth page entrance for main content â”€â”€ */
.dashboard-main {
    animation: slideInUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

/* â”€â”€ Responsive: reduce motion for accessibility â”€â”€ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* Sticky Admin Navbar */
.admin-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000; /* Ensures it stays above the sidebar and main content */
    background: var(--bg-dark, #0a0a0a); /* Match your dashboard background */
    backdrop-filter: blur(10px); /* Optional: adds a modern frosted glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   USER: TICKETS LISTING & BUY TICKETS
========================================== */
.buy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Header for Buying Tickets */
.event-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
}

/* Ticket Selection Card (Buy Tickets Page) */
.ticket-selection-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ticket-selection-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(5px);
}

.ticket-info { flex-grow: 1; }
.ticket-price-tag { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

/* Counter Controls (Quantity Buttons) */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    background: none;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.qty-btn:hover:not(:disabled) { background: var(--primary); color: white; }
.qty-btn:disabled { opacity: 0.2; cursor: not-allowed; }

/* Sticky Checkout Footer (Buy Tickets Page) */
.checkout-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-footer.show { transform: translateY(0); }

/* ==========================================
   ADMIN: MANAGE EVENTS & SHARED DASHBOARD
========================================== */

/* Prevents the entire page from sliding horizontally */
.dashboard-layout, .dashboard-main { 
    max-width: 100vw; 
    overflow-x: hidden; 
}

/* Specific Table Container Fixes */
.glass-dark {
    max-width: 100%;
    overflow: hidden; 
}

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

/* Responsive Overrides for Ticket Cards on Mobile */
@media (max-width: 576px) {
    .ticket-selection-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .qty-controls {
        width: 100%;
        justify-content: space-between;
    }
}
/* Responsive Overrides for Ticket Cards on Mobile */
@media (max-width: 576px) {
    .ticket-selection-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .qty-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================
   MY BOOKINGS PAGE
========================================== */

/* ── Filter Tabs ───────────────────────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    border: 1px solid var(--border);
    background: transparent;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.filter-tab:hover  { color: white; border-color: rgba(255,255,255,0.25); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Booking Card ──────────────────────────────────────────────────────────── */
.booking-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.booking-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(30,30,30,0.8); }
.booking-card.booking-cancelled { opacity: 0.6; border-color: rgba(230,57,70,0.15); }
.booking-card.booking-on-hold   { border-color: rgba(243,156,18,0.25); background: rgba(243,156,18,0.04); }
.booking-card.booking-past      { opacity: 0.75; }

/* Booking Card Body */
.booking-card-body { min-width: 0; }
.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 0.5rem;
}
.bk-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}
.bk-meta-item i { font-size: 0.8rem; }

/* Booking Card Side (QR + Actions) */
.booking-card-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    min-width: 100px;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.07);
}
.bk-qr {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Status Badges ─────────────────────────────────────────────────────────── */
.bk-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.bk-active    { background: rgba(46,204,113,0.12);  color: #2ecc71; border: 1px solid rgba(46,204,113,0.25); }
.bk-hold      { background: rgba(243,156,18,0.12);  color: #f39c12; border: 1px solid rgba(243,156,18,0.25); }
.bk-past      { background: rgba(52,152,219,0.10);  color: #3498db; border: 1px solid rgba(52,152,219,0.2); }
.bk-cancelled { background: rgba(230,57,70,0.10);   color: #E63946; border: 1px solid rgba(230,57,70,0.2); }

/* ── Action Buttons (card) ─────────────────────────────────────────────────── */
.bk-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.5rem;
}
.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.bk-btn-view   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.1); }
.bk-btn-view:hover { background: rgba(255,255,255,0.12); color: white; }
.bk-btn-hold   { background: rgba(243,156,18,0.08); color: #f39c12; border-color: rgba(243,156,18,0.2); }
.bk-btn-hold:hover { background: rgba(243,156,18,0.18); }
.bk-btn-resume { background: rgba(46,204,113,0.08); color: #2ecc71; border-color: rgba(46,204,113,0.2); }
.bk-btn-resume:hover { background: rgba(46,204,113,0.18); }
.bk-btn-cancel { background: rgba(230,57,70,0.08); color: #E63946; border-color: rgba(230,57,70,0.2); }
.bk-btn-cancel:hover { background: rgba(230,57,70,0.18); }

/* ── Empty State ───────────────────────────────────────────────────────────── */
.empty-box {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
}
.empty-icon {
    width: 72px; height: 72px;
    background: rgba(230,57,70,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.6;
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.action-btn {
    min-width: 36px; height: 36px;
    padding: 0 0.6rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center;
}
.action-btn:hover    { background: rgba(255,255,255,0.1); color: white; }
.action-btn.active-page { background: var(--primary); border-color: var(--primary); color: white; }

/* ── Booking Detail Page ───────────────────────────────────────────────────── */
.detail-card {
    background: rgba(22,22,22,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    backdrop-filter: blur(10px);
}
.detail-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.info-grid-2 { display: flex; flex-direction: column; gap: 0; }

/* ==========================================
   ORGANIZER BOOKINGS PAGE
========================================== */

/* Tab count badge */
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 5px;
}
.filter-tab.active .tab-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Organizer table action icon buttons */
.org-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.org-view   { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }
.org-view:hover   { background: rgba(255,255,255,0.15); color: white; }
.org-hold   { background: rgba(243,156,18,0.08); color: #f39c12; border-color: rgba(243,156,18,0.2); }
.org-hold:hover   { background: rgba(243,156,18,0.2); }
.org-resume { background: rgba(46,204,113,0.08); color: #2ecc71; border-color: rgba(46,204,113,0.2); }
.org-resume:hover { background: rgba(46,204,113,0.2); }
.org-cancel { background: rgba(230,57,70,0.08); color: #E63946; border-color: rgba(230,57,70,0.2); }
.org-cancel:hover { background: rgba(230,57,70,0.2); }

/* Booking detail modal cells */
.modal-detail-cell {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
.modal-detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}
.modal-detail-val {
    color: white;
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0;
}

/* ── Interactive Stadium UI ── */
.stadium-map {
    display: grid;
    grid-template-areas:
        ". north ."
        "west pitch east"
        ". south .";
    gap: 12px;
    max-width: 500px;
    margin: 2rem auto;
}

/* The Playing Field */
.stadium-pitch {
    grid-area: pitch;
    background: linear-gradient(135deg, #1e3c28, #2a5a3b);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* The Interactive Stands */
.stadium-stand {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stadium-stand:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
}

.stadium-stand.active-stand {
    background: #2ecc71;
    color: #000;
    border-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.stand-north { grid-area: north; border-bottom: 4px solid rgba(255,255,255,0.2); }
.stand-south { grid-area: south; border-top: 4px solid rgba(255,255,255,0.2); }
.stand-east  { grid-area: east;  border-left: 4px solid rgba(255,255,255,0.2); }
.stand-west  { grid-area: west;  border-right: 4px solid rgba(255,255,255,0.2); }

/* Hide stands dynamically based on layout */
.layout-2-side .stand-east, .layout-2-side .stand-west { display: none; }
.layout-3-side .stand-south { display: none; }

/* ==========================================
   SIDEBAR FIXES
========================================== */
.sidebar-toggle-btn {
    position: absolute;
    top: 1.5rem;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--primary, #E63946);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
    transition: transform 0.3s ease;
    z-index: 100;
}
.sidebar-toggle-btn:hover { transform: scale(1.1); }
.dashboard-layout.sidebar-collapsed .sidebar { width: 80px; padding: 2rem 0.5rem; }
.dashboard-layout.sidebar-collapsed .sidebar-nav span, .dashboard-layout.sidebar-collapsed .sidebar-footer span { display: none; }
.dashboard-layout.sidebar-collapsed .sidebar-nav a { justify-content: center; padding: 1rem 0; }
.dashboard-layout.sidebar-collapsed .sidebar-nav a i { font-size: 1.25rem; margin: 0; }
.dashboard-layout.sidebar-collapsed .dashboard-main { margin-left: 80px; }
.dashboard-layout.sidebar-collapsed .sidebar-toggle-btn { transform: rotate(180deg); }
.dashboard-layout.sidebar-collapsed .sidebar-toggle-btn:hover { transform: rotate(180deg) scale(1.1); }
.sidebar { transition: width 0.3s ease; }
.dashboard-main { transition: margin-left 0.3s ease; }
.sidebar-nav { min-height: 0; padding-bottom: 2rem; }
.sidebar-footer { background: var(--bg-surface); z-index: 10; position: relative; }

/* ==========================================
   FORM FLOATING TEXTAREA FIX (Bio)
========================================== */
.form-floating > textarea.form-control {
    height: auto !important;
    padding-top: 1.8rem !important;
}
.form-floating > textarea.form-control ~ label {
    top: 1rem !important;
    transform: none !important;
}
.form-floating > textarea.form-control:focus ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label {
    top: 0.5rem !important;
    transform: scale(0.82) !important;
}

/* ==========================================
   FULLCALENDAR STYLES (Restored)
========================================== */
.fc {
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.02);
    --fc-neutral-text-color: rgba(255, 255, 255, 0.7);
    --fc-border-color: rgba(255, 255, 255, 0.08);
    --fc-button-text-color: white;
    --fc-button-bg-color: rgba(255, 255, 255, 0.05);
    --fc-button-border-color: rgba(255, 255, 255, 0.1);
    --fc-button-hover-bg-color: rgba(255, 255, 255, 0.1);
    --fc-button-hover-border-color: rgba(255, 255, 255, 0.2);
    --fc-button-active-bg-color: rgba(230, 57, 70, 0.2);
    --fc-button-active-border-color: #E63946;
    --fc-event-bg-color: rgba(230, 57, 70, 0.15);
    --fc-event-border-color: rgba(230, 57, 70, 0.3);
    --fc-event-text-color: #E63946;
    --fc-today-bg-color: rgba(230, 57, 70, 0.05);
    font-family: inherit;
}
.fc-theme-standard td, .fc-theme-standard th {
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent !important;
}
.fc-col-header-cell {
    background: transparent !important;
}

/* ─── Category Selector (Event Form) ─── */
.category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.category-option {
    cursor: pointer;
    margin: 0;
}
.category-option input[type="radio"] {
    display: none;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}
.category-card i {
    font-size: 1.1rem;
}
.category-card span {
    font-size: 0.85rem;
    font-weight: 500;
}
.category-option:hover .category-card {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}
.category-option input[type="radio"]:checked + .category-card {
    background: rgba(230, 57, 70, 0.15); /* Primary tint */
    border-color: rgba(230, 57, 70, 0.6);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}