* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Default body font */
}

:root {
    --primary-color: #FF5A5F;
    --secondary-color: #FF5A5F;
    --text-color: #222222;
    --light-bg: #FFFFFF;
    --white: #ffffff;
    --gray: #717171;
    --border-color: #DDDDDD;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-btn: 8px;
    --radius-card: 12px;
    /* Navbar (~60px) + category bar (~52px) = 112px total header height */
    --nav-height: 112px;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.5;
    padding-top: var(--nav-height);
    padding-left: 1.5cm;
    padding-right: 1.5cm;
    /* Prevent content overlap with fixed 2-level header */
}

.cornerclub-tagline {
    margin-left: 1cm !important;
}

/* Pages without category bar use only navbar height */
body.no-category-bar {
    padding-top: 65px;
}

h1,
h2,
h3,
h4,
.logo,
.btn {
    font-family: 'Outfit', sans-serif;
    /* Headings font */
}

/* Navigation */
header.main-header,
header.main-header.sticky,
body > nav.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0.8rem 0 !important;
    background-color: var(--white);
    width: 100% !important;
    border-bottom: 1px solid #f8fafc;
}

.logo {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap !important;
}

#userAvatar {
    background: var(--primary-color) !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    cursor: pointer;
    flex-shrink: 0 !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Glassmorphism Utilities */
.glass-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Premium Skeleton & Shimmer */
.skeleton-card {
    position: relative;
    background: #f1f5f9;
    background: linear-gradient(
        90deg, 
        #f1f5f9 25%, 
        #f8fafc 50%, 
        #f1f5f9 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 400px; /* Matching card height */
}

@keyframes skeleton-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.breadcrumb-nav {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-nav a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

#userProfile {
    display: none;
    /* Controlled by JS */
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

#logoutBtn {
    background: white !important;
    border: 1px solid #ddd !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    color: var(--text-color) !important;
    flex-shrink: 0 !important;
}

#logoutBtn:hover {
    background: #f8fafc;
    border-color: #999;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    list-style: none !important;
    align-items: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
    justify-self: center !important;
}

.nav-links a {
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: color 0.2s !important;
}

.nav-links a:hover {
    color: var(--primary-color) !important;
}

.create-event-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
    font-family: 'Outfit', sans-serif !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.create-event-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    justify-self: end !important;
    margin-left: auto !important;
    position: relative !important;
}

.nav-toggle-btn {
    position: relative !important;
    z-index: 10001 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}

/* Login modal (popup) */
.cc-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.cc-login-overlay.open {
    display: flex;
}

.cc-login-modal {
    width: min(520px, 100%);
    height: min(720px, 92vh);
    background: #0b1220;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    overflow: hidden;
    position: relative;
}

.cc-login-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.cc-login-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.login-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap !important;
}



.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid #eee;
}

