:root {
    /* Brandhive Purple & Orange Palette */
    --brand-purple: #4f008c;
    --brand-purple-hover: #3d006b;
    --brand-orange: #ff9d00;
    --brand-orange-hover: #e68e00;

    --primary-red: var(--brand-purple);
    /* Redirecting legacy variable to main brand color */

    --surface-dark: #120021;
    --surface-light: #f3f4f6;
    --text-main: #120021;
    --text-muted: #6b7280;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions - Speeding up for snappiness */
    --transition-fast: 0.1s ease-out;
    --transition-main: 0.2s ease-out;
    --transition-bounce: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--surface-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    /* More solid bg, less blur demand */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-main);
}

header.scrolled {
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-bounce);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    max-height: 85px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-login {
    background-color: var(--brand-orange);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 14px 0 rgba(79, 0, 140, 0.3);
}

.btn-login:hover {
    background-color: var(--brand-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 0, 140, 0.23);
}

.btn-tickets:hover,
.event-card:hover .btn-tickets {
    background: var(--brand-orange);
    color: white;
}

.event-date {
    color: var(--brand-orange);
}

/* --- Hero Section --- */
.hero {
    padding-top: 110px;
    padding-bottom: 40px;
    background: linear-gradient(135deg, #879AF2 0%, #D3208B 50%, #FDA000 100%);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Subtle pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 950;
    margin-bottom: 1rem;
    letter-spacing: -3px;
    line-height: 1.1;
    color: white;
    animation: slideUp 0.8s ease-out;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    animation: slideUp 0.8s ease-out 0.2s both;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        margin: 0 auto 1.5rem;
    }
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 4px 4px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: scaleIn 0.6s var(--transition-bounce) 0.4s both;
    transition: var(--transition-main);
}

.search-container:focus-within {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: white;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container button {
    background: white;
    color: var(--brand-purple);
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-container button:hover {
    background: var(--brand-orange);
    color: white;
    transform: scale(1.05);
}

.search-container button:active {
    transform: scale(0.95);
}


/* --- Event Grid --- */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    border: 1.5px solid #edf2f7;
    /* Thicker, clearer border */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Optimized for performance */
    will-change: auto;
    transform: none;
}

.event-card:hover {
    border-color: var(--brand-purple);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    /* Subtle elevation only */
}


.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: filter var(--transition-fast);
}

.event-card:hover .event-image {
    filter: brightness(0.95);
    /* Subtle shift instead of heavy scaling */
}


.event-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.event-price {
    font-weight: 800;
    font-size: 1.1rem;
}

.event-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-tickets {
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    background: #f3f4f6;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.event-card:hover .btn-tickets {
    background: var(--brand-purple);
    color: white;
}

/* --- Flight Specific --- */
.flight-search-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border: 1px solid #e5e7eb;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--primary-red);
}

.flight-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f3f4f6;
    transition: var(--transition-main);
}

.flight-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-purple);
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flight-time-line {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.time-box {
    text-align: center;
}

.time-box .time {
    font-size: 1.5rem;
    font-weight: 800;
}

.time-box .code {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.flight-path {
    flex-grow: 1;
    height: 2px;
    background: #e5e7eb;
    position: relative;
}

.flight-path::after {
    content: '✈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-red);
}

/* --- No Results --- */
.no-results {
    grid-column: 1 / -1;
    padding: 4rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
}



/* --- Basket Sidebar --- */
.basket-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.basket-sidebar.open {
    right: 0;
}

.basket-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.basket-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.basket-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dotted #e5e7eb;
}

.basket-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.basket-footer {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- Responsive --- */
/* --- Multi-Price Display --- */
.multi-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.price-tag {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e7eb;
}

.price-tag .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
}

.price-tag.vip {
    background: #fff7ed;
    color: #c2410c;
    border-color: #ffd8a8;
}

.price-tag.vvip {
    background: #faf5ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

.free-badge {
    background: #f0fdf4;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid #bbf7d0;
    display: inline-block;
}

.sold-out-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    display: inline-block;
}

/* --- Login Modal --- */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 0, 33, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: flex-start;
    /* Changed to start to allow scrolling from top */
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    /* Allow scrolling if content is tall */
}

.login-modal.active {
    display: flex;
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.4s var(--transition-bounce);
    margin-top: auto;
    margin-bottom: auto;
}

