/* ============================================================
   MUJTIC — COMPLETE STYLESHEET v4
   Palette: Deep teal/slate base · Coral accent · Mint success
   Fonts: Syne (display) · Outfit (body) · JetBrains Mono (data)
============================================================ */

/* LIGHT (default) */
:root {
  color-scheme: light;
  --bg:         #f4f7fa;
  --bg-2:       #ffffff;
  --bg-3:       #eef2f7;
  --surface:    #e5ebf2;
  --border:     #dbe3ec;
  --border-2:   #c5d0dd;
  --muted:      #6b7f93;
  --dim:        #4a6075;
  --text:       #1f2d3d;
  --bright:     #0b1624;
  --coral:      #e5484d;
  --coral-d:    #c93a3f;
  --coral-glow: rgba(229,72,77,0.14);
  --teal:       #0d9488;
  --teal-d:     #0f766e;
  --teal-glow:  rgba(13,148,136,0.10);
  --mint:       #059669;
  --sky:        #0284c7;
  --gold:       #b45309;
  --success:    #059669;
  --error:      #e5484d;
  --warning:    #b45309;
  --radius:     6px;
  --radius-lg:  14px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  /* extra tokens for values that were hard-coded */
  --on-teal:    #ffffff;
  --nav-bg:     rgba(255,255,255,0.92);
  --badge-bg:   rgba(255,255,255,0.85);
  --backdrop:   rgba(15,23,42,0.45);
  --profile-bg: linear-gradient(135deg, #d6f2ee 0%, #dbeafe 60%, #f4f7fa 100%);
  --profile-fade: rgba(255,255,255,0.8);
  --detail-img-filter: brightness(0.75) saturate(0.9);
}

/* DARK (your original palette) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:         #0d1117;
  --bg-2:       #131a23;
  --bg-3:       #192130;
  --surface:    #1e2a3a;
  --border:     #243347;
  --border-2:   #2d3f56;
  --muted:      #4a6278;
  --dim:        #7a96aa;
  --text:       #ccd9e3;
  --bright:     #eaf2f8;
  --coral:      #ff6b6b;
  --coral-d:    #e05555;
  --coral-glow: rgba(255,107,107,0.15);
  --teal:       #2dd4bf;
  --teal-d:     #1aae9e;
  --teal-glow:  rgba(45,212,191,0.12);
  --mint:       #6ee7b7;
  --sky:        #7dd3fc;
  --gold:       #fbbf24;
  --success:    #6ee7b7;
  --error:      #ff6b6b;
  --warning:    #fbbf24;

  --on-teal:    #0d1117;
  --nav-bg:     rgba(13,17,23,0.92);
  --badge-bg:   rgba(13,17,23,0.75);
  --backdrop:   rgba(5,8,13,0.82);
  --profile-bg: linear-gradient(135deg, #0d2030 0%, #0d2d2a 40%, #131a23 100%);
  --profile-fade: rgba(19,26,35,0.8);
  --detail-img-filter: brightness(0.45) saturate(0.7);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem;
  color: var(--teal); letter-spacing: -0.03em; cursor: pointer;
  text-decoration: none; display: flex; align-items: baseline; gap: 0.3rem;
}

.nav-logo .logo-img {
  width: 10rem;
  display: block;
}

/* Show the correct logo per theme (uses the same attribute your :root already flips) */
.nav-logo .logo-img--dark  { display: none; }

:root[data-theme="dark"] .nav-logo .logo-img--light { display: none; }
:root[data-theme="dark"] .nav-logo .logo-img--dark  { display: block; }

.nav-links { display: flex; gap: 0.25rem; list-style: none; }
.nav-links a {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.9rem; color: var(--dim);
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  border-radius: var(--radius); transition: all 0.2s; letter-spacing: 0.01em;
}
.nav-links a i { font-size: 0.78rem; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--teal); background: var(--teal-glow); }
.nav-right { display: flex; gap: 0.75rem; align-items: center; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.4rem;
  z-index: 10;
}
.mobile-menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: all 0.3s; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   NOTIFICATION BELL
============================================================ */
.notif-bell-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--dim); font-size: 1rem; padding: 0.4rem 0.5rem;
  border-radius: var(--radius); transition: all 0.2s;
}
.notif-bell-btn:hover { color: var(--teal); background: var(--teal-glow); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 100px;
  background: var(--coral); color: white;
  font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 1.5px solid var(--bg);
}

/* ============================================================
   NOTIFICATIONS PANEL
============================================================ */
.notifications-panel {
  position: fixed; top: 64px; right: 1.5rem; z-index: 600;
  width: 360px; max-height: 480px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  transform: translateY(-8px) scale(0.97); opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--ease);
}
.notifications-panel.open {
  transform: translateY(0) scale(1); opacity: 1;
  pointer-events: all;
}
.notif-overlay {
  position: fixed; inset: 0; z-index: 590;
  display: none;
}
.notif-overlay.visible { display: block; }
.notif-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-title {
  font-family: 'Syne', sans-serif; font-size: 0.92rem; font-weight: 700;
  color: var(--bright); flex: 1;
}

.notif-mark-read {
  background: none; border: none; cursor: pointer;
  font-size: 0.72rem; color: var(--teal); font-family: 'Outfit', sans-serif;
  transition: opacity 0.2s;
}

.notif-mark-read:hover { opacity: 0.7; }
.notif-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0.1rem;
  transition: color 0.2s;
}
.notif-close:hover { color: var(--text); }
.notif-list { overflow-y: auto; flex: 1; }
.notif-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border);
  transition: background 0.15s; cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-3); }
