/* ============================================
   E-VENT — Modern Event Ticketing Platform
   Inspired by Focus Studio Dashboard UI
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Brand — E-vent red palette */
    --primary: #E8461E;
    --primary-dark: #CC3A14;
    --primary-light: #FEF0EC;
    --primary-rgb: 232, 70, 30;

    --brand-gold: #F59E0B;
    --brand-amber: #E8461E;
    --brand-coral: #CC3A14;

    /* Neutrals — cool slate palette */
    --secondary: #64748B;
    --secondary-light: #F1F5F9;

    /* Semantic */
    --success: #10B981;
    --success-light: #ECFDF5;

    --info: #3B82F6;
    --info-light: #EFF6FF;

    --warning: #F59E0B;
    --warning-light: #FFFBEB;

    --danger: #EF4444;
    --danger-light: #FEF2F2;

    --orange: #F97316;
    --orange-light: #FFF7ED;

    --purple: #8B5CF6;
    --purple-light: #F5F3FF;

    --accent: #9333EA;
    --accent-light: #F3E8FF;

    /* Text */
    --dark: #0F172A;
    --dark-secondary: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --text-muted: #94A3B8;

    /* Gray scale */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-light: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;

    /* Layout */
    --white: #FFFFFF;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;

    --sidebar-w: 260px;
    --topbar-h: 64px;

    /* Shadows — minimal, clean */
    --shadow-xs: none;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.03);
    --shadow: 0 1px 3px rgba(15,23,42,.04);
    --shadow-md: 0 2px 8px rgba(15,23,42,.05);
    --shadow-lg: 0 4px 16px rgba(15,23,42,.06);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Misc */
    --transition: all .2s cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    letter-spacing: -0.01em;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); }
hr { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.25;
    white-space: nowrap;
    font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 6px 20px rgba(var(--primary-rgb),.25); }

.btn-secondary { background: var(--white); color: var(--text); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #059669; box-shadow: 0 6px 20px rgba(16,185,129,.25); }

.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: var(--primary-dark); }

.btn-warning { background: var(--warning); color: var(--white); }

.btn-info { background: var(--info); color: var(--white); }

.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: #7E22CE; box-shadow: 0 6px 20px rgba(147,51,234,.25); }

.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-secondary { background: transparent; border: 1.5px solid var(--gray-300); color: var(--text-light); }
.btn-outline-secondary:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-ghost { background: transparent; color: var(--text-light); border: none; padding: 8px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: .8125rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-sm); }
.btn-icon.sm { width: 32px; height: 32px; }

/* ============================================
   LANDING – NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    transition: background .3s, box-shadow .3s, border-color .3s;
}
.navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,.06);
    border-bottom-color: transparent;
    background: rgba(255,255,255,.97);
}
.navbar .container {
    max-width: 1280px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center;
    height: 72px;
}

/* Logo */
.navbar .logo {
    display: flex; align-items: center;
    flex-shrink: 0; margin-right: 48px;
}
.navbar .logo .logo-img {
    height: 36px; width: auto;
}

/* Nav links — flat, inline with active indicator */
.navbar .nav-links {
    display: flex; align-items: center; gap: 8px; list-style: none;
}
.navbar .nav-links a {
    color: var(--text-light); font-weight: 500; font-size: .9rem;
    transition: var(--transition);
    padding: 8px 16px; border-radius: var(--radius-full);
    position: relative;
}
.navbar .nav-links a:hover {
    color: var(--primary); background: var(--primary-light);
}
.navbar .nav-links a.active {
    color: var(--primary); font-weight: 600;
    background: var(--primary-light);
}

/* Nav actions (right side) */
.nav-actions {
    display: flex; gap: 16px; align-items: center; margin-left: auto;
}
.nav-actions .nav-login-link {
    color: var(--dark); font-weight: 500; font-size: .9rem;
    padding: 8px 16px; border-radius: var(--radius-full);
    transition: var(--transition);
}
.nav-actions .nav-login-link:hover { color: var(--primary); background: var(--primary-light); }
.btn-get-started {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none; border-radius: var(--radius-full);
    color: var(--white); font-weight: 600; font-size: .9rem;
    background: var(--primary); cursor: pointer;
    font-family: var(--font); transition: var(--transition);
    white-space: nowrap;
}
.btn-get-started:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), .3);
    transform: translateY(-1px);
}
.btn-get-started i { font-size: .8rem; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none;
    padding: 10px; position: relative; z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center;
    margin-left: auto;
}
.hamburger span {
    width: 22px; height: 2.5px; background: var(--dark);
    transition: var(--transition); border-radius: 2px;
    pointer-events: none;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu — slide transition */
.nav-mobile {
    display: flex; flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px 24px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 999;
    max-height: 0; overflow: hidden; padding: 0 24px;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s ease;
}
.nav-mobile.open { max-height: 500px; padding: 16px 24px 24px; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.nav-mobile ul a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .95rem; color: var(--text);
    transition: var(--transition);
}
.nav-mobile ul a i { width: 20px; text-align: center; color: var(--text-light); font-size: .85rem; }
.nav-mobile ul a:hover { background: var(--gray-50); color: var(--primary); }
.nav-mobile ul a:hover i { color: var(--primary); }
.nav-mobile ul a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-mobile ul a.active i { color: var(--primary); }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 8px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: var(--white);
    position: relative; overflow: hidden; padding-top: 72px;
}
.hero .container {
    max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
}
.hero-content { padding: 60px 0; }
.hero-content h1 {
    font-size: 3.2rem; font-weight: 700; color: var(--dark);
    line-height: 1.15; margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero-content h1 .highlight { color: var(--primary); font-style: italic; }
.hero-content p {
    font-size: 1.1rem; color: var(--text-light); margin-bottom: 0;
    max-width: 480px; line-height: 1.75;
}

/* Hero Visual - image with floating badges */
.hero-visual {
    position: relative; display: flex; justify-content: flex-end;
    align-items: center; min-height: 500px;
}
.hero-image {
    width: 100%; max-width: 560px; height: 480px;
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image .placeholder-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1E293B, #334155);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 4rem;
}

/* Floating badges on hero image */
.hero-badge {
    position: absolute; display: flex; align-items: center; gap: 8px;
    background: var(--white); padding: 6px 14px 6px 8px;
    border-radius: var(--radius-full); box-shadow: var(--shadow-md);
    font-size: .8125rem; font-weight: 600; color: var(--dark);
    white-space: nowrap; z-index: 2; animation: floatBadge 5s ease-in-out infinite;
}
.hero-badge .badge-icon {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; color: var(--white); flex-shrink: 0;
}
.hero-badge .badge-icon.bg-red { background: var(--primary); }
.hero-badge .badge-icon.bg-green { background: var(--success); }
.hero-badge .badge-icon.bg-blue { background: var(--info); }
.hero-badge .badge-icon.bg-orange { background: var(--warning); }
.hero-badge .badge-icon.bg-purple { background: var(--purple); }
.hero-badge:nth-child(2) { top: 5%; left: 50%; animation-delay: .3s; }
.hero-badge:nth-child(3) { top: 22%; right: -8%; animation-delay: .8s; }
.hero-badge:nth-child(4) { top: 45%; left: -5%; animation-delay: 1.2s; }
.hero-badge:nth-child(5) { top: 55%; right: -10%; animation-delay: .5s; }
.hero-badge:nth-child(6) { bottom: 18%; left: 10%; animation-delay: 1s; }
.hero-badge:nth-child(7) { bottom: 2%; right: -5%; animation-delay: 1.4s; }
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Hero search bar */
.hero-search {
    max-width: 1280px; margin: -32px auto 0; padding: 0 32px; position: relative; z-index: 5;
}
.hero-search-inner {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,.08); border: 1px solid var(--gray-200);
    padding: 8px 8px 8px 12px; display: flex; align-items: center; gap: 0;
}
.hero-search-field {
    flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-right: 1px solid var(--gray-200); min-width: 0;
}
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field i { color: var(--text-muted); font-size: .9rem; flex-shrink: 0; }
.hero-search-field input {
    border: none; background: none; font-size: .9rem; color: var(--text);
    outline: none; font-family: var(--font); width: 100%;
}
.hero-search-field input::placeholder { color: var(--text-muted); }
.hero-search-inner .btn-search {
    padding: 14px 36px; background: var(--primary); color: var(--white);
    border: none; border-radius: var(--radius-sm); font-size: .9375rem;
    font-weight: 600; cursor: pointer; font-family: var(--font); transition: var(--transition);
    white-space: nowrap; flex-shrink: 0;
}
.hero-search-inner .btn-search:hover { background: var(--primary-dark); box-shadow: 0 4px 16px rgba(var(--primary-rgb), .25); }

/* ============================================
   HERO SLIDER (full-screen with search)
   ============================================ */
.hero-slider-section { padding-top: 72px; }
.hero-slider {
    position: relative; width: 100%; height: 580px;
    overflow: hidden; background: var(--dark);
}
/* Slides - background images */
.slider-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1s ease; z-index: 0;
}
.slider-slide.active { opacity: 1; z-index: 1; }
.slider-bg { position: absolute; inset: -20px; overflow: hidden; }
.slider-bg img {
    width: 100%; height: 100%; object-fit: cover;
    animation: kenBurns 8s ease-in-out infinite alternate;
}
.slider-slide:nth-child(odd) .slider-bg img  { animation-name: kenBurns; }
.slider-slide:nth-child(even) .slider-bg img { animation-name: kenBurns2; }
@keyframes kenBurns  { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.12) translate(-1.5%,-1%); } }
@keyframes kenBurns2 { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.1) translate(1.5%,1%); } }

/* Dark overlay */
.hero-slider-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.7) 60%, rgba(15,23,42,.85) 100%);
}

/* Content on top */
.hero-slider-content {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center;
}
.hero-slider-content .container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%;
}
.hero-label {
    display: inline-block; color: var(--primary); font-size: .8rem;
    font-weight: 700; letter-spacing: 2px; margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-slider-content h1 {
    font-size: 2.8rem; font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 32px; max-width: 700px;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

/* Search filter bar */
.hero-filter-bar {
    display: flex; align-items: center; gap: 0;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 8px; max-width: 820px;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.hfb-field {
    flex: 1; position: relative;
}
.hfb-field + .hfb-field { border-left: 1px solid var(--gray-200); }
.hfb-select, .hfb-input {
    width: 100%; border: none; background: none; padding: 14px 18px;
    font-size: .9rem; color: var(--text); font-family: var(--font);
    outline: none; cursor: pointer; appearance: none;
    -webkit-appearance: none;
}
.hfb-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 36px;
}
.hfb-input::placeholder { color: var(--gray-400); }
.hfb-btn {
    flex-shrink: 0; padding: 14px 28px !important;
    border-radius: var(--radius) !important; font-weight: 600;
    white-space: nowrap; gap: 8px;
}
.hfb-btn i { margin-right: 6px; }

/* Quick tags */
.hero-quick-tags {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 20px;
}
.hqt {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.15); color: #fff;
    padding: 7px 16px; border-radius: var(--radius-full);
    font-size: .78rem; font-weight: 600; text-decoration: none;
    transition: var(--transition);
}
.hqt:hover { background: var(--primary); border-color: var(--primary); }
.hqt i { font-size: .7rem; }

/* Slider Arrows */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1);
    backdrop-filter: blur(6px); color: #fff; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .3s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Slider Dots */
.slider-dots {
    position: absolute; bottom: 24px; right: 48px; z-index: 5;
    display: flex; gap: 8px;
}
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.35); border: none;
    cursor: pointer; transition: all .3s ease; padding: 0;
}
.slider-dot.active {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), .5);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-slider { height: 520px; }
    .hero-slider-content h1 { font-size: 1.8rem; }
    .hero-filter-bar { flex-direction: column; gap: 0; border-radius: var(--radius); }
    .hfb-field + .hfb-field { border-left: none; border-top: 1px solid var(--gray-200); }
    .hfb-btn { width: 100%; border-radius: 0 0 var(--radius) var(--radius) !important; }
    .slider-arrow { width: 38px; height: 38px; font-size: .85rem; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    .slider-dots { right: 24px; bottom: 14px; }
}
@media (max-width: 480px) {
    .hero-slider { height: 560px; }
    .hero-slider-content h1 { font-size: 1.5rem; }
    .hero-label { font-size: .7rem; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 32px 0; }
.section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { text-align: center; margin-bottom: 20px; }
.section-title h2 { font-size: 2rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.section-title p { color: var(--text-light); font-size: 1.05rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--white); padding: 32px; border-radius: var(--radius);
    transition: var(--transition); text-align: center;
    border: 1px solid var(--gray-100);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--gray-200); }
.feature-card .f-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 16px; color: var(--white);
}
.feature-card .f-icon.red { background: var(--primary); }
.feature-card .f-icon.green { background: var(--success); }
.feature-card .f-icon.blue { background: var(--info); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--dark); }
.feature-card p { color: var(--text-light); font-size: .9rem; line-height: 1.6; }

/* ============================================
   EVENTS GRID (PUBLIC)
   ============================================ */