#save-event-btn,
#save-reg-btn {
    background: var(--brand-orange) !important;
    color: white !important;
    padding: 1.2rem !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 20px rgba(255, 157, 0, 0.3) !important;
    cursor: pointer !important;
    margin-top: 2rem !important;
    display: block !important;
    width: 100% !important;
    border: none;
}

#save-event-btn:hover,
#save-reg-btn:hover {
    background: var(--brand-purple) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 0, 140, 0.2) !important;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(79, 0, 140, 0.1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.price-qty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 640px) {
    .price-qty-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* --- Admin Section --- */
.admin-section {
    padding: 100px 0;
    background: var(--surface-light);
    border-top: 1px solid #e5e7eb;
}

/* --- Channel Selection Styles --- */
.channel-card {
    cursor: pointer;
    display: block;
}

.channel-inner {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.channel-card input:checked+.channel-inner {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.channel-inner img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: grayscale(10%);
}

.channel-card input:checked+.channel-inner img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.channel-inner span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-card input:checked+.channel-inner span {
    color: #0d9488;
}

.channel-card:hover .channel-inner {
    border-color: #94a3b8;
    transform: translateY(-2px);
}


.admin-table-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #f3f4f6;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.admin-table img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.btn-edit {
    padding: 0.4rem 0.8rem;
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0.5rem;
}

.btn-delete {
    padding: 0.4rem 0.8rem;
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-stats {
    padding: 0.4rem 0.8rem;
    background: #ecfdf5;
    color: #047857;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 0.5rem;
}

/* --- Booking Modal (Computicket Mirror) --- */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.booking-modal.active {
    display: flex;
}

.booking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.booking-container {
    background: #f4f4f6;
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    z-index: 10;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease-out;
}

.close-booking {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.booking-flex {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.booking-main {
    flex: 2;
}

.event-image-container {
    width: 100%;
    height: 400px;
    /* Fixed height to control the view */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.book-hero-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
    margin: auto;
}

/* Optional: Add a blurred background for a premium look when containing */
.event-image-container::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.5);
    z-index: 1;
}

.event-info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.event-info-section h1 {
    width: 100%;
    font-size: 1.75rem;
    font-weight: 750;
    margin-bottom: 20px;
    color: #334155;
}

.tags-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.tag-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.badge-no-under {
    background: #e11d48;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.booking-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.booking-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
}

.availability-row {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.date-time {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-time strong {
    font-size: 1rem;
    color: #334155;
}

.date-time span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.badge-availability {
    background: #e11d48;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-top: 15px;
}

.price-summary-row span {
    color: #94a3b8;
    font-size: 0.95rem;
}

.price-summary-row strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #e11d48;
}

.btn-continue-booking {
    width: 100%;
    background: #e11d48;
    color: white;
    border: none;
    height: 60px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.btn-continue-booking:hover {
    background: #be123c;
}

.share-friends {
    margin-top: 25px;
}

.share-friends p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.social-circles {
    display: flex;
    gap: 12px;
}

.social-circles .circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 1.1rem;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.social-circles .circle i {
    font-size: 0.9rem;
}

.details-card h4 {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.about-list {
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.about-list .icon {
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .booking-flex {
        flex-direction: column;
    }

    .booking-container {
        max-height: 95vh;
        margin-top: 5vh;
    }
}

/* --- Booking Tabs & Options --- */
.booking-tabs-container {
    margin-top: 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    gap: 30px;
    margin-bottom: 20px;
}

.tabs-header .tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.tabs-header .tab-btn.active {
    color: #ef233c;
}

.tabs-header .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ef233c;
}

.tab-pane {
    display: none;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.booking-options {
    margin-bottom: 25px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.option-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    outline: none;
    background: white;
}

.quantity-picker {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.quantity-picker button {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: white;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quantity-picker input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 800;
    font-size: 1rem;
    outline: none;
}

/* --- Mobile Bottom Nav Styles --- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 2500;
    justify-content: space-around;
    padding: 10px 0 25px;
    border-radius: 20px 20px 0 0;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
}

.nav-item.active {
    color: var(--brand-purple);
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--brand-orange);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 50px;
}

/* --- Responsive Media Queries --- */

/* Tablet & Mobile Optimization */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .event-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Specific Mobile Optimization (App Look) */
@media (max-width: 640px) {

    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    body {
        padding-bottom: 80px;
        /* Space for mobile nav */
        overflow-x: hidden;
    }

    /* Basket Sidebar Mobile Optimization */
    .basket-sidebar {
        width: 100%;
        right: -100%;
        z-index: 5000;
        /* Extremely high to cover everything */
    }

    .basket-sidebar.open {
        right: 0;
    }

    body.basket-open .mobile-nav {
        display: none !important;
    }

    /* Mobile: Make footer position dynamic - moves with items */
    .basket-sidebar {
        display: flex;
        flex-direction: column;
    }

    .basket-header {
        flex-shrink: 0;
    }

    .basket-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 1rem;
        /* Remove fixed bottom padding */
        padding-bottom: 0.5rem;
    }

    .basket-footer {
        padding: 1rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: 5001;
        /* Remove fixed margin-top - let it flow naturally */
        margin-top: 0;
        border-top: 1px solid #f3f4f6;
        /* Smooth transition for when items are added */
        transition: padding 0.3s ease, box-shadow 0.3s ease;
        /* Move button up - reduce top padding and add margin */
        padding-top: 0.75rem;
    }

    .basket-footer .btn-login {
        padding: 1rem;
        font-size: 1rem;
        font-weight: 800;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(255, 157, 0, 0.3);
        /* Button appears right after items */
        margin-top: 0.5rem;
        width: 100%;
        display: block;
        background: linear-gradient(135deg, #ff9d00, #ff7a00) !important;
        color: white !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .basket-footer .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 157, 0, 0.4) !important;
    }

    /* When basket has items, minimize gap between items and button */
    .basket-content:has(.basket-item) {
        padding-bottom: 0.5rem;
    }

    .basket-content:has(.basket-item) + .basket-footer {
        padding-top: 0.5rem;
    }

    /* ========== BOOKING MODAL MOBILE OPTIMIZATION ========== */
    .booking-modal {
        padding: 0;
        align-items: flex-end;
    }

    .booking-modal.active {
        display: flex;
    }

    .booking-container {
        width: 100%;
        max-width: 100%;
        height: 95vh;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .close-booking {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .booking-flex {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .booking-main {
        flex: none;
        width: 100%;
    }

    .event-image-container {
        height: 220px;
        margin-bottom: 15px;
        border-radius: 0;
    }

    .book-hero-image {
        max-width: 100%;
        max-height: 100%;
    }

    .event-info-section {
        padding: 0 16px;
        flex-direction: column;
        gap: 10px;
    }

    .event-info-section h1 {
        font-size: 1.35rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .tags-row {
        gap: 8px;
    }

    .tag-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    #book-age-badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    /* Tabs */
    .booking-tabs-container {
        margin-top: 15px;
        padding: 0 16px;
    }

    .tabs-header {
        gap: 20px;
        margin-bottom: 12px;
    }

    .tabs-header .tab-btn {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .tab-pane {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    #tab-location iframe,
    #google-map-container {
        height: 200px !important;
    }

    /* Sidebar */
    .booking-sidebar {
        flex: none;
        width: 100%;
        padding: 0 16px 20px;
        gap: 16px;
    }

    .booking-card {
        padding: 12px;
        border-radius: 14px;
    }

    .booking-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .availability-row {
        flex-direction: row;
        gap: 8px;
        padding: 10px 12px;
        margin-bottom: 12px;
        align-items: center;
        justify-content: space-between;
    }

    .date-time {
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .date-time strong {
        font-size: 0.85rem;
    }

    .date-time span {
        font-size: 0.75rem;
    }

    .badge-availability {
        align-self: center;
        font-size: 0.65rem;
        padding: 4px 8px;
        white-space: nowrap;
    }

    /* Booking Options */
    .booking-options {
        margin-bottom: 10px;
    }

    .option-group {
        margin-bottom: 8px;
    }

    .option-group label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .option-group select {
        padding: 8px 10px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Quantity Picker */
    .quantity-picker {
        justify-content: center;
        width: 100%;
    }

    .quantity-picker button {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .quantity-picker input {
        width: 60px;
        font-size: 1.1rem;
    }

    /* Price Summary */
    .price-summary-row {
        margin-bottom: 10px;
        padding-top: 8px;
    }

    .price-summary-row span {
        font-size: 0.8rem;
    }

    .price-summary-row strong {
        font-size: 1.1rem;
    }

    /* Continue Button */
    .btn-continue-booking {
        height: 46px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .btn-continue-booking svg {
        width: 18px;
        height: 18px;
    }

    /* Share Section */
    .share-friends {
        margin-top: 15px;
        padding-top: 12px;
    }

    .share-friends p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .social-circles {
        justify-content: center;
    }

    .social-circles .circle {
        width: 42px;
        height: 42px;
    }

    .social-circles .circle i {
        font-size: 1.1rem;
    }

    /* Details Card */
    .details-card {
        margin-top: 0;
    }

    .details-card h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .about-list li {
        padding: 8px 0;
        font-size: 0.85rem;
        gap: 10px;
    }

    .about-list .icon {
        font-size: 1rem;
    }

    /* ========== END BOOKING MODAL MOBILE ========== */

    .header .nav-links {
        display: none;
    }

    .nav-links {
        display: none;
    }

    header .container nav {
        justify-content: center;
    }

    header .nav-actions {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .search-container {
        width: 95%;
        padding: 4px;
        padding-left: 10px;
        max-width: none;
    }

    .search-container input {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }

    .search-container button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }


    .event-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile for app look */
        gap: 1.5rem;
    }

    .event-card {
        border-radius: 16px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .admin-actions-flex {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .admin-actions-flex button {
        width: 100%;
        margin: 0 !important;
    }

    /* Admin Button Styles */
    .btn-admin {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 24px;
        border: none;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(135deg, #ff9d00, #ff7a00);
        color: white;
        box-shadow: 0 4px 15px rgba(255, 157, 0, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-admin:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 157, 0, 0.4);
    }

    .btn-admin:active {
        transform: translateY(-1px) scale(1);
    }

    .btn-admin i {
        font-size: 1.1rem;
    }

    .btn-admin.btn-purple {
        background: linear-gradient(135deg, #4f008c, #7c3aed);
        box-shadow: 0 4px 15px rgba(79, 0, 140, 0.3);
    }

    .btn-admin.btn-purple:hover {
        box-shadow: 0 8px 25px rgba(79, 0, 140, 0.4);
    }

    .btn-admin.btn-green {
        background: linear-gradient(135deg, #10b981, #059669);
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }

    .btn-admin.btn-green:hover {
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    }

    /* Desktop specific - more prominent buttons */
    @media (min-width: 769px) {
        .admin-actions-flex {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .admin-actions-flex .btn-admin {
            padding: 16px 28px;
            font-size: 1rem;
        }

        .admin-actions-flex .btn-admin i {
            font-size: 1.2rem;
        }
    }

    footer .container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px !important;
    }


    footer .container div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .login-box {
        padding: 1.5rem;
        border-radius: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Admin Table Stacking for Mobile */
    .admin-table-container {
        padding: 0.5rem;
        background: transparent;
        box-shadow: none;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
    }

    .admin-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-table tr {
        background: white;
        border-radius: 16px;
        margin-bottom: 1.5rem;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border: 1px solid #eef2f6;
    }

    .admin-table tfoot {
        display: block;
        margin-top: 10px;
    }

    .admin-table tfoot tr {
        background: #f8fafc;
        border: 2px solid var(--brand-purple);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .admin-table tfoot td {
        display: block;
        padding: 5px 0;
        width: 100%;
        text-align: center !important;
        padding-left: 0 !important;
    }

    .admin-table tfoot td::before {
        display: none !important;
    }

    .admin-table-container {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .admin-table td {


        border: none;
        padding: 0.8rem 0;
        position: relative;
        padding-left: 50%;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 800;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.7rem;
    }

    .admin-table td img {
        margin-left: auto;
    }

    /* ========== STATISTICS MODAL STYLING ========== */
    #stats-modal .login-box {
        max-width: 800px;
        width: 95%;
        padding: 0;
    }

    #stats-modal .login-header {
        background: linear-gradient(135deg, var(--brand-purple), #7c3aed);
        color: white;
        padding: 1.5rem;
        border-radius: 24px 24px 0 0;
        text-align: center;
    }

    #stats-modal .login-header h2 {
        color: white;
        font-size: 1.5rem;
    }

    #stats-modal .login-header p {
        color: rgba(255, 255, 255, 0.9);
    }

    #stats-modal #stats-event-type {
        color: var(--brand-orange) !important;
        font-weight: 700;
    }

    #stats-modal #reset-stats-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    #stats-modal #reset-stats-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    #stats-modal #stats-content {
        padding: 1.5rem;
    }

    #stats-modal h3 {
        color: var(--brand-purple);
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #stats-modal h3::before {
        content: '';
        width: 4px;
        height: 16px;
        background: var(--brand-orange);
        border-radius: 2px;
    }

    /* Stats Summary Cards - Free Events */
    #stats-modal #free-stats-summary {
        margin-bottom: 1.5rem;
    }

    #stats-modal .stats-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    #stats-modal .stat-card {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
    }

    #stats-modal .stat-card.registered {
        background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
        border-color: #bae6fd;
    }

    #stats-modal .stat-card.capacity {
        background: linear-gradient(135deg, #faf5ff, #f3e8ff);
        border-color: #ddc6ff;
    }

    #stats-modal .stat-card.remaining {
        background: linear-gradient(135deg, #fff7ed, #ffedd5);
        border-color: #fed7aa;
    }

    #stats-modal .stat-card .stat-value {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1.2;
    }

    #stats-modal .stat-card.registered .stat-value {
        color: #0284c7;
    }

    #stats-modal .stat-card.capacity .stat-value {
        color: #7c3aed;
    }

    #stats-modal .stat-card.remaining .stat-value {
        color: #ea580c;
    }

    #stats-modal .stat-card .stat-label {
        font-size: 0.7rem;
        color: #64748b;
        text-transform: uppercase;
        font-weight: 600;
        margin-top: 4px;
    }

    /* Paid Events Stats Table */
    #stats-modal #paid-stats-summary {
        margin-bottom: 1.5rem;
    }

    #stats-modal .admin-table-container {
        border-radius: 12px;
        overflow: hidden;
    }

    #stats-modal .admin-table th {
        background: #f8fafc;
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem;
    }

    #stats-modal .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    #stats-modal .category-tag {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    #stats-modal .category-tag.standard {
        background: #e0f2fe;
        color: #0369a1;
    }

    #stats-modal .category-tag.vip {
        background: #fff7ed;
        color: #c2410c;
    }

    #stats-modal .category-tag.vvip {
        background: #faf5ff;
        color: #7e22ce;
    }

    #stats-modal .revenue-cell {
        font-weight: 700;
        color: #059669;
    }

    #stats-modal .tfoot-total {
        background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    }

    #stats-modal .tfoot-total td {
        font-weight: 800;
        color: #047857;
        font-size: 1rem;
    }

    /* Registration List */
    #stats-modal #registration-list-section {
        margin-top: 1.5rem;
    }

    #stats-modal #registration-list-section .admin-table-container {
        max-height: 350px;
    }

    #stats-modal .entry-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
    }

    #stats-modal .entry-badge.checked-in {
        background: #dcfce7;
        color: #15803d;
    }

    #stats-modal .entry-badge.pending {
        background: #fef3c7;
        color: #b45309;
    }

    /* Mobile Stats */
    @media (max-width: 640px) {
        #stats-modal .stats-cards {
            grid-template-columns: 1fr;
            gap: 0.75rem;
        }

        #stats-modal .stat-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem;
        }

        #stats-modal .stat-card .stat-value {
            font-size: 1.5rem;
        }

        #stats-modal .admin-table-container {
            font-size: 0.8rem;
        }
    }

    /* Hide mobile labels for cleaner event management */
    .admin-table td::before {
        display: none !important;
    }

    .admin-table td {
        padding: 0.4rem 0.25rem;
        justify-content: flex-start;
        text-align: left;
        display: block;
        border-bottom: none;
    }

    .admin-table tr {
        background: white;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 0.75rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid #f1f5f9;
    }

    .admin-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .admin-table tbody td:last-child {
        justify-content: flex-end;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed #e2e8f0;
    }

    .admin-table td img {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .btn-edit,
    .btn-delete,
    .btn-stats {
        margin: 0.2rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    /* Professional Action Buttons for Admin Table */
    .btn-edit {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    }

    .btn-edit:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }

    .btn-delete {
        background: linear-gradient(135deg, #ef4444, #b91c1c);
        color: white;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    }

    .btn-delete:hover {
        background: linear-gradient(135deg, #dc2626, #991b1b);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    }

    .btn-stats {
        background: linear-gradient(135deg, #10b981, #059669);
        color: white;
        box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    }

    .btn-stats:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    }
}

/* Tablet & Mobile - Booking Modal */
@media (max-width: 900px) {
    .booking-flex {
        flex-direction: column;
    }

    .booking-container {
        max-height: 95vh;
        margin-top: 5vh;
    }

    .booking-sidebar {
        flex: none;
        width: 100%;
    }

    /* Admin Section Mobile Optimization */
    .admin-section {
        padding: 80px 0;
    }

    .admin-section .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-section .section-title h2 {
        font-size: 1.5rem;
    }

    .admin-actions-flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .admin-actions-flex .btn-admin {
        flex: 1;
        min-width: calc(33% - 6px);
        padding: 12px 6px;
        font-size: 0.7rem;
        white-space: nowrap;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .admin-actions-flex .btn-admin i {
        font-size: 1rem;
        margin: 0;
    }

    .admin-actions-flex .btn-admin span {
        display: block;
        font-size: 0.65rem;
    }

    .admin-table-container {
        margin: 0 -1rem;
        padding: 1rem;
        border-radius: 0;
    }

    .admin-table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }

    .admin-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    #logout-btn {
        width: 100%;
        margin-top: 1.5rem;
    }
}

/* Tablet Optimization */
@media (min-width: 641px) and (max-width: 1024px) {
    .booking-container {
        max-width: 90%;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}


/* Performance Optimization for Cards */
.event-card {
    transform: translateZ(0);
    /* Force GPU acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
}

.event-image {
    /* Image optimization */
    content-visibility: auto;
    /* Prevent image reloading on scroll */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* GPU acceleration for smoother scrolling */
    will-change: contents;
    /* Cache optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth Transitions for Buttons */
.btn-login,
.btn-tickets,
.btn-stats,
.btn-edit,
.btn-delete {
    transition: all 0.2s ease-in-out;
}

.btn-login:active,
.btn-tickets:active {
    transform: scale(0.95);
}

/* --- Processing Overlay --- */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 0, 33, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.processing-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.processing-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.4s var(--transition-bounce);
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--brand-orange);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(255, 157, 0, 0.2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.processing-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--brand-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.processing-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* --- Success Modal --- */
.success-box {
    text-align: center;
    padding: 3.5rem 2.5rem;
}

.success-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    border: 4px solid #22c55e;
}

.checkmark-circle .checkmark {
    border-radius: 5px;
}

.checkmark-circle .checkmark.draw:after {
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
}

.checkmark-circle .checkmark:after {
    opacity: 1;
    height: 40px;
    width: 20px;
    transform-origin: left top;
    border-right: 4px solid #22c55e;
    border-top: 4px solid #22c55e;
    content: "";
    left: 16px;
    top: 40px;
    position: absolute;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 20px;
        opacity: 1;
    }

    100% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }
}

.success-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-purple);
    margin-bottom: 1rem;
}