.notif-item.unread { background: rgba(45,212,191,0.04); }
.notif-item.unread::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 0.35rem;
}
.notif-item-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.notif-icon-purchase { background: rgba(45,212,191,0.12); color: var(--teal); }
.notif-icon-refund   { background: rgba(255,107,107,0.12); color: var(--coral); }
.notif-icon-waitlist { background: rgba(251,191,36,0.12);  color: var(--gold); }
.notif-icon-reminder { background: rgba(110,231,183,0.12); color: var(--mint); }
.notif-icon-transfer { background: rgba(125,211,252,0.12); color: var(--sky); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-text { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.notif-item-time { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--muted); margin-top: 0.2rem; }
.notif-empty {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--muted); font-size: 0.82rem;
}
.notif-empty i { font-size: 2rem; display: block; margin-bottom: 0.75rem; opacity: 0.3; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; border-radius: var(--radius);
  font-family: 'Outfit', sans-serif; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s var(--ease); border: none;
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--teal); }
.btn-primary:hover { background: var(--teal-d); transform: translateY(-1px); box-shadow: 0 6px 20px var(--teal-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: var(--coral-d); box-shadow: 0 6px 20px var(--coral-glow); }
.btn-outline { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-outline:hover { background: var(--teal-glow); }
.btn-danger { background: var(--coral); color: white; }
.btn-danger:hover { opacity: 0.85; }
.btn-success { background: var(--mint); color: var(--bg); }
.btn-success:hover { opacity: 0.85; }
.btn-warn { background: var(--gold); color: var(--on-teal); }
.btn-warn:hover { opacity: 0.88; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.38rem 0.85rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   HERO
============================================================ */
#home-section { display: block; }
.hero { min-height: 100vh; padding-top: 64px; display: grid; grid-template-columns: 1fr 1fr; }
.hero-left {
  padding: 5rem 3rem 4rem; display: flex; flex-direction: column;
  justify-content: center; border-right: 1px solid var(--border); position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0.8rem; background: var(--teal-glow);
  border: 1px solid rgba(45,212,191,0.25); border-radius: 100px;
  margin-bottom: 2rem; width: fit-content;
}
.hero-badge span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
}
.hero-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--bright); margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--teal); }
.hero-title .accent-2 { color: var(--coral); }
.hero-sub { font-size: 1.05rem; color: var(--dim); max-width: 400px; margin-bottom: 2.5rem; line-height: 1.75; font-weight: 300; }
.hero-search-row {
  display: flex; max-width: 460px; border: 1px solid var(--border-2);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search-row:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.hero-search-row input {
  flex: 1; min-width: 0; padding: 0.875rem 1.2rem; background: var(--bg-2); border: none;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.9rem; outline: none;
}
.hero-search-row input::placeholder { color: var(--muted); }
.hero-search-row button {
  padding: 0.875rem 1.4rem; background: var(--teal); color: var(--bg);
  border: none; font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.85rem; cursor: pointer; transition: background 0.2s;
}
.hero-search-row button:hover { background: var(--teal-d); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.hero-stat-val { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--bright); line-height: 1; }
.hero-stat-val em { color: var(--teal); font-style: normal; }
.hero-stat-key { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

.hero-right { position: relative; background: var(--bg-2); overflow: hidden; }
.hero-right-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.carousel-label {
  padding: 1.25rem 2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.carousel-slides { flex: 1; position: relative; overflow: hidden; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); display: flex; flex-direction: column; justify-content: flex-end; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35) saturate(0.7); }
.carousel-info { position: relative; z-index: 2; padding: 2rem; background: linear-gradient(to top, rgba(13,17,23,0.98) 30%, transparent); }
.carousel-cat { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.carousel-title { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--bright); line-height: 1.2; margin-bottom: 0.4rem; }
.carousel-venue { font-size: 0.82rem; color: var(--dim); }
.carousel-price-tag { display: inline-block; margin-top: 0.9rem; padding: 0.28rem 0.75rem; background: var(--coral); color: white; border-radius: var(--radius); font-weight: 700; font-size: 0.82rem; }
.carousel-dots { position: absolute; bottom: 1rem; right: 2rem; z-index: 3; display: flex; gap: 0.4rem; }
.carousel-dot { width: 18px; height: 2px; background: var(--muted); border: none; cursor: pointer; transition: all 0.3s; }
.carousel-dot.active { width: 32px; background: var(--teal); }

/* ============================================================
   FILTERS BAR
============================================================ */
.filters-bar {
  position: sticky; top: 64px; z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 2.5rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.filters-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.filter-chip {
  padding: 0.38rem 0.85rem; background: transparent; border: 1px solid var(--border);
  border-radius: 100px; color: var(--dim); font-family: 'Outfit', sans-serif; font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
}
.filter-chip:hover, .filter-chip:focus { border-color: var(--teal); color: var(--teal); background: var(--teal-glow); outline: none; }
.filter-chip.is-loading { opacity: 0.6; pointer-events: none; }
select.filter-chip {
  appearance: none; -webkit-appearance: none; padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a6278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center; background-color: transparent;
}
select.filter-chip option, select.filter-chip optgroup { background: var(--bg-3); color: var(--text); }
.filter-clear { margin-left: auto; font-size: 0.75rem; color: var(--muted); background: none; border: none; cursor: pointer; font-family: 'Outfit', sans-serif; transition: color 0.2s; }
.filter-clear:hover { color: var(--coral); }

/* Search box that lives inside the filters bar */
.filter-search { position: relative; flex: 1 1 260px; max-width: 420px; min-width: 200px; }
.filter-search i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.78rem; pointer-events: none; }
.filter-search input {
  width: 100%; padding: 0.45rem 0.9rem 0.45rem 2.3rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 100px;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.82rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-search input::placeholder { color: var(--muted); }
.filter-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }

/* ============================================================
   SECTIONS
============================================================ */
.section { display: none; padding: 3.5rem 2.5rem; min-height: 60vh; }
.section.visible { display: block; }
.events-section { padding: 3rem 2.5rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.section-title { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--bright); }

/* ============================================================
   EVENT CARDS
============================================================ */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.25rem; }
.event-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all 0.25s var(--ease); position: relative;
}
.event-card:hover { border-color: var(--teal); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,212,191,0.1); }
.event-card.cancelled { opacity: 0.5; pointer-events: none; }
.card-img { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.85); transition: transform 0.5s var(--ease); }
.event-card:hover .card-img img { transform: scale(1.05); }
.card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,17,23,0.5) 0%, transparent 50%); }
.card-cat-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.2rem 0.6rem;
  backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
}
.card-cancelled-badge {
  position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.2rem 0.5rem;
  background: var(--coral); color: white; border-radius: var(--radius);
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.card-body { padding: 1.1rem 1.25rem 1.25rem; }
.card-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--bright); margin-bottom: 0.5rem; line-height: 1.3; }
.card-meta { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.9rem; }
.card-meta-row { font-size: 0.77rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.card-price { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 500; color: var(--teal); }
.card-price.free { color: var(--mint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card-price.early-bird { color: var(--gold); }
.card-price.sold-out { color: var(--coral); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.fav-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 1rem; padding: 0.25rem; transition: all 0.2s; line-height: 1;
}
.fav-btn.active { color: var(--coral); }
.fav-btn:hover { transform: scale(1.25); color: var(--coral); }
.fav-btn[aria-pressed="true"] { color: var(--coral); }
.early-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25);
  padding: 0.15rem 0.45rem; border-radius: 100px;
}

/* ============================================================
   LOADING / EMPTY
============================================================ */
.empty-state { grid-column: 1/-1; text-align: center; padding: 5rem 2rem; color: var(--muted); }
.empty-state h3 { font-family: 'Syne', sans-serif; font-size: 1.3rem; color: var(--dim); margin-bottom: 0.4rem; }
.loading-placeholder { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 5rem 2rem; }
.spinner { width: 32px; height: 32px; border: 2px solid var(--border-2); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   INLINE FIELD ERRORS
============================================================ */
.field-error {
  display: none; font-size: 0.72rem; color: var(--coral);
  margin-top: 0.3rem; padding-left: 0.1rem;
}
.field-error.visible { display: block; }
.input.has-error { border-color: var(--coral) !important; box-shadow: 0 0 0 3px var(--coral-glow) !important; }

/* ============================================================
   PROFILE — REDESIGNED
============================================================ */
.profile-page-header { margin-bottom: 0; }

.profile-hero-card {
  position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden; border: 1px solid var(--border);
  border-bottom: none;
}
.profile-hero-bg {
  height: 140px;
  position: relative;
}
.profile-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(45,212,191,0.03) 20px,
    rgba(45,212,191,0.03) 21px
  );
}
.profile-hero-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
}

.profile-hero-content {
  display: flex; align-items: flex-end; gap: 1.5rem;
  padding: 0 2rem 1.5rem;
  background: var(--bg-2);
  position: relative;
}
.profile-avatar-lg {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--bg);
  border: 3px solid var(--bg-2);
  flex-shrink: 0;
  margin-top: -44px;
  position: relative; z-index: 1;
}
.profile-hero-info { flex: 1; padding-top: 0.5rem; }
.profile-hero-name {
  font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--bright); margin-bottom: 0.35rem; line-height: 1.1;
}
.profile-hero-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem;
}
.profile-hero-meta span { display: flex; align-items: center; gap: 0.35rem; }
.profile-hero-meta i { color: var(--teal); font-size: 0.72rem; }
.profile-hero-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Profile tabs */
.profile-tabs-nav {
  display: flex; gap: 0;
  background: var(--bg-2); border: 1px solid var(--border);
  border-top: none; border-bottom: none;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.profile-tabs-nav::-webkit-scrollbar { height: 0; }
.profile-tab-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 1.25rem; background: none; border: none;
  color: var(--muted); font-family: 'Outfit', sans-serif; font-size: 0.83rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
  border-bottom: 2px solid transparent; position: relative; top: 1px;
}
.profile-tab-btn:hover { color: var(--dim); background: var(--bg-3); }
.profile-tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); background: none; }
.profile-tab-btn i { font-size: 0.75rem; }

.profile-tab-panels {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem;
  min-height: 300px;
}
.profile-tab-panel { display: none; animation: tab-appear 0.18s var(--ease); }
.profile-tab-panel.active { display: block; }
@keyframes tab-appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.profile-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.profile-section-header h3 {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--bright);
}
.profile-section-count {
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.profile-section-hint { font-size: 0.78rem; color: var(--muted); }

/* Purchase list */
.purchase-list { display: flex; flex-direction: column; gap: 0.6rem; }
.purchase-item {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: border-color 0.2s;
}
.purchase-item:hover { border-color: var(--border-2); }
.purchase-item-body { flex: 1; min-width: 0; }
.purchase-item-title { font-weight: 600; color: var(--text); font-size: 0.88rem; margin-bottom: 0.2rem; }
.purchase-item-meta { font-size: 0.73rem; color: var(--muted); }
.purchase-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; flex-wrap: wrap; }