.events-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
/* --- Event Card --- */
.ecard {
    display: block; text-decoration: none; color: var(--text);
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}
.ecard:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
/* Image */
.ecard-img {
    position: relative; height: 280px; overflow: hidden;
    background: var(--dark);
}
.ecard-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.ecard:hover .ecard-img img { transform: scale(1.06); }
.ecard-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}
.ecard-img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,.2);
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark));
}
/* Status badge */
.ecard-status {
    position: absolute; top: 14px; right: 14px;
    padding: 5px 12px; border-radius: var(--radius-full);
    font-size: .7rem; font-weight: 700; letter-spacing: .3px;
    display: flex; align-items: center; gap: 5px;
    backdrop-filter: blur(8px);
}
.ecard-status i { font-size: .4rem; }
.ecard-status-open { background: rgba(16,185,129,.15); color: #10B981; border: 1px solid rgba(16,185,129,.3); }
.ecard-status-full { background: rgba(239,68,68,.15); color: #EF4444; border: 1px solid rgba(239,68,68,.3); }
/* Category chip */
.ecard-cat {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 12px; border-radius: var(--radius-full);
    font-size: .7rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
}
/* Date chip */
.ecard-date-chip {
    position: absolute; bottom: -1px; left: 20px;
    background: var(--primary); color: #fff; border-radius: 10px 10px 0 0;
    padding: 8px 14px; text-align: center; line-height: 1;
    box-shadow: 0 -4px 12px rgba(var(--primary-rgb), .3);
}
.edc-day { display: block; font-size: 1.2rem; font-weight: 800; }
.edc-month { display: block; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
/* Body */
.ecard-body { padding: 22px 20px; }
.ecard-title {
    font-size: 1.05rem; font-weight: 700; color: var(--dark);
    margin-bottom: 10px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ecard-info {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
}
.ecard-info span {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; color: var(--text-light);
}
.ecard-info span i { width: 14px; font-size: .75rem; color: var(--text-muted); text-align: center; }
/* Tags */
.ecard-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.ecard-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 600; padding: 4px 10px;
    border-radius: var(--radius-full); background: var(--gray-50);
    color: var(--text-light); border: 1px solid var(--gray-100);
}
.ecard-tag i { font-size: .65rem; }
.ecard-tag-free { background: var(--success-light); color: var(--success); border-color: rgba(16,185,129,.2); }
/* Bottom */
.ep-free { color: var(--success); }
/* Bottom */
.ecard-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.ecard-price { display: flex; align-items: baseline; gap: 6px; }
.ep-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.ep-amount { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.ecard-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gray-50); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: .8rem;
    transition: var(--transition);
}
.ecard:hover .ecard-arrow {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .3);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg); padding: 20px;
    background-image: radial-gradient(circle at 20% 50%, var(--primary-light) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, var(--info-light) 0%, transparent 40%);
}
.auth-container {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 440px; padding: 40px; animation: slideUp .4s ease;
    border: 1px solid var(--gray-200);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.auth-container .auth-logo { text-align: center; margin-bottom: 28px; }
.auth-container .auth-logo .auth-logo-img {
    height: 40px; width: auto; margin: 0 auto 12px;
}
.auth-container .auth-logo p { color: var(--text-light); margin-top: 4px; font-size: .9rem; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-light); font-size: .9rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Social Login */
.auth-divider {
    display: flex; align-items: center; gap: 16px;
    margin: 24px 0 20px; color: var(--text-muted); font-size: .8125rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.auth-social {
    display: flex; gap: 12px; margin-bottom: 4px;
}
.auth-social-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 16px; border-radius: var(--radius-sm); font-size: .875rem;
    font-weight: 600; font-family: var(--font); cursor: pointer;
    transition: var(--transition); text-decoration: none; border: 1.5px solid var(--gray-200);
}
.auth-social-btn:hover { transform: translateY(-1px); }
.auth-social-btn svg { flex-shrink: 0; }
.auth-social-google {
    background: var(--white); color: var(--text);
}
.auth-social-google:hover {
    border-color: var(--gray-300); box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.auth-social-apple {
    background: #000; color: #fff; border-color: #000;
}
.auth-social-apple:hover {
    background: #1a1a1a; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Dark mode social buttons */
[data-theme="dark"] .auth-social-google { background: #1E293B; color: #E2E8F0; border-color: #334155; }
[data-theme="dark"] .auth-social-google:hover { border-color: #475569; }
[data-theme="dark"] .auth-social-apple { background: #fff; color: #000; border-color: #fff; }
[data-theme="dark"] .auth-social-apple:hover { background: #f0f0f0; }
[data-theme="dark"] .auth-divider { color: #64748B; }
[data-theme="dark"] .auth-divider::before, [data-theme="dark"] .auth-divider::after { background: #334155; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); font-size: .875rem; }
.form-control {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    font-size: .875rem; font-family: var(--font); transition: var(--transition);
    background: var(--white); color: var(--text); line-height: 1.5;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667085' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
    font-size: .875rem; display: flex; align-items: flex-start; gap: 10px;
    animation: slideDown .3s ease; line-height: 1.5;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.alert-success { background: var(--success-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-danger { background: var(--danger-light); color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: var(--warning-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-info { background: var(--info-light); color: #1E40AF; border: 1px solid #BFDBFE; }

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout { display: flex; min-height: 100vh; }

/* ---------- SIDEBAR ---------- */
.sidebar {
    width: var(--sidebar-w); background: var(--white);
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    border-right: 1px solid var(--gray-100);
    display: flex; flex-direction: column;
    overflow-y: auto; transition: var(--transition);
}
.sidebar-brand {
    padding: 20px; display: flex; align-items: center;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-brand .brand-logo-link { display: flex; align-items: center; }
.sidebar-brand .brand-logo-img { height: 32px; width: auto; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section { margin-bottom: 4px; }
.nav-section-title {
    font-size: .6875rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .8px; padding: 12px 20px 6px;
    display: block;
}
.nav-section ul { list-style: none; }
.nav-section li a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 20px; margin: 1px 12px; border-radius: var(--radius-sm);
    color: var(--text-light); font-size: .875rem; font-weight: 500; transition: var(--transition);
}
.nav-section li a i { width: 20px; text-align: center; font-size: .95rem; }
.nav-section li a:hover { background: var(--gray-50); color: var(--text); }
.nav-section li a.active {
    background: var(--primary); color: var(--white);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .25);
}
.nav-section li a.active i { color: var(--white); }

.sidebar-user {
    padding: 16px 20px; border-top: 1px solid var(--gray-100);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-user .s-avatar {
    width: 36px; height: 36px; border-radius: var(--radius-full);
    background: var(--success); display: flex; align-items: center; justify-content: center;
    color: var(--white); font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.sidebar-user .s-info { flex: 1; min-width: 0; }
.sidebar-user .s-name { display: block; font-weight: 600; font-size: .8125rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .s-role { display: block; font-size: .725rem; color: var(--text-muted); }
.sidebar-user .s-logout { color: var(--text-muted); font-size: .95rem; transition: var(--transition); }
.sidebar-user .s-logout:hover { color: var(--danger); }

/* ---------- MAIN CONTENT ---------- */
.main-content { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }

/* ---------- TOPBAR ---------- */
.topbar {
    background: var(--white); height: var(--topbar-h);
    padding: 0 24px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h1 { font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.sidebar-toggle {
    display: none; background: none; border: none;
    font-size: 1.2rem; cursor: pointer; color: var(--text); padding: 4px;
}
.topbar-center { flex: 1; max-width: 400px; margin: 0 32px; }
.search-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--gray-50); border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm); padding: 8px 14px; transition: var(--transition);
}
.search-box:focus-within { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.1); }
.search-box i { color: var(--text-muted); font-size: .85rem; }
.search-box input { flex: 1; border: none; background: none; font-size: .85rem; color: var(--text); outline: none; font-family: var(--font); }
.search-box input::placeholder { color: var(--text-muted); }
.search-shortcut {
    font-size: .7rem; padding: 2px 6px; background: var(--white);
    border: 1px solid var(--gray-300); border-radius: 4px; color: var(--text-muted); font-weight: 500;
    white-space: nowrap;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-date { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .85rem; font-weight: 500; background: var(--gray-50); padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--gray-100); }
.topbar-date i { color: var(--primary); }
.topbar-notif { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-sm); transition: var(--transition); }
.topbar-notif:hover { background: var(--gray-50); }
.topbar-notif i { font-size: 1.1rem; color: var(--text-light); }
.notif-badge {
    position: absolute; top: 4px; right: 4px;
    width: 18px; height: 18px; background: var(--primary); color: var(--white);
    border-radius: var(--radius-full); font-size: .65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; border: 2px solid var(--white);
}
.topbar-user { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: var(--radius-sm); background: var(--primary); color: var(--white); cursor: default; }
.topbar-user .t-avatar {
    width: 32px; height: 32px; border-radius: var(--radius-full);
    background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .75rem;
}
.topbar-user .t-name { font-size: .85rem; font-weight: 600; }

/* ---------- DASHBOARD CONTENT ---------- */
.dashboard-content { padding: 24px; }

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 22px 24px;
    display: flex; align-items: center; gap: 16px;
    border: 1px solid var(--gray-100); transition: var(--transition);
    min-width: 0;
}
.stat-card:hover { border-color: var(--gray-200); }
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; flex-shrink: 0;
}
.stat-icon.red { background: var(--danger-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-label { display: block; font-size: .7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--dark); line-height: 1.2; }

/* Revenue summary card */
.revenue-card {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--gray-100);
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.revenue-left { display: flex; align-items: center; gap: 16px; }
.revenue-left .stat-label { margin-bottom: 4px; }
.revenue-left .stat-value { font-size: 1.75rem; }
.revenue-right { display: flex; gap: 24px; }
.revenue-metric { text-align: center; }
.revenue-metric .metric-value { display: flex; align-items: center; gap: 4px; font-size: 1.25rem; font-weight: 700; justify-content: center; }
.revenue-metric .metric-value.up { color: var(--success); }
.revenue-metric .metric-value.down { color: var(--warning); }
.revenue-metric .metric-label { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   CHART & INFO PANEL
   ============================================ */
.chart-row { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-bottom: 24px; }
.chart-card {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--gray-100);
}
.chart-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-card-header h3 { font-size: 1rem; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.chart-card-header h3 i { color: var(--text-muted); }
.chart-container { position: relative; width: 100%; height: 280px; }

.info-panel {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--gray-100);
}
.info-panel h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.info-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.info-item:last-child { border-bottom: none; }
.info-dot { width: 10px; height: 10px; border-radius: var(--radius-full); flex-shrink: 0; }
.info-dot.red { background: var(--primary); }
.info-dot.green { background: var(--success); }
.info-dot.orange { background: var(--warning); }
.info-dot.blue { background: var(--info); }
.info-dot.purple { background: var(--purple); }
.info-item span { flex: 1; font-size: .875rem; color: var(--text-light); }
.info-item strong { font-size: .9375rem; font-weight: 700; color: var(--dark); }

/* ============================================
   TABLES — Clean Modern Style
   ============================================ */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    margin-bottom: 24px;
}
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.table-responsive {
    overflow: auto;
    max-height: calc(100vh - 340px);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}
.table-responsive::-webkit-scrollbar { width: 5px; height: 5px; }
.table-responsive::-webkit-scrollbar-track { background: transparent; }
.table-responsive::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
.table-responsive::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
table th,
table td {
    padding: 10px 16px;
    text-align: left;
    font-size: .8125rem;
    white-space: nowrap;
}
table th {
    background: var(--white);
    color: var(--text-muted);
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 2;
}
table th:first-child { padding-left: 20px; }
table th:last-child { padding-right: 20px; }
table td {
    border-bottom: 1px solid var(--gray-100);
    color: var(--text);
    vertical-align: middle;
}
table td:first-child {
    padding-left: 20px;
    color: var(--text-muted);
    font-weight: 500;
}
table td:last-child { padding-right: 20px; }

table tbody tr {
    transition: background .15s ease;
}
table tbody tr:hover {
    background: var(--gray-50);
}
table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cell typography */
table td strong {
    font-weight: 700;
    color: var(--dark);
}
table td code {
    background: var(--gray-100);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: .8rem;
    color: var(--text);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    border: 1px solid var(--gray-200);
}

/* Empty state row */
table tbody tr td[colspan] {
    text-align: center;
    padding: 52px 28px;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: .01em;
}

/* Action buttons in tables — solid colored squares */
table .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    border: none;
    color: var(--white);
    font-size: .75rem;
    cursor: pointer;
    transition: all .2s ease;
    padding: 0;
    text-decoration: none;
}
table .btn-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}
table .btn-action:active {
    transform: translateY(0);
}
table .btn-action.edit {
    background: var(--info);
}
table .btn-action.edit:hover {
    opacity: .85;
}
table .btn-action.delete {
    background: var(--danger);
}
table .btn-action.delete:hover {
    opacity: .85;
}
table .btn-action.toggle-on {
    background: var(--success);
}
table .btn-action.toggle-off {
    background: var(--warning);
}

/* Fallback: old btn-sm inside tables */
table .btn-sm {
    padding: 7px 14px;
    font-size: .78rem;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
}
table .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-danger {
    background: transparent;
    border: 1.5px solid var(--danger);
    color: var(--danger);
    transition: all .2s ease;
}
.btn-outline-danger:hover {
    background: var(--danger);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, .25);
}
.btn-outline-success {
    background: transparent;
    border: 1.5px solid var(--success);
    color: var(--success);
    transition: all .2s ease;
}
.btn-outline-success:hover {
    background: var(--success);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, .25);
}

/* ============================================
   BADGES — Clean Pill with Dot Indicators
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .01em;
    white-space: nowrap;
    background: transparent;
}
.badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-active, .badge-paid, .badge-success {
    color: var(--success);
}
.badge-active::before, .badge-paid::before, .badge-success::before {
    background: var(--success);
}

.badge-inactive, .badge-failed, .badge-danger {
    color: var(--danger);
}
.badge-inactive::before, .badge-failed::before, .badge-danger::before {
    background: var(--danger);
}

.badge-pending, .badge-warning {
    color: var(--warning);
}
.badge-pending::before, .badge-warning::before {
    background: var(--warning);
}

.badge-info, .badge-refunded {
    color: #3b82f6;
}
.badge-info::before, .badge-refunded::before {
    background: #3b82f6;
}

.badge-admin {
    color: var(--primary);
}
.badge-admin::before {
    background: var(--primary);
}
.badge-organizer {
    color: var(--info);
}
.badge-organizer::before {
    background: var(--info);
}
.badge-client {
    color: var(--purple);
}
.badge-client::before {
    background: var(--purple);
}

.badge-cancelled {
    color: var(--text-muted);
}
.badge-cancelled::before {
    background: var(--text-muted);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-100); overflow: hidden;
}
.card-header {
    padding: 18px 24px; border-bottom: 1px solid var(--gray-100);
    display: flex; justify-content: space-between; align-items: center;
}
.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--dark); }
.card-body { padding: 24px; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
    z-index: 2000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius-lg);
    width: 100%; max-width: 560px; max-height: 90vh;
    overflow-y: auto; animation: modalIn .25s ease;
    box-shadow: var(--shadow-lg);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); transition: var(--transition); padding: 4px; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; }

/* ============================================
   SEARCH & FILTER BAR — Modern
   ============================================ */
.search-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: var(--transition);
}
.search-bar:focus-within {
    border-color: transparent;
    box-shadow: none;
}
.search-input {
    flex: 1; min-width: 200px; position: relative;
}
.search-input i {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: var(--text-muted);
    font-size: .85rem; transition: var(--transition);
}
.search-input:focus-within i { color: var(--primary); }
.search-input input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    transition: var(--transition);
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--dark);
}
.search-input input::placeholder { color: var(--text-muted); }
.search-input input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
    background: var(--white);
}
.filter-select {
    min-width: 170px;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
    background-color: var(--white);
}
.filter-select:hover {
    border-color: var(--gray-400);
}

/* ============================================
   EVENT DETAIL PAGE
   ============================================ */
/* Back link */
.ed-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-light); font-size: .85rem; font-weight: 500;
    text-decoration: none; margin-bottom: 24px; transition: var(--transition);
}
.ed-back:hover { color: var(--primary); }
.ed-back i { font-size: .75rem; }
/* Layout */
.ed-layout {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start;
}
/* Hero image */
.ed-main { min-width: 0; }
.ed-hero {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    height: 380px; background: var(--dark);
}
.ed-hero img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.3) 100%);
    pointer-events: none;
}
.ed-cat-badge {
    position: absolute; top: 16px; left: 16px;
    padding: 6px 16px; border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
}
/* Content */
.ed-content { padding-top: 24px; }
.ed-title {
    font-size: 1.6rem; font-weight: 800; color: var(--dark);
    line-height: 1.2; margin-bottom: 20px;
}
/* Meta grid */
.ed-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px;
}
.ed-meta-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: var(--radius);
    background: var(--gray-50); border: 1px solid var(--gray-100);
}
.ed-meta-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-size: .9rem;
}
.ed-meta-label { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.ed-meta-value { display: block; font-size: .85rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
/* Description section */
.ed-section { margin-top: 4px; }
.ed-section-title {
    font-size: .95rem; font-weight: 700; color: var(--dark);
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
    padding-bottom: 12px; border-bottom: 2px solid var(--gray-100);
}
.ed-section-title i { color: var(--primary); font-size: .85rem; }
.ed-description { color: var(--text-light); font-size: .9rem; line-height: 1.8; }

/* ---- Sidebar booking ---- */
.ed-sidebar { position: sticky; top: 90px; }
.ed-booking-card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: 0 8px 32px rgba(0,0,0,.07); overflow: hidden;
}
.ed-booking-header {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 22px; font-size: .95rem; font-weight: 700; color: var(--dark);
    background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
}
.ed-booking-header i { color: var(--primary); }
.ed-booking-empty {
    text-align: center; padding: 40px 24px; color: var(--text-muted);
}
.ed-booking-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.ed-booking-empty h4 { font-size: .95rem; color: var(--dark); margin-bottom: 6px; }
.ed-booking-empty p { font-size: .82rem; }
/* Tickets list */
.ed-tickets-list { padding: 16px 22px; }
.ed-ticket-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-radius: var(--radius); margin-bottom: 10px;
    border: 1.5px solid var(--gray-100); background: var(--white);
    transition: var(--transition); gap: 12px;
}
.ed-ticket-row:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(var(--primary-rgb),.06); }
.ed-ticket-sold { opacity: .55; pointer-events: none; }
.ed-ticket-name { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.ed-ticket-desc { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.ed-ticket-avail { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--text-muted); }
.ed-ticket-right { text-align: right; flex-shrink: 0; }
.ed-ticket-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 8px;
}
.ed-price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}
.ed-price-amount.ed-price--free {
    color: var(--success);
    font-size: 1rem;
    font-weight: 700;
}
.ed-price-currency {
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

/* Quantity Stepper */
.ed-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}
.ed-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-50);
    color: var(--text);
    font-size: .7rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.ed-qty-btn:hover {
    background: var(--primary);
    color: #fff;
}
.ed-qty-btn:active {
    transform: scale(.92);
}
.ed-qty-input {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    font-size: .88rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--white);
    font-family: var(--font);
    outline: none;
    -moz-appearance: textfield;
}
.ed-qty-input::-webkit-outer-spin-button,
.ed-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Order Summary */
.ed-order-summary {
    padding: 0 22px 16px;
}
.ed-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
}
.ed-summary-total span:first-child {
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark);
}
.ed-summary-total span:last-child {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

/* Buy button disabled state */
.ed-buy-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.ed-badge-sold {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
    font-size: .7rem; font-weight: 600; background: rgba(239,68,68,.1); color: #EF4444;
}
/* Phone field */
.ed-phone-field {
    padding: 0 22px; margin-bottom: 16px;
}
.ed-phone-field label {
    display: flex; align-items: center; gap: 6px;
    font-size: .8rem; font-weight: 600; color: var(--text);
    margin-bottom: 6px;
}
.ed-phone-field label i { color: var(--primary); font-size: .72rem; }
.ed-phone-field .form-control {
    width: 100%; padding: 11px 14px; font-size: .9rem;
}
/* Buy button */
.ed-buy-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: calc(100% - 44px); margin: 0 22px 20px; padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; border-radius: var(--radius);
    font-size: .95rem; font-weight: 700; font-family: var(--font);
    cursor: pointer; transition: var(--transition);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb),.3);
}
.ed-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--primary-rgb),.4);
}
/* Mobile */
@media (max-width: 768px) {
    .ed-layout { grid-template-columns: 1fr; }
    .ed-hero { height: 260px; }
    .ed-meta-grid { grid-template-columns: 1fr; }
    .ed-sidebar { position: static; }
    .ed-title { font-size: 1.3rem; }
}