.footer-section {
    flex: 1;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 991px) {
    .navbar {
        --nav-height: 56px;
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.6rem 4% !important;
        height: var(--nav-height) !important;
        min-height: var(--nav-height) !important;
    }

    .nav-links {
        display: none !important;
        /* Managed via .active in media query below */
    }

    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 4% !important;
    }

    .nav-links.active {
        display: flex !important;
        position: absolute !important;
        top: 70px !important;
        right: 5% !important;
        width: 200px !important;
        background: white !important;
        flex-direction: column !important;
        padding: 5px !important;
        border-radius: 16px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        z-index: 1001 !important;
        gap: 0 !important;
    }

    .nav-links li {
        width: 100% !important;
        border-bottom: 1px solid #f8fafc !important;
    }

    .nav-links li:last-child {
        border-bottom: none !important;
    }

    .nav-links li a {
        display: block !important;
        padding: 12px 15px !important;
        text-align: center !important;
        border-radius: 8px !important;
        color: var(--text-color) !important;
        font-weight: 600 !important;
    }

    .nav-links li a:hover {
        background: #f8fafc !important;
        color: var(--primary-color) !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        font-size: 1.1rem !important;
        color: var(--text-color) !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }



    /* Replaced .category-buttons with .category-scroll-container / track for index.html compatibility */
    .category-scroll-container {
        padding: 0 !important;
        margin: 5px 0 !important;
    }

    .category-scroll-track {
        gap: 0.8rem !important;
        padding: 0 4% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }

    .category-btn {
        flex-shrink: 0 !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

@media screen and (max-width: 640px) {


    .logo-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .create-event-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 8px !important;
        min-width: 0 !important;
    }

    .event-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    .event-card {
        border-radius: 16px !important;
    }

    .event-image-container {
        /* aspect-ratio handled by global shard styles to prevent flickering */
        height: 100% !important;
    }

    .event-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    /* When a portrait image is used inside a wide card, show it fully instead of cropping */
    .event-image.portrait {
        object-fit: contain !important;
        background-color: #f8fafc;
        object-position: center center !important;
    }

    .event-content {
        padding: 10px !important;
    }

    .event-title {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }

    .event-info-row {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
    }

    .creator-row {
        margin: 8px 0 !important;
        font-size: 0.75rem !important;
        gap: 5px !important;
    }

    .creator-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

    .btn-book,
    .btn-icon {
        padding: 6px 0 !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    .event-card-grid,
    .events-container,
    .event-list {
        padding: 0 !important;
    }

    .modal-content {
        padding: 1.5rem !important;
        width: 95% !important;
    }

    .footer-content {
        gap: 2rem !important;
    }
}

/* Footer & Global Tweaks */
.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

/* Categories */
.categories {
    padding: 2rem 5%;
}

/* Event Card Badge & Icons */
.card-badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-icon-save {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.2s;
}

.card-icon-save:hover {
    transform: scale(1.1);
}

/* Card Content Layout */
.event-info-row {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.2;
}

/* Creator Row */
.creator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.creator-avatar {
    width: 32px;
    height: 32px;
    background-color: #ddd;
    /* Default fallback */
    color: #222;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.creator-row strong {
    color: var(--text-color);
    /* Name is black */
    font-weight: 600;
}

/* Action Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-book {
    flex: 2;
    padding: 6px 0;
    /* Slightly taller */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Slightly less rounded */
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.btn-book:hover {
    border-color: var(--text-color);
    background: #fafafa;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    background: white;
    /* Changed from gray to white */
    border: 1px solid #e2e8f0;
    /* Added border */
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    border-color: var(--text-color);
    background: #fafafa;
}

/* Categories */
.categories h2 {
    font-size: 2rem;
    color: var(--text-color);
}

.category-btn {
    padding: 0.8rem 1.8rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* Pill */
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Events Grid */
/* Events Grid Standardized */
.events-container {
    padding: 10px 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Standardize Container Width to prevent horizontal scroll bugs */
.events-container {
    padding: 10px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.filter-section {
    padding: 0 !important;
}

.events-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    overflow: visible !important;
    padding: 10px 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ===================================================
   LAYER / ROW STRUCTURE (Universal Carousel)
   =================================================== */

/* Each layer is a block container */
.events-layer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;   /* clip to viewport edge */
    box-sizing: border-box !important;
}

/* Per-layer dot indicator */
.layer-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 14px 0 0 !important;
    align-items: center !important;
}

/* The horizontal scroll row */
.events-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    overflow-x: scroll !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    /* Keep horizontal spacing balanced so desktop doesn't feel left-shifted */
    padding: 10px 0 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Grid layout for all rows after the first one */
.events-layer.grid-layer .events-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
    padding: 10px 0 !important;
}

.events-layer.grid-layer .event-card {
    width: 100% !important;
    height: 320px !important;
    min-width: 0 !important;
}

.events-row::-webkit-scrollbar {
    display: none !important;
}

@media screen and (min-width: 1024px) {
    .events-container {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .events-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Shard card — Universal tall portrait style */
.event-card {
    flex: 0 0 auto !important;
    /* Adjusted clamp so 320px phones don't overflow (min was 240px > 70% of 320px=224px) */
    width: clamp(200px, 72vw, 280px) !important;
    height: clamp(300px, 95vw, 420px) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
    min-width: 0 !important;
    background: #111 !important;
}

    /* Full-bleed image filling the shard */
    .event-card .event-image-container {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
        border-radius: 0 !important;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .event-card .card-hero-bg {
        position: absolute;
        z-index: 0;
        inset: 0;
        overflow: hidden;
    }

    .event-card .hero-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.1);
        filter: blur(20px) brightness(0.5);
    }

    .event-card .event-image {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* SHOW FULL IMAGE */
        transition: transform 0.3s ease !important;
    }

    /* Gradient overlay for readability */
    .event-card::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.05) 40%,
            rgba(0,0,0,0.75) 75%,
            rgba(0,0,0,0.92) 100%
        ) !important;
        border-radius: 20px !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* Info overlay at the bottom of shard */
    .event-card .event-content {
        position: relative !important;
        z-index: 2 !important;
        padding: 10px 14px 14px !important;
        color: white !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .event-card .event-title {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .event-card .event-info-row {
        font-size: 0.72rem !important;
        color: rgba(255,255,255,0.85) !important;
        font-weight: 500 !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Price badge repositioned */
    .event-card .card-badge-price {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 3 !important;
        background: rgba(255,255,255,0.92) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        color: #111 !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }

    /* Save icon badge */
    .event-card .card-icon-save {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        bottom: unset !important;
        right: unset !important;
        z-index: 3 !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(255,255,255,0.85) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        font-size: 0.75rem !important;
    }

    /* Creator row minimal */
    .event-card .creator-row {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        margin: 3px 0 0 !important;
        font-size: 0.95rem !important;
        color: rgba(255,255,255,1) !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    }

    .event-card .creator-row strong,
    .event-card .creator-row span {
        color: rgba(255,255,255,1) !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    }

    .event-card .creator-avatar {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.6rem !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    /* Card actions — compact row */
    .event-card .card-actions {
        display: flex !important;
        gap: 6px !important;
        margin-top: 8px !important;
        align-items: center !important;
    }

    .event-card .btn-book {
        flex: 1 !important;
        padding: 7px 0 !important;
        font-size: 0.73rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        color: white !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        transition: background 0.2s ease !important;
    }

    .event-card .btn-book:hover,
    .event-card .btn-book:active {
        background: rgba(255,255,255,0.3) !important;
    }

    .event-card .btn-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        color: white !important;
        font-size: 0.75rem !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* Disable the hover float on shards (already active) */
    .event-card:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25) !important;
    }

.sort-select {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-image-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Standard event banner ratio - fits landscape images */
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.event-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Fill container cleanly */
    object-position: center;
    /* Center crop for balanced look */
    transition: transform 0.4s ease;
}

.event-card:hover .event-image {
    transform: scale(1.06);
}

.event-content {
    padding: 0.8rem;
}

.event-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

.event-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    /* Light purple bg */
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-details {
    gap: 0.8rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.event-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -1px;
}

.share-btn,
.chat-btn,
.save-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
    color: var(--gray);
    box-shadow: var(--shadow-sm);
}

/* Event Card Footer */
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

/* Event Detail Items */
.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-detail-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0 5%;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.saved-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.saved-checkbox input {
    accent-color: var(--secondary-color);
    width: 1.1rem;
    height: 1.1rem;
}

/* Category Buttons Container (Horizontal Scroll) */
/* Strictly Grid-Aligned Category Flow */
.category-flow-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.category-flow-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: flow-left-grid 35s linear infinite;
    flex-wrap: nowrap;
}

.category-flow-marquee:hover .category-flow-track {
    animation-play-state: paused;
}

@keyframes flow-left-grid {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.category-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
}

/* Sticky Category Filter */
.category-scroll-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 10px;
    margin-bottom: 0;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-scroll-track {
    display: flex !important;
    gap: 12px;
    width: max-content !important;
}

.share-btn:hover,
.chat-btn:hover,
.save-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.chat-btn {
    background: #f8fafc;
    /* Reset specific chat btn color to generic */
}


.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.image-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Skeleton Loader (Premium Shimmer) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 380px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 12px;
    width: 90%;
}