/* Favourites in profile */
.profile-fav-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Refund item */
.refund-item { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.refund-item-title { font-weight: 600; color: var(--text); font-size: 0.85rem; margin-bottom: 0.25rem; }
.refund-item-meta { font-size: 0.73rem; color: var(--muted); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* Reminders list */
.reminders-list { display: flex; flex-direction: column; gap: 0.6rem; }
.reminder-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1.1rem;
  transition: border-color 0.2s;
}
.reminder-item:hover { border-color: var(--border-2); }
.reminder-item-icon {
  width: 36px; height: 36px; border-radius: 0.6rem;
  background: rgba(110,231,183,0.1); color: var(--mint);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.reminder-item-body { flex: 1; min-width: 0; }
.reminder-item-title { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.reminder-item-meta { font-size: 0.72rem; color: var(--muted); }
.reminder-remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 0.8rem; padding: 0.3rem;
  transition: color 0.2s; flex-shrink: 0;
}
.reminder-remove-btn:hover { color: var(--coral); }

/* Calendar Add Row */
.calendar-add-row {
  margin: 0.75rem 0; padding: 0.85rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ============================================================
   COOKIE CONSENT BANNER
============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
  background: var(--bg-2); border-top: 1px solid var(--border-2);
  padding: 1rem 2.5rem; box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
  animation: slide-up 0.3s var(--ease);
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
}
.cookie-banner-text {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.85rem; color: var(--dim); flex: 1;
}
.cookie-banner-text strong { color: var(--bright); font-size: 0.9rem; }
.cookie-banner-text a { color: var(--teal); }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   COOKIE PREFERENCES + TOGGLES
============================================================ */
.cookie-pref-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0 0.25rem; }
.cookie-pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); }
.cookie-pref-title { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-weight: 600; color: var(--bright); font-size: 0.88rem; }
.cookie-pref p { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }
.cookie-pref-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 100px; color: var(--mint); background: rgba(110,231,183,0.1); border: 1px solid rgba(110,231,183,0.25); }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-slider { position: absolute; inset: 0; background: var(--border-2); border-radius: 100px; transition: background 0.2s; }
.switch-slider::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: transform 0.2s var(--ease); }
.switch input:checked + .switch-slider { background: var(--teal); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }
.switch input:focus-visible + .switch-slider { outline: 2px solid var(--teal); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch-slider { opacity: 0.55; }

.cookie-modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.cookie-modal-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ============================================================
   LOCATION PROMPT
============================================================ */
.loc-prompt {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 2900; width: min(380px, calc(100vw - 2.5rem));
  display: flex; gap: 0.9rem; padding: 1.1rem 1.15rem;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3); animation: slide-up 0.3s var(--ease);
}
.loc-prompt-icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--teal-glow); color: var(--teal); }
.loc-prompt-body { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--dim); line-height: 1.55; }
.loc-prompt-body strong { color: var(--bright); font-size: 0.92rem; }
.loc-prompt-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

/* ============================================================
   BACK TO TOP BUTTON
============================================================ */
.back-to-top-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 2500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--bg);
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(45,212,191,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top-btn.visible { opacity: 1; pointer-events: all; }
.back-to-top-btn:hover { background: var(--teal-d); transform: translateY(-3px); }

/* ============================================================
   STAR RATING
============================================================ */
.star-rating { display: flex; gap: 0.25rem; margin-top: 0.35rem; }
.star-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--border-2);
  transition: all 0.15s; padding: 0.1rem;
  line-height: 1;
}
.star-btn.active, .star-btn.hover { color: var(--gold); transform: scale(1.15); }
.star-btn:focus { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

/* Review Event Info */
.review-event-box {
  padding: 0.75rem 1rem; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600; color: var(--bright);
}
.review-event-box .review-event-sub { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }

/* My Reviews List */
.review-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  margin-bottom: 0.6rem;
}
.review-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.5rem; }
.review-card-event { font-weight: 600; color: var(--text); font-size: 0.85rem; }
.review-card-stars { display: flex; gap: 0.15rem; }
.review-card-stars i { font-size: 0.75rem; color: var(--gold); }
.review-card-text { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.review-card-date { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--muted); margin-top: 0.4rem; }

/* ============================================================
   TICKET TRANSFER
============================================================ */
.transfer-ticket-info {
  padding: 0.75rem 1rem; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 600; color: var(--bright);
}
.transfer-warning {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.75rem 0.9rem; background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.2); border-radius: var(--radius);
  font-size: 0.78rem; color: var(--coral); line-height: 1.5;
}
.transfer-warning i { flex-shrink: 0; margin-top: 0.15rem; }

/* ============================================================
   DASHBOARD KPIs
============================================================ */
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.dash-subtitle { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
.kpi-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem; display: flex; align-items: center; gap: 1.1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease); position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0; transition: opacity 0.2s;
}
.kpi-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.kpi-card:hover::before { opacity: 1; }
.kpi-revenue::before { background: var(--teal); }
.kpi-tickets::before { background: var(--mint); }
.kpi-total-events::before { background: var(--sky); }
.kpi-live::before { background: var(--coral); }
.kpi-payout::before { background: var(--gold); }
.kpi-fee::before { background: var(--dim); }
.kpi-icon { width: 2.8rem; height: 2.8rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.kpi-revenue .kpi-icon { background: rgba(45,212,191,0.12); color: var(--teal); }
.kpi-tickets .kpi-icon { background: rgba(110,231,183,0.12); color: var(--mint); }
.kpi-total-events .kpi-icon { background: rgba(125,211,252,0.12); color: var(--sky); }
.kpi-live .kpi-icon { background: rgba(255,107,107,0.12); color: var(--coral); }
.kpi-payout .kpi-icon { background: rgba(251,191,36,0.12); color: var(--gold); }
.kpi-fee .kpi-icon { background: rgba(122,150,170,0.12); color: var(--dim); }
.kpi-body { flex: 1; min-width: 0; }
.kpi-value { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--bright); line-height: 1; margin-bottom: 0.2rem; }
.kpi-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.dash-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.75rem; }
.dash-quick-tile {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 0.85rem;
  color: var(--dim); transition: all 0.2s var(--ease); text-align: left;
}
.dash-quick-tile:hover { border-color: var(--teal); color: var(--text); background: var(--bg-3); transform: translateY(-2px); }
.dash-quick-tile i:first-child { color: var(--teal); font-size: 0.95rem; }
.dash-quick-tile span { flex: 1; font-weight: 500; }
.dash-tile-arrow { font-size: 0.65rem; color: var(--muted); transition: transform 0.2s; }
.dash-quick-tile:hover .dash-tile-arrow { transform: translateX(3px); color: var(--teal); }
.dash-chart-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-chart-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.dash-chart-header i { color: var(--teal); }
.dash-chart-block canvas { padding: 1rem 1.5rem 1.25rem; display: block; width: 100% !important; }

/* ============================================================
   PAGE FILTERS
============================================================ */
.page-filters {
  display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 140px; flex: 1; }
.filter-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.35rem;
}
.filter-input {
  padding: 0.6rem 0.85rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.82rem;
  transition: border-color 0.2s; outline: none; width: 100%;
}
.filter-input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-glow); }
select.filter-input {
  appearance: none; -webkit-appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a6278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; cursor: pointer;
}
select.filter-input option { background: var(--bg-3); }
input[type="date"].filter-input::-webkit-calendar-picker-indicator { filter: invert(0.5) sepia(1) hue-rotate(160deg); cursor: pointer; }
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; flex-shrink: 0; }

/* ============================================================
   PAYOUT PAGE
============================================================ */
.payout-summary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.payout-summary-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; text-align: center; }
.payout-summary-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.payout-summary-value { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--bright); }
.payout-summary-value.pending { color: var(--gold); }