/* ============================================
   SEARCH RESULTS POPUP
   ============================================ */
.srch-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15,23,42,.6); backdrop-filter: blur(4px);
    display: none; align-items: flex-start; justify-content: center;
    padding: 40px 24px 24px; overflow-y: auto;
}
.srch-modal-overlay.open { display: flex; }
.srch-modal {
    background: var(--white); border-radius: var(--radius-lg);
    width: 100%; max-width: 1060px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: modalSlide .3s ease;
    max-height: calc(100vh - 80px);
    display: flex; flex-direction: column;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.srch-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}
.srch-modal-title {
    display: flex; align-items: center; gap: 10px;
    font-size: .95rem; font-weight: 700; color: var(--dark);
}
.srch-modal-title i { color: var(--primary); }
.srch-modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: var(--gray-50); color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: .85rem; transition: var(--transition);
}
.srch-modal-close:hover { background: #FEE2E2; color: #EF4444; }
.srch-modal-body {
    padding: 24px 28px; overflow-y: auto; flex: 1;
}
/* Loading */
.srch-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 48px 20px; gap: 14px;
}
.srch-spinner {
    width: 36px; height: 36px; border: 3px solid var(--gray-200);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.srch-loading span { font-size: .85rem; color: var(--text-muted); }
/* Results grid in modal */
.srch-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.srch-card {
    display: block; text-decoration: none; color: var(--text);
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--gray-100); background: var(--white);
    transition: var(--transition);
}
.srch-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(var(--primary-rgb),.08); transform: translateY(-2px); }
.srch-card-img {
    height: 180px; background: var(--dark); overflow: hidden; position: relative;
}
.srch-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.srch-card:hover .srch-card-img img { transform: scale(1.05); }
.srch-card-img .srch-no-img {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.15); font-size: 2rem;
    background: linear-gradient(135deg, var(--dark-secondary), var(--dark));
}
.srch-card-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: .72rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
}
.srch-card-body { padding: 16px 18px; }
.srch-card-body h4 {
    font-size: .95rem; font-weight: 700; color: var(--dark);
    margin-bottom: 8px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.srch-card-meta {
    display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px;
}
.srch-card-meta span {
    display: flex; align-items: center; gap: 6px;
    font-size: .82rem; color: var(--text-muted);
}
.srch-card-meta i { font-size: .72rem; width: 14px; text-align: center; }
.srch-card-price { font-size: 1rem; font-weight: 800; color: var(--primary); }
.srch-card-price small { font-size: .78rem; font-weight: 500; color: var(--text-muted); margin-right: 4px; }

/* Empty in modal */
.srch-empty {
    text-align: center; padding: 40px 20px;
}
.srch-empty i { font-size: 2rem; color: var(--gray-300); margin-bottom: 12px; display: block; }
.srch-empty h4 { font-size: .95rem; color: var(--dark); margin-bottom: 6px; }
.srch-empty p { font-size: .82rem; color: var(--text-muted); }

/* Footer */
.srch-modal-footer {
    padding: 14px 24px; border-top: 1px solid var(--gray-100);
    text-align: center; flex-shrink: 0;
}

@media (max-width: 600px) {
    .srch-modal-overlay { padding: 16px 10px; }
    .srch-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .srch-card-img { height: 130px; }
}

/* ============================================
   EVENTS LISTING PAGE
   ============================================ */
.ev-search-section {
    background: var(--gray-50); padding: 24px 0; border-bottom: 1px solid var(--gray-100);
}
.ev-search-bar {
    display: flex; gap: 0; background: var(--white); border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200); overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: var(--transition);
}
.ev-search-bar:focus-within { border-color: var(--primary); box-shadow: 0 4px 20px rgba(var(--primary-rgb),.1); }
.ev-sb-field { display: flex; align-items: center; gap: 10px; padding: 0 18px; }
.ev-sb-field + .ev-sb-field { border-left: 1px solid var(--gray-200); }
.ev-sb-field i { color: var(--text-muted); font-size: .85rem; flex-shrink: 0; }
.ev-sb-main { flex: 2; }
.ev-sb-main input {
    border: none; background: none; font-size: .9rem; color: var(--text);
    outline: none; font-family: var(--font); width: 100%; padding: 14px 0;
}
.ev-sb-main input::placeholder { color: var(--gray-400); }
.ev-sb-select { flex: 1; }
.ev-sb-select select {
    border: none; background: none; font-size: .85rem; color: var(--text);
    outline: none; font-family: var(--font); cursor: pointer; width: 100%;
    padding: 14px 0; appearance: none; -webkit-appearance: none;
}
.ev-sb-btn {
    flex-shrink: 0; border-radius: 0 var(--radius) var(--radius) 0 !important;
    padding: 14px 24px !important; gap: 8px; white-space: nowrap;
}
@media (max-width: 768px) {
    .ev-search-bar { flex-direction: column; border-radius: var(--radius); }
    .ev-sb-field + .ev-sb-field { border-left: none; border-top: 1px solid var(--gray-200); }
    .ev-sb-btn { border-radius: 0 0 var(--radius) var(--radius) !important; width: 100%; }
}

/* Results section */
.ev-results-section { padding: 32px 0 48px; }
.ev-results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.ev-results-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.ev-results-count { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.ev-reset-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-full);
    font-size: .8rem; font-weight: 600; color: var(--text-light);
    background: var(--gray-50); border: 1px solid var(--gray-200);
    text-decoration: none; transition: var(--transition);
}
.ev-reset-btn:hover { color: var(--danger); border-color: var(--danger); background: #FEF2F2; }
.ev-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}

/* Empty state */
.ev-empty {
    text-align: center; padding: 64px 24px;
    background: var(--white); border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}
.ev-empty-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-50); color: var(--text-muted); font-size: 1.5rem;
}
.ev-empty h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.ev-empty p { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; max-width: 400px; margin-inline: auto; }

/* ============================================
   TICKET CARDS
   ============================================ */
.ticket-card {
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    overflow: hidden; margin-bottom: 16px; border-left: 4px solid var(--primary);
}
.ticket-card-body {
    padding: 18px 20px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.ticket-info h4 { font-size: 1rem; color: var(--dark); margin-bottom: 4px; font-weight: 600; }
.ticket-info p { color: var(--text-light); font-size: .85rem; line-height: 1.5; }
.ticket-actions { display: flex; gap: 8px; }

/* ============================================
   POPULAR CATEGORIES
   ============================================ */
.section-alt { background: var(--gray-50); }
.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px;
}
.category-card {
    background: var(--white); border-radius: var(--radius); padding: 28px 20px;
    text-align: center; border: 1px solid var(--gray-100); transition: var(--transition);
    text-decoration: none; color: var(--text); display: block;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 30px rgba(var(--primary-rgb), .12); }
.category-card:hover .category-icon { background: var(--primary); color: var(--white); }
.category-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-size: 1.3rem;
    transition: var(--transition);
}
.category-card h3 { font-size: .95rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.category-count { font-size: .8rem; color: var(--text-muted); }

/* ============================================
   HOW IT WORKS (Steps)
   ============================================ */
.steps-grid {
    display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap;
}
.step-card {
    background: var(--white); border-radius: var(--radius); padding: 36px 28px;
    text-align: center; border: 1px solid var(--gray-100); position: relative;
    flex: 1; min-width: 220px; max-width: 320px; transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 30px rgba(var(--primary-rgb), .1); }
.step-number {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--white);
    font-size: .85rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), .3);
}
.step-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 8px auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-size: 1.5rem;
}
.step-card h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.step-card p { font-size: .85rem; color: var(--text-light); line-height: 1.6; }
.step-connector {
    color: var(--gray-300); font-size: 1.2rem; padding: 0 8px; flex-shrink: 0;
}
@media (max-width: 768px) {
    .steps-grid { flex-direction: column; gap: 20px; }
    .step-connector { transform: rotate(90deg); }
    .step-card { max-width: 100%; }
}

/* ============================================
   PLATFORM STATS BANNER
   ============================================ */