.skeleton-text.short {
    width: 60%;
}

/* =========================================
   Global Smooth Animations & Scroll Reveal 
   ========================================= */

/* Base Reveal Class - Hidden by default */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Active State - Triggered by JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Children */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Smooth Section Loading */
body {
    animation: pageFadeIn 0.8s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.btn:hover,
.btn-book:hover,
.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .events-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* --- Standard Footer System - Redesign to match screenshot exactly --- */
.main-footer {
    background-color: #ffffff !important;
    padding: 50px 5% 30px !important;
    border-top: 1px solid #eeeeee !important;
    color: #4b5563 !important;
    width: 100% !important;
    margin-top: 40px !important;
    position: relative !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-bottom: 50px !important;
}

.footer-section h3 {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    text-transform: none !important;
    font-family: 'Outfit', sans-serif !important;
}

.footer-section p {
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 260px !important;
    font-weight: 500 !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.2s !important;
    font-weight: 500 !important;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.social-links {
    display: flex !important;
    gap: 12px !important;
}

.social-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--primary-color) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    box-shadow: 2px 2px 8px rgba(255, 90, 95, 0.4) !important;
    transition: transform 0.2s !important;
    text-decoration: none !important;
}

.social-btn:hover {
    transform: translateY(-3px) !important;
    opacity: 0.9 !important;
}

.copyright-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    text-align: left !important;
    border-top: none !important;
}

.copyright-section p {
    color: #4b5563 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Footer Responsive Overrides */
@media screen and (max-width: 900px) {
    .main-footer {
        padding: 40px 5% 24px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media screen and (max-width: 600px) {
    .main-footer {
        padding: 36px 4% 20px !important;
    }
    .footer-grid {
        /* Stack all columns on mobile */
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: left !important;
    }

    .footer-section:first-child {
        grid-column: unset !important;
        margin-bottom: 8px !important;
    }

    .footer-section p {
        max-width: 100% !important;
    }

    .social-links {
        justify-content: flex-start !important;
    }

    .copyright-section {
        text-align: center !important;
        padding-top: 20px !important;
        border-top: 1px solid #f1f5f9 !important;
    }
}

/* --- Filter Section Responsive --- */
@media screen and (max-width: 640px) {
    .filter-section {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 0 4% !important;
    }

    .filter-section > div {
        width: 100% !important;
    }

    .sort-select {
        width: 100% !important;
    }

    #eventCountInfo {
        font-size: 0.85rem !important;
    }
}

/* --- Mobile Body Padding Overrides --- */
/* Pages with 2-level header (navbar + category bar) */
@media screen and (max-width: 767px) {
    body {
        /* On mobile, header is: navbar(~56px) + category bar(~50px) = ~106px */
        padding-top: 106px !important;
    }
    /* Single-bar pages apply this class via JS or have no category bar */
    body.no-category-bar {
        padding-top: 60px !important;
    }
}

/* --- Nav Menu Dropdown Positioning Fix --- */
.nav-menu {
    box-shadow: 0 12px 30px rgba(0,0,0,0.10) !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
}

/* --- Nav Toggle Button \u2014 always visible --- */
.nav-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* nav-desktop-links removed \u2014 all links are in the dropdown menu */
.nav-desktop-links {
    display: none !important;
}


/* Hide admin panel link and username injected dynamically by bundle.js */
#adminLink,
#userName {
    display: none !important;
}
/* --- End Footer System --- */

/* Restored Share Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.share-modal-content {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 24px !important;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal[style*="display: flex"] .share-modal-content {
    transform: scale(1);
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.share-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.share-option:hover {
    transform: scale(1.1);
}

.facebook-bg {
    background: #1877F2;
}

.twitter-bg {
    background: #1DA1F2;
}

.whatsapp-bg {
    background: #25D366;
}

.link-bg {
    background: var(--secondary-color);
}

.share-url {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
}

.share-url input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.share-url button {
    background: var(--text-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9 !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #e2e8f0 !important;
    transform: rotate(90deg);
}

/* Toast System (Restored) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast-info .toast-icon {
    background: #e0f2fe;
    color: #0284c7;
}

@media screen and (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        grid-template-columns: auto auto !important;
        gap: 15px !important;
    }

    .nav-links {
        display: none !important;
    }

    /* events-grid carousel already handled above */

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    table {
        min-width: 600px;
    }

    .modal-content {
        padding: 20px !important;
        width: 95% !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 0.8rem 15px !important;
    }

    .logo {
        font-size: 1rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .event-price {
        font-size: 1.5rem !important;
    }

    .toast {
        min-width: calc(100vw - 40px);
        right: 10px;
        left: 10px;
    }

    .btn-google {
        font-size: 14px !important;
        padding: 12px !important;
    }

    .attendee-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 15px 0 !important;
    }

    .upload-area {
        padding: 1.5rem !important;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100% !important;
    }

    /* Target specific form grids used in create-event.html */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Standardized Category Navigation */
.category-scroll-container {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 12px 0 !important;
    background: white !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.category-scroll-container::-webkit-scrollbar {
    display: none !important;
}

.category-scroll-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    padding: 0 20px !important;
}

.category-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-btn i {
    font-size: 1rem !important;
}

.category-btn:hover {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

.category-btn.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}


/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Mobile Shard Dot Indicator ===== */
.shard-indicator {
    display: none; /* hidden on desktop */
}

@media screen and (max-width: 768px) {
    .layer-dots,
    .shard-dot {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .shard-swipe-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px 0;
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        letter-spacing: 0.5px;
    }

    .shard-swipe-hint i {
        font-size: 0.65rem;
        animation: swipeHint 1.6s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% { transform: translateX(0); opacity: 1; }
        50%       { transform: translateX(-6px); opacity: 0.5; }
    }

    .shard-indicator {
        display: flex;
        justify-content: center;
        gap: 7px;
        padding: 10px 0 4px;
        align-items: center;
    }

    .shard-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #cbd5e1;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }

    .shard-dot.active {
        background: #111;
        width: 22px;
        border-radius: 4px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* Default body font */
}

:root {
    --primary-color: #FF5A5F;
    /* Coral Red from screenshot */
    --secondary-color: #FF5A5F;
    /* Unifying primary/secondary for now unless needed */
    --text-color: #222222;
    /* darker black */
    --light-bg: #FFFFFF;
    /* White background as per screenshot */
    --white: #ffffff;
    --gray: #717171;
    /* lighter gray for subtext */
    --border-color: #DDDDDD;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --radius-btn: 8px;
    /* Slightly less rounded than pill */
    --radius-card: 12px;
    --nav-height: 80px;
}

body {
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.5;
    padding-top: var(--nav-height);
    /* Prevent content overlap with fixed header */
}

h1,
h2,
h3,
h4,
.logo,
.btn {
    font-family: 'Outfit', sans-serif;
    /* Headings font */
}

/* Navigation */
header.main-header,
header.main-header.sticky,
body > nav.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    background-color: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.8rem 5% !important;
    background-color: var(--white);
    width: 100% !important;
    border-bottom: 1px solid #f8fafc;
}

.logo {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap !important;
}

.logo-circle,
#userAvatar {
    background: var(--primary-color) !important;
    color: white !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    cursor: pointer;
    flex-shrink: 0 !important;
}