/* ============================================================
   DATA TABLE
============================================================ */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--bg-3); }
.data-table th {
  padding: 0.9rem 1.1rem; text-align: left;
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.data-table td { padding: 0.9rem 1.1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text); }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--bg-2); }
.table-empty { text-align: center; color: var(--muted); padding: 3rem !important; font-size: 0.82rem; }

/* ============================================================
   REPORT PAGE
============================================================ */
.report-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.report-kpi-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.25rem; text-align: center; transition: border-color 0.2s; }
.report-kpi-card:hover { border-color: var(--teal); }
.report-kpi-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.report-kpi-value { font-family: 'Syne', sans-serif; font-size: 1.65rem; font-weight: 800; color: var(--bright); margin-bottom: 0.2rem; }
.report-kpi-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.report-section-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.report-section-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--bright); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.report-section-title i { color: var(--teal); }
.report-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.report-charts-row .report-section-card { margin-bottom: 0; }
.export-btn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.export-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.1rem 0.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
  cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 600;
  transition: all 0.2s var(--ease); color: var(--dim); background: var(--bg);
}
.export-btn i { font-size: 1.4rem; }
.export-btn:hover { transform: translateY(-2px); }
.export-btn-csv { border-color: rgba(45,212,191,0.3); color: var(--teal); }
.export-btn-csv:hover { background: var(--teal-glow); border-color: var(--teal); color: var(--text); }
.export-btn-pdf { border-color: rgba(255,107,107,0.3); color: var(--coral); }
.export-btn-pdf:hover { background: var(--coral-glow); border-color: var(--coral); color: var(--text); }

/* ============================================================
   STATUS PILLS
============================================================ */
.status-pill { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 100px; }
.status-pill.completed { background: rgba(110,231,183,0.1); color: var(--mint); border: 1px solid rgba(110,231,183,0.25); }
.status-pill.pending   { background: rgba(251,191,36,0.1);  color: var(--gold); border: 1px solid rgba(251,191,36,0.25); }
.status-pill.failed    { background: rgba(255,107,107,0.1); color: var(--coral); border: 1px solid rgba(255,107,107,0.25); }
.status-pill.approved  { background: rgba(110,231,183,0.1); color: var(--mint); border: 1px solid rgba(110,231,183,0.25); }
.status-pill.rejected  { background: rgba(255,107,107,0.1); color: var(--coral); border: 1px solid rgba(255,107,107,0.25); }

/* ============================================================
   DASHBOARD LAYOUT (compat)
============================================================ */
.dash-block { margin-bottom: 2.5rem; }
.dash-block-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--bright); display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.payout-wrap { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.payout-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.payout-row:last-child { border-bottom: none; }
.payout-amt { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; color: var(--teal); font-weight: 500; }
.payout-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }

/* Event admin cards */
.event-admin-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; margin-bottom: 0.75rem; transition: border-color 0.2s; }
.event-admin-card:hover { border-color: var(--border-2); }
.event-admin-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--bright); margin-bottom: 0.3rem; }
.event-admin-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.8rem; }
.ticket-bar-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--dim); padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.ticket-bar-row:last-child { border-bottom: none; }
.ticket-bar-label { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; min-width: 56px; }
.ticket-bar-track { flex: 1; height: 3px; background: var(--border-2); border-radius: 2px; overflow: hidden; }
.ticket-bar-fill { height: 100%; background: var(--teal); border-radius: 2px; }
.ticket-bar-count { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; }
.event-admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* Organizer refund cards */
.org-refund-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 0.75rem; }
.org-refund-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; gap: 0.75rem; }
.org-refund-title { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--bright); }
.org-refund-meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.org-refund-reason { font-size: 0.82rem; color: var(--dim); line-height: 1.6; margin-bottom: 0.75rem; padding: 0.65rem; background: var(--bg-2); border-radius: var(--radius); border: 1px solid var(--border); }
.org-refund-actions { display: flex; gap: 0.5rem; }

/* ============================================================
   GOOGLE MAPS
============================================================ */
.maps-search-wrap { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.maps-search-wrap .input { flex: 1; }
.maps-container { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 300px; margin-top: 0.5rem; display: none; }
.maps-container.active { display: block; }
#maps-map { width: 100%; height: 100%; }
.maps-selected-info { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; padding: 0.65rem 0.9rem; background: var(--teal-glow); border: 1px solid rgba(45,212,191,0.25); border-radius: var(--radius); font-size: 0.82rem; color: var(--teal); }
.maps-selected-info i { flex-shrink: 0; }
.maps-selected-info span { flex: 1; color: var(--text); }
.maps-clear-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 0.78rem; padding: 0.1rem; transition: color 0.2s; flex-shrink: 0; }
.maps-clear-btn:hover { color: var(--coral); }

/* ============================================================
   MODALS — with proper focus trap support
============================================================ */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; backdrop-filter: blur(6px); }
.modal-box {
  position: relative; z-index: 1; background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 2rem; width: 90%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; animation: modal-appear 0.22s var(--ease);
}
.modal-box.wide { max-width: 820px; }
@keyframes modal-appear { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.75rem; }
.modal-title { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--bright); }
.modal-close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.4rem; line-height: 1; padding: 0.2rem;
  transition: color 0.2s; margin-left: 1rem; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); }
/* Focus trap sentinel */
.modal-focus-sentinel { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modal-footer { display: flex; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* ============================================================
   FORMS
============================================================ */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; }
.input { width: 100%; padding: 0.8rem 0.95rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.88rem; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.input::placeholder { color: var(--muted); }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a6278' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.2rem; }
select.input option, select.input optgroup { background: var(--bg-3); color: var(--text); }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.85rem; color: var(--dim); }
.checkbox-row input[type="checkbox"] { accent-color: var(--teal); cursor: pointer; }
.strength-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 0.4rem; }
.strength-fill { height: 100%; width: 0%; border-radius: 2px; transition: width 0.3s, background-color 0.3s; }
.strength-hint { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; }
.status-msg { padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.83rem; text-align: center; margin-top: 0.75rem; }
.status-msg.success { background: rgba(110,231,183,0.1); border: 1px solid rgba(110,231,183,0.25); color: var(--mint); }
.status-msg.error   { background: rgba(255,107,107,0.1); border: 1px solid rgba(255,107,107,0.25); color: var(--coral); }
.status-msg.loading { background: var(--bg-3); border: 1px solid var(--border); color: var(--dim); }
.auth-toggle { text-align: center; margin-top: 1.25rem; font-size: 0.82rem; color: var(--muted); }
.auth-toggle a { color: var(--teal); text-decoration: none; cursor: pointer; }
.auth-toggle a:hover { text-decoration: underline; }

/* Terms checkbox row */
.terms-row { align-items: flex-start; line-height: 1.5; }
.terms-row input { margin-top: 0.2rem; flex-shrink: 0; }
.terms-row a { color: var(--teal); }

/* Password show/hide */
.pw-field { position: relative; }
.pw-field .input { padding-right: 2.7rem; }
.pw-toggle {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 0.45rem 0.55rem; border-radius: var(--radius); font-size: 0.85rem;
  transition: color 0.2s;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--teal); outline: none; }

/* Price summary */
.price-summary { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.price-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.85rem; color: var(--dim); }
.price-row.total-row { border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.65rem; font-size: 0.92rem; }
.promo-input-wrap { display: flex; gap: 0.5rem; }
.promo-input-wrap .input { flex: 1; }