.section-stats { padding: 0; }
.stats-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    border-radius: var(--radius-lg); padding: 48px 40px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.stats-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(232,70,30,.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb),.08) 0%, transparent 40%);
    pointer-events: none;
}
.stat-item { position: relative; z-index: 1; }
.stat-number {
    display: block; font-size: 2.5rem; font-weight: 800; color: var(--white);
    line-height: 1; margin-bottom: 8px;
}
.stat-label-txt { font-size: .9rem; color: rgba(255,255,255,.55); font-weight: 500; }
@media (max-width: 768px) {
    .stats-banner { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; gap: 28px; }
    .stat-number { font-size: 2rem; }
}
@media (max-width: 480px) {
    .stats-banner { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   CTA SECTION (Organizers)
   ============================================ */
.section-cta { padding: 32px 0; }
.cta-box {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--gray-100); box-shadow: 0 12px 40px rgba(0,0,0,.06);
    padding: 56px;
}
.cta-content h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; line-height: 1.2; }
.cta-content p { color: var(--text-light); line-height: 1.7; margin-bottom: 20px; font-size: .95rem; }
.cta-features {
    display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.cta-features span {
    display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text); font-weight: 500;
}
.cta-features i { color: var(--success); font-size: .9rem; }
.cta-visual { display: flex; justify-content: center; }
.cta-mockup {
    background: var(--dark); border-radius: var(--radius); overflow: hidden;
    width: 100%; max-width: 340px; box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.cta-mockup-header {
    display: flex; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.05);
}
.cta-mockup-header span {
    width: 10px; height: 10px; border-radius: 50%;
}
.cta-mockup-header span:nth-child(1) { background: #EF4444; }
.cta-mockup-header span:nth-child(2) { background: #F59E0B; }
.cta-mockup-header span:nth-child(3) { background: #10B981; }
.cta-mockup-body { padding: 24px; }
.cta-mock-stat {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: rgba(255,255,255,.06); border-radius: var(--radius-sm); margin-bottom: 10px;
    color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 500;
}
.cta-mock-stat i { color: var(--primary); font-size: 1rem; width: 20px; text-align: center; }
.cta-mock-chart {
    display: flex; align-items: flex-end; gap: 8px; height: 80px; margin-top: 16px; padding: 0 8px;
}
.cta-mock-chart div {
    flex: 1; background: linear-gradient(180deg, var(--primary), rgba(var(--primary-rgb),.4));
    border-radius: 4px 4px 0 0; animation: growBar 1.5s ease forwards;
}
@keyframes growBar { from { height: 0; } }
@media (max-width: 768px) {
    .cta-box { grid-template-columns: 1fr; padding: 36px 24px; }
    .cta-visual { order: -1; }
    .cta-content h2 { font-size: 1.4rem; }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: var(--white); border-radius: var(--radius-sm); margin-bottom: 4px;
    border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 16px rgba(var(--primary-rgb), .08); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: none; border: none; cursor: pointer;
    font-size: .88rem; font-weight: 600; color: var(--dark); text-align: left;
    font-family: var(--font); transition: var(--transition); gap: 12px;
}
.faq-question:hover { color: var(--primary); }
.faq-question i {
    font-size: .7rem; color: var(--text-muted); transition: transform .3s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
    padding: 0 16px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 16px 12px; }
.faq-answer p { color: var(--text-light); font-size: .84rem; line-height: 1.6; }

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.section-newsletter { padding: 24px 0; }
.newsletter-box {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg); padding: 40px 48px; gap: 32px;
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), .25);
}
.newsletter-content h2 { color: var(--white); font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.newsletter-content h2 i { margin-right: 8px; }
.newsletter-content p { color: rgba(255,255,255,.75); font-size: .9rem; }
.newsletter-form {
    display: flex; gap: 10px; flex-shrink: 0;
}
.newsletter-form input {
    padding: 12px 20px; border: 2px solid rgba(255,255,255,.25); border-radius: var(--radius-sm);
    background: rgba(255,255,255,.12); color: var(--white); font-size: .9rem;
    font-family: var(--font); outline: none; min-width: 260px; backdrop-filter: blur(4px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }
.newsletter-form .btn { background: var(--white); color: var(--primary); font-weight: 600; white-space: nowrap; }
.newsletter-form .btn:hover { background: var(--gray-50); }
@media (max-width: 768px) {
    .newsletter-box { flex-direction: column; text-align: center; padding: 32px 24px; }
    .newsletter-form { width: 100%; flex-direction: column; }
    .newsletter-form input { min-width: unset; width: 100%; }
    .newsletter-form .btn { width: 100%; }
}

/* ============================================
   FOOTER EXTENDED
   ============================================ */
.footer-social {
    display: flex; gap: 10px; margin-top: 16px;
}
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; display: flex!important;
    align-items: center; justify-content: center; background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.5); font-size: .85rem; transition: var(--transition);
    margin-bottom: 0 !important;
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-payments { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.footer-pay-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: var(--radius-full);
    font-size: .75rem; color: rgba(255,255,255,.6);
}
.footer-bottom {
    text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); font-size: .8rem; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   FOOTER (PUBLIC)
   ============================================ */
.footer {
    background: var(--dark); color: rgba(255,255,255,.6); padding: 48px 0 24px;
}
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-logo-img { height: 32px; width: auto; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; font-weight: 600; }
.footer-col a { display: block; margin-bottom: 10px; color: rgba(255,255,255,.5); transition: var(--transition); font-size: .9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; color: var(--text-muted); }
.empty-state h3 { margin-bottom: 8px; color: var(--dark); font-weight: 600; font-size: 1.1rem; }
.empty-state p { margin-bottom: 16px; font-size: .9rem; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    font-size: .85rem; font-weight: 600; transition: var(--transition);
}
.pagination a { background: var(--white); color: var(--text); border: 1px solid var(--gray-200); }
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination span.active { background: var(--primary); color: var(--white); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .chart-row { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); z-index: 200; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-content p { margin: 0 auto 32px; }
    .hero-visual { min-height: 380px; justify-content: center; }
    .hero-image { max-width: 480px; height: 400px; }
    .hero-badge { display: none; }
    .hero-search-inner { flex-wrap: wrap; }
    .hero-search-field { border-right: none; border-bottom: 1px solid var(--gray-200); min-width: 100%; }
    .hero-search-field:last-of-type { border-bottom: none; }
    .hero-search-inner .btn-search { width: 100%; text-align: center; display: block; }
    .event-detail-body { grid-template-columns: 1fr; }
    .event-booking { position: static; }
    .topbar-center { display: none; }
}
@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .nav-actions { display: none; }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .dashboard-content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .events-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .event-detail-info { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; padding: 14px 16px; }
    .search-input { min-width: 100%; }
    .filter-select { min-width: 100%; }
    .revenue-card { flex-direction: column; align-items: flex-start; }
    .topbar-date { display: none; }
    .table-header { padding: 16px 16px; flex-wrap: wrap; gap: 10px; }
    .table-responsive { max-height: calc(100vh - 300px); }
    table th, table td { padding: 10px 14px; font-size: .78rem; }
    table th:first-child, table td:first-child { padding-left: 16px; }
    table th:last-child, table td:last-child { padding-right: 16px; }
}
@media (max-width: 480px) {
    .auth-container { padding: 24px; }
    .hero-content h1 { font-size: 1.75rem; }
    .section { padding: 20px 0; }
    .section-title h2 { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--text-muted) !important; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-30 { margin-bottom: 30px; }
.d-flex { display: flex; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* ============================================
   USER TABLE — Avatar Cell
   ============================================ */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: .65rem;
    flex-shrink: 0;
    letter-spacing: .5px;
}
.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: .8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-id {
    font-size: .68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Override first-col color for user cells */
table td:first-child:has(.user-cell) {
    color: var(--text);
}

/* ============================================
   MODAL — User Preview
   ============================================ */
.modal-user-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}
.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
    letter-spacing: .5px;
    transition: background .2s ease;
}
.modal-preview-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
    background: transparent; border: none; color: var(--text-light); font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--gray-100); color: var(--text); }

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    --bg: #0F172A;
    --bg-card: #1E293B;
    --white: #1E293B;
    --dark: #F1F5F9;
    --dark-secondary: #E2E8F0;
    --text: #CBD5E1;
    --text-light: #94A3B8;
    --text-muted: #64748B;
    --gray-50: #1E293B;
    --gray-100: #334155;
    --gray-light: #334155;
    --gray-200: #475569;
    --gray-300: #64748B;
    --gray-400: #94A3B8;
    --gray-500: #CBD5E1;
    --primary-light: #3B1A0E;
    --success-light: #064E3B;
    --info-light: #1E3A5F;
    --warning-light: #451A03;
    --danger-light: #450A0A;
    --orange-light: #431407;
    --purple-light: #2E1065;
    --accent-light: #3B0764;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.2);
    --shadow: 0 1px 3px rgba(0,0,0,.25);
    --shadow-md: 0 2px 8px rgba(0,0,0,.3);
    --shadow-lg: 0 4px 16px rgba(0,0,0,.4);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .sidebar { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .topbar { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .search-box { background: #334155; border-color: #475569; }
[data-theme="dark"] .search-box input { color: #E2E8F0; }
[data-theme="dark"] .search-shortcut { background: #334155; border-color: #475569; color: #94A3B8; }
[data-theme="dark"] .topbar-date { background: #334155; border-color: #475569; color: #CBD5E1; }
[data-theme="dark"] .topbar-notif:hover { background: #334155; }
[data-theme="dark"] .theme-toggle:hover { background: #334155; }
[data-theme="dark"] .navbar { background: rgba(30,41,59,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: #334155; }
[data-theme="dark"] .navbar.scrolled { background: rgba(30,41,59,.97); }
[data-theme="dark"] .navbar .nav-links a { color: #94A3B8; }
[data-theme="dark"] .navbar .nav-links a:hover { color: var(--primary); background: rgba(232,70,30,.1); }
[data-theme="dark"] .navbar .nav-links a.active { color: var(--primary); background: rgba(232,70,30,.15); }
[data-theme="dark"] .nav-mobile { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .nav-mobile ul a { color: #CBD5E1; }
[data-theme="dark"] .nav-mobile ul a:hover { background: #334155; color: var(--primary); }
[data-theme="dark"] .nav-mobile ul a.active { background: rgba(232,70,30,.15); color: var(--primary); }
[data-theme="dark"] .nav-actions .nav-login-link { color: #CBD5E1; }
[data-theme="dark"] .nav-actions .nav-login-link:hover { color: var(--primary); background: rgba(232,70,30,.1); }
[data-theme="dark"] .hero { background: #0F172A; }
[data-theme="dark"] .hero-content h1 { color: #F1F5F9; }
[data-theme="dark"] .footer { background: #0B1120; }
[data-theme="dark"] table th { background: #1E293B; }
[data-theme="dark"] .form-control { background: #334155; border-color: #475569; color: #E2E8F0; }
[data-theme="dark"] .search-input input { background: #334155; border-color: #475569; color: #E2E8F0; }
[data-theme="dark"] .filter-select { background: #334155; border-color: #475569; color: #E2E8F0; }
[data-theme="dark"] .explore-cats { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .explore-cat-pill { background: #334155; border-color: #475569; color: #CBD5E1; }
[data-theme="dark"] .explore-cat-pill:hover { border-color: var(--primary); background: rgba(232,70,30,.15); }
[data-theme="dark"] .explore-search-inner { background: #1E293B; }
[data-theme="dark"] .explore-search-inner input { color: #E2E8F0; }
[data-theme="dark"] .explore-search-inner input::placeholder { color: #64748B; }
[data-theme="dark"] .explore-search-select { color: #CBD5E1; border-color: #475569; }
[data-theme="dark"] .explore-results { background: var(--bg); }
[data-theme="dark"] .xcard { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .xcard:hover { border-color: #475569; }
[data-theme="dark"] .xcard-title { color: #F1F5F9; }
[data-theme="dark"] .xcard-footer { border-color: #334155; }
[data-theme="dark"] .xcard-arrow { background: #334155; }
[data-theme="dark"] .xcard-seats-bar { background: #334155; }
[data-theme="dark"] .explore-empty { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .explore-reset { background: #334155; border-color: #475569; color: #CBD5E1; }

/* ============================================
   EXPORT BUTTON
   ============================================ */
.btn-export { gap: 6px; }
.btn-export i { font-size: .8rem; }

/* ============================================
   CHECK-IN PAGE — Professional Design
   ============================================ */

/* --- Progress Card --- */
.checkin-progress-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.checkin-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.checkin-progress-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.checkin-progress-label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
}
.checkin-progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.checkin-progress-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-muted);
}
.checkin-progress-meta i { margin-right: 3px; }
.checkin-divider { opacity: .4; }
.checkin-progress-bar-track {
    height: 8px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.checkin-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-gold), var(--primary), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: width .6s cubic-bezier(.4,0,.2,1);
    min-width: 4px;
}

/* --- Scanner Card --- */
.checkin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}
.checkin-form { display: flex; flex-direction: column; gap: 16px; }

.checkin-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.checkin-select {
    width: 100%;
    padding: 10px 14px;
    font-size: .9rem;
    font-family: var(--font);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--text);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.checkin-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .1);
    background-color: var(--white);
}

.checkin-input-group {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}
.checkin-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .08);
}
.checkin-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
    background: var(--gray-50);
    color: var(--text-muted);
    font-size: 1.1rem;
    border-right: 1px solid var(--gray-200);
}
.checkin-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark);
    background: transparent;
}
.checkin-input::placeholder {
    font-family: var(--font);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
    font-size: .95rem;
}
.checkin-input:focus { outline: none; }
.checkin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.checkin-btn:hover { background: var(--primary-dark); }

/* --- Result feedback --- */
.checkin-result {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
    animation: checkinSlide .35s ease;
}
@keyframes checkinSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.checkin-result--success {
    background: var(--success-light);
    border-left: 4px solid var(--success);
}
.checkin-result--success .checkin-result-icon { color: var(--success); }
.checkin-result--danger {
    background: var(--danger-light);
    border-left: 4px solid var(--danger);
}
.checkin-result--danger .checkin-result-icon { color: var(--danger); }
.checkin-result--warning {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
}
.checkin-result--warning .checkin-result-icon { color: var(--warning); }

.checkin-result-icon { font-size: 1.6rem; flex-shrink: 0; padding-top: 2px; }
.checkin-result-body { flex: 1; min-width: 0; }
.checkin-result-msg {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}
.checkin-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.checkin-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.checkin-detail-label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.checkin-detail-value {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}
.checkin-code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 1px;
}

/* --- History Card --- */
.checkin-history-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.checkin-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.checkin-history-header h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark);
}
.checkin-history-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkin-history-count {
    font-size: .8rem;
    color: var(--text-muted);
}
.checkin-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}
.checkin-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: .4;
}
.checkin-empty p { font-size: .9rem; }

.checkin-history-list { }
.checkin-history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-50);
    transition: var(--transition);
}
.checkin-history-item:last-child { border-bottom: none; }
.checkin-history-item:hover { background: var(--gray-50); }

.checkin-history-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--success-light);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.checkin-history-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.checkin-history-name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkin-history-event {
    font-size: .78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkin-history-right {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.checkin-history-time {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
}
.checkin-history-date {
    font-size: .75rem;
    color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .checkin-card { padding: 20px 16px; }
    .checkin-progress-header { flex-direction: column; align-items: flex-start; }
    .checkin-input { font-size: .95rem; padding: 12px; }
    .checkin-result-details { grid-template-columns: 1fr 1fr; }
    .checkin-history-item { padding: 12px 16px; gap: 10px; }
}

/* --- Camera Button --- */
.checkin-camera-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
    background: transparent;
    color: var(--primary);
    border: none;
    border-left: 1px solid var(--gray-200);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}
.checkin-camera-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Scanner Overlay / Modal --- */
.scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.scanner-overlay.active {
    opacity: 1;
    visibility: visible;
}
.scanner-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    animation: scannerSlideUp .35s ease;
}
@keyframes scannerSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.scanner-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.scanner-header h3 i {
    color: var(--primary);
}
.scanner-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gray-100);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: var(--transition);
}
.scanner-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}
.scanner-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.scanner-viewfinder {
    width: 100%;
    min-height: 300px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    position: relative;
}
.scanner-viewfinder video {
    border-radius: var(--radius-sm);
}
.scanner-instructions {
    text-align: center;
    font-size: .85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.scanner-instructions i {
    color: var(--primary);
    font-size: 1rem;
}
.scanner-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- Scanner Result (inside modal) --- */
.scanner-result {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--gray-100);
    animation: checkinSlide .3s ease;
}
.scanner-result--loading {
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
}
.scanner-result--loading i {
    margin-right: 6px;
}
.scanner-result--success {
    background: var(--success-light);
}
.scanner-result--success .scanner-result-icon {
    color: var(--success);
}
.scanner-result--danger {
    background: var(--danger-light);
}
.scanner-result--danger .scanner-result-icon {
    color: var(--danger);
}
.scanner-result--warning {
    background: var(--warning-light);
}
.scanner-result--warning .scanner-result-icon {
    color: var(--warning);
}
.scanner-result-content {
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}
.scanner-result-icon {
    font-size: 1.1rem;
    margin-right: 6px;
}
.scanner-result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: .82rem;
    color: var(--text-muted);
}
.scanner-result-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.scanner-result-details i {
    font-size: .75rem;
    opacity: .7;
}

/* --- Dark Mode for Scanner --- */
[data-theme="dark"] .scanner-modal {
    background: var(--dark-card, #1e1e2e);
    border: 1px solid rgba(255,255,255,.08);
}
[data-theme="dark"] .scanner-header {
    border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .scanner-header h3 {
    color: var(--gray-100);
}
[data-theme="dark"] .scanner-close {
    background: rgba(255,255,255,.06);
    color: var(--gray-400);
}
[data-theme="dark"] .scanner-close:hover {
    background: rgba(239,68,68,.15);
    color: #ef4444;
}
[data-theme="dark"] .scanner-result {
    border-color: rgba(255,255,255,.06);
}
[data-theme="dark"] .scanner-result-content {
    color: var(--gray-100);
}
[data-theme="dark"] .checkin-camera-btn {
    border-color: rgba(255,255,255,.08);
}

/* --- Scanner responsive --- */
@media (max-width: 640px) {
    .scanner-modal { width: 95%; max-width: none; }
    .scanner-viewfinder { min-height: 260px; }
    .scanner-body { padding: 16px; }
    .scanner-header { padding: 14px 16px; }
    .scanner-result { padding: 14px 16px; }
}

/* ============================================
   PAGINATION (extended)
   ============================================ */
.pagination-wrap { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; gap: 12px; }
.pagination-info { font-size: .85rem; color: var(--text-muted); }

/* ============================================
   PAGE HERO (About, Contact, FAQ, etc.)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: .5rem;
}
.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-content h2 { color: var(--dark); margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-image { display: flex; justify-content: center; }
.about-img-placeholder {
    width: 280px; height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b47 100%);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 4rem;
    box-shadow: 0 20px 60px rgba(232,70,30,.3);
}
.about-img-placeholder span { font-size: 1.5rem; font-weight: 800; margin-top: .5rem; }
.about-how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.about-how-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    border: 1px solid var(--gray-100);
}
.about-how-icon {
    width: 50px; height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.about-how-card h3 { margin-bottom: 1rem; color: var(--dark); }
.about-list { list-style: none; padding: 0; }
.about-list li {
    padding: .5rem 0;
    color: var(--text-muted);
    display: flex; align-items: center; gap: .5rem;
}
.about-list li i { color: var(--success); font-size: .8rem; }

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-how-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 100px 0 40px; }
    .page-hero h1 { font-size: 1.8rem; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h2 { color: var(--dark); margin-bottom: .5rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info-item {
    display: flex; align-items: center; gap: 1rem;
}
.ci-icon {
    width: 44px; height: 44px;
    background: var(--gray-50);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-info-item h4 { margin: 0; font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.contact-info-item p { margin: 0; font-weight: 600; color: var(--dark); }
.contact-social { margin-top: 2rem; }
.contact-social h4 { margin-bottom: .5rem; color: var(--dark); }
.contact-form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    border: 1px solid var(--gray-100);
}
.contact-form-card h2 { color: var(--dark); margin-bottom: 1.5rem; }
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-success {
    text-align: center;
    padding: 3rem 1rem;
}
.contact-success-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}
.contact-success h3 { margin-bottom: .5rem; }
.contact-success p { color: var(--text-muted); margin-bottom: 1.5rem; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-category { margin-bottom: 2.5rem; }
.faq-category-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex; align-items: center; gap: .5rem;
}
.faq-category-title i { color: var(--primary); }
.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    margin-bottom: .5rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--gray-200); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    transition: var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question i {
    transition: transform .3s;
    color: var(--text-muted);
    font-size: .8rem;
}
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s;
    padding: 0 1.2rem;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1rem;
}
.faq-answer p, .faq-answer li {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: .9rem;
}
.faq-answer ol, .faq-answer ul { padding-left: 1.2rem; }
.faq-contact {
    text-align: center;
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
}
.faq-contact-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: .5rem; }
.faq-contact h3 { margin-bottom: .3rem; }
.faq-contact p { color: var(--text-muted); margin-bottom: 1rem; }

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    color: var(--dark);
    margin-top: 2rem;
    margin-bottom: .5rem;
    font-size: 1.2rem;
}
.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: .8rem;
}
.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: .3rem;
}
.legal-content a { color: var(--primary); }

/* ============================================
   EVENT DETAIL — COUNTDOWN
   ============================================ */
.ed-countdown {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.cd-item { text-align: center; }
.cd-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.cd-label {
    display: block;
    font-size: .65rem;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.cd-sep {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 .2rem;
    align-self: flex-start;
    margin-top: .1rem;
}

/* ============================================
   EVENT DETAIL — TITLE ROW & ACTIONS
   ============================================ */
.ed-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}
.ed-title-row .ed-title { margin-bottom: 0; }
.ed-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.ed-fav-btn, .ed-share-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.ed-fav-btn:hover { color: #e74c3c; border-color: #e74c3c; }
.ed-fav-btn.active { color: #e74c3c; background: #fef2f2; border-color: #e74c3c; }
.ed-share-btn:hover { color: var(--primary); border-color: var(--primary); }
.ed-share-dropdown { position: relative; }
.ed-share-menu {
    position: absolute;
    right: 0; top: 100%;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    padding: .5rem;
    min-width: 180px;
    z-index: 100;
    display: none;
    border: 1px solid var(--gray-100);
}
.ed-share-dropdown.open .ed-share-menu { display: block; }
.ed-share-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .8rem;
    border-radius: 8px;
    font-size: .85rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border: none; background: none; cursor: pointer; width: 100%; text-align: left;
    font-family: inherit;
}
.ed-share-item:hover { background: var(--gray-50); }
.ed-share-item.whatsapp i { color: #25D366; }
.ed-share-item.facebook i { color: #1877F2; }
.ed-share-item.twitter i { color: #1DA1F2; }

/* ============================================
   EVENT DETAIL — RATING
   ============================================ */
.ed-rating-summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.ed-stars { color: #f59e0b; font-size: .9rem; display: flex; gap: 2px; }
.ed-rating-num { font-weight: 700; color: var(--dark); }
.ed-rating-count { color: var(--text-muted); font-size: .85rem; }

/* ============================================
   EVENT DETAIL — REVIEWS
   ============================================ */
.ed-reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}
.ed-review-form-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ed-review-form-card h4 { margin-bottom: 1rem; color: var(--dark); }
.star-rating-input {
    display: flex; align-items: center; gap: .3rem; margin-bottom: .8rem;
    flex-direction: row-reverse; justify-content: flex-end;
}
.star-rating-input span {
    order: 1;
    margin-right: .5rem;
    font-size: .9rem;
    color: var(--text-muted);
}
.star-rating-input input { display: none; }
.star-rating-input label {
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--gray-200);
    transition: color .15s;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #f59e0b;
}
.ed-reviews-list { display: flex; flex-direction: column; gap: .8rem; }
.ed-review-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 1rem 1.2rem;
}
.ed-review-header {
    display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem;
}
.ed-review-avatar {
    width: 36px; height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
    flex-shrink: 0;
}
.ed-review-header strong { font-size: .9rem; }
.ed-review-stars { color: #f59e0b; font-size: .75rem; display: flex; gap: 1px; }
.ed-review-date { margin-left: auto; font-size: .78rem; color: var(--text-muted); }
.ed-review-comment { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ============================================
   FAVORITES PAGE
   ============================================ */
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header-row h2 { margin: 0; }
.page-header-row .text-muted { margin: 0; font-size: .9rem; }
.fav-remove-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,.9);
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #e74c3c;
    font-size: .9rem;
    z-index: 5;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.fav-remove-btn:hover { background: #e74c3c; color: var(--white); }

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.topbar-notif-wrapper { position: relative; }
.topbar-notif-wrapper .topbar-notif {
    background: none; border: none; cursor: pointer;
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition);
}
.topbar-notif-wrapper .topbar-notif:hover { background: var(--gray-50); }
.notif-dropdown {
    position: absolute;
    right: 0; top: 100%;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0,0,0,.15);
    width: 340px;
    z-index: 200;
    display: none;
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.topbar-notif-wrapper.open .notif-dropdown { display: block; }
.notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--gray-100);
}
.notif-dropdown-header strong { font-size: .95rem; }
.notif-mark-all {
    font-size: .78rem;
    color: var(--primary);
    text-decoration: none;
}
.notif-dropdown-body { max-height: 320px; overflow-y: auto; }
.notif-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}
.notif-empty i { font-size: 1.8rem; margin-bottom: .5rem; display: block; }
.notif-item {
    display: flex; align-items: flex-start; gap: .8rem;
    padding: .8rem 1.2rem;
    text-decoration: none;
    color: var(--dark);
    transition: background .15s;
    border-bottom: 1px solid var(--gray-50);
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.notif-unread { background: #eff6ff; }
.notif-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: .8rem;
    flex-shrink: 0;
}
.notif-text { flex: 1; min-width: 0; }
.notif-text strong { font-size: .82rem; display: block; margin-bottom: 2px; }
.notif-text p { font-size: .78rem; color: var(--text-muted); margin: 0; line-height: 1.3; }
.notif-time { font-size: .72rem; color: var(--text-muted); margin-top: 3px; display: block; }

/* ============================================
   MESSAGES PAGE (Admin)
   ============================================ */
.messages-list { display: flex; flex-direction: column; gap: 1rem; }
.msg-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    transition: var(--transition);
}
.msg-card.msg-unread { border-left: 3px solid var(--primary); background: #fef7f4; }
.msg-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .8rem; flex-wrap: wrap; gap: .5rem;
}
.msg-from { display: flex; align-items: center; gap: .8rem; }
.msg-avatar {
    width: 38px; height: 38px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem;
}
.msg-email { font-size: .8rem; color: var(--text-muted); display: block; }
.msg-meta { display: flex; align-items: center; gap: .5rem; }
.msg-badge-new {
    background: var(--primary);
    color: var(--white);
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.msg-date { font-size: .8rem; color: var(--text-muted); }
.msg-subject { font-size: .9rem; margin-bottom: .5rem; }
.msg-body {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-height: 100px;
    overflow: hidden;
}
.msg-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-secondary { background: var(--gray-100); color: var(--text-muted); }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* Close notif dropdown on outside click */
@media (max-width: 640px) {
    .notif-dropdown { width: 290px; right: -20px; }
    .ed-title-row { flex-direction: column; }
    .ed-countdown { gap: .3rem; padding: .8rem; }
    .cd-num { font-size: 1.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
}

/* -- Settings Hero Card -- */
.settings-hero {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.settings-hero-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    flex-wrap: wrap;
}
.settings-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.settings-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.settings-hero-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}
.settings-hero-sub {
    font-size: .85rem;
    color: var(--text-muted);
}
.settings-hero-details {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settings-hero-detail {
    font-size: .82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.settings-hero-detail i {
    width: 14px;
    text-align: center;
    font-size: .75rem;
    color: var(--secondary);
}

/* -- Settings Nav Tabs -- */
.settings-hero-nav {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--gray-100);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.settings-hero-nav::-webkit-scrollbar { display: none; }
.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}
.settings-nav-item i {
    font-size: .72rem;
}
.settings-nav-item:hover {
    color: var(--dark);
    background: var(--gray-50);
}
.settings-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* -- Settings Form/Sections -- */
.settings-form { max-width: none; }
.settings-section {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.settings-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.settings-section-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    background: var(--primary-light); color: var(--primary);
    flex-shrink: 0;
}
.settings-section-icon.blue { background: var(--info-light); color: var(--info); }
.settings-section-icon.green { background: var(--success-light); color: var(--success); }
.settings-section-icon.orange { background: var(--orange-light); color: var(--orange); }
.settings-section-icon.purple { background: var(--purple-light); color: var(--purple); }
.settings-section-header h3 {
    font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 2px;
}
.settings-section-header p {
    font-size: .8rem; color: var(--text-muted); margin: 0;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.settings-grid .full-width {
    grid-column: 1 / -1;
}
.toggle-label {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--text);
    padding: 12px 16px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.toggle-label:hover { border-color: var(--gray-300); }
.toggle-label input { display: none; }
.toggle-switch {
    width: 42px; min-width: 42px; height: 24px;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    position: relative;
    transition: background .25s;
    flex-shrink: 0;
    display: inline-block;
}
.toggle-switch::after {
    content: '';
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-label input:checked + .toggle-switch {
    background: var(--success);
}
.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(18px);
}
.settings-actions {
    display: flex; gap: 12px; margin-top: 8px;
    padding-top: 20px;
}

/* ============================================
   COMMISSION CHIP
   ============================================ */
.comm-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}
.comm-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.comm-chip .comm-value { letter-spacing: .3px; }
.comm-chip i { font-size: .65rem; color: var(--text-muted); transition: color .2s; }
.comm-chip:hover i { color: var(--primary); }

/* ============================================
   REVENUE CELL
   ============================================ */
.revenue-cell {
    display: flex; flex-direction: column; gap: 3px;
    font-size: .8rem; line-height: 1.4;
}
.rev-commission {
    font-weight: 700; color: var(--primary); font-size: .88rem;
}
.rev-total { color: var(--text-muted); font-size: .75rem; }
.rev-organizer {
    color: var(--success); font-weight: 600; font-size: .75rem;
}
.rev-organizer i { font-size: .6rem; margin-right: 2px; }
.rev-empty { color: var(--text-muted); font-size: .85rem; }

/* ============================================
   STATUS CHIP
   ============================================ */
.status-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: .78rem; font-weight: 600;
    white-space: nowrap;
    letter-spacing: .01em;
}
.status-chip i { font-size: .72rem; }
.status-chip--success {
    background: var(--success-light);
    color: #059669;
    border: 1px solid rgba(16,185,129,.2);
}
.status-chip--warning {
    background: var(--warning-light);
    color: #D97706;
    border: 1px solid rgba(245,158,11,.2);
}
.status-chip--danger {
    background: var(--danger-light);
    color: #DC2626;
    border: 1px solid rgba(239,68,68,.2);
}

/* ============================================
   HOMEPAGE — REDESIGNED SECTIONS
   ============================================ */

/* Shared section layout */
.hp-section {
    padding: 64px 0;
}
.hp-section .container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hp-section--alt {
    background: var(--gray-50);
}

/* Section headers */
.hp-section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.hp-section-head--center {
    justify-content: center; text-align: center;
    margin-bottom: 40px;
}
.hp-section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .7rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--primary); margin-bottom: 8px;
}
.hp-section-label i { font-size: .65rem; }
.hp-section-title {
    font-size: 1.85rem; font-weight: 800; color: var(--dark);
    line-height: 1.2; margin-bottom: 0;
}
.hp-section-desc {
    color: var(--text-light); font-size: 1rem; margin-top: 8px;
}
.hp-section-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .88rem; font-weight: 600; color: var(--primary);
    text-decoration: none; white-space: nowrap; transition: var(--transition);
    padding: 8px 20px; border-radius: var(--radius-full);
    border: 1.5px solid var(--primary);
}
.hp-section-link:hover {
    background: var(--primary); color: #fff;
}
.hp-section-link i { font-size: .72rem; transition: transform .2s ease; }
.hp-section-link:hover i { transform: translateX(3px); }

/* --- STEPS --- */
.hp-steps {
    display: flex; align-items: stretch; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.hp-step {
    flex: 1; min-width: 240px; max-width: 340px;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px 28px 32px; text-align: center;
    position: relative; border: 1px solid var(--gray-100);
    transition: transform .3s ease, box-shadow .3s ease;
}
.hp-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,.08);
    border-color: var(--primary);
}
.hp-step-num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: .85rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), .35);
}
.hp-step-icon {
    width: 68px; height: 68px; border-radius: 50%;
    margin: 8px auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
    font-size: 1.5rem;
}
.hp-step h3 {
    font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px;
}
.hp-step p {
    font-size: .85rem; color: var(--text-light); line-height: 1.65;
}
.hp-step-line {
    width: 48px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hp-step-line::after {
    content: ''; display: block;
    width: 100%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--gray-300) 0, var(--gray-300) 6px, transparent 6px, transparent 12px);
}
@media (max-width: 768px) {
    .hp-steps { flex-direction: column; align-items: center; gap: 24px; }
    .hp-step { max-width: 100%; }
    .hp-step-line {
        width: 2px; height: 32px;
    }
    .hp-step-line::after {
        width: 2px; height: 100%;
        background: repeating-linear-gradient(180deg, var(--gray-300) 0, var(--gray-300) 6px, transparent 6px, transparent 12px);
    }
}

/* --- STATS --- */
.hp-section--stats {
    padding: 0; margin-top: -20px; position: relative; z-index: 2;
}
.hp-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.hp-stat {
    text-align: center; padding: 36px 20px;
    position: relative;
}
.hp-stat + .hp-stat::before {
    content: ''; position: absolute; left: 0; top: 20%; height: 60%;
    width: 1px; background: rgba(255,255,255,.08);
}
.hp-stat-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(232,70,30,.12); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-size: 1rem;
}
.hp-stat .stat-number {
    display: block; font-size: 2.2rem; font-weight: 800; color: #fff;
    line-height: 1; margin-bottom: 6px;
}
.hp-stat-label {
    font-size: .82rem; color: rgba(255,255,255,.45); font-weight: 500;
}
@media (max-width: 768px) {
    .hp-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-stat:nth-child(3)::before { display: none; }
    .hp-stat { padding: 28px 16px; }
    .hp-stat .stat-number { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .hp-section--stats { margin-top: -12px; }
}

/* --- FEATURES --- */
.hp-features {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.hp-feat {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg); padding: 24px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.hp-feat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: var(--gray-200);
}
.hp-feat-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
    background: var(--primary-light);
    color: var(--feat-clr, var(--primary));
}
.hp-feat-text h3 {
    font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px;
}
.hp-feat-text p {
    font-size: .85rem; color: var(--text-light); line-height: 1.6;
}
@media (max-width: 480px) {
    .hp-features { grid-template-columns: 1fr; }
}

/* --- CTA --- */
.hp-section--cta { padding: 48px 0; }
.hp-cta {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--radius-lg); padding: 56px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    position: relative; overflow: hidden;
}
.hp-cta::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 10% 80%, rgba(232,70,30,.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(59,130,246,.08) 0%, transparent 40%);
    pointer-events: none;
}
.hp-cta-content { position: relative; z-index: 1; }
.hp-cta-content h2 {
    font-size: 1.7rem; font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 12px;
}
.hp-cta-content > p {
    color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 20px; font-size: .92rem;
}
.hp-cta-checks {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px;
}
.hp-cta-checks span {
    display: flex; align-items: center; gap: 8px;
    font-size: .84rem; color: rgba(255,255,255,.8); font-weight: 500;
}
.hp-cta-checks i { color: #10B981; }
.hp-cta-btn {
    background: var(--primary) !important; color: #fff !important; border: none;
    padding: 14px 32px !important; border-radius: var(--radius) !important;
    font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), .35);
}
.hp-cta-btn:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), .5);
}
.hp-cta-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.hp-cta-mockup {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius); overflow: hidden; width: 100%; max-width: 340px;
    backdrop-filter: blur(4px);
}
.hp-cta-mockup-bar {
    display: flex; gap: 6px; padding: 12px 16px;
    background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06);
}
.hp-cta-mockup-bar span { width: 10px; height: 10px; border-radius: 50%; }
.hp-cta-mockup-bar span:nth-child(1) { background: #EF4444; }
.hp-cta-mockup-bar span:nth-child(2) { background: #F59E0B; }
.hp-cta-mockup-bar span:nth-child(3) { background: #10B981; }
.hp-cta-mockup-body { padding: 20px; }
.hp-cta-mock-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: rgba(255,255,255,.04); border-radius: var(--radius-sm); margin-bottom: 8px;
    color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500;
}
.hp-cta-mock-row i { color: var(--primary); width: 18px; text-align: center; }
.hp-cta-chart {
    display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 14px;
}
.hp-cta-chart div {
    flex: 1; border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--primary), rgba(var(--primary-rgb), .3));
    animation: growBar 1.5s ease forwards;
}
@media (max-width: 768px) {
    .hp-cta { grid-template-columns: 1fr; padding: 36px 24px; }
    .hp-cta-visual { order: -1; }
    .hp-cta-content h2 { font-size: 1.3rem; }
}

