/* ============================================
   FESTS.IO - Festival Discovery Platform
   Dark Theme with Neon-Lime Accents
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #131328;
    --bg-card: #1a1a35;
    --bg-card-hover: #222248;
    --bg-sidebar: #0f0f24;
    --bg-topbar: rgba(13, 13, 26, 0.95);
    --bg-input: #1e1e3a;

    --text-primary: #f0f0f8;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;

    --accent: #cdff3a;
    --accent-hover: #deff73;
    --accent-purple: #b8ff1f;
    --accent-pink: #cdff3a;
    --accent-gradient: linear-gradient(135deg, #cdff3a, #8fdd00);

    --border: #2a2a4a;
    --border-light: #3a3a5a;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --sidebar-width: 260px;
    --topbar-height: 64px;

    --transition: all 0.3s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav > ul > li > a:hover,
.sidebar-nav > ul > li > a.active {
    color: var(--text-primary);
    background: rgba(205, 255, 58, 0.08);
    border-left-color: var(--accent);
}

.sidebar-nav > ul > li > a.active {
    background: linear-gradient(90deg, rgba(205, 255, 58, 0.2), transparent);
}

.sidebar-nav > ul > li > a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Sidebar mobile chip sliders — hidden on desktop */
.sidebar-chips-section {
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 4px;
}

.sidebar-chips-group {
    padding: 14px 20px 4px;
}

.sidebar-chips-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-chips-label i {
    color: var(--accent);
    font-size: 0.8rem;
}

.sidebar-chips-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 14px;
}

.sidebar-chips-track::-webkit-scrollbar {
    display: none;
}

.sidebar-chips-track .category-chip {
    flex-shrink: 0;
}

.sidebar-section {
    padding: 16px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.sidebar-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 24px 8px;
}

.sidebar-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.sidebar-section a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-section a i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.sidebar-section .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* --- Main Wrapper --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Top Bar --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    height: var(--topbar-height);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(205, 255, 58, 0.18);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.search-section:last-child {
    border-bottom: none;
}