/* ============================================================
   EVENT DETAIL (shared bits: meta row, category badge, tickets)
============================================================ */
.detail-cat-badge { position: absolute; top: 1rem; left: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); backdrop-filter: blur(6px); border: 1px solid rgba(45,212,191,0.2); padding: 0.3rem 0.7rem; border-radius: 100px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-bottom: 1.1rem; }
.detail-meta-item { font-size: 0.8rem; color: var(--dim); display: flex; align-items: center; gap: 0.35rem; }
.tickets-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.ticket-tier {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.35rem 1rem;
  padding: 0.95rem 1.1rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 0.6rem; cursor: pointer; transition: all 0.18s;
}
.ticket-tier > div:first-child { min-width: 0; }
.ticket-tier-avail { margin-top: 0.15rem; }
.ticket-tier:hover { border-color: var(--teal); background: var(--bg-3); }
.ticket-tier-name { font-weight: 600; color: var(--text); font-size: 0.88rem; margin-bottom: 0.15rem; }
.ticket-tier-avail { font-size: 0.73rem; color: var(--muted); }
.ticket-tier-benefits { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; }
.tier-price { font-family: 'JetBrains Mono', monospace; font-size: 1.05rem; font-weight: 500; color: var(--teal); text-align: right; white-space: nowrap; line-height: 1.2; }
.tier-eb { display: block; margin-top: 0.3rem; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.tier-price.free { color: var(--mint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tier-price.sold-out-lbl { color: var(--coral); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Payment methods */
.pmeth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 0.75rem 0 1rem; }
.pmeth-btn { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.8rem 0.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 0.7rem; color: var(--dim); transition: all 0.18s; }
.pmeth-btn .pmeth-icon { font-size: 1.1rem; }
.pmeth-btn:hover, .pmeth-btn.active { border-color: var(--teal); background: var(--teal-glow); color: var(--text); }

/* ============================================================
   TICKET QR — always black on white, no CSS invert
============================================================ */
.ticket-display { text-align: center; }
.ticket-display h3 { font-family: 'Syne', sans-serif; font-size: 1.3rem; color: var(--bright); margin-bottom: 1.5rem; }
.ticket-event-title { font-weight: 600; color: var(--text); font-size: 0.9rem; margin: -0.9rem 0 0.5rem; }
.ticket-canvas {
  margin: 1.25rem auto; max-width: 200px;
  background: #ffffff; border-radius: var(--radius);
  padding: 8px; display: inline-block;
}
.ticket-canvas canvas { border-radius: 4px; display: block; }
.ticket-id-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--muted); word-break: break-all; padding: 0.65rem; background: var(--bg); border-radius: var(--radius); margin: 1rem 0; }

/* Ticket type form rows */
.ticket-type-headers { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1fr 0.7fr 0.7fr auto; gap: 0.4rem; padding: 0 0.65rem 0.4rem; }
.ticket-type-headers span { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket-type-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1fr 0.7fr 0.7fr auto; gap: 0.4rem; padding: 0.65rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); align-items: center; margin-bottom: 0.4rem; }
.ticket-type-row .input { padding: 0.55rem 0.65rem; font-size: 0.8rem; }
.remove-ticket { background: var(--coral); color: white; border: none; border-radius: var(--radius); padding: 0.4rem 0.5rem; cursor: pointer; font-size: 0.72rem; transition: opacity 0.2s; }
.remove-ticket:hover { opacity: 0.8; }

/* File drop */
.file-drop { border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 1.25rem; text-align: center; cursor: pointer; color: var(--muted); font-size: 0.82rem; transition: all 0.2s; display: block; }
.file-drop:hover { border-color: var(--teal); color: var(--dim); }
input[type="file"] { display: none; }

/* Waitlist entry */
.waitlist-entry { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--dim); }

/* Coupon bits */
.coupon-code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 500; color: var(--teal); }
.coupon-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.coupon-badge { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 100px; }
.coupon-badge.active { background: rgba(110,231,183,0.1); color: var(--mint); border: 1px solid rgba(110,231,183,0.25); }
.coupon-badge.expired { background: rgba(255,107,107,0.1); color: var(--coral); border: 1px solid rgba(255,107,107,0.25); }

/* Profile Dropdown */
.profile-dropdown { position: relative; display: inline-block; }
.profile-trigger { display: flex; align-items: center; gap: 0.5rem; background: transparent; border: none; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: var(--radius); transition: background 0.2s; color: var(--text); }
.profile-trigger:hover { background: var(--surface); }
.profile-avatar-small { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--sky)); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--bg); }
.profile-name-small { font-size: 0.85rem; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 0.5rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); min-width: 180px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); z-index: 100; display: none; }
.dropdown-menu.show { display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; color: var(--text); text-decoration: none; font-size: 0.85rem; transition: background 0.2s; }
.dropdown-menu a:hover { background: var(--surface); }
.dropdown-menu a i { width: 20px; font-size: 0.9rem; color: var(--dim); }

/* ============================================================
   ABOUT — shared CTA block (page content lives in "ABOUT PAGE (v2)")
============================================================ */
.about-contact-cta { text-align: center; padding: 4rem 2rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.about-contact-cta h2 { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--bright); margin-bottom: 0.5rem; }
.about-contact-cta p { color: var(--muted); margin-bottom: 1.5rem; }

/* ============================================================
   HELP CENTER
============================================================ */
.help-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.help-search-wrap { position: relative; margin-bottom: 1.25rem; }
.help-search-wrap i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; }
.help-search-wrap .input { padding-left: 2.4rem; }
.faq-categories { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.faq-cat-btn { padding: 0.35rem 0.85rem; background: transparent; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); font-size: 0.78rem; cursor: pointer; transition: all 0.2s; font-family: 'Outfit', sans-serif; }
.faq-cat-btn:hover, .faq-cat-btn.active { background: var(--teal-glow); border-color: var(--teal); color: var(--teal); }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--border-2); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; cursor: pointer; font-size: 0.88rem; font-weight: 500; color: var(--text); gap: 0.75rem; }
.faq-question i { color: var(--muted); font-size: 0.75rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--teal); }
.faq-answer { display: none; padding: 0 1.1rem 1rem; font-size: 0.82rem; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: -1px; }
.faq-item.open .faq-answer { display: block; }
.help-contact-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.help-contact-card h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--bright); margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.5fr; gap: 3rem; padding: 4rem 2.5rem 3rem; max-width: 1400px; margin: 0 auto; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.75rem; color: var(--teal); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1rem; }
.footer-logo .logo-img {
  width: 10rem;
  display: block;
}

/* Show the correct logo per theme (uses the same attribute your :root already flips) */
.footer-logo .logo-img--dark  { display: none; }

:root[data-theme="dark"] .footer-logo .logo-img--light { display: none; }
:root[data-theme="dark"] .footer-logo .logo-img--dark  { display: block; }
.footer-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; max-width: 300px; }
.footer-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.social-link { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.78rem; text-decoration: none; transition: all 0.2s; }
.social-link:hover { background: var(--teal-glow); border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.footer-heading { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links-group ul li a { font-size: 0.83rem; color: var(--dim); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer-links-group ul li a:hover { color: var(--teal); }
/* ============================================================
   FOOTER CONTACT
============================================================ */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-contact-item:hover {
  color: var(--teal);
}

.footer-contact-item i {
  width: 18px;
  text-align: center;
  color: var(--teal);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.footer-newsletter p { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }
.newsletter-form { margin-bottom: 1.5rem; }
.newsletter-input-wrap { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.newsletter-input-wrap:focus-within { border-color: var(--teal); }
.newsletter-input-wrap input { flex: 1; min-width: 0; padding: 0.75rem 1rem; background: var(--bg); border: none; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.82rem; outline: none; }
.newsletter-input-wrap input::placeholder { color: var(--muted); }
.newsletter-input-wrap button { padding: 0.75rem 1rem; background: var(--teal); color: var(--bg); border: none; cursor: pointer; font-size: 0.82rem; transition: background 0.2s; flex-shrink: 0; }
.newsletter-input-wrap button:hover { background: var(--teal-d); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 2.5rem; display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; gap: 0.75rem; }
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--teal); }

/* ============================================================
   LEGAL
============================================================ */
.legal-content { font-size: 0.87rem; color: var(--muted); line-height: 1.8; }
.legal-content h4 { font-family: 'Syne', sans-serif; color: var(--bright); margin: 1.5rem 0 0.6rem; font-size: 0.95rem; }
.legal-content h4:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 0.5rem; }
.legal-content strong { color: var(--text); }

/* ============================================================
   SCHEDULED BADGE
============================================================ */
.scheduled-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.55rem; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25); border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   TOASTS — top-centre, stacked, auto-dismiss with progress bar
============================================================ */
.toast-stack {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 4000;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  width: min(92vw, 400px); pointer-events: none;
}
.toast {
  --toast-c: var(--sky); --toast-ms: 3500ms;
  position: relative; overflow: hidden; pointer-events: auto; width: 100%;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.7rem 0.85rem 0.75rem;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer; font-size: 0.86rem; line-height: 1.4;
  animation: toast-in 0.32s var(--ease);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.leaving { opacity: 0; transform: translateY(-10px) scale(0.97); }

.toast-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--toast-c);
  background: var(--bg-3);
  background: color-mix(in srgb, var(--toast-c) 15%, transparent);
}
.toast-msg { flex: 1; min-width: 0; color: var(--bright); font-weight: 500; overflow-wrap: anywhere; }
.toast-close {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.toast-close:hover { background: var(--surface); color: var(--text); }

/* countdown bar */
.toast-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--toast-c); transform-origin: left center;
  animation: toast-bar var(--toast-ms) linear forwards;
}
.toast.paused .toast-bar { animation-play-state: paused; }