/* --- NEWSLETTER --- */
.hp-section--newsletter { padding: 48px 0; }
.hp-newsletter {
    display: flex; align-items: center; gap: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg); padding: 40px 48px;
    box-shadow: 0 12px 40px rgba(var(--primary-rgb), .25);
}
.hp-newsletter-icon {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem;
}
.hp-newsletter-text { flex: 1; }
.hp-newsletter-text h2 { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.hp-newsletter-text p { color: rgba(255,255,255,.7); font-size: .88rem; }
.hp-newsletter-form {
    display: flex; gap: 10px; flex-shrink: 0;
}
.hp-newsletter-form input {
    padding: 12px 20px; border: 2px solid rgba(255,255,255,.25);
    border-radius: var(--radius-sm); background: rgba(255,255,255,.12);
    color: #fff; font-size: .88rem; font-family: var(--font);
    outline: none; min-width: 250px; backdrop-filter: blur(4px);
}
.hp-newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.hp-newsletter-form input:focus { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.18); }
.hp-newsletter-form .btn { background: #fff; color: var(--primary); font-weight: 600; white-space: nowrap; }
.hp-newsletter-form .btn:hover { background: var(--gray-50); }
@media (max-width: 768px) {
    .hp-newsletter { flex-direction: column; text-align: center; padding: 32px 24px; }
    .hp-newsletter-form { width: 100%; flex-direction: column; }
    .hp-newsletter-form input { min-width: unset; width: 100%; }
    .hp-newsletter-form .btn { width: 100%; }
}

/* --- HP Dark mode --- */
[data-theme="dark"] .hp-section--alt { background: #0F172A; }
[data-theme="dark"] .hp-step { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .hp-step:hover { border-color: var(--primary); }
[data-theme="dark"] .hp-feat { background: #1E293B; border-color: #334155; }
[data-theme="dark"] .hp-feat:hover { border-color: #475569; }
[data-theme="dark"] .hp-section-title { color: #F1F5F9; }
[data-theme="dark"] .hp-step h3, [data-theme="dark"] .hp-feat-text h3 { color: #F1F5F9; }

/* ============================================
   EXPLORE PAGE — REDESIGNED
   ============================================ */

/* Hero */
.explore-hero {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    padding: 60px 0 48px;
    overflow: hidden;
}
.explore-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232,70,30,.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 90%, rgba(147,51,234,.08) 0%, transparent 40%);
    pointer-events: none;
}
.explore-hero .container { position: relative; z-index: 1; }
.explore-hero-content { text-align: center; margin-bottom: 32px; }
.explore-label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: .72rem; font-weight: 700; letter-spacing: 2px;
    color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.explore-hero-content h1 {
    font-size: 2.4rem; font-weight: 800; color: #fff;
    line-height: 1.15; margin-bottom: 12px;
}
.explore-hero-content h1 .highlight {
    color: var(--primary); font-style: italic;
}
.explore-hero-content p {
    font-size: 1rem; color: rgba(255,255,255,.5);
    max-width: 500px; margin: 0 auto;
}

/* Search bar in hero */
.explore-search { max-width: 740px; margin: 0 auto; }
.explore-search-inner {
    display: flex; align-items: center;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
    padding: 6px; gap: 0;
    overflow: hidden;
}
.explore-search-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; flex-shrink: 0;
    color: var(--text-muted); font-size: .95rem;
}
.explore-search-inner input {
    flex: 1; min-width: 0;
    border: none; background: none; padding: 14px 4px;
    font-size: .9rem; color: var(--text); font-family: var(--font);
    outline: none;
}
.explore-search-inner input::placeholder { color: var(--gray-400); }
.explore-search-select {
    border: none; background: none;
    border-left: 1px solid var(--gray-200);
    padding: 14px 32px 14px 16px;
    font-size: .85rem; color: var(--text); font-family: var(--font);
    cursor: pointer; outline: none;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    white-space: nowrap;
}
.explore-search-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--radius); font-size: .875rem;
    font-weight: 600; font-family: var(--font);
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.explore-search-btn:hover { background: var(--primary-dark); }

/* Category pills */
.explore-cats {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 14px 0;
    position: sticky; top: 72px; z-index: 40;
}
.dashboard-layout .explore-cats {
    top: var(--topbar-h);
}
.explore-cats-scroll {
    display: flex; gap: 8px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 2px;
}
.explore-cats-scroll::-webkit-scrollbar { display: none; }
.explore-cat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-full);
    font-size: .8rem; font-weight: 600; white-space: nowrap;
    color: var(--text-light); background: var(--gray-50);
    border: 1.5px solid var(--gray-100);
    text-decoration: none; transition: var(--transition);
    flex-shrink: 0;
}
.explore-cat-pill i { font-size: .72rem; }
.explore-cat-pill:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.explore-cat-pill.active {
    background: var(--primary); color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),.25);
}