#userProfile {
    display: none;
    /* Controlled by JS */
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

#logoutBtn {
    background: white !important;
    border: 1px solid #ddd !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    color: var(--text-color) !important;
    flex-shrink: 0 !important;
}

#logoutBtn:hover {
    background: #f8fafc;
    border-color: #999;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2rem !important;
    list-style: none !important;
    align-items: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
    justify-self: center !important;
}

.nav-links a {
    text-decoration: none !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: color 0.2s !important;
}

.nav-links a:hover {
    color: var(--primary-color) !important;
}

.create-event-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
    font-family: 'Outfit', sans-serif !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.create-event-btn:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    justify-self: end !important;
    margin-left: auto !important;
    position: relative !important;
}

.mobile-menu-btn {
    display: none !important;
}

#authLinks {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.login-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap !important;
}



.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 5%;
    border-top: 1px solid #eee;
}

.footer-section {
    flex: 1;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 991px) {
    .navbar {
        --nav-height: 56px;
        display: flex !important;
        justify-content: space-between !important;
        padding: 0.6rem 4% !important;
        height: var(--nav-height) !important;
        min-height: var(--nav-height) !important;
    }

    .nav-links {
        display: none !important;
        /* Managed via .active in media query below */
    }

    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 4% !important;
    }

    .nav-links.active {
        display: flex !important;
        position: absolute !important;
        top: 70px !important;
        right: 5% !important;
        width: 200px !important;
        background: white !important;
        flex-direction: column !important;
        padding: 5px !important;
        border-radius: 16px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
        z-index: 1001 !important;
        gap: 0 !important;
    }

    .nav-links li {
        width: 100% !important;
        border-bottom: 1px solid #f8fafc !important;
    }

    .nav-links li:last-child {
        border-bottom: none !important;
    }

    .nav-links li a {
        display: block !important;
        padding: 12px 15px !important;
        text-align: center !important;
        border-radius: 8px !important;
        color: var(--text-color) !important;
        font-weight: 600 !important;
    }

    .nav-links li a:hover {
        background: #f8fafc !important;
        color: var(--primary-color) !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        font-size: 1.1rem !important;
        color: var(--text-color) !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }



    /* Replaced .category-buttons with .category-scroll-container / track for index.html compatibility */
    .category-scroll-container {
        padding: 0 !important;
        margin: 5px 0 !important;
    }

    .category-scroll-track {
        gap: 0.8rem !important;
        padding: 0 4% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        display: flex !important;
    }

    .category-btn {
        flex-shrink: 0 !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

@media screen and (max-width: 640px) {


    .logo-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }

    .create-event-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .events-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0 8px !important;
        min-width: 0 !important;
    }

    .event-card {
        min-width: 0 !important;
        width: 100% !important;
    }

    .event-card {
        border-radius: 16px !important;
    }

    .event-image-container {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }

    .event-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .event-content {
        padding: 10px !important;
    }

    .event-title {
        font-size: 0.95rem !important;
        margin-bottom: 4px !important;
    }

    .event-info-row {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
    }

    .creator-row {
        margin: 8px 0 !important;
        font-size: 0.75rem !important;
        gap: 5px !important;
    }

    .creator-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        align-items: stretch !important;
    }

    .btn-book,
    .btn-icon {
        padding: 6px 0 !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
    }

    .event-card-grid,
    .events-container,
    .event-list {
        padding: 0 !important;
    }

    .modal-content {
        padding: 1.5rem !important;
        width: 95% !important;
    }

    .footer-content {
        gap: 2rem !important;
    }
}