.toast-success { --toast-c: var(--success); }
.toast-error   { --toast-c: var(--error); }
.toast-warning { --toast-c: var(--warning); }
.toast-info    { --toast-c: var(--sky); }

@keyframes toast-in  { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ============================================================
   SETTINGS TABS
============================================================ */
.settings-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.settings-tab {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.95rem;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font: 500 0.83rem 'Outfit', sans-serif; cursor: pointer; white-space: nowrap;
  transition: color 0.2s;
}
.settings-tab:hover { color: var(--dim); }
.settings-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.settings-panel { display: none; }
.settings-panel.active { display: block; animation: tab-appear 0.18s var(--ease); }
.settings-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }
.settings-info-row {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; margin-bottom: 1.25rem;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.83rem; color: var(--muted);
}
.settings-info-row strong { color: var(--bright); word-break: break-all; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.theme-choice {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.9rem 0.5rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--dim);
  font: 500 0.8rem 'Outfit', sans-serif; cursor: pointer; transition: all 0.18s;
}
.theme-choice i { font-size: 1.1rem; }
.theme-choice:hover, .theme-choice.active { border-color: var(--teal); background: var(--teal-glow); color: var(--text); }

/* Danger zones (Settings → Account): stacked layout, full-width buttons */
.danger-zone {
  display: flex; flex-direction: column; gap: 0.9rem;
  border: 1px solid rgba(229,72,77,0.35); background: var(--coral-glow);
  border-radius: var(--radius-lg); padding: 1.25rem;
}
.danger-zone + .danger-zone { margin-top: 1.25rem; }
.danger-zone h4 { font-family: 'Syne', sans-serif; font-size: 0.95rem; color: var(--coral); margin: 0; display: flex; gap: 0.5rem; align-items: center; }
.danger-zone p { font-size: 0.8rem; color: var(--dim); line-height: 1.6; margin: 0; }
.danger-zone .form-field { margin: 0; }
.danger-zone .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
.danger-zone.warn { border-color: rgba(180,83,9,0.35); background: rgba(251,191,36,0.08); }
.danger-zone.warn h4 { color: var(--gold); }
.danger-note { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.78rem; color: var(--coral); line-height: 1.5; }
.danger-note i { margin-top: 0.15rem; flex-shrink: 0; }

/* ============================================================
   GLOBAL CONFIRM DIALOG
============================================================ */
.confirm-modal { display: none; position: fixed; inset: 0; z-index: 1200; align-items: center; justify-content: center; }
.confirm-modal.show { display: flex; }
.confirm-backdrop { position: absolute; inset: 0; background: var(--backdrop); backdrop-filter: blur(4px); }
.confirm-box {
  position: relative; width: 90%; max-width: 420px; padding: 1.75rem; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  animation: modal-appear 0.2s var(--ease);
}
.confirm-icon { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.confirm-icon.danger  { background: var(--coral-glow); color: var(--coral); }
.confirm-icon.primary { background: var(--teal-glow);  color: var(--teal); }
.confirm-title { font-family: 'Syne', sans-serif; font-size: 1.15rem; color: var(--bright); margin-bottom: 0.5rem; }
.confirm-message { font-size: 0.86rem; color: var(--dim); line-height: 1.7; white-space: pre-line; margin-bottom: 1.25rem; }
.confirm-input-wrap { text-align: left; margin-bottom: 1.25rem; }
.confirm-actions { display: flex; gap: 0.6rem; }
.confirm-actions .btn { flex: 1; justify-content: center; }

/* ============================================================
   THEME OVERRIDES + TOGGLE
============================================================ */
body { transition: background 0.25s var(--ease), color 0.25s var(--ease); }

.navbar, .filters-bar { background: var(--nav-bg); }
.card-cat-badge, .detail-cat-badge { background: var(--badge-bg); }
.modal-backdrop { background: var(--backdrop); }

/* text sitting on teal/mint fills */
.btn-primary, .btn-success, .hero-search-row button, .profile-avatar-lg,
.profile-avatar-small, .back-to-top-btn, .newsletter-input-wrap button { color: var(--on-teal); }

/* profile header */
.profile-hero-bg { background: var(--profile-bg); }
.profile-hero-bg::after { background: linear-gradient(to bottom, transparent, var(--profile-fade)); }

/* hero carousel stays dark in both themes (it sits on photos) */
.carousel-title { color: #fff; }
.carousel-venue { color: #cbd5e1; }
.carousel-cat   { color: #2dd4bf; }

/* theme toggle button */
.theme-toggle-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--dim); cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}
.theme-toggle-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-glow); transform: rotate(15deg); }

/* ============================================================
   EVENT LANDING PAGE
============================================================ */
.ep-wrap { max-width: 1080px; margin: 0 auto; }
.ep-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--dim); text-decoration: none; font-size: 0.85rem; margin-bottom: 1.25rem; transition: color 0.2s; }
.ep-back:hover { color: var(--teal); }
.ep-hero { position: relative; aspect-ratio: 21/8; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 2rem; }
.ep-hero img { width: 100%; height: 100%; object-fit: cover; filter: var(--detail-img-filter); }
.ep-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 2rem; align-items: start; }
.ep-title { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--bright); line-height: 1.15; margin-bottom: 1rem; }
.ep-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.25rem 0 1.75rem; }
.ep-h { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--bright); margin-bottom: 0.6rem; }
.ep-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.85; white-space: pre-line; }
.ep-ticket-card { position: sticky; top: 84px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.ep-notice { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1rem; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.84rem; color: var(--dim); }
.ep-notice i { color: var(--coral); }

/* ============================================================
   ADD TO CALENDAR MODAL (opened from Purchase History)
============================================================ */
.calendar-options { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; }
.calendar-option {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1.1rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font: 500 0.9rem 'Outfit', sans-serif; cursor: pointer; text-align: left;
  transition: all 0.18s;
}
.calendar-option:hover { border-color: var(--teal); background: var(--teal-glow); }
.calendar-option i { width: 20px; text-align: center; color: var(--teal); font-size: 1.05rem; }

/* ============================================================
   MANAGEMENT MODALS (coupons, staff, check-in log)
============================================================ */
.modal-box.wider { max-width: 1040px; }
.modal-title.with-count { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.count-chip {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: 100px; color: var(--muted);
  background: var(--bg-3); border: 1px solid var(--border);
}
.count-chip:empty { display: none; }
.modal-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.modal-header-actions .modal-close { margin-left: 0.25rem; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-2); color: var(--dim);
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s var(--ease);
}
.icon-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-glow); }
.icon-btn-primary { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.icon-btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); color: var(--on-teal); transform: scale(1.08); }
.icon-btn-danger:hover { color: var(--coral); border-color: var(--coral); background: var(--coral-glow); }
.icon-btn-sm { width: 30px; height: 30px; font-size: 0.72rem; }

.list-toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.list-toolbar .filter-input { width: auto; flex: 1 1 140px; min-width: 120px; }
.list-toolbar input.filter-input { flex: 2 1 200px; }

.manage-list { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; padding-right: 2px; }
.manage-item {
  display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1rem;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.manage-item:hover { border-color: var(--border-2); }
.manage-item-icon {
  width: 36px; height: 36px; border-radius: 0.6rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-glow); color: var(--teal);
}
.manage-item-body { flex: 1; min-width: 0; }
.manage-item-side { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.manage-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-size: 0.84rem; }
.manage-empty i { display: block; font-size: 1.5rem; margin-bottom: 0.6rem; opacity: 0.35; }