/* Results header */
.explore-results { padding: 28px 0 48px; }
.explore-results-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.explore-results-title {
    font-size: 1.3rem; font-weight: 800; color: var(--dark);
    display: flex; align-items: center; gap: 10px;
}
.explore-results-title i { color: var(--primary); font-size: 1rem; }
.explore-results-count { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.explore-count-num {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
    font-weight: 700; padding: 2px 8px; border-radius: var(--radius-xs);
    font-size: .82rem; margin-right: 2px;
}
.explore-reset {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-full);
    font-size: .82rem; font-weight: 600; color: var(--text-light);
    background: var(--gray-50); border: 1px solid var(--gray-200);
    text-decoration: none; transition: var(--transition);
}
.explore-reset:hover { color: var(--danger); border-color: var(--danger); background: #FEF2F2; }

/* Empty state */
.explore-empty {
    text-align: center; padding: 64px 24px;
    background: var(--white); border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}
.explore-empty-visual {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-size: 2rem;
}
.explore-empty h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.explore-empty p { color: var(--text-muted); font-size: .9rem; max-width: 400px; margin: 0 auto 20px; }

/* Event cards grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* --- XCARD — New event card design --- */
.xcard {
    display: flex; flex-direction: column;
    text-decoration: none; color: var(--text);
    background: var(--white); border-radius: var(--radius-lg);
    overflow: hidden; border: 1px solid var(--gray-100);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}
.xcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.1);
    border-color: var(--gray-200);
}

/* Image */
.xcard-img {
    position: relative; height: 220px;
    overflow: hidden; background: var(--dark);
}
.xcard-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.xcard:hover .xcard-img img { transform: scale(1.06); }
.xcard-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.4) 100%);
    pointer-events: none;
}
.xcard-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: rgba(255,255,255,.15);
    background: linear-gradient(135deg, #1E293B, #334155);
}

/* Badges on image */
.xcard-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: .68rem; font-weight: 700; letter-spacing: .3px;
    display: flex; align-items: center; gap: 5px;
    backdrop-filter: blur(8px);
}
.xcard-badge i { font-size: .35rem; }
.xcard-badge--open {
    background: rgba(16,185,129,.15); color: #10B981;
    border: 1px solid rgba(16,185,129,.3);
}
.xcard-badge--full {
    background: rgba(239,68,68,.15); color: #EF4444;
    border: 1px solid rgba(239,68,68,.3);
}
.xcard-cat {
    position: absolute; top: 14px; left: 14px;
    padding: 5px 12px; border-radius: var(--radius-full);
    font-size: .68rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
}