/* Footer & Global Tweaks */
.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

/* Categories */
.categories {
    padding: 2rem 5%;
}

/* Event Card Badge & Icons */
.card-badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-icon-save {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.2s;
}

.card-icon-save:hover {
    transform: scale(1.1);
}

/* Card Content Layout */
.event-info-row {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.2;
}

/* Creator Row */
.creator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.creator-avatar {
    width: 32px;
    height: 32px;
    background-color: #ddd;
    /* Default fallback */
    color: #222;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.creator-row strong {
    color: var(--text-color);
    /* Name is black */
    font-weight: 600;
}

/* Action Buttons */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-book {
    flex: 2;
    padding: 6px 0;
    /* Slightly taller */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    /* Slightly less rounded */
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.btn-book:hover {
    border-color: var(--text-color);
    background: #fafafa;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    background: white;
    /* Changed from gray to white */
    border: 1px solid #e2e8f0;
    /* Added border */
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-icon:hover {
    border-color: var(--text-color);
    background: #fafafa;
}

/* Categories */
.categories h2 {
    font-size: 2rem;
    color: var(--text-color);
}

.category-btn {
    padding: 0.8rem 1.8rem;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* Pill */
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Events Grid */
/* Events Grid Standardized */
.events-container {
    padding: 10px 5% !important;
    max-width: 1400px !important;
    margin: 0 auto;
}

/* Standardize Container Width to prevent horizontal scroll bugs */
.events-container {
    padding: 10px 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.filter-section {
    padding: 0 16px !important;
}

.events-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    overflow: visible !important;
    padding: 10px 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ===================================================
   LAYER / ROW STRUCTURE (Universal Carousel)
   =================================================== */

/* Each layer is a block container */
.events-layer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;   /* clip to viewport edge */
    box-sizing: border-box !important;
}

/* Per-layer dot indicator */
.layer-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 14px 0 0 !important;
    align-items: center !important;
}

/* The horizontal scroll row */
.events-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    overflow-x: scroll !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    /* Keep horizontal spacing balanced so desktop doesn't feel left-shifted */
    padding: 10px 16px 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Grid layout for all rows after the first one */
.events-layer.grid-layer .events-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
    padding: 10px 16px !important;
}

.events-layer.grid-layer .event-card {
    width: 100% !important;
    height: 320px !important;
    min-width: 0 !important;
}

.events-row::-webkit-scrollbar {
    display: none !important;
}

@media screen and (min-width: 1024px) {
    .events-container {
        max-width: 1320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .events-row {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* Shard card — Universal tall portrait style */
.event-card {
    flex: 0 0 auto !important;
    width: clamp(240px, 70vw, 290px) !important;
    height: clamp(340px, 110vw, 420px) !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
    min-width: 0 !important;
    background: #111 !important;
}

    /* Full-bleed image filling the shard */
    .event-card .event-image-container {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: unset !important;
        border-radius: 0 !important;
    }

    .event-card .event-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        transition: opacity 0.3s ease !important;
    }

    /* Gradient overlay for readability */
    .event-card::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.05) 40%,
            rgba(0,0,0,0.75) 75%,
            rgba(0,0,0,0.92) 100%
        ) !important;
        border-radius: 20px !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }

    /* Info overlay at the bottom of shard */
    .event-card .event-content {
        position: relative !important;
        z-index: 2 !important;
        padding: 10px 14px 14px !important;
        color: white !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .event-card .event-title {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.25 !important;
        margin-bottom: 2px !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .event-card .event-info-row {
        font-size: 0.72rem !important;
        color: rgba(255,255,255,0.85) !important;
        font-weight: 500 !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Price badge repositioned */
    .event-card .card-badge-price {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 3 !important;
        background: rgba(255,255,255,0.92) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        color: #111 !important;
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }

    /* Save icon badge */
    .event-card .card-icon-save {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        bottom: unset !important;
        right: unset !important;
        z-index: 3 !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(255,255,255,0.85) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        font-size: 0.75rem !important;
    }

    /* Creator row minimal */
    .event-card .creator-row {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        margin: 3px 0 0 !important;
        font-size: 0.9rem !important;
        color: rgba(255,255,255,1) !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    }

    .event-card .creator-avatar {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.6rem !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    /* Card actions — compact row */
    .event-card .card-actions {
        display: flex !important;
        gap: 6px !important;
        margin-top: 8px !important;
        align-items: center !important;
    }

    .event-card .btn-book {
        flex: 1 !important;
        padding: 7px 0 !important;
        font-size: 0.73rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        color: white !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        transition: background 0.2s ease !important;
    }

    .event-card .btn-book:hover,
    .event-card .btn-book:active {
        background: rgba(255,255,255,0.3) !important;
    }

    .event-card .btn-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.15) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        color: white !important;
        font-size: 0.75rem !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* Disable the hover float on shards (already active) */
    .event-card:hover {
        transform: scale(1.02) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.25) !important;
    }

.sort-select {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

.event-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-image-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Standard event banner ratio - fits landscape images */
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.event-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Fill container cleanly */
    object-position: center;
    /* Center crop for balanced look */
    transition: transform 0.4s ease;
}

.event-card:hover .event-image {
    transform: scale(1.06);
}

.event-content {
    padding: 0.8rem;
}

.event-title {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

.event-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    /* Light purple bg */
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-details {
    gap: 0.8rem;
    color: var(--gray);
    font-size: 0.95rem;
}

.event-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -1px;
}

.share-btn,
.chat-btn,
.save-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: white;
    color: var(--gray);
    box-shadow: var(--shadow-sm);
}

/* Event Card Footer */
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

/* Event Detail Items */
.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-detail-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0 5%;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.saved-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.saved-checkbox input {
    accent-color: var(--secondary-color);
    width: 1.1rem;
    height: 1.1rem;
}

/* Category Buttons Container (Horizontal Scroll) */
/* Strictly Grid-Aligned Category Flow */
.category-flow-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.category-flow-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: flow-left-grid 35s linear infinite;
    flex-wrap: nowrap;
}