.coupon-badge.used-up { background: rgba(251,191,36,0.1); color: var(--gold); border: 1px solid rgba(251,191,36,0.25); }
.pill { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.18rem 0.5rem; border-radius: 100px; white-space: nowrap; }
.pill-ok   { background: rgba(110,231,183,0.1); color: var(--mint);  border: 1px solid rgba(110,231,183,0.25); }
.pill-warn { background: rgba(251,191,36,0.1);  color: var(--gold);  border: 1px solid rgba(251,191,36,0.25); }
.pill-bad  { background: rgba(255,107,107,0.1); color: var(--coral); border: 1px solid rgba(255,107,107,0.25); }
.pill-info { background: rgba(125,211,252,0.12); color: var(--sky);  border: 1px solid rgba(125,211,252,0.25); }

/* ============================================================
   FORMATTING TOOLBAR + RENDERED TEXT
============================================================ */
.md-toolbar { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; padding: 0.35rem; background: var(--bg-3); border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.md-spacer { flex: 1; }
.md-btn { min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: var(--dim); cursor: pointer; font: 500 0.78rem 'Outfit', sans-serif; transition: all 0.15s; }
.md-btn:hover:not(:disabled) { color: var(--teal); background: var(--teal-glow); }
.md-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.md-btn-text { padding: 0 0.7rem; }
.md-btn[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); }
textarea.md-textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.md-ta-hidden { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.md-preview { min-height: 90px; padding: 0.8rem 0.95rem; background: var(--bg); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.md-preview[hidden] { display: none; }
.md-hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.md-empty { color: var(--muted); font-style: italic; }
.md-sep { width: 1px; height: 18px; background: var(--border-2); margin: 0 0.25rem; }
.md-body .md-al-center { text-align: center; }
.md-body .md-al-right  { text-align: right; }
.md-body ul.md-al-center, .md-body ol.md-al-center,
.md-body ul.md-al-right,  .md-body ol.md-al-right { list-style-position: inside; margin-left: 0; padding-left: 0; }
.md-body { font-size: 0.92rem; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.md-body p { margin: 0 0 0.8rem; }
.md-body h4 { font-family: 'Syne', sans-serif; font-size: 1.05rem; color: var(--bright); margin: 1.1rem 0 0.4rem; }
.md-body ul, .md-body ol { margin: 0 0 0.9rem 1.3rem; }
.md-body li { margin-bottom: 0.25rem; }
.md-body strong { color: var(--text); }
.md-body a { color: var(--teal); }
.md-body > :last-child { margin-bottom: 0; }
.ep-desc.md-body { white-space: normal; }

.ep-terms { margin-top: 1.5rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; }
.ep-terms summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--bright); display: flex; align-items: center; gap: 0.5rem; }
.ep-terms summary i { color: var(--teal); }
.ep-terms[open] summary { margin-bottom: 0.75rem; }
.terms-agree { margin: 0.25rem 0 1rem; }
.terms-agree .ep-terms { margin-top: 0.6rem; padding: 0.6rem 0.8rem; }

.form-actions-split { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.form-actions-split .btn { flex: 1; justify-content: center; }

/* ============================================================
   HOMEPAGE EXTRA SECTIONS
============================================================ */
.events-section { scroll-margin-top: 130px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 2rem; }
.hm-section { max-width: 1400px; margin: 0 auto; padding: 4rem 2.5rem; }
.hm-section + .hm-section { border-top: 1px solid var(--border); }
.hm-head { margin-bottom: 2rem; }
.hm-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.6rem; }
.hm-title { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--bright); line-height: 1.15; }
.hm-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.75; margin-top: 0.6rem; max-width: 560px; }

.hm-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
.hm-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 1.2rem; text-align: left; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); cursor: pointer; font: 600 0.9rem 'Outfit', sans-serif; transition: all 0.2s var(--ease); }
.hm-cat:hover { border-color: var(--teal); transform: translateY(-3px); background: var(--bg-3); }
.hm-cat-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--teal-glow); color: var(--teal); }

.hm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hm-step { padding: 1.6rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.hm-step-n { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--teal); opacity: 0.5; line-height: 1; display: block; margin-bottom: 0.8rem; }
.hm-step h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; color: var(--bright); margin-bottom: 0.4rem; }
.hm-step p { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

.hm-cities { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hm-city { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 100px; color: var(--dim); cursor: pointer; font: 500 0.85rem 'Outfit', sans-serif; transition: all 0.2s; }
.hm-city i { color: var(--teal); font-size: 0.75rem; }
.hm-city:hover { border-color: var(--teal); color: var(--text); background: var(--teal-glow); }

.hm-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem; border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--teal-glow), transparent 70%), var(--bg-2); }
.hm-cta-actions { display: flex; gap: 0.6rem; flex-shrink: 0; flex-wrap: wrap; }

.hm-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.hm-why-card { padding: 1.4rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.hm-why-card i { color: var(--teal); font-size: 1.2rem; margin-bottom: 0.8rem; display: block; }
.hm-why-card h4 { font-family: 'Syne', sans-serif; color: var(--bright); font-size: 0.98rem; margin-bottom: 0.3rem; }
.hm-why-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }
.empty-emoji { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }
.empty-state p { max-width: 380px; margin: 0.4rem auto 0; font-size: 0.9rem; line-height: 1.6; }
/* ============================================================
   ABOUT PAGE (v2)
============================================================ */
.ab { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 4.5rem; }
.ab-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.ab-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--bright); margin: 1.1rem 0; }
.ab-hl { color: var(--teal); }
.ab-lead { color: var(--dim); font-size: 1.05rem; line-height: 1.8; max-width: 520px; }
.ab-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.75rem; }

.ab-hero-art { position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.ab-ticket { display: flex; width: 100%; max-width: 460px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.18); transform: rotate(-3deg); overflow: visible; }
.ab-ticket-main { flex: 1; padding: 1.6rem 1.5rem; min-width: 0; }
.ab-ticket-main h3 { font-family: 'Syne', sans-serif; font-size: 1.35rem; color: var(--bright); margin: 0.7rem 0 0.6rem; }
.ab-ticket-main p { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.45rem; margin-top: 0.25rem; }
.ab-ticket-main p i { color: var(--teal); width: 14px; }
.ab-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); background: var(--coral-glow); padding: 0.2rem 0.55rem; border-radius: 100px; }
.ab-ticket-stub { position: relative; width: 138px; flex-shrink: 0; padding: 1.2rem 0.9rem; border-left: 2px dashed var(--border-2); background: var(--bg-3); border-radius: 0 18px 18px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; }
.ab-ticket-stub::before, .ab-ticket-stub::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.ab-ticket-stub::before { top: -9px; } .ab-ticket-stub::after { bottom: -9px; }
.ab-ticket-stub span { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: var(--muted); }
.ab-qr { width: 88px; height: 88px; border: 6px solid #fff; border-radius: 6px; background: repeating-conic-gradient(#0b1624 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.ab-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 100px; font-size: 0.78rem; font-weight: 600; color: var(--text); box-shadow: 0 10px 28px rgba(0,0,0,0.14); animation: ab-float 5s ease-in-out infinite; }
.ab-chip i { color: var(--teal); }
.ab-chip-1 { top: 8%; right: 2%; } .ab-chip-2 { bottom: 6%; left: 0; animation-delay: -2.4s; }
.ab-chip-2 i { color: var(--mint); }
@keyframes ab-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ab-stats > div { background: var(--bg-2); padding: 1.8rem 1rem; text-align: center; }
.ab-stat-n { display: block; font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--teal); }
.ab-stat-l { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.ab-head { max-width: 680px; margin-bottom: 1.75rem; }
.ab-h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; color: var(--bright); }
.ab-sub { color: var(--muted); line-height: 1.85; margin-top: 0.9rem; font-size: 0.98rem; }