/* Date chip */
.xcard-date {
    position: absolute; bottom: -1px; left: 20px;
    background: var(--primary); color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 8px 14px; text-align: center; line-height: 1;
    box-shadow: 0 -4px 12px rgba(var(--primary-rgb),.3);
}
.xcard-date-day { display: block; font-size: 1.2rem; font-weight: 800; }
.xcard-date-month { display: block; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* Body */
.xcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.xcard-meta-top { min-height: 20px; margin-bottom: 4px; }
.xcard-countdown {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 600;
    color: var(--warning); background: var(--warning-light);
    padding: 3px 10px; border-radius: var(--radius-full);
}
.xcard-countdown i { font-size: .65rem; }
.xcard-title {
    font-size: 1.05rem; font-weight: 700; color: var(--dark);
    margin-bottom: 10px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.xcard-info {
    display: flex; flex-direction: column; gap: 5px;
    margin-bottom: auto; padding-bottom: 14px;
}
.xcard-info span {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; color: var(--text-light);
}
.xcard-info span i { width: 14px; font-size: .72rem; color: var(--text-muted); text-align: center; }

/* Footer */
.xcard-footer {
    display: flex; align-items: center; gap: 12px;
    padding-top: 14px; border-top: 1px solid var(--gray-100);
}
.xcard-price { display: flex; align-items: baseline; gap: 4px; }
.xcard-price-label { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.xcard-price-amount { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.xcard-price--free { color: var(--success); }

/* Seats bar */
.xcard-seats { flex: 1; min-width: 0; }
.xcard-seats-bar {
    height: 4px; background: var(--gray-100);
    border-radius: var(--radius-full); overflow: hidden; margin-bottom: 3px;
}
.xcard-seats-fill {
    height: 100%; border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary), #F59E0B);
    transition: width .4s ease;
}
.xcard-seats-text { font-size: .68rem; color: var(--text-muted); font-weight: 500; }

.xcard-arrow {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: var(--gray-50); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: .75rem; transition: var(--transition);
}
.xcard:hover .xcard-arrow {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb),.3);
}

/* --- Explore Responsive --- */
@media (max-width: 768px) {
    .explore-hero { padding: 80px 0 36px; }
    .explore-hero-content h1 { font-size: 1.6rem; }
    .explore-hero-content p { font-size: .9rem; }
    .explore-search-inner { flex-wrap: wrap; }
    .explore-search-select { border-left: none; border-top: 1px solid var(--gray-200); width: 100%; }
    .explore-search-btn { width: 100%; justify-content: center; border-radius: var(--radius); margin-top: 2px; }
    .explore-search-icon { display: none; }
    .explore-search-inner input { padding-left: 16px; }
    .explore-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .explore-results-title { font-size: 1.1rem; }
    .explore-cat-pill { padding: 7px 14px; font-size: .75rem; }
}
@media (max-width: 480px) {
    .explore-hero { padding: 72px 0 28px; }
    .explore-hero-content h1 { font-size: 1.35rem; }
    .explore-hero-content p { display: none; }
    .xcard-img { height: 180px; }
    .explore-grid { max-width: 100%; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .explore-grid { grid-template-columns: repeat(2, 1fr); }
    .explore-hero-content h1 { font-size: 2rem; }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE — MOBILE FIRST
   ============================================ */

/* ---- SMALL MOBILE (≤480px) ---- */
@media (max-width: 480px) {
    /* Navbar */
    .navbar .container { padding: 0 16px; height: 60px; }
    .navbar .logo .logo-img { height: 28px; }

    /* Hero */
    .hero { min-height: auto; padding-top: 60px; }
    .hero .container { padding: 0 16px; gap: 24px; }
    .hero-content { padding: 32px 0 16px; }
    .hero-content h1 { font-size: 1.6rem; letter-spacing: -.5px; }
    .hero-content p { font-size: .9rem; }
    .hero-visual { min-height: 220px; }
    .hero-image { max-width: 100%; height: 220px; }

    /* Hero Slider */
    .hero-slider { height: 480px; }
    .hero-slider-content h1 { font-size: 1.3rem; max-width: 90%; }
    .hero-label { font-size: .65rem; letter-spacing: 1.5px; }
    .hero-quick-tags { gap: 6px; }
    .hqt { padding: 5px 12px; font-size: .72rem; }
    .slider-arrow { width: 34px; height: 34px; font-size: .75rem; }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .slider-dots { bottom: 10px; right: 16px; gap: 6px; }

    /* Sections */
    .section { padding: 16px 0; }
    .section .container { padding: 0 16px; }
    .section-title h2 { font-size: 1.4rem; }
    .section-title p { font-size: .9rem; }
    .hp-section { padding: 40px 0; }
    .hp-section .container { padding: 0 16px; }
    .hp-section-title { font-size: 1.3rem; }
    .hp-section-link { font-size: .8rem; padding: 6px 14px; }
    .hp-section-head { margin-bottom: 24px; }

    /* Features grid */
    .features-grid { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 24px 20px; }

    /* Event cards */
    .events-grid { grid-template-columns: 1fr; max-width: 100%; gap: 20px; }
    .ev-grid { grid-template-columns: 1fr; gap: 20px; }
    .ecard-img { height: 200px; }

    /* Categories */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 20px 12px; }
    .category-icon { width: 44px; height: 44px; font-size: 1.1rem; }

    /* Steps */
    .steps-grid { gap: 16px; }
    .step-card { padding: 28px 20px; min-width: unset; }

    /* Stats banner */
    .stats-banner { padding: 24px 16px; gap: 20px; grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 1.75rem; }
    .stat-label-txt { font-size: .8rem; }

    /* CTA */
    .cta-box { padding: 28px 16px; gap: 24px; }
    .cta-content h2 { font-size: 1.2rem; }
    .cta-features { gap: 10px; }
    .cta-features span { font-size: .8rem; }

    /* Newsletter */
    .newsletter-box { padding: 24px 16px; }
    .newsletter-content h2 { font-size: 1.1rem; }

    /* Footer */
    .footer { padding: 32px 0 16px; }
    .footer .container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px; }

    /* Auth */
    .auth-page { padding: 16px; }
    .auth-container { padding: 24px 20px; }

    /* Search bar */
    .hero-search { padding: 0 16px; margin-top: -24px; }

    /* Dashboard */
    .dashboard-content { padding: 12px; }
    .topbar { height: 56px; padding: 0 12px; }
    .topbar-left h1 { font-size: 1rem; }

    /* Stat cards */
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.25rem; }

    /* Revenue card */
    .revenue-card { padding: 16px; }
    .revenue-left .stat-value { font-size: 1.4rem; }
    .revenue-right { gap: 16px; }

    /* Chart */
    .chart-card { padding: 16px; }
    .chart-container { height: 220px; }

    /* Tables - Card view on mobile */
    .table-container { border-radius: var(--radius); }
    .table-header { padding: 12px; }
    .table-header h3 { font-size: .9rem; }
    table th, table td { padding: 8px 10px; font-size: .75rem; }
    table th:first-child, table td:first-child { padding-left: 10px; }
    table th:last-child, table td:last-child { padding-right: 10px; }

    /* Event detail */
    .ed-hero { height: 200px; border-radius: var(--radius); }
    .ed-title { font-size: 1.15rem; }
    .ed-meta-grid { gap: 8px; }
    .ed-meta-card { padding: 10px 12px; }
    .ed-booking-card { border-radius: var(--radius); }
    .ed-buy-btn { margin: 0 16px 16px; width: calc(100% - 32px); }
    .ed-tickets-list { padding: 12px 16px; }
    .ed-ticket-row { padding: 12px; flex-direction: column; align-items: stretch; text-align: center; }
    .ed-ticket-right { text-align: center; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

    /* Countdown */
    .ed-countdown { padding: .6rem .8rem; gap: .2rem; }
    .cd-num { font-size: 1.1rem; }
    .cd-label { font-size: .55rem; }
    .cd-sep { font-size: 1rem; }

    /* Reviews */
    .ed-review-form-card { padding: 1rem; }
    .ed-review-card { padding: .8rem; }

    /* Search modal */
    .srch-modal-overlay { padding: 8px; }
    .srch-grid { grid-template-columns: 1fr; gap: 12px; }
    .srch-card-img { height: 140px; }
    .srch-modal-body { padding: 16px; }

    /* Modals */
    .modal-overlay { padding: 12px; }
    .modal { border-radius: var(--radius); max-height: 95vh; }
    .modal-header { padding: 16px; }
    .modal-body { padding: 16px; }
    .modal-footer { padding: 12px 16px; }

    /* Buttons */
    .btn { padding: 10px 16px; font-size: .82rem; }
    .btn-lg { padding: 12px 20px; font-size: .9rem; }

    /* Alerts */
    .alert { padding: 10px 12px; font-size: .82rem; }

    /* Page hero */
    .page-hero { padding: 80px 16px 32px; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: .9rem; }

    /* About */
    .about-grid { gap: 2rem; }
    .about-img-placeholder { width: 200px; height: 200px; font-size: 3rem; }
    .about-img-placeholder span { font-size: 1.2rem; }
    .about-how-card { padding: 1.5rem; }

    /* FAQ */
    .faq-question { padding: .8rem 1rem; font-size: .88rem; }
    .faq-contact { padding: 2rem 1rem; }

    /* Legal */
    .legal-content { padding: 0 8px; }

    /* Settings */
    .settings-layout { gap: 16px; }
    .settings-hero-top { padding: 20px 16px; gap: 14px; }
    .settings-hero-icon { width: 56px; height: 56px; font-size: 1.3rem; border-radius: 12px; }
    .settings-hero-title { font-size: 1.05rem; }
    .settings-hero-details {
        margin-left: 0; width: 100%;
        padding-top: 8px; border-top: 1px solid var(--gray-100);
        flex-direction: row; flex-wrap: wrap; gap: 6px 16px;
    }
    .settings-section { padding: 20px 16px; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-section-header { gap: 10px; }
    .settings-section-icon { width: 38px; height: 38px; font-size: 1rem; }
    .settings-section-header h3 { font-size: .9rem; }
    .settings-actions { flex-direction: column; }
    .settings-actions .btn { width: 100%; }
    .settings-nav-item { padding: 12px 14px; font-size: .75rem; }

    /* Pagination */
    .pagination a, .pagination span { width: 32px; height: 32px; font-size: .8rem; }

    /* Checkin */
    .checkin-card { padding: 16px 12px; }
    .checkin-input-icon { width: 44px; }
    .checkin-btn { width: 48px; }
    .checkin-result-details { grid-template-columns: 1fr; }

    /* Ticket cards */
    .ticket-card-body { flex-direction: column; align-items: flex-start; }
    .ticket-actions { width: 100%; justify-content: flex-end; }

    /* Favorites */
    .fav-remove-btn { width: 30px; height: 30px; font-size: .8rem; }

    /* Notification dropdown */
    .notif-dropdown { width: 280px; right: -40px; }
    .notif-item { padding: .6rem .8rem; }
    .notif-icon { width: 30px; height: 30px; }
}

/* ---- MOBILE (481px — 640px) ---- */
@media (min-width: 481px) and (max-width: 640px) {
    .navbar .container { padding: 0 20px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-image { height: 280px; }
    .hero-slider { height: 500px; }
    .hero-slider-content h1 { font-size: 1.5rem; }

    .events-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .ev-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .ecard-img { height: 240px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-banner { grid-template-columns: 1fr 1fr; padding: 28px 20px; }
    .stat-number { font-size: 1.8rem; }

    .settings-grid { grid-template-columns: 1fr; }
    .settings-section { padding: 24px 20px; }

    .dashboard-content { padding: 14px; }
    .chart-row { grid-template-columns: 1fr; }

    .srch-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .srch-card-img { height: 140px; }

    .ed-hero { height: 240px; }
    .ed-title { font-size: 1.25rem; }
    .ed-ticket-row { padding: 14px; }
}

/* ---- TABLET (641px — 768px) ---- */
@media (min-width: 641px) and (max-width: 768px) {
    .navbar .container { padding: 0 24px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { margin: 0 auto 24px; }
    .hero-visual { min-height: 320px; justify-content: center; }
    .hero-image { max-width: 500px; height: 350px; }
    .hero-badge { display: none; }

    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: none; }
    .ev-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .ecard-img { height: 220px; }

    .categories-grid { grid-template-columns: repeat(3, 1fr); }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .chart-row { grid-template-columns: 1fr; }

    .cta-box { grid-template-columns: 1fr; padding: 32px 24px; }
    .cta-visual { order: -1; }

    .about-grid { grid-template-columns: 1fr; }
    .about-how-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .settings-grid { grid-template-columns: 1fr 1fr; }

    .srch-grid { grid-template-columns: repeat(2, 1fr); }

    .ed-layout { grid-template-columns: 1fr; }
    .ed-sidebar { position: static; }
    .ed-hero { height: 280px; }
    .ed-meta-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- SMALL TABLET / LANDSCAPE (769px — 992px) ---- */
@media (min-width: 769px) and (max-width: 992px) {
    .sidebar { transform: translateX(-100%); z-index: 200; }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: block; }

    .hero .container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-content h1 { font-size: 2.4rem; }
    .hero-visual { min-height: 350px; }
    .hero-image { height: 380px; }
    .hero-badge { font-size: .72rem; }

    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .ev-grid { grid-template-columns: repeat(2, 1fr); }

    .topbar-center { display: none; }
    .topbar-date { display: none; }

    .chart-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }

    .cta-box { grid-template-columns: 1fr 1fr; padding: 40px; gap: 32px; }
    .cta-content h2 { font-size: 1.5rem; }

    .about-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 2rem; }

    .settings-form { max-width: 100%; }
    .settings-grid { grid-template-columns: 1fr 1fr; }

    .ed-layout { grid-template-columns: 1.2fr 1fr; gap: 24px; }
    .ed-hero { height: 320px; }
}

/* ---- DESKTOP (993px — 1200px) ---- */
@media (min-width: 993px) and (max-width: 1200px) {
    .hero .container { gap: 40px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-image { height: 440px; }

    .events-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .ev-grid { grid-template-columns: repeat(3, 1fr); }

    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .chart-row { grid-template-columns: 1fr 300px; }
}

/* ---- LARGE DESKTOP (1201px+) ---- */
@media (min-width: 1201px) {
    .events-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .ev-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ============================================
   TOUCH-FRIENDLY TARGETS (all mobile)
   ============================================ */
@media (max-width: 768px) {
    /* Ensure min 44px touch targets */
    .btn, .btn-sm { min-height: 44px; }
    .btn-icon { min-width: 44px; min-height: 44px; }
    .pagination a, .pagination span { min-width: 40px; min-height: 40px; }
    .faq-question { min-height: 48px; }
    .nav-mobile ul a { min-height: 44px; display: flex; align-items: center; }
    select.form-control, .filter-select, .checkin-select { min-height: 44px; }

    /* Better tab spacing for sidebar links */
    .nav-section li a { padding: 11px 20px; min-height: 44px; }

    /* Topbar adjustments */
    .sidebar-toggle { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
    .topbar-notif { min-width: 44px; min-height: 44px; }
    .theme-toggle { min-width: 44px; min-height: 44px; }

    /* Form controls */
    .form-control { min-height: 44px; }
    textarea.form-control { min-height: 100px; }
}

/* ============================================
   SIDEBAR OVERLAY (mobile)
   ============================================ */
@media (max-width: 992px) {
    .sidebar { 
        position: fixed;
        box-shadow: none;
    }
    .sidebar.open {
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
    }
    /* Overlay backdrop when sidebar is open */
    .sidebar.open ~ .main-content::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.3);
        z-index: 99;
    }
}

/* ============================================
   FULL RESPONSIVE FIX — CLIENT PAGES
   ============================================ */

/* ---- Global container & navbar spacing ---- */
@media (max-width: 768px) {
    .navbar .container { padding: 0 16px; height: 64px; }

    /* Guest pages with inline padding-top:100px */
    section.section[style*="padding-top"] {
        padding-top: 80px !important;
    }

    /* Explore hero guest override */
    .explore-hero[style*="padding-top"] {
        padding-top: 80px !important;
    }
}
@media (max-width: 480px) {
    .navbar .container { padding: 0 12px; height: 56px; }
    .container { padding: 0 16px; }
    section.section[style*="padding-top"] {
        padding-top: 68px !important;
    }
    .explore-hero[style*="padding-top"] {
        padding-top: 68px !important;
    }
    .hero-slider-section { padding-top: 56px; }
}

/* ---- Explore search bar small screens ---- */
@media (max-width: 480px) {
    .explore-search { max-width: 100%; }
    .explore-search-inner {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 4px;
    }
    .explore-search-inner input {
        width: 100%;
        padding: 12px 14px;
        font-size: .85rem;
    }
    .explore-search-select {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding: 12px 32px 12px 14px;
    }
    .explore-search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        padding: 12px;
    }
    .explore-search-icon { display: none; }
}

/* ---- Explore category pills scroll on mobile ---- */
@media (max-width: 640px) {
    .explore-cats { padding: 10px 0; }
    .explore-cats .container { padding: 0 12px; }
    .explore-cats-scroll { gap: 6px; }
    .explore-cat-pill { padding: 6px 12px; font-size: .72rem; }
}

/* ---- Event detail page full responsive ---- */
@media (max-width: 640px) {
    .ed-layout { gap: 20px; }
    .ed-hero { height: 220px; border-radius: var(--radius); }
    .ed-title { font-size: 1.15rem; }
    .ed-title-row { flex-direction: column; gap: .5rem; }
    .ed-actions { align-self: flex-start; }
    .ed-meta-grid { grid-template-columns: 1fr; gap: 8px; }
    .ed-meta-card { padding: 10px 12px; }
    .ed-meta-icon { width: 32px; height: 32px; font-size: .8rem; }
    .ed-section-title { font-size: .88rem; padding-bottom: 8px; }
    .ed-description { font-size: .85rem; }
    .ed-countdown { flex-wrap: wrap; justify-content: center; gap: .3rem; padding: .7rem; }
    .cd-num { font-size: 1.1rem; }
    .cd-sep { font-size: 1rem; }
    .cd-label { font-size: .55rem; }

    /* Booking card */
    .ed-booking-card { border-radius: var(--radius); }
    .ed-booking-header { padding: 14px 16px; font-size: .88rem; }
    .ed-tickets-list { padding: 12px 14px; }
    .ed-ticket-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    .ed-ticket-right {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .ed-buy-btn {
        margin: 0 14px 14px;
        width: calc(100% - 28px);
        padding: 13px;
        font-size: .88rem;
    }

    /* Reviews */
    .ed-review-form-card { padding: 1rem; }
    .ed-review-card { padding: .8rem; }
    .ed-review-header { flex-wrap: wrap; gap: .5rem; }
    .ed-review-date { margin-left: 0; }
    .star-rating-input label { font-size: 1.5rem; }

    /* Rating */
    .ed-rating-summary { flex-wrap: wrap; gap: .3rem; }

    /* Share menu */
    .ed-share-menu { min-width: 160px; right: 0; }
}

/* ---- Ticket view small mobile ---- */
@media (max-width: 480px) {
    .tv-card { border-radius: 14px; }
    .tv-left { padding: 20px 14px; }
    .tv-center { padding: 16px 14px; }
    .tv-title h2 { font-size: 1rem; }
    .tv-stub { padding: 14px; }
    .tv-stub-title { font-size: .72rem; }
    .tv-chips { gap: 8px; }
    .tv-chip { padding: 6px 10px; }
    .tv-chip-val { font-size: .72rem; }
    .tv-actions { flex-direction: column; align-items: stretch; }
    .tv-actions .btn { width: 100%; justify-content: center; }
}

/* ---- Ticket cards (Mes Billets page) ---- */
@media (max-width: 640px) {
    .ticket-card-body {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .ticket-info h4 { font-size: .9rem; }
    .ticket-info p { font-size: .8rem; line-height: 1.6; }
    .ticket-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .ticket-actions .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
}

/* ---- Favorites page - cards on mobile ---- */
@media (max-width: 640px) {
    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    .ecard-img { height: 200px; }
}

/* ---- History page - table on small screens ---- */
@media (max-width: 640px) {
    .table-container { border-radius: var(--radius-sm); }
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }
    .table-header h3 { font-size: .88rem; }
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table th, table td {
        padding: 8px;
        font-size: .72rem;
        white-space: nowrap;
    }
    table th:first-child, table td:first-child { padding-left: 8px; }
    table th:last-child, table td:last-child { padding-right: 8px; }
}

/* ---- Profile page responsive ---- */
@media (max-width: 640px) {
    .card { border-radius: var(--radius-sm); }
    .card-header { padding: 14px 16px; }
    .card-header h3 { font-size: .9rem; }
    .card-body { padding: 16px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- Checkout page inline responsive ---- */
@media (max-width: 640px) {
    .checkout-wrapper { padding-bottom: 24px; }
    .checkout-banner { padding: 20px 16px; border-radius: var(--radius); }
    .checkout-banner-title { font-size: 1.05rem; }
    .checkout-banner-sub { font-size: .8rem; }
    .co-card-head { padding: 12px 16px; }
    .co-card-body { padding: 16px; }
    .co-provider-grid { grid-template-columns: 1fr; gap: 8px; }
    .co-provider-card { padding: 12px; }
    .co-phone-group { flex-direction: column; }
    .co-phone-prefix {
        border-right: 1px solid var(--gray-200);
        border-bottom: none;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        padding: 10px 14px;
        border-right: 1px solid var(--gray-200);
    }
    .co-phone-group .form-control {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        border-left: 1px solid var(--gray-200);
        border-top: none;
    }
    .co-event-info { flex-direction: column; align-items: flex-start; }
    .co-event-thumb { width: 100%; height: 120px; border-radius: var(--radius-sm); }
    .co-summary { padding: 12px; }
    .co-pay-btn { padding: 14px; font-size: .9rem; }
    .co-notice { font-size: .78rem; }
    .co-secure { flex-wrap: wrap; gap: 8px; font-size: .7rem; }
}

/* ---- Newsletter section small mobile ---- */
@media (max-width: 480px) {
    .hp-newsletter { padding: 24px 16px; gap: 16px; }
    .hp-newsletter-icon { width: 44px; height: 44px; font-size: 1rem; }
    .hp-newsletter-text h2 { font-size: 1.05rem; }
    .hp-newsletter-text p { font-size: .82rem; }
    .newsletter-box { padding: 20px 14px; gap: 16px; }
    .newsletter-content h2 { font-size: 1rem; }
}

/* ---- Search modal full mobile fix ---- */
@media (max-width: 480px) {
    .srch-modal-overlay { padding: 0; align-items: flex-end; }
    .srch-modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 90vh;
    }
    .srch-modal-header { padding: 14px 16px; }
    .srch-modal-title { font-size: .88rem; }
    .srch-modal-body { padding: 14px 16px; }
    .srch-grid { grid-template-columns: 1fr; gap: 12px; }
    .srch-card-img { height: 150px; }
    .srch-card-body { padding: 12px 14px; }
    .srch-card-body h4 { font-size: .88rem; }
}

/* ---- CTA and stats on very small ---- */
@media (max-width: 380px) {
    .stats-banner { grid-template-columns: 1fr; padding: 20px 14px; }
    .hp-stats { grid-template-columns: 1fr 1fr; }
    .hp-stat .stat-number { font-size: 1.5rem; }
    .stat-number { font-size: 1.5rem; }
    .btn { font-size: .78rem; padding: 8px 14px; }
    .btn-lg { font-size: .85rem; padding: 10px 18px; }
    .hero-slider-content h1 { font-size: 1.15rem; }
    .hero-filter-bar { padding: 6px; }
    .hfb-select, .hfb-input { padding: 12px 14px; font-size: .82rem; }
}

/* ---- Hero search bar responsive ---- */
@media (max-width: 640px) {
    .hero-search { padding: 0 16px; margin-top: -24px; }
    .hero-search-inner { flex-wrap: wrap; padding: 6px; }
    .hero-search-field {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        min-width: 100%;
        padding: 10px 14px;
    }
    .hero-search-field:last-of-type { border-bottom: none; }
    .hero-search-inner .btn-search {
        width: 100%; text-align: center; display: block;
        padding: 12px 20px;
    }
}

/* ---- Dashboard stat cards on small ---- */
@media (max-width: 360px) {
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 14px; gap: 12px; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; }
    .stat-value { font-size: 1.1rem; }
    .stat-label { font-size: .65rem; }
    .dashboard-content { padding: 10px; }
    .topbar { height: 50px; padding: 0 10px; }
    .topbar-left h1 { font-size: .88rem; }
}

/* ---- Revenue card on small ---- */
@media (max-width: 640px) {
    .revenue-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }
    .revenue-right {
        width: 100%;
        gap: 16px;
        flex-wrap: wrap;
    }
    .revenue-metric { text-align: left; }
}

/* ---- Modal responsive small ---- */
@media (max-width: 480px) {
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92vh;
        max-width: 100%;
    }
    .modal-header { padding: 14px 16px; }
    .modal-header h3 { font-size: 1rem; }
    .modal-body { padding: 16px; }
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    .modal-footer .btn { width: 100%; }
}

/* ---- Settings responsive extra small ---- */
@media (max-width: 480px) {
    .settings-form { max-width: 100%; }
    .settings-section { padding: 16px 14px; border-radius: var(--radius-sm); }
    .settings-grid { grid-template-columns: 1fr; gap: 12px; }
    .settings-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .toggle-label { padding: 10px 12px; font-size: .82rem; }
    .settings-hero-top { padding: 16px 14px; gap: 12px; }
    .settings-hero-icon { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 10px; }
    .settings-hero-title { font-size: .95rem; }
    .settings-nav-item { padding: 10px 12px; font-size: .7rem; }
}

/* ---- Check-in responsive ---- */
@media (max-width: 480px) {
    .checkin-progress-card { padding: 14px 12px; }
    .checkin-progress-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .checkin-progress-percent { font-size: 1.25rem; }
    .checkin-card { padding: 16px 12px; }
    .checkin-input-group { flex-direction: column; border-radius: var(--radius-sm); }
    .checkin-input-icon {
        width: 100%; height: 44px;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .checkin-input {
        font-size: .9rem; padding: 12px;
        border-radius: 0;
    }
    .checkin-btn {
        width: 100%; height: 44px;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }
    .checkin-result { flex-direction: column; padding: 14px; }
    .checkin-result-details { grid-template-columns: 1fr; }
    .checkin-history-item { padding: 10px 12px; }
}

/* ---- Notification dropdown on mobile ---- */
@media (max-width: 480px) {
    .notif-dropdown {
        position: fixed;
        left: 8px;
        right: 8px;
        top: auto;
        bottom: 0;
        width: auto;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 70vh;
    }
    .notif-dropdown-body { max-height: 50vh; }
}

/* ---- Messages page on mobile ---- */
@media (max-width: 640px) {
    .msg-card { padding: .8rem 1rem; border-radius: var(--radius-sm); }
    .msg-header { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .msg-from { gap: .6rem; }
    .msg-avatar { width: 32px; height: 32px; font-size: .8rem; }
    .msg-body { font-size: .82rem; max-height: 60px; }
    .msg-actions .btn { font-size: .75rem; padding: 6px 10px; }
}

/* ---- Fix overflowing text everywhere ---- */
@media (max-width: 768px) {
    h1, h2, h3, h4 { word-break: break-word; overflow-wrap: break-word; }
    .xcard-title, .ecard-title, .ed-title, .co-event-name { word-break: break-word; }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 16px 0; }
    .hero-slider { height: 320px; }
    .hero-slider-content h1 { font-size: 1.3rem; }
    .hero-filter-bar { max-width: 600px; }
    .page-hero { padding: 72px 0 28px; }
    .auth-page { padding: 8px; }
    .auth-container { padding: 20px; }
    .explore-hero { padding: 40px 0 24px; }
}

/* ── Mini Ticket Cards (Dashboard) ── */
.mini-tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
}
.mini-ticket {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}
.mini-ticket:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.mini-ticket-left img {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover; display: block;
}
.mini-ticket-placeholder {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.1rem;
}
.mini-ticket-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.mini-ticket-body h4 {
    font-size: .85rem; font-weight: 600; color: var(--dark);
    margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-ticket-body span {
    font-size: .72rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-ticket-body span i {
    width: 13px; text-align: center; margin-right: 3px;
    color: var(--primary); font-size: .68rem;
}
.mini-ticket-qty {
    flex-shrink: 0;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    line-height: 1;
}
.mini-ticket-qty strong { display: block; font-size: 1rem; }
.mini-ticket-qty small { display: block; font-size: .6rem; font-weight: 500; margin-top: 2px; }
.mini-ticket--cancelled { opacity: .55; }
.mini-ticket-actions { display: flex; gap: 6px; flex-shrink: 0; }
.mini-ticket-action {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary); color: #fff;
    font-size: .75rem; cursor: pointer;
    border: none; text-decoration: none;
    transition: var(--transition);
}
.mini-ticket-action:hover { opacity: .85; }
.mini-ticket-action--success { background: var(--success); }
.mini-ticket-action--danger { background: var(--danger); }
@media (max-width: 480px) {
    .mini-ticket { flex-wrap: wrap; }
    .mini-ticket-actions { width: 100%; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--gray-100); margin-top: 4px; }
}
[data-theme="dark"] .mini-ticket { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .mini-ticket-body h4 { color: var(--gray-50); }
[data-theme="dark"] .mini-ticket-placeholder { background: var(--gray-200); }

/* ── Popular Events Cards (Dashboard) ── */
.popular-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 16px;
}
.popular-ecard {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}
.popular-ecard:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.popular-ecard-img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.popular-ecard-placeholder {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    color: var(--text-muted);
    font-size: 1.8rem;
}
.popular-ecard-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.popular-ecard-body h4 {
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-ecard-meta {
    font-size: .78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popular-ecard-meta i {
    width: 14px;
    text-align: center;
    margin-right: 4px;
    color: var(--primary);
    font-size: .72rem;
}
.popular-ecard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
}
.popular-ecard-price {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary);
}
.popular-ecard-seats {
    font-size: .75rem;
    color: var(--text-muted);
}
.popular-ecard-seats i {
    margin-right: 3px;
}
[data-theme="dark"] .popular-ecard {
    background: var(--card-bg);
    border-color: var(--gray-200);
}
[data-theme="dark"] .popular-ecard-body h4 { color: var(--gray-50); }
[data-theme="dark"] .popular-ecard-footer { border-color: var(--gray-200); }
[data-theme="dark"] .popular-ecard-placeholder { background: var(--gray-200); }

/* ============================================
   PROFILE PAGE — Modern Redesign
   ============================================ */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
}