.category-flow-marquee:hover .category-flow-track {
    animation-play-state: paused;
}

@keyframes flow-left-grid {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.category-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.8rem 2rem !important;
    font-weight: 600 !important;
}

/* Sticky Category Filter */
.category-scroll-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 10px;
    margin-bottom: 0;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-scroll-track {
    display: flex !important;
    gap: 12px;
    width: max-content !important;
}

.share-btn:hover,
.chat-btn:hover,
.save-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.chat-btn {
    background: #f8fafc;
    /* Reset specific chat btn color to generic */
}


.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.upload-area {
    border: 2px dashed #ddd;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.image-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Skeleton Loader (Premium Shimmer) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 380px;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 12px;
    width: 90%;
}

.skeleton-text.short {
    width: 60%;
}

/* =========================================
   Global Smooth Animations & Scroll Reveal 
   ========================================= */

/* Base Reveal Class - Hidden by default */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Active State - Triggered by JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Children */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Smooth Section Loading */
body {
    animation: pageFadeIn 0.8s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Hover Effects */
.btn:hover,
.btn-book:hover,
.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-card {
    /* Smooth cubic-bezier for premium feel, removing 'bouncy' overshoot */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease !important;
}

.event-card:hover {
    /* Reduced scale to prevent 'image jump' during object-fit recalculation */
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .events-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* --- Standard Footer System - Redesign to match screenshot exactly --- */
.main-footer {
    background-color: #ffffff !important;
    padding: 60px 8% 40px !important;
    border-top: 1px solid #eeeeee !important;
    color: #4b5563 !important;
    width: 100% !important;
    margin-top: 40px !important;
    position: relative !important;
    z-index: 10 !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-bottom: 50px !important;
}

.footer-section h3 {
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    text-transform: none !important;
    font-family: 'Outfit', sans-serif !important;
}

.footer-section p {
    color: #4b5563 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    max-width: 260px !important;
    font-weight: 500 !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: #6b7280 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.2s !important;
    font-weight: 500 !important;
}

.footer-links a:hover {
    color: var(--primary-color) !important;
}

.social-links {
    display: flex !important;
    gap: 12px !important;
}

.social-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--primary-color) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    box-shadow: 2px 2px 8px rgba(255, 90, 95, 0.4) !important;
    transition: transform 0.2s !important;
    text-decoration: none !important;
}

.social-btn:hover {
    transform: translateY(-3px) !important;
    opacity: 0.9 !important;
}

.copyright-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    text-align: left !important;
    border-top: none !important;
}

