:root {
    /* Light Mode Tokens */
    --brand: #ff7a1d;
    --brand-hover: #e66a15;
    --brand-glow: rgba(255, 122, 29, 0.4);
    --dark: #0a0c10;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #ffffff;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --border: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.7);
    --radius-lg: 24px;
    --radius-md: 16px;
    --card-shadow: 0 12px 24px rgba(0,0,0,0.05);
    --search-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
    --skeleton: #f1f5f9;
    --orange-main: #ff7a1d;
    --bg-light: #ffffff;
    --border-color: #f1f5f9;
}

/* Dark Mode Tokens */
body.dark-version {
    --surface: #161b22;
    --surface-2: #0d1117;
    --surface-3: #21262d;
    --text-main: #f0f6fc;
    --text-sub: #8b949e;
    --border: #30363d;
    --nav-bg: rgba(13, 17, 23, 0.8);
    --card-shadow: 0 12px 24px rgba(0,0,0,0.2);
    --search-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    --skeleton: #21262d;
}

body {
    background-color: var(--surface-2);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Shimmer Animation --- */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton-shimmer {
    background: var(--skeleton);
    background-image: linear-gradient(to right, var(--skeleton) 0%, rgba(255, 122, 29, 0.05) 20%, var(--skeleton) 40%, var(--skeleton) 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    display: inline-block;
    position: relative;
    animation: shimmer 1.5s infinite linear forwards;
}

.skeleton-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
}

.skeleton-img { height: 180px; width: 100%; }
.skeleton-text { height: 14px; border-radius: 4px; margin-bottom: 10px; }
.skeleton-title { height: 20px; width: 70%; margin-bottom: 15px; }

/* --- Navigation --- */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    z-index: 1000;
    transition: background 0.3s ease, border 0.3s ease;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

body.dark-version .navbar-brand img {
    filter: brightness(0) invert(1);
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main) !important;
    margin: 0 0.5rem;
    opacity: 0.7;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--brand) !important;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.search-toggle:hover { color: var(--orange-main); }

/* Animated Search Overlay Area */
#chat-anchor {
    text-decoration: none;
}
.search-bar-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    display: none;
    animation: slideDown 0.3s ease forwards;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.search-bar-container.active {
    display: block;
}
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-input-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.nav-search-input {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 100px;
    padding: 14px 25px;
    padding-right: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}
.nav-search-input:focus {
    border-color: var(--orange-main);
    box-shadow: 0 0 0 4px rgba(255, 122, 29, 0.1);
}
.search-submit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange-main);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle {
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* --- Hero --- */
.hero {
    padding: 140px 0 60px;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 122, 29, 0.08), transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.05), transparent 40%);
}

.hero-tag {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title span {
    color: var(--brand);
    background: linear-gradient(120deg, var(--brand), #ff9f5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

        /* --- Search Bar & Selectors --- */
        .search-container { margin-top: -40px; margin-bottom: 80px; z-index: 500; position: relative; }

        .search-bar {
            background: var(--surface);
            padding: 0.75rem;
            border-radius: 24px;
            box-shadow: var(--search-shadow);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .search-input-group {
            flex: 1;
            padding: 0.6rem 1.4rem;
            border-right: 1px solid var(--border);
            position: relative;
            transition: background 0.2s;
            border-radius: 14px;
        }
        .search-input-group:hover { background: var(--surface-2); }
        .search-input-group:last-of-type { border-right: none; }

        .search-label {
            display: block;
            font-size: 0.65rem;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--text-sub);
            margin-bottom: 4px;
            letter-spacing: 0.05em;
        }

        /* Select Styling Override */
        .search-select {
            appearance: none;
            -webkit-appearance: none;
            border: none;
            background: transparent;
            font-weight: 700;
            font-size: 1rem;
            width: 100%;
            padding: 0;
            color: var(--text-main);
            cursor: pointer;
            outline: none;
            font-family: inherit;
        }

        /* Custom Arrow for Selects */
        .search-input-group::after {
            content: "\f107";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 15px;
            bottom: 12px;
            font-size: 0.8rem;
            color: var(--text-sub);
            pointer-events: none;
        }

        /* Date Trigger Field */
        .date-trigger {
            font-weight: 700;
            font-size: 1rem;
            color: var(--text-main);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            min-height: 24px;
        }

        /* Calendar Dropdown Modal */
        .calendar-dropdown {
            position: absolute;
            top: 110%;
            left: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            display: none;
            z-index: 1000;
            padding: 24px;
            width: 320px;
            animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

        .calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .calendar-header span { font-weight: 800; color: var(--text-main); font-size: 1.1rem; }
        .calendar-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-main); width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
        .calendar-btn:hover { background: var(--brand); color: white; border-color: var(--brand); }
        
        .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
        .calendar-day-label { font-size: 0.7rem; font-weight: 800; color: var(--text-sub); padding-bottom: 10px; }
        .calendar-date { 
            font-size: 0.9rem; font-weight: 600; padding: 12px 0; cursor: pointer; border-radius: 12px; color: var(--text-main); transition: all 0.2s;
        }
        .calendar-date:hover { background: var(--surface-2); color: var(--brand); }
        .calendar-date.active { background: var(--brand); color: white; box-shadow: 0 4px 10px var(--brand-glow); }
        .calendar-date.disabled { opacity: 0.2; cursor: default; }

        .btn-search {
            background: var(--brand);
            color: white !important;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 16px;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s;
            text-decoration: none;
            flex-shrink: 0;
            box-shadow: 0 10px 15px -3px var(--brand-glow);
        }
        .btn-search:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 15px 20px -5px var(--brand-glow); }

        .btn-nav-register {
            background: var(--brand);
            color: white !important;
            font-weight: 700;
            font-size: 0.85rem;
            padding: 0.6rem 1.5rem;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px var(--brand-glow);
            border: none;
        }

        .btn-nav-register:hover {
            background: var(--brand-hover);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px var(--brand-glow);
        }

/* --- Ad Styling --- */
.ad-container {
    padding-bottom: 2rem;
    text-align: center;
}

.ad-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
}

.ad-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.ad-wrapper img {
    width: 100%;
    height: auto;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

/* --- How It Works --- */
.hiw-step {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}
.hiw-step:hover {
    transform: translateY(-5px);
}
.hiw-icon {
    width: 64px;
    height: 64px;
    background: var(--brand);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px var(--brand-glow);
}

/* --- Gig Cards --- */
.gig-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gig-section-title {
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-main);
}

.scroll-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
}