/* -- Profile Hero Card -- */
.profile-hero {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}
.profile-hero-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    flex-wrap: wrap;
}
.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}
.profile-hero-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.profile-hero-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}
.profile-hero-details {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-detail {
    font-size: .82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.profile-detail i {
    width: 14px;
    text-align: center;
    font-size: .75rem;
    color: var(--secondary);
}

/* -- Profile Stats Row -- */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--gray-100);
}
.profile-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-right: 1px solid var(--gray-100);
}
.profile-stat:last-child {
    border-right: none;
}
.profile-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.profile-stat-info {
    display: flex;
    flex-direction: column;
}
.profile-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}
.profile-stat-label {
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 500;
}

/* -- Profile Grid (two columns) -- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.profile-col-main,
.profile-col-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* -- Profile Info List (Account card) -- */
.profile-info-list {
    display: flex;
    flex-direction: column;
}
.profile-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
}
.profile-info-item:last-child {
    border-bottom: none;
}
.profile-info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: .85rem;
    flex-shrink: 0;
}
.profile-info-label {
    display: block;
    font-size: .72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 500;
}
.profile-info-value {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
}

/* -- Dark Theme -- */
[data-theme="dark"] .profile-hero { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .profile-hero-name { color: var(--gray-50); }
[data-theme="dark"] .profile-detail { color: var(--gray-300); }
[data-theme="dark"] .settings-hero { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .settings-hero-title { color: var(--gray-50); }
[data-theme="dark"] .settings-hero-detail { color: var(--gray-300); }
[data-theme="dark"] .settings-hero-nav { border-color: var(--gray-200); }
[data-theme="dark"] .settings-nav-item { color: var(--gray-300); }
[data-theme="dark"] .settings-nav-item:hover { color: var(--gray-50); background: var(--gray-200); }
[data-theme="dark"] .settings-nav-item.active { color: var(--primary); }
[data-theme="dark"] .settings-section { background: var(--card-bg); border-color: var(--gray-200); }
[data-theme="dark"] .settings-section-header { border-color: var(--gray-200); }
[data-theme="dark"] .settings-section-header h3 { color: var(--gray-50); }
[data-theme="dark"] .profile-stats-row { border-color: var(--gray-200); }
[data-theme="dark"] .profile-stat { border-color: var(--gray-200); }
[data-theme="dark"] .profile-stat-value { color: var(--gray-50); }
[data-theme="dark"] .profile-info-item { border-color: var(--gray-200); }
[data-theme="dark"] .profile-info-icon { background: var(--gray-200); color: var(--gray-50); }
[data-theme="dark"] .profile-info-value { color: var(--gray-50); }

/* -- Responsive -- */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-stats-row {
        grid-template-columns: 1fr;
    }
    .profile-stat {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
        padding: 14px 20px;
    }
    .profile-stat:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
    .profile-hero-top {
        padding: 20px 16px;
        gap: 14px;
    }
    .profile-hero-details {
        margin-left: 0;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--gray-100);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 16px;
    }
    .profile-avatar-lg {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        border-radius: 12px;
    }
    .profile-hero-name { font-size: 1.05rem; }
    .profile-stat { padding: 12px 16px; }
    .profile-info-item { padding: 12px 16px; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .sidebar, .topbar, .navbar, .footer, .hamburger,
    .sidebar-toggle, .btn, .search-bar, .pagination { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .dashboard-content { padding: 0 !important; }
    body { background: #fff; }
}