.copyright-section p {
    color: #4b5563 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Footer Responsive Overrides */
@media screen and (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media screen and (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        text-align: left !important;
        gap: 20px !important;
    }

    .footer-section:first-child {
        grid-column: span 2 !important;
        margin-bottom: 20px !important;
    }

    .social-links {
        justify-content: flex-start !important;
    }
}

/* --- End Footer System --- */

/* Restored Share Modal Styles */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.share-modal-content {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 24px !important;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-modal[style*="display: flex"] .share-modal-content {
    transform: scale(1);
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.share-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.share-option:hover {
    transform: scale(1.1);
}

.facebook-bg {
    background: #1877F2;
}

.twitter-bg {
    background: #1DA1F2;
}

.whatsapp-bg {
    background: #25D366;
}

.link-bg {
    background: var(--secondary-color);
}

.share-url {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    gap: 0.5rem;
}

.share-url input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-color);
    outline: none;
}

.share-url button {
    background: var(--text-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9 !important;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #e2e8f0 !important;
    transform: rotate(90deg);
}

/* Toast System (Restored) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast-info .toast-icon {
    background: #e0f2fe;
    color: #0284c7;
}

@media screen and (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        grid-template-columns: auto auto !important;
        gap: 15px !important;
    }

    .nav-links {
        display: none !important;
    }

    /* events-grid carousel already handled above */

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    table {
        min-width: 600px;
    }

    .modal-content {
        padding: 20px !important;
        width: 95% !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 0.8rem 15px !important;
    }

    .logo {
        font-size: 1rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .event-price {
        font-size: 1.5rem !important;
    }

    .toast {
        min-width: calc(100vw - 40px);
        right: 10px;
        left: 10px;
    }

    .btn-google {
        font-size: 14px !important;
        padding: 12px !important;
    }

    .attendee-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 15px 0 !important;
    }

    .upload-area {
        padding: 1.5rem !important;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100% !important;
    }

    /* Target specific form grids used in create-event.html */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Standardized Category Navigation */
.category-scroll-container {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 12px 0 !important;
    background: white !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.category-scroll-container::-webkit-scrollbar {
    display: none !important;
}

.category-scroll-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    padding: 0 20px !important;
}

.category-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.category-btn i {
    font-size: 1rem !important;
}

.category-btn:hover {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
}

.category-btn.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}


/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Mobile Shard Dot Indicator ===== */
.shard-indicator {
    display: none; /* hidden on desktop */
}

@media screen and (max-width: 768px) {
    .shard-swipe-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px 0;
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        letter-spacing: 0.5px;
    }

    .shard-swipe-hint i {
        font-size: 0.65rem;
        animation: swipeHint 1.6s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% { transform: translateX(0); opacity: 1; }
        50%       { transform: translateX(-6px); opacity: 0.5; }
    }

    .shard-indicator {
        display: flex;
        justify-content: center;
        gap: 7px;
        padding: 10px 0 4px;
        align-items: center;
    }

    .shard-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #cbd5e1;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }

    .shard-dot.active {
        background: #111;
        width: 22px;
        border-radius: 4px;
    }
}/ *   T h i r d - P a r t y   E v e n t   S t y l e s   * / 
 . t h i r d - p a r t y - e v e n t   { 
         p o s i t i o n :   r e l a t i v e ; 
 } 
 
 . t h i r d - p a r t y - e v e n t   . e v e n t - i m a g e - c o n t a i n e r : : a f t e r   { 
         c o n t e n t :   " " ; 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   0 ; 
         l e f t :   0 ; 
         r i g h t :   0 ; 
         b o t t o m :   0 ; 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 1 ) ,   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 0 5 ) ) ; 
         p o i n t e r - e v e n t s :   n o n e ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - c a r d ) ; 
 } 
 
 . p r o v i d e r - b a d g e   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   1 2 p x ; 
         l e f t :   1 2 p x ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 5 ) ; 
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
         p a d d i n g :   4 p x   8 p x ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         f o n t - s i z e :   0 . 7 5 r e m ; 
         f o n t - w e i g h t :   6 0 0 ; 
         b a c k d r o p - f i l t e r :   b l u r ( 1 0 p x ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 2 ) ; 
         z - i n d e x :   2 ; 
 } 
 
 . t h i r d - p a r t y - i n d i c a t o r   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   1 2 p x ; 
         r i g h t :   1 2 p x ; 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 5 ) ; 
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
         w i d t h :   3 2 p x ; 
         h e i g h t :   3 2 p x ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         b a c k d r o p - f i l t e r :   b l u r ( 1 0 p x ) ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 2 ) ; 
         z - i n d e x :   2 ; 
 } 
 
 . t h i r d - p a r t y - p r i c e   { 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 5 )   ! i m p o r t a n t ; 
         c o l o r :   v a r ( - - p r i m a r y - c o l o r )   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 2 )   ! i m p o r t a n t ; 
 } 
 
 . t h i r d - p a r t y - b o o k   { 
         b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 1 3 5 d e g ,   v a r ( - - p r i m a r y - c o l o r ) ,   # f f 4 4 4 9 )   ! i m p o r t a n t ; 
         c o l o r :   w h i t e   ! i m p o r t a n t ; 
         b o r d e r :   n o n e   ! i m p o r t a n t ; 
         f o n t - w e i g h t :   6 0 0   ! i m p o r t a n t ; 
         t e x t - t r a n s f o r m :   n o n e   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   4 p x   1 2 p x   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 3 )   ! i m p o r t a n t ; 
 } 
 
 . t h i r d - p a r t y - b o o k : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   6 p x   1 6 p x   r g b a ( 2 5 5 ,   9 0 ,   9 5 ,   0 . 4 )   ! i m p o r t a n t ; 
 } 
 
 / *   T h i r d - P a r t y   R e d i r e c t   P o p u p   S t y l e s   * / 
 . r e d i r e c t - o v e r l a y   { 
         p o s i t i o n :   f i x e d ; 
         t o p :   0 ; 
         l e f t :   0 ; 
         r i g h t :   0 ; 
         b o t t o m :   0 ; 
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 7 ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         z - i n d e x :   1 0 0 0 0 ; 
         b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ; 
 } 
 
 . r e d i r e c t - p o p u p   { 
         b a c k g r o u n d :   w h i t e ; 
         b o r d e r - r a d i u s :   1 6 p x ; 
         p a d d i n g :   0 ; 
         m a x - w i d t h :   4 0 0 p x ; 
         w i d t h :   9 0 % ; 
         b o x - s h a d o w :   0   2 0 p x   4 0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 3 ) ; 
         a n i m a t i o n :   p o p u p S l i d e I n   0 . 3 s   e a s e - o u t ; 
 } 
 
 @ k e y f r a m e s   p o p u p S l i d e I n   { 
         f r o m   { 
                 o p a c i t y :   0 ; 
                 t r a n s f o r m :   s c a l e ( 0 . 9 )   t r a n s l a t e Y ( 2 0 p x ) ; 
         } 
         t o   { 
                 o p a c i t y :   1 ; 
                 t r a n s f o r m :   s c a l e ( 1 )   t r a n s l a t e Y ( 0 ) ; 
         } 
 } 
 
 . r e d i r e c t - h e a d e r   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         p a d d i n g :   2 0 p x   2 4 p x   1 6 p x ; 
         b o r d e r - b o t t o m :   1 p x   s o l i d   # f 1 f 5 f 9 ; 
 } 
 
 . r e d i r e c t - h e a d e r   h 3   { 
         m a r g i n :   0 ; 
         f o n t - s i z e :   1 . 2 5 r e m ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   v a r ( - - t e x t - c o l o r ) ; 
 } 
 
 . r e d i r e c t - c l o s e   { 
         b a c k g r o u n d :   n o n e ; 
         b o r d e r :   n o n e ; 
         f o n t - s i z e :   2 4 p x ; 
         c o l o r :   # 6 4 7 4 8 b ; 
         c u r s o r :   p o i n t e r ; 
         p a d d i n g :   4 p x ; 
         b o r d e r - r a d i u s :   4 p x ; 
         t r a n s i t i o n :   a l l   0 . 2 s ; 
 } 
 
 . r e d i r e c t - c l o s e : h o v e r   { 
         b a c k g r o u n d :   # f 1 f 5 f 9 ; 
         c o l o r :   v a r ( - - t e x t - c o l o r ) ; 
 } 
 
 . r e d i r e c t - c o n t e n t   { 
         p a d d i n g :   2 4 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
 } 
 
 . r e d i r e c t - i c o n   { 
         f o n t - s i z e :   3 r e m ; 
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
         m a r g i n - b o t t o m :   1 6 p x ; 
 } 
 
 . r e d i r e c t - c o n t e n t   p   { 
         m a r g i n :   8 p x   0 ; 
         c o l o r :   # 4 7 5 5 6 9 ; 
         l i n e - h e i g h t :   1 . 5 ; 
 } 
 
 . r e d i r e c t - n o t e   { 
         f o n t - s i z e :   0 . 8 7 5 r e m   ! i m p o r t a n t ; 
         c o l o r :   # 6 4 7 4 8 b   ! i m p o r t a n t ; 
 } 
 
 . r e d i r e c t - c o u n t d o w n   { 
         m a r g i n :   1 6 p x   0 ; 
         f o n t - w e i g h t :   5 0 0 ; 
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ; 
 } 
 
 . r e d i r e c t - a c t i o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 2 p x ; 
         p a d d i n g :   0   2 4 p x   2 4 p x ; 
 } 
 
 . b t n - r e d i r e c t - n o w , 
 . b t n - r e d i r e c t - c a n c e l   { 
         f l e x :   1 ; 
         p a d d i n g :   1 2 p x   1 6 p x ; 
         b o r d e r - r a d i u s :   8 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 2 s ; 
         b o r d e r :   n o n e ; 
 } 
 
 . b t n - r e d i r e c t - n o w   { 
         b a c k g r o u n d :   v a r ( - - p r i m a r y - c o l o r ) ; 
         c o l o r :   w h i t e ; 
 } 
 
 . b t n - r e d i r e c t - n o w : h o v e r   { 
         b a c k g r o u n d :   # e 5 3 e 3 e ; 
         t r a n s f o r m :   t r a n s l a t e Y ( - 1 p x ) ; 
 } 
 
 . b t n - r e d i r e c t - c a n c e l   { 
         b a c k g r o u n d :   # f 1 f 5 f 9 ; 
         c o l o r :   # 4 7 5 5 6 9 ; 
 } 
 
 . b t n - r e d i r e c t - c a n c e l : h o v e r   { 
         b a c k g r o u n d :   # e 2 e 8 f 0 ; 
 } 
 
 / *   M o b i l e   r e s p o n s i v e   * / 
 @ m e d i a   ( m a x - w i d t h :   4 8 0 p x )   { 
         . r e d i r e c t - p o p u p   { 
                 m a r g i n :   2 0 p x ; 
                 w i d t h :   c a l c ( 1 0 0 %   -   4 0 p x ) ; 
         } 
 
         . r e d i r e c t - a c t i o n s   { 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
         } 
 
         . r e d i r e c t - h e a d e r   { 
                 p a d d i n g :   1 6 p x   2 0 p x   1 2 p x ; 
         } 
 
         . r e d i r e c t - c o n t e n t   { 
                 p a d d i n g :   2 0 p x ; 
         } 
 } 
 
 