.success-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- Social Share Buttons --- */
.share-friends {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.share-friends p {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.social-circles a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.circle {

    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.circle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.circle.wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.circle.fb {
    background: linear-gradient(135deg, #1877F2, #0056b3);
}

.circle.em {
    background: linear-gradient(135deg, #EA4335, #c5221f);
}

.circle span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Colorful Footer --- */
/* New Professional Footer Styles */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-logo .brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 280px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--brand-orange);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.footer-contact .contact-item i {
    color: var(--brand-orange);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 20px;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Mobile Footer */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px 0 30px;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-brand-section {
        align-items: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
    }
    
    .footer-contact .contact-item {
        justify-content: center;
    }
}

/* Legacy Footer Support (kept for backward compatibility) */
.main-footer {
    background: linear-gradient(135deg, #120021 0%, #4f008c 100%);
    color: white;
    padding: 80px 0 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--brand-orange), var(--primary-red));
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--brand-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 300px;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero {
        padding-top: 90px !important;
        padding-bottom: 30px !important;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
        width: 100%;
        max-width: 100vw;
        margin-bottom: 0.75rem !important;
    }

    .hero p {
        font-size: 1.1rem !important;
        padding: 0 1rem;
        margin-bottom: 1.25rem !important;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* Container Fluidity - ONLY for non-home pages (like Flights/Results) */
    body:not(.home-body) .container {
        padding: 0 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Full-Page Modals for Mobile - App Feel (Applies to all pages) */
    .login-modal {
        padding: 0 !important;
        background: white !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    .login-box {
        padding: 1rem !important;
        /* Reduced from 2rem */
        max-width: 100% !important;
        width: 100% !important;
        min-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        animation: scaleIn 0.3s ease-out !important;
    }

    .close-modal {
        top: 15px !important;
        /* Adjusted */
        right: 15px !important;
        background: #f1f5f9 !important;
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.25rem !important;
        border: none !important;
        z-index: 10;
    }

    .login-header {
        margin-bottom: 0.75rem !important;
    }

    .login-header h2 {
        font-size: 1.4rem !important;
        /* Reduced */
        margin-top: 1.5rem !important;
    }

    .login-header p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .checkout-stepper {
        margin-bottom: 1rem !important;
        /* Reduced */
        gap: 20px !important;
        /* Reduced gap */
    }

    .checkout-stepper span {
        font-size: 0.6rem !important;
    }

    .payment-channels-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .channel-inner {
        padding: 1rem 0.5rem !important;
        /* Reduced */
    }

    /* Center buttons on mobile */
    .btn-channel-continue {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem !important;
    }

    .modal-footer {
        justify-content: center !important;
        margin-top: 1rem !important;
        /* Reduced from auto */
        padding-bottom: 1.5rem;
    }

    /* Forms - Improved touch targets and prevent zoom */
    .form-group {
        margin-bottom: 0.85rem !important;
        /* Reduced */
    }

    .form-group label {
        margin-bottom: 0.25rem !important;
        font-size: 0.8rem !important;
    }

    .form-group input,
    .form-group select {
        padding: 0.65rem 1rem !important;
        /* Reduced padding */
        font-size: 16px !important;
        /* Prevent iOS zoom */
        background: #f8fafc !important;
    }

    /* Section Padding - ONLY for non-home pages */
    body:not(.home-body) section {
        padding: 30px 0 !important;
    }

    .admin-table-container {
        padding: 1rem !important;
        border-radius: 0 !important;
        margin-left: -1.25rem !important;
        margin-right: -1.25rem !important;
        width: calc(100% + 2.5rem) !important;
        box-shadow: none !important;
        border-bottom: 1px solid #e5e7eb;
    }

    #save-checkout-btn,
    #save-reg-btn {
        padding: 0.9rem !important;
        /* Reduced padding */
        font-size: 1rem !important;
        border-radius: 10px !important;
        margin-top: 0.75rem !important;
        /* Reduced margin */
        width: 100% !important;
    }

    #card-payment-section,
    #momo-payment-section {
        margin-bottom: 0.75rem !important;
    }

    #card-payment-section>div,
    #momo-payment-section>div {
        padding: 0.75rem !important;
        gap: 8px !important;
    }
}

/* ========== EVENTS MODAL (MOBILE) ========== */
.events-modal {
    padding: 0 !important;
    align-items: flex-end !important;
    background: rgba(18, 0, 33, 0.95) !important;
    backdrop-filter: blur(10px);
}

.events-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.events-modal-box {
    background: white;
    width: 100%;
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease-out;
}

.events-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, var(--brand-purple), #7c3aed);
    color: white;
}

.events-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.close-events-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-events-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.events-modal-search {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.events-modal-search input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.events-modal-search input:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(79, 0, 140, 0.1);
}

.events-modal-grid {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.modal-event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: row;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--brand-purple);
}

.modal-event-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-event-info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-event-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-orange);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.modal-event-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-event-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal-event-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-purple);
}

.modal-event-price.free {
    color: #15803d;
}

/* Color chip selection */
.color-chip {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.color-chip:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Basket items */
.basket-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.basket-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}

/* Animation for newly added basket items */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment option styling */
.payment-option {
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: var(--brand-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}