.card-gig-v2 {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-gig-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gig-card-header {
    height: 180px;
    position: relative;
    background-color: #2d3748;
}

.gig-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.gig-card-overlay-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gig-card-avatar {
    position: absolute;
    bottom: -22px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--brand);
    border: 3px solid var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.gig-card-avatar img {
    width: 100%;
    height: auto;
}

.gig-card-body {
    padding: 35px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gig-card-title {
    text-decoration: none;
}

.gig-club-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.4;
}

.gig-date-time {
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.gig-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-sub);
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.gig-meta-item i {
    margin-top: 3px;
    width: 14px;
    text-align: center;
    color: #94a3b8;
}

.btn-tickets {
    display: inline-block;
    background: var(--brand);
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: fit-content;
    margin-bottom: 1rem;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-tickets:hover {
    background: var(--brand-hover);
}

/* --- Location Cards (Requested Bento Layout) --- */
.loc-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 250px;
}

.loc-card:hover {
    transform: translateY(-8px);
}

.loc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

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

.loc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.loc-card-lg {
    height: 520px;
}

.loc-card-md {
    height: 250px;
}

.loc-card-sm {
    height: 246px; /* Adjusted for alignment */
}

.gg-user-nav-wrap {
            position: relative;
            display: inline-block;
        }

        .gg-profile-trigger {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 16px 6px 6px;
            background: #f8fafc;
            border: 1px solid var(--border);
            border-radius: 100px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .gg-profile-trigger:hover {
            border-color: var(--brand);
            background: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

        .gg-avatar-circle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .gg-user-name {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .gg-chevron {
            font-size: 0.7rem;
            color: var(--text-sub);
            transition: transform 0.2s ease;
        }

        /* Dropdown Menu */
        .gg-profile-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 220px;
            background: white;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
            padding: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
        }

        /* Show on hover */
        .gg-user-nav-wrap:hover .gg-profile-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .gg-user-nav-wrap:hover .gg-chevron {
            transform: rotate(180deg);
        }

        .gg-dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 16px;
            color: var(--text-main);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            border-radius: 10px;
            transition: all 0.2s;
        }

        .gg-dropdown-item:hover {
            background: #f1f5f9;
            color: var(--brand);
        }

        .gg-dropdown-item i {
            font-size: 1rem;
            width: 20px;
            text-align: center;
            color: var(--text-sub);
        }

        .gg-dropdown-item:hover i {
            color: var(--brand);
        }

        .gg-dropdown-divider {
            height: 1px;
            background: var(--border);
            margin: 8px 0;
        }

        .gg-logout {
            color: #ef4444;
        }
        .gg-logout:hover {
            background: #fef2f2;
            color: #ef4444;
        }
        .gg-logout i { color: #ef4444; }

/* --- Improved Footer --- */
.footer {
    background: var(--dark);
    color: #ffffff;
    padding: 100px 0 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

body.dark-version .footer {
    background: #0d1117;
    border-top: 1px solid var(--border);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,122,29,0.3), transparent);
}

.footer-logo { height: 40px; margin-bottom: 2rem; }

.footer-heading {
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #f8fafc;
}

.footer-link {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--brand);
    transform: translateX(5px);
}

.footer-newsletter-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.newsletter-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.newsletter-input:focus {
    background: rgba(0,0,0,0.3);
    border-color: var(--brand);
    box-shadow: none;
    color: white;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-3px);
}

.circuit-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 991px) {
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-input-group { border-right: none; border-bottom: 1px solid var(--border); }
    .loc-card-lg, .loc-card-md, .loc-card-sm { height: 320px; min-height: 320px; }
    .footer { padding-top: 60px; }
}