/* ===================================================
   GLOBALLY FORCE MOBILE APPLIANCE LAYOUT (ALL SCREENS)
   =================================================== */

/* Center the app body and lock width on all screen sizes */
html {
    background-color: #f1f5f9 !important; /* Neutral background color for screen area outside the app */
}

body {
    max-width: 480px !important;
    margin: 0 auto !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1) !important;
    min-height: 100vh !important;
    position: relative !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Constrain fixed navbar/headers to center body */
header.main-header,
header.main-header.sticky,
body > nav.navbar,
.category-wrapper {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
}

/* Ensure event layout uses exactly 2 columns grid on ALL screens */
.events-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Make every layer display as contents so cards participate in events-grid directly */
.events-layer {
    display: contents !important;
}

.events-row {
    display: contents !important;
}

/* Re-style cards to fit the 2-column grid properly */
.event-card {
    width: 100% !important;
    min-width: 0 !important;
    height: 340px !important; /* Fixed height for clean grid alignment */
    margin: 0 !important;
    border-radius: 16px !important;
}

.event-image-container {
    height: 100% !important;
    border-radius: 16px !important;
}

/* Ensure the scroll indicator is hidden since it's not a carousel anymore */
.shard-indicator, .shard-swipe-hint {
    display: none !important;
}