.search-section h4 {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    transition: var(--transition);
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-item img.rounded {
    border-radius: 50%;
}

.search-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.search-item small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.topbar-link:hover {
    color: var(--text-primary);
}

/* --- Content Area --- */
.content {
    flex: 1;
    padding: 0;
}

/* Horizontal category carousel */
.category-carousel-wrap {
    position: sticky;
    top: var(--topbar-height);
    z-index: 850;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(13, 13, 26, 0.88);
    backdrop-filter: blur(14px);
}

.category-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    padding: 2px 0;
    touch-action: pan-x;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-chip {
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(205, 255, 58, 0.28);
    background: rgba(205, 255, 58, 0.09);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.category-chip.subtle {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.category-chip:hover {
    color: #111;
    background: var(--accent);
    border-color: var(--accent);
}

.carousel-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(205, 255, 58, 0.35);
    background: rgba(205, 255, 58, 0.12);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(205, 255, 58, 0.24);
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 468px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13, 13, 26, 0.95) 0%,
        rgba(13, 13, 26, 0.7) 40%,
        rgba(13, 13, 26, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 48px;
    max-width: 700px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: #101418;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hero-meta i {
    color: var(--accent);
    margin-right: 4px;
}

.hero-countdown {
    background: rgba(205, 255, 58, 0.14);
    padding: 2px 10px;
    border-radius: 50px;
    color: var(--accent);
    font-weight: 600;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 24px;
    right: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-prev, .hero-next {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.hero-prev:hover, .hero-next:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* --- Sections --- */
.section {
    padding: 40px 32px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    width: 100%;
}

.see-all {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.see-all:hover {
    gap: 8px;
}

/* --- Genre Grid --- */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.genre-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.genre-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(205, 255, 58, 0.2);
    color: var(--text-primary);
}

.genre-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #101418;
}

.genre-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.genre-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Festival Grid --- */
.festival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 32px;
}

.festival-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Home page festival row carousels */
.row-carousel-wrap {
    position: relative;
    width: 100%;
}

.row-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: 100%;
    padding: 0 0 6px;
    touch-action: pan-x;
}

.row-carousel-track::-webkit-scrollbar {
    display: none;
}

.row-carousel-track .festival-card {
    min-width: 280px;
    flex: 0 0 280px;
}

.row-carousel-track.large .festival-card {
    min-width: 320px;
    flex: 0 0 320px;
}

.row-carousel-arrow {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(205, 255, 58, 0.35);
    background: rgba(13, 13, 26, 0.78);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(8px);
}

.row-carousel-arrow:hover {
    background: rgba(205, 255, 58, 0.24);
}

.row-carousel-arrow.left {
    left: 10px;
}

.row-carousel-arrow.right {
    right: 10px;
}

.festival-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.festival-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.festival-card-link {
    display: block;
    color: var(--text-primary);
}

.festival-card-link:hover {
    color: var(--text-primary);
}

.festival-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.festival-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.festival-card:hover .festival-card-image img {
    transform: scale(1.08);
}

.festival-card-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.badge-genre {
    background: var(--accent-gradient);
    color: #0d0d1a !important;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-soon {
    background: rgba(123, 47, 247, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-countdown {
    background: rgba(205, 255, 58, 0.2);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-live {
    background: #22c55e;
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-headliner {
    background: var(--accent-gradient);
    color: #101418;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.festival-card-body {
    padding: 16px;
}

.festival-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.festival-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.festival-card-meta span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.festival-card-meta i {
    color: var(--accent);
    font-size: 0.8rem;
    width: 14px;
}

.festival-card-price {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Festival Detail Page --- */
.festival-hero {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
}

.festival-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.festival-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.festival-hero-meta span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.festival-hero-meta i {
    color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Festival Layout */
.festival-layout, .artist-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 32px;
}

.festival-main, .artist-main {
    min-width: 0;
}

.festival-section {
    margin-bottom: 40px;
}

.festival-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.festival-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.info-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Lineup / Artist Grids */
.lineup-tier {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 16px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.artist-grid.headliners {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-primary);
    display: block;
}

.artist-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(205, 255, 58, 0.16);
    color: var(--text-primary);
}

.artist-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.artist-card.headliner img {
    height: 220px;
}

.artist-card-info {
    padding: 12px;
}

.artist-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.artist-card-info span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.artist-card-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.artist-card-info .stage {
    color: var(--accent);
}

/* Events Timeline */
.events-timeline {
    position: relative;
}

.timeline-date h3 {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.timeline-event {
    display: flex;
    gap: 20px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-event:hover {
    border-color: var(--border-light);
}

.event-time {
    min-width: 60px;
    text-align: center;
}

.event-time span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.event-time small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.event-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-stage {
    color: var(--accent);
    font-size: 0.85rem;
}

.event-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--accent);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.93rem;
}

/* Festival Sidebar */
.festival-sidebar, .artist-sidebar {
    position: relative;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.sidebar-card.sticky {
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
}

.price-display {
    text-align: center;
    margin-bottom: 16px;
}

.price-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile festival image with days countdown — hidden on desktop */
.mobile-fest-img-days {
    display: none;
}

.countdown-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(205, 255, 58, 0.1);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.countdown-box i {
    color: var(--accent);
    font-size: 1.3rem;
}

.countdown-box strong {
    font-size: 1.6rem;
    display: block;
}

.countdown-box span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.mobile-fest-img-days {
    position: relative;
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.mobile-fest-img-days img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-fest-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 6, 14, 0.96) 0%, rgba(4, 6, 14, 0.6) 35%, rgba(4, 6, 14, 0.1) 65%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 16px;
    gap: 2px;
}

.mobile-fest-img-overlay strong {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.mobile-fest-img-overlay span {
    font-size: 0.82rem;
    color: rgba(240, 240, 248, 0.8);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-stats {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-stats div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-stats i {
    color: var(--text-muted);
    width: 18px;
}

.sidebar-stat {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.sidebar-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-stat span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(205, 255, 58, 0.14);
    color: var(--text-primary);
}

.social-links a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.social-links a .fa-spotify { color: #1DB954; }
.social-links a .fa-instagram { color: #E4405F; }
.social-links a .fa-youtube { color: #FF0000; }
.social-links a .fa-soundcloud { color: #FF5500; }

/* --- Artist Page --- */
.artist-hero {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
}

.artist-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.artist-hero-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.artist-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.artist-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.artist-meta span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Artist Browse Page */
.artist-grid.browse {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 32px 40px;
}

.artist-browse-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
    color: var(--text-primary);
}

.artist-browse-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 255, 58, 0.14);
    color: var(--text-primary);
}

.artist-browse-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.artist-browse-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.artist-browse-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 2px;
}

.artist-browse-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Appearances */
.appearances-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appearance-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-primary);
}

.appearance-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.appearance-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.appearance-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.appearance-info span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.appearance-info i {
    color: var(--accent);
    margin-right: 4px;
}

/* --- Page Header --- */
.page-header {
    padding: 40px 32px 24px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header h1 i {
    color: var(--accent);
    margin-right: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Filters --- */
.filters-bar {
    padding: 0 32px 24px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-search {
    position: relative;
}

.filter-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-search input {
    padding-left: 40px !important;
}

.filter-chips {
    display: contents;
}

.filter-chip-label {
    display: none;
}

.filter-actions {
    display: contents;
}

.filter-group input,
.filter-group select {
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    min-width: 160px;
    transition: var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--accent);
}

.filter-group select {
    cursor: pointer;
    appearance: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #101418;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(205, 255, 58, 0.35);
    color: #101418;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    margin-bottom: 8px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h2 {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* --- Not Found --- */
.not-found {
    text-align: center;
    padding: 80px 32px;
}

.not-found h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.not-found p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: auto;
}

body:not(.page-home) .content {
    padding-bottom: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(210px, 0.7fr) 1.8fr;
    gap: 32px;
    padding: 40px 32px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-col li {
    margin-bottom: 0;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.84rem;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Animations --- */
.fade-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-target.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .category-carousel-wrap {
        display: none;
    }

    .sidebar-chips-section {
        display: block;
    }

    .carousel-arrow {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .festival-layout, .artist-layout {
        grid-template-columns: 1fr;
    }

    .festival-sidebar {
        order: -1;
    }

    .artist-sidebar {
        order: 1;
    }

    .sidebar-card.sticky {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(13, 13, 26, 0.985) 0%,
            rgba(13, 13, 26, 0.82) 45%,
            rgba(13, 13, 26, 0.62) 100%
        );
    }

    .hero-slider {
        height: 500px;
    }

    .hero-content {
        padding: 30px 24px;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-actions .btn {
        width: auto;
    }

    .hero-controls {
        bottom: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-prev,
    .hero-next {
        display: none;
    }

    .section {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .genre-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    .festival-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }

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

    .festival-grid .festival-card-body h3 {
        font-size: 0.85rem;
    }

    .festival-grid .festival-card-meta {
        font-size: 0.75rem;
    }

    .festival-grid .festival-card-price {
        font-size: 0.78rem;
    }

    .row-carousel-wrap {
        width: 100%;
    }

    .row-carousel-track {
        gap: 16px;
        padding: 0 0 6px;
    }

    .row-carousel-track .festival-card,
    .row-carousel-track.large .festival-card {
        min-width: min(76vw, 300px);
        flex: 0 0 min(76vw, 300px);
    }

    .row-carousel-wrap::before,
    .row-carousel-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 24px;
        z-index: 2;
        pointer-events: none;
    }

    .row-carousel-wrap::before {
        left: 0;
        background: linear-gradient(to right, rgba(5, 8, 22, 0.85), rgba(5, 8, 22, 0));
    }

    .row-carousel-wrap::after {
        right: 0;
        background: linear-gradient(to left, rgba(5, 8, 22, 0.9), rgba(5, 8, 22, 0));
    }

    .row-carousel-arrow {
        display: none;
    }

    .topbar {
        padding: 0 16px;
    }

    /* Prevent iOS zoom on input focus (requires font-size >= 16px) */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Full-width search results on mobile */
    .search-results {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(var(--topbar-height) + 6px);
        width: 100%;
        border-radius: 0 0 20px 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .festival-layout, .artist-layout {
        padding: 20px 16px;
        gap: 24px;
    }

    .countdown-box {
        display: none;
    }

    .mobile-fest-img-days {
        display: block;
    }

    .festival-hero {
        height: auto;
    }

    .festival-hero-content {
        height: auto;
        justify-content: flex-start;
        padding: 52px 20px;
        align-items: center;
        text-align: center;
    }

    .festival-hero-content h1 {
        font-size: 1.6rem;
    }

    .festival-hero-meta {
        justify-content: center;
    }

    .festival-hero-meta span {
        color: rgba(240, 240, 248, 0.9);
    }

    .festival-hero-meta .badge-genre {
        color: #101418;
    }

    .breadcrumb {
        justify-content: center;
    }

    .breadcrumb a, .breadcrumb span {
        color: rgba(240, 240, 248, 0.75);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .artist-grid.browse {
        grid-template-columns: 1fr;
        padding: 0 16px 40px;
    }

    .artist-browse-card {
        flex-direction: row;
    }

    .appearance-card {
        flex-direction: column;
    }

    .appearance-card img {
        width: 100%;
        height: 140px;
    }

    .page-header {
        padding: 30px 20px 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .filters-bar {
        padding: 0 16px 20px;
    }

    .filters-form {
        flex-direction: column;
        gap: 14px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 18px;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search input {
        border-radius: 12px !important;
    }

    .filter-chips {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .filter-chip {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .filter-chip-label {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
    }

    .filter-chip-label svg {
        color: var(--accent);
        flex-shrink: 0;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group input,
    .filter-group select {
        width: 100%;
        min-width: auto;
    }

    .filter-chip select {
        padding: 9px 8px;
        font-size: 0.82rem;
        border-radius: 10px;
        background: var(--bg-input);
    }

    .filter-actions {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .btn-filter {
        flex: 1;
        justify-content: center;
        border-radius: 12px;
        padding: 12px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 20px;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-col h4 {
        text-align: center;
    }

    .footer-col ul {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .artist-hero {
        height: auto;
    }

    .artist-hero-content {
        height: auto;
        justify-content: flex-start;
        padding: 52px 20px;
        align-items: center;
        text-align: center;
    }

    .artist-hero-info {
        flex-direction: column;
        text-align: center;
    }

    .artist-meta {
        justify-content: center;
    }

    .timeline-event {
        flex-direction: column;
        gap: 8px;
    }

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

@media (max-width: 480px) {
    .hero-slider {
        height: 470px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-description {
        display: none;
    }

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

    .genre-card {
        padding: 14px 10px;
    }

    .genre-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .genre-card h3 {
        font-size: 0.82rem;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Selection */
::selection {
    background: rgba(205, 255, 58, 0.3);
    color: white;
}

/* ============================================
   FESTIVAL HERO IMAGE PANEL + LIGHTBOX
   ============================================ */

/* Image panel — floating on right side of hero, desktop only */
.festival-hero {
    position: relative;
}

.festival-hero-img-panel {
    display: none; /* hidden on mobile */
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    width: 220px;
    height: calc(380px * 0.8); /* 80% of hero height */
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.festival-hero-img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.festival-hero-img-panel:hover {
    transform: translateY(-50%) scale(1.03);
    box-shadow: 0 12px 50px rgba(205, 255, 58, 0.35);
}

.festival-hero-img-panel:hover img {
    transform: scale(1.05);
}

.festival-hero-img-hint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: white;
    font-size: 1.4rem;
    opacity: 0;
}

.festival-hero-img-panel:hover .festival-hero-img-hint {
    background: rgba(0,0,0,0.3);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 3;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Ticket purchase popup */
.ticket-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.ticket-popup.open {
    display: block;
}

.ticket-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 14, 0.8);
    backdrop-filter: blur(6px);
}

.ticket-popup-dialog {
    position: relative;
    z-index: 2;
    width: min(1440px, calc(100vw - 60px));
    height: min(92vh, 960px);
    margin: 3vh auto 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.ticket-popup-header {
    height: 68px;
    border-bottom: 1px solid var(--border);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 15, 31, 0.95);
}

.ticket-popup-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticket-popup-btn {
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 12px;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.86rem;
    transition: all 0.2s ease;
}

.ticket-popup-btn svg {
    flex-shrink: 0;
}

.ticket-popup-btn:hover {
    background: rgba(205, 255, 58, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.ticket-popup-btn.danger:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Confirm Dialog */
.confirm-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(4, 6, 14, 0.75);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.confirm-dialog-overlay.open {
    display: flex;
}

.confirm-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: confirmSlideIn 0.25s ease;
}

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

.confirm-dialog-icon {
    margin-bottom: 16px;
}

.confirm-dialog h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.confirm-dialog p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.confirm-dialog-actions {
    display: flex;
    gap: 10px;
}

.confirm-dialog-actions .btn {
    flex: 1;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: 600;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    opacity: 0.9;
    color: #fff;
}

.ticket-popup-body {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #090c1d;
    overflow: hidden;
}

.ticket-popup-body iframe {
    border: none;
    display: block;
    width: 100%;
    height: 100%;
    background: #0b0f23;
}

/* Loader overlay */
.ticket-popup-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #090c1d;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.ticket-popup-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.tpl-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Spinning arc ring + icon */
.tpl-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.tpl-arc-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: tplArcRotate 1.3s linear infinite;
    transform-origin: center;
}

@keyframes tplArcRotate {
    from { transform: rotate(-90deg); }
    to   { transform: rotate(270deg); }
}

.tpl-arc-track {
    stroke: rgba(205, 255, 58, 0.1);
    stroke-width: 3;
}

.tpl-arc-fill {
    stroke: url(#arcGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    /* circumference ≈ 314; show ~75% */
    stroke-dasharray: 236 78;
}

/* Icon centered inside ring */
.tpl-icon-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl-icon-center svg {
    width: 52px;
    height: 52px;
    animation: tplIconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(205, 255, 58, 0.55));
}

@keyframes tplIconPulse {
    0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 10px rgba(205, 255, 58, 0.55)); }
    50%       { transform: scale(0.91); filter: drop-shadow(0 0 22px rgba(205, 255, 58, 0.9)); }
}

/* Dots */
.tpl-dots {
    display: flex;
    gap: 7px;
}

.tpl-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cdff3a;
    animation: tplDotBounce 1.2s ease-in-out infinite;
}

.tpl-dots span:nth-child(1) { animation-delay: 0s; }
.tpl-dots span:nth-child(2) { animation-delay: 0.18s; }
.tpl-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes tplDotBounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
    40%           { transform: scale(1);   opacity: 1; }
}

/* Label */
.tpl-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(205, 255, 58, 0.6);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .ticket-popup-dialog {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        border-radius: 0;
        border: none;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .ticket-popup-header {
        padding: 0 12px;
        padding-left: calc(12px + env(safe-area-inset-left, 0px));
        padding-right: calc(12px + env(safe-area-inset-right, 0px));
        height: 62px;
    }

    .ticket-popup-btn span {
        display: none;
    }
}

/* Show image panel on desktop only */
@media (min-width: 1025px) {
    .festival-hero-img-panel {
        display: block;
    }
    /* Push text content left so it doesn't overlap the image */
    .festival-hero-content {
        max-width: calc(100% - 320px);
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #16162e;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 14px 24px;
}
#cookieBanner.cb-visible {
    transform: translateY(0);
}
.cb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.cb-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}
.cb-text {
    flex: 1;
    min-width: 220px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cb-text a {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.cb-text a:hover { text-decoration: underline; }
.cb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cb-btn-accept {
    background: var(--accent-gradient);
    color: #0d0d1a;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    font-family: var(--font);
}
.cb-btn-accept:hover { opacity: 0.88; transform: translateY(-1px); }
.cb-btn-essential {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-family: var(--font);
}
.cb-btn-essential:hover { color: var(--text-primary); border-color: var(--text-muted); }
.cb-btn-decline {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 6px;
    text-decoration: underline;
    font-family: var(--font);
    transition: color 0.2s;
    white-space: nowrap;
}
.cb-btn-decline:hover { color: var(--text-secondary); }

@media (max-width: 600px) {
    #cookieBanner { padding: 12px 16px; }
    .cb-icon { display: none; }
    .cb-text { font-size: 0.78rem; min-width: 100%; }
    .cb-actions { width: 100%; justify-content: flex-end; }
    .cb-btn-accept { padding: 8px 16px; font-size: 0.82rem; }
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Accessibility, Cookies)
   ============================================ */

.legal-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}
.legal-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}
.legal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.legal-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.legal-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 36px;
}
.legal-toc h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.legal-toc ol {
    padding-left: 20px;
    margin: 0;
}
.legal-toc li {
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.legal-toc a {
    color: var(--accent);
    text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}
.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.legal-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--accent-gradient);
    border-radius: 2px;
    flex-shrink: 0;
}
.legal-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}
.legal-section ul, .legal-section ol {
    padding-left: 22px;
    margin-bottom: 12px;
}
.legal-section li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 6px;
}
.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}
.legal-section a {
    color: var(--accent);
    text-decoration: none;
}
.legal-section a:hover { text-decoration: underline; }
.legal-contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}
.legal-contact-box a { color: var(--accent); text-decoration: none; }
.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(205,255,58,0.08);
    border: 1px solid rgba(205,255,58,0.2);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.cookie-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}
.cookie-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.cookie-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border);
}
.cookie-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}
.cookie-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.cookie-tag-essential {
    display: inline-block;
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cookie-tag-third {
    display: inline-block;
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.accessibility-level {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.a11y-level-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.a11y-level-badge .a11y-grade {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}
.a11y-level-badge .a11y-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

@media (max-width: 600px) {
    .legal-page { padding: 20px 16px 48px; }
    .legal-header h1 { font-size: 1.5rem; }
    .cookie-table { font-size: 0.78rem; }
    .cookie-table th, .cookie-table td { padding: 8px 10px; }
}

/* ============================================================
   CUSTOM FILTER PICKER
   ============================================================ */

/* Trigger button (replaces <select>) */
.filter-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    min-width: 0;          /* allow shrinking on mobile */
    transition: var(--transition);
    white-space: nowrap;
    text-align: left;
    line-height: 1;
    overflow: hidden;      /* prevent blowing out parent */
}

/* Full label — desktop only */
.flt-lbl-full  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.flt-lbl-short { display: none; }
.filter-picker-btn:hover {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.05);
}
.filter-picker-btn.has-value {
    border-color: var(--accent);
    color: var(--accent);
}
.filter-picker-btn.has-value .flt-btn-icon { opacity: 1; color: var(--accent); }
.filter-picker-btn .flt-btn-icon { flex-shrink: 0; opacity: 0.45; }
.filter-picker-btn .flt-chevron  { margin-left: auto; flex-shrink: 0; opacity: 0.35; transition: transform .2s; }
.filter-picker-btn.open .flt-chevron { transform: rotate(180deg); opacity: .6; }

/* Backdrop */
.flt-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 8000;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.flt-overlay.open { display: block; }

/* Panel — desktop: centered modal */
.flt-panel {
    display: none;
    position: fixed; z-index: 8010;
    background: #16162e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
    width: min(480px, calc(100vw - 48px));
    max-height: min(580px, calc(100vh - 80px));
    top: 50%; left: 50%;
    flex-direction: column;
    overflow: hidden;
}
.flt-panel.open {
    display: flex;
    animation: fltPanelIn .22s cubic-bezier(.34,1.3,.64,1) forwards;
}
@keyframes fltPanelIn {
    from { opacity: 0; transform: translate(-50%,-48%) scale(.95); }
    to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.flt-panel-sm { max-height: min(320px, calc(100vh - 80px)); }

/* Handle — hidden on desktop */
.flt-handle { display: none; }

/* Panel header */
.flt-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.flt-panel-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .95rem; font-weight: 700; color: var(--text-primary);
}
.flt-panel-title svg { color: var(--accent); }
.flt-panel-close {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.06); border: none;
    color: rgba(255,255,255,.45); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.flt-panel-close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Country search */
.flt-panel-search { padding: 10px 16px 6px; flex-shrink: 0; }
.flt-panel-search-wrap { position: relative; }
.flt-panel-search-wrap svg {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    opacity: .35; pointer-events: none;
}
.flt-panel-search input {
    width: 100%; box-sizing: border-box;
    padding: 9px 14px 9px 34px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: .85rem; font-family: var(--font);
    outline: none; transition: border-color .2s;
}
.flt-panel-search input:focus { border-color: var(--accent); }

/* Scrollable body */
.flt-panel-body {
    flex: 1; overflow-y: auto;
    padding: 12px 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(205,255,58,.2) transparent;
}
.flt-panel-body::-webkit-scrollbar { width: 4px; }
.flt-panel-body::-webkit-scrollbar-thumb { background: rgba(205,255,58,.2); border-radius: 4px; }

/* Options layouts */
.flt-opts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.flt-opts-list { display: flex; flex-direction: column; gap: 4px; }

/* Option button */
.flt-opt {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 11px;
    background: rgba(255,255,255,.04);
    border: 1px solid transparent; border-radius: 10px;
    color: rgba(255,255,255,.65);
    font-size: .85rem; font-weight: 500;
    cursor: pointer; text-align: left;
    transition: all .14s; width: 100%;
    font-family: var(--font); line-height: 1.2;
}
.flt-opt:hover  { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.1); }
.flt-opt.active { background: rgba(205,255,58,.1); border-color: rgba(205,255,58,.28); color: #cdff3a; font-weight: 600; }
.flt-opt.flt-hidden { display: none; }

.flt-opt-icon {
    width: 28px; height: 28px; border-radius: 7px;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; flex-shrink: 0;
}
.flt-opt.active .flt-opt-icon { background: rgba(205,255,58,.12); }

.flt-opt-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flt-opt-check {
    margin-left: auto; color: var(--accent);
    flex-shrink: 0; opacity: 0; transition: opacity .15s;
}
.flt-opt.active .flt-opt-check { opacity: 1; }

.flt-opt-count {
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.06);
    padding: 2px 6px; border-radius: 100px; flex-shrink: 0;
}
.flt-opt.active .flt-opt-count { color: rgba(205,255,58,.55); background: rgba(205,255,58,.1); }

.flt-opt-badge {
    font-size: .63rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 100px; flex-shrink: 0;
}
.flt-badge-upcoming { background: rgba(52,211,153,.15); color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.flt-badge-ongoing  { background: rgba(96,165,250,.15);  color: #60a5fa; border: 1px solid rgba(96,165,250,.25); }

/* ── Mobile: bottom sheet ──────────────────────────────────────── */
@media (max-width: 768px) {
    .flt-panel {
        width: 100%; max-width: 100%;
        border-radius: 24px 24px 0 0;
        top: auto; bottom: 0; left: 0; right: 0;
        transform: none !important;
        max-height: 78dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .flt-panel.open { animation: fltSheetUp .28s cubic-bezier(.32,.72,0,1) forwards; }
    @keyframes fltSheetUp {
        from { opacity: .6; transform: translateY(32px); }
        to   { opacity: 1;  transform: translateY(0); }
    }
    .flt-handle {
        display: block;
        width: 40px; height: 4px;
        background: rgba(255,255,255,.14); border-radius: 2px;
        margin: 12px auto 2px; flex-shrink: 0;
    }
    .flt-opts-grid { grid-template-columns: repeat(2,1fr); }
    /* On mobile: swap full ↔ short labels */
    .flt-lbl-full  { display: none; }
    .flt-lbl-short { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
    .filter-picker-btn { font-size: .82rem; padding: 9px 10px; }
    .filter-picker-btn .flt-btn-icon { display: none; } /* save space — icon already visible in label above */
}

/* ── Filter page loading overlay ──────────────────────────────── */
.flt-loading {
    display: none;
    position: fixed; inset: 0; z-index: 9990;
    background: rgba(9,12,29,.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center; justify-content: center;
}
.flt-loading.open { display: flex; }
