/* ==========================================================================
   1. General - Body, typography, etc.
   ========================================================================== */
:root{--bg:#141414;--fg:#e5e7eb;--accent:#ef4444;--muted:#9ca3af;--border:#333333;--surface:#1f1f1f;--input:#1f1f1f;--btn-text:#ffffff;--secondary:#27272a}
body.light{--bg:#ffffff;--fg:#111827;--accent:#dc2626;--muted:#64748b;--border:#e5e7eb;--surface:#ffffff;--input:#ffffff;--btn-text:#ffffff;--secondary:#f3f4f6}
*{box-sizing:border-box}
html,body{overflow-x:hidden !important;width:100% !important;max-width:100% !important;position:relative}
body{margin:0;background:var(--bg);color:var(--fg);font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.5}
body.light{background:var(--bg);color:var(--fg)}
a{color:var(--accent);text-decoration:none}

/* ==========================================================================
   2. Layout - Header, main, footer, grid, etc.
   ========================================================================== */
header{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid var(--border);position:sticky;top:0;left:0;right:0;background:rgba(20,20,20,.85);backdrop-filter:blur(6px);z-index:20;width:100%;margin:0}
body.light header{background:rgba(255,255,255,.9);border-bottom:1px solid var(--border)}
header .brand{font-weight:800;font-size:22px;letter-spacing:.2px;display:flex;align-items:center;gap:12px}
header .brand img{display:block}
header .brand a{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
header nav a{margin-right:8px;color:var(--fg);padding:8px 12px;border-radius:999px;font-weight:600;transition:background .12s ease,color .12s ease}
header nav a:hover{background:var(--border)}
header nav a.active{background:var(--accent);color:#ffffff}
body.light header nav a:hover{background:#f3f4f6}
body.light header nav a.active{background:var(--accent);color:#ffffff}
main{max-width:1200px;width:100%;margin:0 auto;padding:24px 20px} /* Optimized width for browsing */
.footer{margin-top:40px;border-top:1px solid var(--border);padding:32px 24px;color:#9aa7b4}
body.light .footer{border-top-color:var(--border);color:#64748b}
.footer-inner{max-width:95%;margin:0 auto;display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:flex-start}
.footer-brand{max-width:320px}
.footer-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:.08em;color:var(--fg)}
.footer-logo img{height:32px}
.footer-text{margin:8px 0 0;font-size:14px;max-width:320px}
body.light .footer-text{color:#64748b}
.footer-links{display:flex;flex-wrap:wrap;gap:32px}
.footer-col{min-width:150px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.footer-title{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.footer-col a{color:#9aa7b4}
body.light .footer-col a{color:#64748b}
.footer-col a:hover{color:var(--accent)}
.footer-bottom{max-width:95%;margin:24px auto 0;padding-top:16px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center;font-size:13px;color:#6b7280}
body.light .footer-bottom{border-top-color:var(--border);color:#9ca3af}
.footer-meta{opacity:.9}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px} /* Increased gap and min-width */
.row{display:flex;gap:12px;flex-wrap:wrap}
.layout{display:flex;gap:16px}
.sidebar{width:300px;flex-shrink:0;background:linear-gradient(180deg,#0a0a0a,#0f0f0f);border:1px solid var(--border);border-radius:16px;padding:16px;height:100%}
body.light .sidebar{background:var(--surface);border-color:var(--border)}
.sidebar .item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--fg)}
.sidebar .item.active{background:var(--secondary)}
body.light .sidebar .item.active{background:var(--accent);color:#ffffff}
.content{flex:1;display:block;padding:16px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end}

/* ==========================================================================
   3. Components
   ========================================================================== */

/* 3.1. Cards & Panels */
.card{background:linear-gradient(180deg,#1f1f1f,#252525);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:0 6px 20px rgba(2,6,23,.25);color:var(--fg)}
.card .card-body{color:var(--fg)}
body.light .card{background:var(--surface);border-color:var(--border);box-shadow:0 6px 28px rgba(2,6,23,.08)}
.card h3{margin:0 0 8px 0;font-size:18px}
.card .meta{display:flex;justify-content:space-between;align-items:center}
.form-panel{max-width:1000px;margin:auto}
.stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px 16px}
.statbar{display:flex;gap:12px;align-items:center}
.statbar .stat{flex:1}
.kpi{display:flex;gap:16px}
.kpi .item{flex:1;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px}
body.light .kpi .item{background:var(--surface);border-color:var(--border)}
.article-card img{width:100%;height:140px;border-radius:10px;border:1px solid var(--border);object-fit:cover}
.tile .cover{height:160px}

/* 3.2. Buttons & Forms */
.btn{display:inline-block;background:linear-gradient(90deg,#ef4444,#f43f5e);color:var(--btn-text);padding:10px 16px;border-radius:8px;font-weight:700;box-shadow:none;transition:all .15s ease;border:none;cursor:pointer;font-size:0.95rem;text-align:center}
.btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(239, 68, 68, 0.3)}
.btn.secondary{background:var(--secondary);color:var(--fg);box-shadow:none;border:1px solid transparent}
body.light .btn.secondary{background:var(--secondary);color:#111827;border:1px solid var(--border)}
.btn.secondary:hover{background:var(--border)}
.btn-primary {background: linear-gradient(90deg, var(--accent), #f43f5e) !important;border: none !important;color: #fff !important;}
.input{width:100%;padding:12px 14px;border-radius:8px;border:1px solid var(--border);background:var(--input);color:var(--fg)}
body.light .input{background:var(--input);border-color:var(--border)}
.input-wrap{position:relative}
.has-toggle{padding-right:48px}
.toggle-pass{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--fg) !important;opacity:0.85 !important;cursor:pointer;font-size:1.25rem !important;padding:8px;display:flex;align-items:center;justify-content:center;transition:all 0.2s;z-index:10 !important;line-height:1;min-width:40px;min-height:40px}
.toggle-pass:hover{opacity:1 !important;transform:translateY(-50%) scale(1.1)}
.toggle-pass i{display:block;line-height:1}
.form-52 .input,.form-52 .btn{height:52px}
.form-52 .input{padding-top:14px;padding-bottom:14px}
.form-52 .btn{display:inline-flex;align-items:center}

/* 3.3. Navigation & Menus */
.tabs{display:flex;gap:12px;margin-top:12px}
.tabs .tab{padding:10px 14px;border-radius:999px;border:1px solid var(--border);background:var(--input)}
body.light .tabs .tab{background:var(--input);border-color:var(--border)}
.menu-toggle{display:none;background:transparent;border:0;padding:0;align-items:center;justify-content:center;cursor:pointer}
.menu-toggle .bars{width:24px;height:14px;position:relative}
.menu-toggle .bars::before,.menu-toggle .bars::after,.menu-toggle .bars span{content:"";display:block;position:absolute;left:0;width:100%;height:2px;background:#ffffff;border-radius:2px}
.menu-toggle .bars::before{top:0}
.menu-toggle .bars span{top:6px}
.menu-toggle .bars::after{bottom:0}
body.light .menu-toggle .bars::before, body.light .menu-toggle .bars::after, body.light .menu-toggle .bars span { background: #000000; }
.steps{display:flex;gap:10px;align-items:center}
.steps .step{display:flex;align-items:center;gap:8px}
.steps .circle{width:26px;height:26px;border-radius:999px;background:var(--input);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:700}
body.light .steps .circle{background:var(--input);border-color:var(--border);color:#334155}

/* 3.4. Content & Typography */
.hero{display:flex;gap:24px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.hero-banner{background:linear-gradient(90deg,#0a0a0a,#111111);border:1px solid var(--border);padding:36px 24px;border-radius:22px;display:flex;gap:24px;align-items:center;flex-wrap:wrap;box-shadow:0 20px 60px rgba(2,6,23,.4)}
body.light .hero-banner{background:var(--surface);border-color:var(--border);box-shadow:0 10px 30px rgba(2,6,23,.08)}
.hero-banner h1{font-size:32px;margin:0}
.hero-full{position:relative;width:100%;padding:0;border:0;border-radius:0;min-height:400px;overflow:hidden}
body.light .hero-full{background:transparent;border:0;box-shadow:none}
.hero-full .slider{position:absolute;top:0;left:0;width:100%;height:100%;border:0;border-radius:0}
.hero-full .slides{height:100%}
.hero-full .slide{height:100%}
.hero-full::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(239,68,68,.45),rgba(10,10,10,.85));z-index:1}
.hero-full .overlay{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:400px;padding:40px;width:100%}
.hero-full h1{white-space:nowrap;margin:0;font-size:40px;text-align:center}
.hero-full .overlay .row{justify-content:center}
.hero-full .overlay form{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:12px;width:100%}
.hero-full .overlay input,.hero-full .overlay select{width:clamp(220px,40vw,640px)}
.faq .q{font-weight:600}
.faq .accordion{display:flex;flex-direction:column;gap:12px}
.faq .group-title{font-weight:700;font-size:16px;color:var(--muted)}
.faq details{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}
.faq summary{font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:space-between;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq .answer{margin-top:12px;color:var(--muted)}
.headline{font-size:28px;font-weight:800}
.section-title{font-size:18px;font-weight:700;margin:12px 0}

/* 3.5. Media & Images */
.avatar{width:48px;height:48px;border-radius:999px;object-fit:cover;border:1px solid var(--border)}
.avatar-initials{width:48px;height:48px;border-radius:999px;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;background:var(--secondary);color:#ffffff}
.cover{width:100%;height:180px;border-radius:12px;object-fit:cover;border:1px solid var(--border);background:var(--input);transition:transform 0.3s ease}
.card:hover .cover{transform:scale(1.02)}
body.light .cover{border-color:var(--border);background:var(--input)}
.slider{position:relative;overflow:hidden;border-radius:18px;border:1px solid var(--border)}
.slides{display:flex;transition:transform .5s ease}
.slide{min-width:100%;height:260px;background:var(--input);display:flex;align-items:center;justify-content:center;position:relative}
.slide img{width:100%;height:100%;object-fit:cover;opacity:.9}
.dots{display:flex;gap:6px;position:absolute;bottom:10px;left:50%;transform:translateX(-50%)}
.dot{width:8px;height:8px;border-radius:999px;background:var(--border);border:1px solid var(--border);cursor:pointer}
.dot.active{background:var(--accent)}
.carousel-wrap{position:relative}
.carousel{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,1fr);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scroll-behavior:smooth}
.carousel::-webkit-scrollbar{display:none}
.carousel{-ms-overflow-style:none;scrollbar-width:none}
.carousel .card, .carousel .event-card{scroll-snap-align:start}
.carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--fg);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;box-shadow:0 4px 12px rgba(0,0,0,0.2);opacity:0;pointer-events:none;transition:opacity 0.2s}
.carousel-wrap:hover .carousel-btn{opacity:1;pointer-events:all}
.carousel-btn:hover{background:var(--border)}
.carousel-btn.prev{left:-20px}
.carousel-btn.next{right:-20px}

/* 3.6. Indicators & Badges */
.toast{position:fixed;right:16px;bottom:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 16px;box-shadow:0 10px 28px rgba(2,6,23,.35);display:none}
body.light .toast{background:var(--surface);border-color:var(--border);box-shadow:0 10px 28px rgba(2,6,23,.1)}
.chip{display:inline-flex;align-items:center;padding:8px 16px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--fg);font-size:14px;font-weight:500;cursor:pointer;transition:all 0.2s}
.chip:hover,.chip.active{background:var(--border);border-color:var(--fg)}
.chip.active{background:var(--fg);color:var(--bg)}
body.light .chip{background:var(--input);border-color:var(--border);color:#0f172a}
.chip.disabled{opacity:.5;pointer-events:none}
.pager{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.badge{background:rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.2);border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;color:#fff;backdrop-filter:blur(4px)}
.pill{display:inline-block;border:1px solid var(--border);background:var(--input);border-radius:999px;padding:8px 12px}
body.light .pill{background:var(--input);border-color:var(--border)}
.price{font-weight:800;color:var(--accent);font-size:1.1rem}

/* 3.7. Tables */
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid var(--border);padding:12px;text-align:left;vertical-align: middle;}
.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table th{color:var(--muted);font-weight:700}
body.light .table th{color:#334155}

/* Table Text Truncation */
.table td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table td.wrap {
    white-space: normal;
}
.table td.action-col {
    white-space: nowrap;
    width: 1%;
}

/* Fix Dark/Light Mode Inputs */
body.light .input, body.light .form-control, body.light .form-select {
    background: #ffffff;
    border-color: #d1d5db;
    color: #111827;
}
body.light .input:focus, body.light .form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Fix Card Backgrounds in Light Mode */
body.light .card {
    background: #ffffff;
    border-color: #e5e7eb;
}

/* ==========================================================================
   4. Utility classes
   ========================================================================== */
.mt{margin-top:12px}
.mb{margin-bottom:12px}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.sub{color:var(--muted);font-size:0.9rem}
.green{background:var(--accent);color:#ffffff}
.green:hover{box-shadow:none}
.muted{color:#94a3b8}
.mobile-only { display: none !important; }
.desktop-only { display: block; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.gap-2 { gap: 8px; }

.muted, .text-muted { color: var(--muted) !important; }
.text-danger { color: #ef4444 !important; }
body.light .text-danger { color: #dc2626 !important; }
.text-primary { color: var(--accent) !important; }
.fw-bold { font-weight: 700 !important; }

/* Missing Bootstrap Utilities */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-end { text-align: right !important; }
.h-100 { height: 100% !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-4 { margin-top: 24px !important; }
.me-2 { margin-right: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 768px) {
    .col-md-6 { width: calc(50% - 6px); flex: 0 0 auto; }
    .col-md-4 { width: calc(33.333% - 8px); flex: 0 0 auto; }
    .col-md-9 { width: 75%; flex: 0 0 auto; }
    .col-lg-10 { width: 83.333%; flex: 0 0 auto; }
    .col-md-3 { width: 25%; flex: 0 0 auto; }
    .col-lg-2 { width: 16.666%; flex: 0 0 auto; }
    .col-md-12 { width: 100%; flex: 0 0 auto; }
}
.table-sm th, .table-sm td { padding: 8px; }

/* ==========================================================================
   5. New Event Card & Browse Styles
   ========================================================================== */
.browse-filters { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; scrollbar-width: none; -ms-overflow-style: none; }
.browse-filters::-webkit-scrollbar { display: none; }

.event-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    position: relative;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.event-card .thumb {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}
.event-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.event-card:hover .thumb img {
    transform: scale(1.05);
}
.event-card .date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    color: #111;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.event-card .date-badge .month { font-size: 10px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2px; }
.event-card .date-badge .day { font-size: 18px; display: block; }

.event-card .body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.event-card .title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card .info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.event-card .info-row svg { width: 14px; height: 14px; opacity: 0.8; }
.event-card .price-tag {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}
.event-card .price-val { font-weight: 700; color: var(--accent); font-size: 1rem; }
.event-card .category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; background: var(--input); padding: 4px 8px; border-radius: 4px; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px dashed var(--border);
}
.empty-state svg { width: 48px; height: 48px; color: var(--muted); margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.2rem; }
.empty-state p { color: var(--muted); margin: 0; }

/* ==========================================================================
   7. Event Details Page
   ========================================================================== */
.event-details-page main { padding-bottom: 100px; } /* Space for sticky CTA */

/* Hero / Header */
.event-hero {
    position: relative;
    padding: 24px 0 40px;
    background: var(--bg);
}

.event-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.event-meta-top { margin-bottom: 16px; }
.event-date-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); font-size: 1.1rem; }
.event-location { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 24px; font-size: 1rem; }
.hero-image-wrap { width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 2/1; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Ticket Selection */
.ticket-list { display: flex; flex-direction: column; gap: 16px; }
.ticket-card { display: flex; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--input); cursor: pointer; transition: all 0.2s; }
.ticket-card:hover { border-color: var(--accent); }
.ticket-card:has(input:checked) { border-color: var(--accent); background: rgba(239, 68, 68, 0.05); }
.ticket-card.disabled { opacity: 0.6; pointer-events: none; }
.ticket-radio { margin-right: 16px; }
.ticket-info { flex: 1; }
.ticket-name { font-weight: 700; font-size: 1.1rem; }
.ticket-desc { font-size: 0.9rem; color: var(--muted); }
.ticket-price { font-weight: 800; font-size: 1.2rem; color: var(--fg); }

/* Organizer Card */
.organizer-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
.org-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; color: #fff; }
.org-name { font-weight: 700; font-size: 1.1rem; }
.org-role { color: var(--muted); font-size: 0.9rem; }

/* Sticky CTA Bar */
.sticky-cta-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 0; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.cta-content { display: flex; justify-content: space-between; align-items: center; }
.cta-info { display: flex; flex-direction: column; }
.cta-price { font-weight: 800; color: var(--accent); }
.cta-title-sm { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.cta-btn { padding: 10px 24px; }

/* ==========================================================================
   6. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .layout { flex-direction: column; }
    .content { padding: 12px; }
    
    /* Mobile Sidebar - Horizontal Scroll */
    .sidebar { 
        display: flex; 
        flex-direction: row; 
        width: 100%; 
        height: auto; 
        overflow-x: auto; 
        margin-bottom: 20px; 
        padding: 12px; 
        gap: 12px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .sidebar::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
    
    .sidebar-sticky { 
        position: static !important; 
        width: 100% !important; 
        height: auto !important; 
        overflow-y: visible !important; 
    }
    
    .sidebar .item {
        flex: 0 0 auto;
        border: 1px solid var(--border);
        background: var(--bg);
        padding: 8px 16px;
        border-radius: 999px;
    }
    .sidebar .item.active {
        background: var(--fg);
        color: var(--bg);
        border-color: var(--fg);
    }
    /* Hide avatar/profile in sidebar on mobile since it's in header/menu */
    .sidebar .d-flex.align-items-center.gap-2.mb-3 {
        display: none !important;
    }
}
@media (max-width: 768px) {
    header { padding: 12px 16px; }
    header .brand { font-size: 18px; }
    .menu-toggle { display: flex; }
    
    /* Mobile Navigation Drawer */
    header nav { 
        position: fixed; 
        top: 72px; 
        left: 0; 
        width: 100%; 
        height: calc(100vh - 72px); 
        background: var(--bg); 
        display: flex;
        flex-direction: column; 
        padding: 20px; 
        gap: 12px; 
        transform: translateX(100%); 
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease-in-out, visibility 0.3s, opacity 0.3s; 
        border-top: 1px solid var(--border); 
        align-items: flex-start; 
        z-index: 100; 
        overflow-y: auto; 
    }
    header.menu-open nav { 
        transform: translateX(0); 
        visibility: visible; 
        opacity: 1;
        pointer-events: auto;
    }
    header nav a { width: 100%; text-align: left; padding: 12px 16px; border-radius: 8px; font-size: 16px; }
    
    .mobile-only { display: block !important; }
    .desktop-only { display: none; }
    
    .hero-full h1 { font-size: 28px; white-space: normal; }
    .hero-banner { flex-direction: column; align-items: flex-start; }
    .row { flex-direction: column; }
    td.row { flex-direction: row; }
    .grid { grid-template-columns: 1fr; }
    .card .meta { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .kpi { flex-direction: column; }
    
    /* Mobile Event Card (Horizontal List View) */
    .event-card { flex-direction: row; height: auto; min-height: 120px; }
    .event-card .thumb { width: 110px; height: auto; min-height: 120px; flex-shrink: 0; }
    .event-card .body { padding: 12px; }
    .event-card .title { font-size: 1rem; -webkit-line-clamp: 2; margin-bottom: 4px; }
    .event-card .info-row { font-size: 0.8rem; }
    .event-card .price-tag { margin-top: auto; padding-top: 8px; border-top: none; }
    .event-card .category { display: none; }
    .event-card:hover { transform: none; box-shadow: none; }
    
    /* Event Details Mobile Overrides */
    .event-title { font-size: 1.8rem; }
    .hero-image-wrap { aspect-ratio: 16/9; }
    .ticket-card { align-items: flex-start; }
    .ticket-price { font-size: 1rem; }
}

/* ==========================================================================
   8. Modern Auth UI
   ========================================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 60px 20px;
}
.auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 48px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
    text-align: center;
}
body.light .auth-card {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}
.auth-header {
    margin-bottom: 40px;
}
.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--fg);
    letter-spacing: -0.5px;
}
.auth-sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}
.auth-form {
    text-align: left;
}
.auth-form .input-group {
    margin-bottom: 24px;
}
.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--fg);
    margin-left: 2px;
}
.auth-form .input {
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--bg);
}
.auth-form .input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    background: var(--surface);
}
.auth-form .btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.auth-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.auth-footer a {
    font-weight: 600;
    color: var(--accent);
}
.password-guidance {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
    margin-left: 2px;
}
.input-wrap .toggle-pass {
    height: 100%;
    top: 0;
    transform: none;
    right: 0;
    padding: 0 20px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}
.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.form-header-row label {
    margin-bottom: 0;
}
.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
@media (max-width: 480px) {
    .auth-card {
        padding: 40px 24px;
    }
}