.ab-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ab-track { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; }
.ab-track h3 { font-family: 'Syne', sans-serif; color: var(--bright); font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.ab-track h3 i { color: var(--teal); }
.ab-track ol { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 1rem; }
.ab-track li { counter-increment: s; position: relative; padding-left: 2.6rem; font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.ab-track li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--teal-glow); color: var(--teal); font: 700 0.8rem 'Syne', sans-serif; display: flex; align-items: center; justify-content: center; }
.ab-track li b { color: var(--text); }

.ab-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ab-feat { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; transition: border-color 0.2s, transform 0.2s var(--ease); }
.ab-feat:hover { border-color: var(--teal); transform: translateY(-3px); }
.ab-feat i { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--teal-glow); color: var(--teal); margin-bottom: 1rem; }
.ab-feat h3 { font-family: 'Syne', sans-serif; font-size: 1rem; color: var(--bright); margin-bottom: 0.35rem; }
.ab-feat p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ab-values > div { border-top: 2px solid var(--teal); padding-top: 1.2rem; }
.ab-values span { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--teal); }
.ab-values h3 { font-family: 'Syne', sans-serif; color: var(--bright); font-size: 1.1rem; margin: 0.4rem 0; }
.ab-values p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

.ab-quote { font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; color: var(--bright); text-align: center; max-width: 820px; margin: 0 auto; padding: 0 1rem; }

/* ============================================================
   RESPONSIVE — new sections
============================================================ */
@media (max-width: 1100px) {
  .hm-cats { grid-template-columns: repeat(3, 1fr); }
  .hm-why { grid-template-columns: repeat(2, 1fr); }
  .ab-hero { grid-template-columns: 1fr; }
  .ab-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hm-section { padding: 3rem 1.25rem; }
  .hm-steps, .ab-values, .ab-tracks { grid-template-columns: 1fr; }
  .hm-cta { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
  .ab { gap: 3.5rem; }
}
@media (max-width: 600px) {
  .hm-section { padding: 2.5rem 1rem; }
  .hm-cats { grid-template-columns: repeat(2, 1fr); }
  .hm-why, .ab-features { grid-template-columns: 1fr; }
  .ab-stats { grid-template-columns: 1fr 1fr; }
  .ab-ticket-stub { width: 108px; }
  .ab-qr { width: 70px; height: 70px; }
  .form-actions-split { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) { .ab-chip { animation: none; } }

/* ============================================================
   RESPONSIVE  (largest → smallest, order matters)
============================================================ */
@media (max-width: 1200px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-right { min-height: 420px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-quick-row { grid-template-columns: repeat(2, 1fr); }
  .report-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .export-btn-grid { grid-template-columns: repeat(2, 1fr); }
  .report-charts-row { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .navbar { padding: 0 1.25rem; }
  .nav-right { gap: 0.4rem; }
  .nav-logo .logo-img, .footer-logo .logo-img { width: 7.5rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem; gap: 0.15rem; z-index: 400;
    transform: translateY(-10px); opacity: 0;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
    pointer-events: none;
  }
  .nav-links.open {
    display: flex;
    transform: translateY(0); opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-btn { display: flex; }

  /* 16px inputs stop iOS Safari zooming the page on focus */
  .input, .filter-input, .filter-chip,
  .hero-search-row input, .filter-search input, .newsletter-input-wrap input { font-size: 16px; }

  .section, .events-section { padding: 2.5rem 1.25rem; }
  .filters-bar { padding: 0.75rem 1.25rem; gap: 0.5rem; }
  .filters-label { display: none; }
  .filters-bar .filter-chip { flex: 1 1 140px; min-width: 0; }
  .filter-clear { margin-left: 0; }
  .filter-search { flex: 1 1 100%; max-width: none; order: -1; }

  .hero-left { padding: 3.5rem 1.5rem 3rem; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 4rem); }
  .hero-sub { max-width: none; font-size: 1rem; }
  .hero-search-row { max-width: none; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; margin-top: 2.25rem; padding-top: 1.75rem; }
  .hero-stats > div { flex: 1 1 30%; min-width: 90px; }
  .hero-stat-val { font-size: 1.4rem; }

  .section-head { flex-wrap: wrap; gap: 0.75rem; }
  .section-title { font-size: 1.4rem; }
  .dash-header { flex-direction: column; gap: 1rem; }
  .dash-header > div:last-child,
  .section-head > div:last-child { flex-wrap: wrap; width: 100%; }
  .dash-quick-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  #validation-stats-row { grid-template-columns: repeat(2, 1fr) !important; }
  .card-footer { flex-wrap: wrap; gap: 0.5rem; }

  .form-row { grid-template-columns: 1fr; }
  .payout-summary-row { grid-template-columns: 1fr; }
  .page-filters { flex-direction: column; gap: 0.75rem; }
  .filter-group { min-width: 100%; }
  .filter-actions { width: 100%; justify-content: flex-start; }
  .notifications-panel { right: 0.75rem; left: 0.75rem; width: auto; }

  /* ticket-type editor: header row hidden, every field stays visible */
  .ticket-type-headers { display: none; }
  .ticket-type-row { grid-template-columns: 1fr 1fr; }
  .ticket-type-row .type-early-end,
  .ticket-type-row .remove-ticket { grid-column: 1 / -1; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.25rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 1rem 1.25rem; }
  .profile-hero-content { padding: 0 1.25rem 1.25rem; }
  .profile-avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; margin-top: -36px; }

  .ep-grid { grid-template-columns: 1fr; }
  .ep-ticket-card { position: static; }
  .ep-hero { aspect-ratio: 16/9; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 0.85rem; }
  .nav-logo .logo-img { width: 6.5rem; }
  .profile-name-small, .profile-trigger > i { display: none; }
  .theme-toggle-btn { width: 32px; height: 32px; }
  #login-link { padding: 0.45rem 0.8rem; font-size: 0.8rem; }

  .section, .events-section { padding: 2rem 1rem; }
  .events-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 2.5rem 1rem 2rem; }
  .hero-right { min-height: 340px; }
  .carousel-label { padding: 1rem; }
  .carousel-info { padding: 1.25rem 1rem 2rem; }
  .carousel-title { font-size: 1.2rem; }
  .carousel-dots { right: 1rem; }

  .pmeth-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { padding: 1.15rem; width: 94%; }
  .modal-title { font-size: 1.1rem; }
  .modal-footer { flex-direction: column; }

  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { padding: 1.1rem 1.2rem; }
  .kpi-value { font-size: 1.45rem; }
  .report-kpi-grid { grid-template-columns: 1fr 1fr; }
  .report-kpi-value { font-size: 1.4rem; }
  .export-btn-grid { grid-template-columns: 1fr 1fr; }
  .dash-quick-row { grid-template-columns: 1fr 1fr; }
  .payout-summary-value { font-size: 1.3rem; }
  .data-table th, .data-table td { padding: 0.7rem 0.8rem; }

  .footer-top { grid-template-columns: 1fr; padding: 2.25rem 1rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1rem; }

  .about-contact-cta { padding: 2.5rem 1.25rem; }

  .profile-hero-meta { flex-direction: column; gap: 0.35rem; }
  .profile-hero-content { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .profile-tabs-nav { overflow-x: auto; }
  .profile-tab-btn { padding: 0.75rem 0.9rem; font-size: 0.78rem; }
  .profile-tab-panels { padding: 1.25rem 1rem; }
  .purchase-item { flex-direction: column; align-items: flex-start; }
  .purchase-item-actions { width: 100%; }
  .theme-options { grid-template-columns: 1fr; }
  .filter-actions .btn { flex: 1; justify-content: center; }
  .manage-item { flex-wrap: wrap; }
  .manage-item-side { width: 100%; justify-content: flex-start; }

  .toast-stack { top: 70px; }
  .notifications-panel { max-height: 70vh; }
  .ep-hero { aspect-ratio: 16/10; }
  .ep-ticket-card { padding: 1rem; }

  .cookie-banner { padding: 1rem 1.25rem; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
  .back-to-top-btn { bottom: 1.25rem; right: 1.25rem; }
  .loc-prompt { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
}

@media (max-width: 380px) {
  .hero-stat-key { font-size: 0.65rem; }
  .dash-quick-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .toast, .confirm-box, .settings-panel.active { animation: none; }
  .toast-bar { animation: none; display: none; }
}