/* TicketKaro Public CSS – DANGO (https://dango.pk) */
/* Lightweight, no framework dependency */

:root {
  --primary: #e94560;
  --primary-dark: #c73252;
  --secondary: #0f3460;
  --dark: #1a1a2e;
  --accent: #16213e;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --transition: all .2s ease;
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  /* Semantic tokens (dark mode flips these; --primary/--dark/--secondary stay) */
  --ink: #1a1a2e;            /* headings / strong text */
  --surface-2: #f1f5f9;      /* subtle inset surfaces */
  --surface-3: #f3f4f6;      /* hover rows */
  --input-bg: #ffffff;
  --bg-alt: #f0f4f8;         /* alternate sections */
  --img-ph: #e5e7eb;         /* image placeholders */
  --code-ink: #0f3460;       /* UID / monospace accents */
  --tint-primary: #fce7f0;
  --tint-primary-tx: #be185d;
  --tint-success-bg: #d1fae5; --tint-success-bd: #a7f3d0; --tint-success-tx: #065f46;
  --tint-danger-bg: #fee2e2;  --tint-danger-bd: #fca5a5;  --tint-danger-tx: #991b1b;
  --tint-warning-bg: #fef3c7; --tint-warning-bd: #fcd34d; --tint-warning-tx: #92400e;
  --tint-info-bg: #dbeafe;    --tint-info-bd: #93c5fd;    --tint-info-tx: #1e40af;
  --sk-base: #e9edf2; --sk-hi: #f4f6f9;
  /* Promotion accent. Deliberately NOT --primary: on-sale emphasis already owns
     the brand pink, and a featured card has to be distinguishable from it at a
     glance or both accents stop meaning anything. */
  --promo: #d97706;
}

/* ── Dark theme (html[data-theme="dark"], set FOUC-free in layout head) ── */
[data-theme="dark"] {
  color-scheme: dark;
  --text: #d3d7e0;
  --text-muted: #9aa1b0;
  --bg: #0f1016;
  --bg-card: #1a1b26;
  --border: #2e3040;
  --shadow: 0 2px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.6);
  --ink: #eef0f6;
  --surface-2: #232433;
  --surface-3: #272939;
  --input-bg: #232433;
  --bg-alt: #14151d;
  --img-ph: #232433;
  --code-ink: #9db4d8;
  --tint-primary: #3b1d28;
  --tint-primary-tx: #f480a1;
  --tint-success-bg: #11301f; --tint-success-bd: #1d4d33; --tint-success-tx: #6ee7b7;
  --tint-danger-bg: #331a1c;  --tint-danger-bd: #58272b;  --tint-danger-tx: #fca5a5;
  --tint-warning-bg: #2e2312; --tint-warning-bd: #4d3a1c; --tint-warning-tx: #fcd34d;
  --tint-info-bg: #1d2140;    --tint-info-bd: #2f3768;    --tint-info-tx: #93c5fd;
  --sk-base: #232433; --sk-hi: #2c2d3f;
  /* Lifted for contrast against the dark card surface. */
  --promo: #f59e0b;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { flex: 1; min-width: 0; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: 1px;
  white-space: nowrap;
  text-decoration: none;
}
.navbar-brand span { color: var(--primary); }
.navbar-nav {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.navbar-nav a {
  color: #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}
.navbar-nav a:hover,
.navbar-nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.navbar-search { flex: 1; max-width: 360px; }
.navbar-search input {
  width: 100%;
  padding: 7px 14px;
  border: none;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
}
.navbar-search input:focus { background: rgba(255,255,255,.2); }
.navbar-search input::placeholder { color: #aaa; }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}
@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-search { display: none; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { display: block; width: 100%; padding: 10px 16px; }
}

/* ── Account dropdown ──────────────────────────────────────────────────── */
.nav-dd { position: relative; }
.nav-dd-toggle { cursor: pointer; display: inline-flex !important; align-items: center; gap: 5px; }
.nav-dd-toggle .nav-dd-caret { font-size: .7rem; opacity: .8; transition: transform .15s; }
.nav-dd.open .nav-dd-toggle .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
}
.nav-dd-menu {
  display: none; list-style: none; margin: 0;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 6px; min-width: 210px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  flex-direction: column; gap: 1px; z-index: 1100;
}
.nav-dd.open .nav-dd-menu { display: flex; }
.nav-dd-menu li { width: 100%; }
.nav-dd-menu a { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; white-space: nowrap; font-size: .9rem; }
.nav-dd-menu a .nav-dd-ic { width: 18px; text-align: center; flex-shrink: 0; }
.nav-dd-divider { height: 1px; background: rgba(255,255,255,.1); margin: 5px 4px; }

@media (max-width: 768px) {
  .nav-dd-menu {
    position: static; display: flex; border: none; box-shadow: none;
    padding: 0 0 0 10px; min-width: 0; background: transparent;
  }
  .nav-dd-toggle .nav-dd-caret { display: none; }
}

/* ── Notification bell dropdown (desktop preview panel) ────────────────── */
.notif-panel {
  display: none; position: absolute; right: -70px; top: calc(100% + 10px);
  width: 340px; max-width: calc(100vw - 24px);
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  z-index: 1100; overflow: hidden; text-align: left;
}
.nav-dd.open > .notif-panel { display: block; }
.nav-dd .notif-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: .88rem; color: var(--text);
}
.nav-dd .notif-panel__head a { color: var(--primary); padding: 0; font-size: .78rem; font-weight: 600; }
.nav-dd .notif-panel__head a:hover { background: none; color: var(--primary); text-decoration: underline; }
.notif-panel__list { max-height: 380px; overflow-y: auto; }
.nav-dd .notif-panel__item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; color: var(--text); font-size: .84rem;
  border-bottom: 1px solid var(--border); border-radius: 0;
}
.nav-dd .notif-panel__item:last-child { border-bottom: none; }
.nav-dd .notif-panel__item:hover { background: var(--surface-2); color: var(--text); }
.notif-panel__item.unread { box-shadow: inset 3px 0 0 #7c3aed; }
.notif-panel__ic { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }
.notif-panel__tt { font-weight: 600; line-height: 1.35; }
.notif-panel__item.unread .notif-panel__tt { font-weight: 700; }
.notif-panel__bd {
  color: var(--text-muted); font-size: .78rem; line-height: 1.4; margin-top: 1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-panel__ago { color: var(--text-muted); font-size: .72rem; margin-top: 2px; opacity: .85; }
.notif-panel__empty { padding: 26px 14px; text-align: center; color: var(--text-muted); font-size: .84rem; }
.nav-dd .notif-panel__foot { display: block; text-align: center; padding: 9px 14px; font-size: .82rem; font-weight: 600; color: var(--primary); border-top: 1px solid var(--border); border-radius: 0; }
.nav-dd .notif-panel__foot:hover { background: var(--surface-2); color: var(--primary); }
@media (max-width: 768px) {
  .notif-panel { display: none !important; } /* mobile: bell stays a plain link */
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 50%, var(--secondary) 100%);
  color: #fff;
  padding: 64px 16px;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-search {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  gap: 0;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  padding: 14px 22px;
  border: none;
  font-size: 1rem;
  outline: none;
  background: #fff;        /* pill stays white in dark mode … */
  color: #2d2d2d;          /* … with dark typed text */
  color-scheme: light;     /* stop the UA dark-ifying the field under [data-theme=dark] */
}
.hero-search input::placeholder { color: #8a8f98; opacity: 1; }
.hero-search button {
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.hero-search button:hover { background: var(--primary-dark); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; background: var(--img-ph); }
.card-body { padding: 16px; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.card-meta { font-size: .83rem; color: var(--text-muted); }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-price { font-weight: 700; color: var(--primary); font-size: 1rem; }

/* ── Events Grid ───────────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.event-card .card-img { position: relative; }
.event-card .badge-cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: .75rem;
  backdrop-filter: blur(4px);
}
.event-date { color: var(--primary); font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.event-venue { font-size: .82rem; color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #0a2744; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-sm  { padding: 6px 14px; font-size: .82rem; }
.btn-lg  { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
/* The .form-control look is applied to any control sitting directly in a
   .form-group as well, because most views never added the class — the entire
   public checkout form was rendering browser-default ~170px boxes next to
   full-width ones, which is what made it look half-finished. Checkboxes,
   radios and buttons are excluded: they must keep their intrinsic size. */
.form-control,
.form-group > input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),
.form-group > select,
.form-group > textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: var(--input-bg);
  transition: var(--transition);
  outline: none;
  color: var(--text);
}
.form-control:focus,
.form-group > input:not([type=checkbox]):not([type=radio]):focus,
.form-group > select:focus,
.form-group > textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(233,69,96,.12); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 150px; line-height: 1.55; }
textarea.form-control.tk-textarea-lg { min-height: 320px; font-size: .95rem; padding: 12px 14px; }
/* .form-row was used all over the checkout markup but never existed in CSS, so
   every pair the form meant to sit side by side — Ticket Holder Name + Email,
   an attendee's name + contact — stacked full-width instead. On a five-ticket
   order that doubled the length of the page for no reason. Flex-basis rather
   than fixed columns so a pair collapses to one column when there is no room,
   with no media query to keep in sync. */
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-row > .form-group { flex: 1 1 240px; min-width: 0; }

.form-text { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 4px; }
select.form-control { cursor: pointer; }

/* ── Attendee details (checkout) ───────────────────────────────────────────
   One card per ticket. A flat "Attendee 1..N" list gave the buyer no way to
   tell which name belonged to which ticket on a mixed Standard + VIP order, so
   each card names its ticket type and its position within that type. */
.attendee-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1rem 1rem;
  margin-bottom: .75rem;
  background: var(--bg-card);
}
.attendee-card:last-child { margin-bottom: 0; }
.attendee-card-head {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .85rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}
.attendee-num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint-primary, #fce7f0); color: var(--tint-primary-tx, #be185d);
  font-size: .8rem; font-weight: 800;
}
.attendee-type { font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.2; }
.attendee-sub  { font-size: .76rem; color: var(--text-muted); margin-top: .1rem; }
.attendee-copy {
  margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--primary); font-size: .76rem; font-weight: 600;
  padding: .3rem .6rem; border-radius: 6px; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.attendee-copy:hover { border-color: var(--primary); background: var(--tint-primary, #fce7f0); }
@media (max-width: 560px) {
  .attendee-card-head { flex-wrap: wrap; }
  .attendee-copy { margin-left: 0; width: 100%; text-align: center; }
}

/* ── Alerts ────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success { background: var(--tint-success-bg); border: 1px solid var(--tint-success-bd); color: var(--tint-success-tx); }
.alert-error   { background: var(--tint-danger-bg); border: 1px solid var(--tint-danger-bd); color: var(--tint-danger-tx); }
.alert-warning { background: var(--tint-warning-bg); border: 1px solid var(--tint-warning-bd); color: var(--tint-warning-tx); }
.alert-info    { background: var(--tint-info-bg); border: 1px solid var(--tint-info-bd); color: var(--tint-info-tx); }

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-primary  { background: var(--tint-primary); color: var(--tint-primary-tx); }
.badge-success  { background: var(--tint-success-bg); color: var(--tint-success-tx); }
.badge-danger   { background: var(--tint-danger-bg); color: var(--tint-danger-tx); }
.badge-warning  { background: var(--tint-warning-bg); color: var(--tint-warning-tx); }
.badge-info     { background: var(--tint-info-bg); color: var(--tint-info-tx); }
.badge-dark     { background: #374151; color: #fff; }

/* ── Ticket Card ───────────────────────────────────────────────────────── */
.ticket-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  margin-bottom: 16px;
}
.ticket-left {
  background: linear-gradient(135deg, var(--dark), var(--secondary));
  color: #fff;
  padding: 20px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ticket-left .date { font-size: 1.4rem; font-weight: 800; }
.ticket-left .month { font-size: .85rem; text-transform: uppercase; opacity: .8; }
.ticket-body {
  flex: 1;
  padding: 20px;
  border-right: 2px dashed var(--border);
}
.ticket-qr {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket-uid { font-family: 'Courier New', monospace; font-size: .95rem; font-weight: 700; color: var(--code-ink); }

/* ── Filter Bar ────────────────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .88rem;
  outline: none;
  cursor: pointer;
  background: var(--input-bg);
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--primary); }

/* ── Checkout ──────────────────────────────────────────────────────────── */
.checkout-summary {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
}
.checkout-summary h3 { color: #fff; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; }
.summary-row.total { border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; font-weight: 700; font-size: 1.1rem; margin-top: 8px; }
.payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: var(--transition);
}
.payment-method:hover,
.payment-method.selected { border-color: var(--primary); background: var(--tint-primary); }
.payment-method img { height: 28px; }
.payment-method label { cursor: pointer; font-weight: 600; }

/* ── Cart Timer ────────────────────────────────────────────────────────── */
.cart-timer {
  background: var(--tint-warning-bg);
  border: 1px solid var(--tint-warning-bd);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.cart-timer .time { font-weight: 700; color: var(--danger); font-size: 1.1rem; }

/* ── Virtual Queue ─────────────────────────────────────────────────────── */
.vq-card {
  background: linear-gradient(135deg, var(--dark), var(--secondary));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}
.vq-position { font-size: 3rem; font-weight: 800; color: var(--primary); }
.vq-status { font-size: 1rem; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ── QR Display ────────────────────────────────────────────────────────── */
.qr-wrapper {
  background: #fff;
  border: 3px solid var(--dark);
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
  position: relative;
}
.qr-refresh { font-size: .75rem; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ── Pagination ────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 24px 0 0;
}
.pagination a,
.pagination span {
  padding: 7px 13px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  font-size: .88rem;
  color: var(--text);
  transition: var(--transition);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Section Headers ───────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ── Category Pills ────────────────────────────────────────────────────── */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-pill {
  padding: 8px 16px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}
.cat-pill:hover,
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: var(--primary); }
footer h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
footer a { color: rgba(255,255,255,.6); font-size: .88rem; display: block; margin-bottom: 6px; text-decoration: none; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .82rem; }

/* ── Loading Spinner ───────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(233,69,96,.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stall Map ─────────────────────────────────────────────────────────── */
.stall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
}
.stall-cell {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stall-cell.available:hover { border-color: var(--primary); background: var(--tint-primary); }
.stall-cell.booked   { background: var(--tint-danger-bg); border-color: var(--tint-danger-bd); color: var(--tint-danger-tx); cursor: not-allowed; }
.stall-cell.held     { background: var(--tint-warning-bg); border-color: var(--tint-warning-bd); color: var(--tint-warning-tx); cursor: not-allowed; }
.stall-cell.selected { background: var(--primary); border-color: var(--primary-dark); color: #fff; }

/* ── Bus Seat Map ──────────────────────────────────────────────────────── */
.bus-layout { max-width: 320px; margin: 0 auto; }
.bus-row { display: flex; gap: 8px; margin-bottom: 8px; justify-content: center; }
.bus-seat {
  width: 40px; height: 44px;
  border-radius: 6px 6px 4px 4px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}
.bus-seat.male     { background: var(--tint-info-bg); border-color: var(--tint-info-bd); color: var(--tint-info-tx); }
.bus-seat.female   { background: var(--tint-primary); border-color: var(--tint-primary-tx); color: var(--tint-primary-tx); }
.bus-seat.booked   { background: var(--img-ph); border-color: var(--border); color: var(--text-muted); cursor: not-allowed; }
.bus-seat.selected { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.bus-seat.aisle    { background: transparent; border: none; cursor: default; }
.bus-driver { text-align: center; padding: 8px; background: var(--secondary); color: #fff; border-radius: 6px; font-size: .8rem; margin-bottom: 16px; }

/* ── Queue Token Card ──────────────────────────────────────────────────── */
.queue-token {
  background: linear-gradient(135deg, var(--secondary), var(--dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.queue-token .token-num { font-size: 4rem; font-weight: 900; color: var(--primary); }
.queue-token .wait      { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ── Utility ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.d-none { display: none; }
.hidden { visibility: hidden; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.bg-white { background: var(--bg-card); }
.w-100 { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── Hero extras ───────────────────────────────────────────────────────── */
.hero { padding: 72px 16px; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-sub { color: rgba(255,255,255,.78); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.hero-cat-pill {
  padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.9);
  font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22);
  transition: var(--transition); text-decoration: none;
}
.hero-cat-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; text-decoration: none; }
.hero-cities { display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 1.1rem; }
.hero-cities-lbl { color: rgba(255,255,255,.55); font-size: .8rem; }
.hero-city-link { color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.4); }
.hero-city-link:hover { color: #fff; border-bottom-color: #fff; text-decoration: none; }
.hero-trust { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 1.6rem; color: rgba(255,255,255,.7); font-size: .82rem; }
.hero-trust strong { color: #fff; }
.hero-trust-dot { color: rgba(255,255,255,.3); }

/* ── Section extras ────────────────────────────────────────────────────── */
.section--alt { background: var(--bg-alt); }
.section--primary { background: var(--secondary); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; text-align: left; }
.section-header h2 { margin-bottom: 0; }
.section-link { font-size: .88rem; color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.section-link:hover { text-decoration: underline; }

/* ── Event Card ────────────────────────────────────────────────────────── */
.event-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); }
.event-card-img {
  height: 185px; width: 100%; position: relative;
  background-size: cover; background-position: center; background-color: var(--img-ph);
}
/* Date badge overlay (top-left) — calendar-tile look used by leading ticketing apps */
.ec-date {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; padding: 5px 8px; border-radius: 10px;
  background: rgba(255,255,255,.95); color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.18); line-height: 1;
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.ec-date b { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
/* multi-day: "14–15 / AUG" tile, and cross-month spans render on one line */
.ec-date--multi b { font-size: .95rem; letter-spacing: -.01em; }
.ec-date--span { flex-direction: row; min-width: 0; }
.ec-date--span b { font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }
.ec-days {
  display: inline-block; margin-left: .3rem; padding: 1px 6px; border-radius: 999px;
  background: var(--tint-primary-bg, rgba(255,107,107,.12));
  color: var(--tint-primary-tx, var(--primary));
  font-size: .68rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle;
}
.event-card-img--placeholder {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  position: relative;
}
.event-card-img--placeholder::after { content: '🎪'; font-size: 2.6rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.event-card-body { padding: 14px 16px 16px; }
.event-card-title {
  font-size: .96rem; font-weight: 700; color: var(--ink); margin: 6px 0 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-card-meta { font-size: .79rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.event-card-price { font-size: .9rem; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.event-card-price strong { color: var(--primary); }
.price-free { color: var(--success); font-weight: 700; }

/* ── Event card wrapper (heart + urgency overlays) ─────────────────────── */
.event-card-wrap { position: relative; }
.ec-urgency {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: .66rem; font-weight: 700; padding: .25rem .5rem; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); letter-spacing: .01em;
}
.ec-wish {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 34px; height: 34px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: #c2c8d0; font-size: 1.05rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .12s ease, color .12s ease;
}
.ec-wish:hover { transform: scale(1.12); color: var(--primary); }
.ec-wish.is-on { color: var(--primary); }
.ec-wish.is-on:hover { color: var(--primary-dark); }
/* When a heart is present, nudge the urgency badge to the left so they don't overlap */
.event-card-wrap:has(.ec-wish) .ec-urgency { right: 50px; }

/* ── Listing-type badge (commerce vs info) ─────────────────────────────── */
.listing-badge {
  display: inline-flex; align-items: center; gap: .28em;
  font-size: .66rem; font-weight: 700; padding: .22rem .5rem; border-radius: 6px;
  letter-spacing: .01em; white-space: nowrap; line-height: 1.2;
}
.listing-badge.lb-buy  { background: var(--tint-primary-bg, #eef2ff); color: var(--tint-primary-tx, #4338ca); }

/* ── On-sale emphasis ──────────────────────────────────────────────────────
   A browse grid mixes community listings with events that actually sell
   tickets. Left alone, the info cards win the eye (a blue badge with nothing
   competing), so the revenue-earning events get skimmed past — worst on mobile
   where only one or two cards are visible at a time. Cards that can be bought
   from get an accent rail + a solid pill on the cover; info-only cards are
   quieted rather than shouted over, so the page still reads calm. */
.event-card.ec-onsale {
  border: 1px solid var(--primary, #e94560);
  box-shadow: 0 1px 3px rgba(233, 69, 96, .10), var(--shadow);
}
.event-card.ec-onsale:hover {
  box-shadow: 0 10px 28px rgba(233, 69, 96, .18), var(--shadow-lg);
}
.ec-sale-pill {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .3em;
  background: var(--primary, #e94560); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em;
  padding: .26rem .55rem; border-radius: 999px; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.ec-price-live { font-weight: 600; }
.ec-price-live strong { color: var(--primary, #e94560); font-size: 1.02em; }
/* Info-only: legible, just not competing for the same attention. */
.event-card.ec-infoonly .event-card-title { font-weight: 600; }
.event-card.ec-infoonly .listing-badge.lb-info {
  background: var(--tint-muted-bg, #f3f4f6); color: var(--text-muted, #6b7280);
}
@media (prefers-reduced-motion: no-preference) {
  .event-card.ec-onsale { transition: var(--transition); }
}
.listing-badge.lb-free { background: var(--tint-success-bg, #ecfdf5); color: var(--tint-success-tx, #047857); }
.listing-badge.lb-info { background: var(--tint-info-bg, #eff6ff);   color: var(--tint-info-tx, #1d4ed8); }

/* ── Featured / Sponsored ──────────────────────────────────────────────────
   Featuring has to read as a different KIND of signal from "on sale", or the
   two accents fight and neither means anything. On-sale owns the brand pink
   (see above); promotion owns amber. The ribbon sits bottom-right — the three
   other cover corners are already taken by the date tile, the urgency badge /
   wishlist heart, and the sale pill.
   Editorial picks say "Featured"; paid boosts say "Sponsored" and are toned
   down deliberately: a paid slot should be visible and honest, not dressed up
   as the platform's own recommendation. */
/* Border colour is written literally per theme rather than through var(--promo).
   Resolving the token inside the `border` shorthand left the card edge on the
   light amber after a theme flip while the ribbon moved to the dark one, so the
   two disagreed on the same card. Two plain declarations are unambiguous. */
.event-card.ec-featured {
  border: 1px solid #d97706;
  box-shadow: 0 1px 3px rgba(217, 119, 6, .12), var(--shadow);
}
[data-theme="dark"] .event-card.ec-featured { border-color: #f59e0b; }
.event-card.ec-featured:hover {
  box-shadow: 0 10px 28px rgba(217, 119, 6, .20), var(--shadow-lg);
}
.ec-promo {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .66rem; font-weight: 800; letter-spacing: .02em;
  padding: .26rem .55rem; border-radius: 999px; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
/* Dark ink on amber, not white: white-on-amber measures ~2.1:1, well under the
   4.5:1 floor, and this label sits on photography where it has to stay legible. */
.ec-promo--featured { background: var(--promo, #d97706); color: #1a1a2e; }
.ec-promo--sponsored {
  background: rgba(17, 24, 39, .78); color: #fff; font-weight: 700;
  backdrop-filter: saturate(140%) blur(2px);
}

/* Pinned strip above a browse grid. Labelled, and capped in the controller,
   so promotion never quietly becomes the whole page. */
.featured-strip { margin-bottom: 1.75rem; }
.featured-strip-head {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .85rem;
}
.featured-strip-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em;
}
.featured-strip-note { font-size: .78rem; color: var(--text-muted, #6b7280); }
.featured-strip + .events-grid { margin-top: 0; }

/* ── Instant-search suggestions ────────────────────────────────────────── */
.tk-suggest-form { position: relative; }
.tk-suggest-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.tk-sug-group-lbl {
  font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); padding: .55rem .85rem .25rem;
}
.tk-sug-item {
  display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem;
  cursor: pointer; color: var(--text); text-decoration: none; font-size: .9rem;
}
.tk-sug-item:hover, .tk-sug-item.is-active { background: var(--surface-3); }
.tk-sug-item .tk-sug-ico { font-size: 1rem; opacity: .8; }
.tk-sug-item .tk-sug-sub { font-size: .72rem; color: var(--text-muted); margin-left: auto; }
.tk-sug-empty { padding: .85rem; color: var(--text-muted); font-size: .85rem; text-align: center; }

/* ── Skeleton loading (home + list) ────────────────────────────────────── */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.sk-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.sk-card .sk-img { height: 185px; }
.sk-card .sk-body { padding: 14px 16px 16px; }
.sk-line { height: 12px; border-radius: 6px; margin-bottom: 9px; }
.sk-line.w-40 { width: 40%; } .sk-line.w-60 { width: 60%; } .sk-line.w-80 { width: 80%; }
.sk-img, .sk-line {
  background: linear-gradient(100deg, var(--sk-base) 30%, var(--sk-hi) 50%, var(--sk-base) 70%);
  background-size: 200% 100%; animation: sk-shimmer 1.2s ease-in-out infinite;
}
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Badge extras ──────────────────────────────────────────────────────── */
.badge-outline   { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.badge-secondary { background: var(--surface-2); color: var(--text); }

/* ── Features section ──────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.feature-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature-card h3 { font-size: 1rem; margin: 10px 0 6px; }
.feature-card p { font-size: .86rem; color: var(--text-muted); line-height: 1.55; margin: 0; }
.feature-icon { font-size: 2.4rem; display: block; }

/* ── Stats row ─────────────────────────────────────────────────────────── */
.stats-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; padding: 8px 0; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-lbl { font-size: .85rem; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ── Filters bar (events page) ─────────────────────────────────────────── */
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--bg-card); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.filters-bar input[type=search],
.filters-bar select {
  padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .875rem; outline: none; background: var(--input-bg); color: var(--text); cursor: pointer;
}
.filters-bar input[type=search]:focus,
.filters-bar select:focus { border-color: var(--primary); }
.filters-bar input[type=search] { flex: 1; min-width: 180px; }

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state h3 { margin: 14px 0 6px; color: var(--ink); }
.empty-state p { margin-bottom: 20px; }
.empty-state__ic {
  width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint-primary); color: var(--primary);
}
.empty-state__ic svg { width: 26px; height: 26px; }
.empty-state--compact { padding: 34px 16px; }

/* ── Pagination page-btn ───────────────────────────────────────────────── */
.page-btn {
  display: inline-block; padding: 7px 13px;
  border-radius: 6px; border: 1.5px solid var(--border);
  font-size: .88rem; color: var(--text); text-decoration: none; transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Event Detail ──────────────────────────────────────────────────────── */
.event-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: flex-start; }
.event-detail-main { min-width: 0; }
.event-detail-sidebar { position: sticky; top: 76px; }
.event-detail-header { margin: 20px 0 24px; }
.event-detail-header h1 { margin: 8px 0 12px; }
.event-meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--text-muted); }
.event-meta-row a { color: var(--text-muted); }
.event-meta-row a:hover { color: var(--primary); }
.event-banner {
  width: 100%; height: 340px; border-radius: var(--radius);
  background-size: cover; background-position: center; background-color: var(--dark);
}
.event-banner--placeholder {
  background: linear-gradient(135deg, var(--dark), var(--secondary));
  display: flex; align-items: center; justify-content: center;
}
.event-banner--placeholder::after { content: '🎪'; font-size: 4rem; }
.event-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.event-section:last-child { border-bottom: none; margin-bottom: 0; }
.event-section h3 { margin-bottom: 12px; }
.event-description { line-height: 1.75; color: var(--text); }
.event-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-thumb { height: 110px; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--img-ph); }

/* ── Ticket box ────────────────────────────────────────────────────────── */
.ticket-box { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

/* ── Checkout layout + order summary ───────────────────────────────────────
   These classes were used by the checkout markup but never had any CSS, so the
   summary rendered as unstyled stacked blocks: labels and amounts on separate
   lines, nothing aligned, no visual separation between line items and totals.
   Amounts are tabular-figure aligned right so the column reads as a column. */
.checkout-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr);
  gap: 1.75rem; align-items: start; margin-top: 1.25rem;
}
.checkout-main { min-width: 0; }
.checkout-sidebar { position: sticky; top: 84px; align-self: start; }
.checkout-section { margin-bottom: 1.5rem; }
.checkout-section > h3 {
  font-size: .95rem; font-weight: 700; margin: 0 0 .25rem;
}
.ticket-box > h3 {
  font-size: 1rem; font-weight: 700; margin: 0 0 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.order-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .4rem 0; font-size: .9rem;
}
.order-summary-row > :last-child {
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
/* Line items sit slightly apart from the fee rows that follow. */
.order-summary-row > div:first-child { min-width: 0; }
.ticket-box hr {
  border: 0; border-top: 1px solid var(--border); margin: .85rem 0;
}
/* Grand total: the one number that should be unmissable. */
.order-summary-row:last-of-type {
  margin-top: .35rem; padding-top: .75rem;
  border-top: 2px solid var(--border);
}
@media (max-width: 900px) {
  /* Summary first on mobile: the buyer should see what they are paying for
     before the form, and a sticky sidebar in a single column just wastes the
     viewport. */
  .checkout-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .checkout-sidebar { position: static; order: -1; }
}
.ticket-box h3, .ticket-box h4 { margin-bottom: 14px; }
.ticket-type-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.ticket-type-row--sold { opacity: .6; }
.ticket-type-row:last-of-type { border-bottom: none; }
.ticket-type-name { font-weight: 600; font-size: .93rem; }
.ticket-type-desc { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.ticket-type-price { font-weight: 700; color: var(--primary); margin-top: 4px; font-size: .93rem; }
.ticket-type-urgency { font-size: .77rem; color: var(--danger); font-weight: 600; margin-top: 2px; }
.qty-select { padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-size: .9rem; background: var(--input-bg); }
.promo-row { display: flex; gap: 8px; margin-top: 14px; }
.event-info-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.event-info-list li { font-size: .88rem; color: var(--text); }

/* ── Reviews ───────────────────────────────────────────────────────────── */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { background: var(--surface-2); border-radius: 8px; padding: 14px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-rating { color: var(--warning); letter-spacing: 2px; }
.review-item p { font-size: .9rem; color: var(--text); margin: 0; }

/* ── VQ Banner ─────────────────────────────────────────────────────────── */
.vq-banner { background: var(--tint-danger-bg); border-bottom: 2px solid var(--tint-danger-bd); padding: 10px 0; text-align: center; font-size: .9rem; color: var(--tint-danger-tx); }

/* ── Auth Pages (Login / Register / Forgot) ────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 60%, var(--secondary) 100%);
}
.auth-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.auth-logo {
  font-size: 1.7rem; font-weight: 800; text-align: center;
  margin-bottom: 8px; color: var(--ink); letter-spacing: .5px;
}
.auth-logo span { color: var(--primary); }
.auth-card h2 { text-align: center; margin-bottom: 4px; font-size: 1.3rem; }
.auth-card > .text-muted { text-align: center; }
.auth-card .form-group label { font-size: .88rem; color: var(--text); }
.auth-card input:not([type=checkbox]):not([type=submit]) {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .95rem; outline: none; transition: border-color .2s;
  background: var(--input-bg); color: var(--text);
}
.auth-card input:not([type=checkbox]):not([type=submit]):focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(233,69,96,.1);
}
.auth-divider {
  text-align: center; color: var(--text-muted); font-size: .82rem;
  margin: 16px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Customer dashboard design system (.dash-*) — shared across My Tickets,
   Bookings, Wallet, Transactions, Refunds, Profile, Notifications.
   One consistent look: page header + cards + list rows + empty states.
   ════════════════════════════════════════════════════════════════════════ */
.dash { padding: 2rem 0 3.5rem; }
.dash-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.dash-head h1 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.dash-head .dash-sub { color: var(--text-muted); font-size: .92rem; margin-top: .25rem; }
.dash-head-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Summary stat strip */
.dash-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.dash-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
}
.dash-stat .v { font-size: 1.55rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.dash-stat .l { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; text-transform: uppercase; letter-spacing: .03em; }
.dash-stat.accent .v { color: var(--primary); }

/* Pill tab bar (filters) */
.dash-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dash-tab {
  padding: .5rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border);
  transition: var(--transition); white-space: nowrap;
}
.dash-tab:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.dash-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Generic card */
.dash-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}

/* List row (transactions, refunds, notifications) */
.dash-list { display: flex; flex-direction: column; gap: .65rem; }
.dash-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow);
  transition: var(--transition);
}
.dash-row:hover { box-shadow: var(--shadow-lg); }
.dash-row-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: var(--surface-2); color: var(--code-ink);
}
.dash-row-icon.in  { background: var(--tint-success-bg); color: var(--tint-success-tx); }
.dash-row-icon.out { background: var(--tint-danger-bg); color: var(--tint-danger-tx); }
.dash-row-main { flex: 1; min-width: 0; }
.dash-row-title { font-weight: 600; color: var(--ink); font-size: .95rem; }
.dash-row-meta { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }
.dash-row-amt { font-weight: 800; font-size: 1.02rem; white-space: nowrap; text-align: right; }
.dash-row-amt.in  { color: var(--tint-success-tx); }
.dash-row-amt.out { color: var(--ink); }
.dash-row-amt small { display: block; font-weight: 500; font-size: .72rem; color: var(--text-muted); }

/* Improved ticket card (used by My Tickets) */
.ticket-card-left { flex: 1; padding: 1.1rem 1.3rem; min-width: 0; }
.ticket-card-right {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  padding: 1.1rem 1.3rem; border-left: 2px dashed var(--border); text-align: right; min-width: 150px;
}
.ticket-card-event { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.ticket-card-type { color: var(--primary); font-weight: 600; font-size: .9rem; margin-top: .2rem; }
.ticket-card-meta { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; }
.ticket-card-uid {
  font-family: 'Courier New', monospace; font-size: .82rem; color: var(--code-ink);
  margin-top: .55rem; background: var(--surface-2); padding: .25rem .55rem; border-radius: 6px; display: inline-block;
}
.ticket-card--dim { opacity: .72; }

@media (max-width: 640px) {
  .ticket-card-right { border-left: none; border-top: 2px dashed var(--border); align-items: flex-start; text-align: left; min-width: unset; width: 100%; }
  .dash-row { flex-wrap: wrap; }
  .dash-row-amt { text-align: left; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .event-detail-layout { grid-template-columns: 1fr; }
  .event-detail-sidebar { position: static; }
}
@media (max-width: 640px) {
  .section { padding: 32px 0; }
  .hero { padding: 44px 16px; }
  .event-banner { height: 220px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .ticket-card { flex-direction: column; }
  .ticket-left { min-width: unset; flex-direction: row; justify-content: space-around; }
  .events-grid { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
  .filters-bar { padding: 12px; }
  .filters-bar input[type=search] { min-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   TK UI Kit — toasts + confirm modal (paired with the kit in js/app.js)
   ══════════════════════════════════════════════════════════════════════ */
#tk-toasts {
  position: fixed; top: 18px; right: 18px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(380px, calc(100vw - 36px)); pointer-events: none;
}
.tk-toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: #1a1a2e; color: #f1f5f9;
  padding: .8rem 1rem; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: .88rem; line-height: 1.45; cursor: pointer;
  border-left: 4px solid var(--info, #3b82f6);
  pointer-events: auto;
  animation: tkToastIn .28s cubic-bezier(.21,1.02,.73,1) both;
}
.tk-toast--success { border-left-color: var(--success, #10b981); }
.tk-toast--error   { border-left-color: var(--danger, #ef4444); }
.tk-toast--warning { border-left-color: var(--warning, #f59e0b); }
.tk-toast--info    { border-left-color: var(--info, #3b82f6); }
.tk-toast__ic { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; }
.tk-toast__ic svg { width: 100%; height: 100%; display: block; }
.tk-toast--success .tk-toast__ic { color: #34d399; }
.tk-toast--error   .tk-toast__ic { color: #f87171; }
.tk-toast--warning .tk-toast__ic { color: #fbbf24; }
.tk-toast--info    .tk-toast__ic { color: #60a5fa; }
.tk-toast__msg { word-break: break-word; }
.tk-toast--out { animation: tkToastOut .2s ease forwards; }
@keyframes tkToastIn  { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes tkToastOut { to { opacity: 0; transform: translateX(24px); } }

.tk-modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 18, 34, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: tkFadeIn .16s ease both;
}
.tk-modal-backdrop--out { animation: tkFadeOut .16s ease forwards; }
.tk-modal {
  background: var(--bg-card); color: var(--text, #2d2d2d);
  border-radius: 16px; padding: 1.4rem 1.5rem 1.25rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: tkModalIn .2s cubic-bezier(.21,1.02,.73,1) both;
}
.tk-modal__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.tk-modal__ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.tk-modal__ic svg { width: 20px; height: 20px; }
.tk-modal__ic--danger  { background: var(--tint-danger-bg); color: var(--danger); }
.tk-modal__ic--primary { background: var(--tint-primary); color: var(--primary); }
.tk-modal__title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--ink); }
.tk-modal__msg { margin: 0 0 1.1rem; font-size: .9rem; line-height: 1.55; color: var(--text-muted, #6b7280); white-space: pre-line; }
.tk-modal__actions { display: flex; justify-content: flex-end; gap: .6rem; }
.tk-btn {
  appearance: none; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-size: .88rem; font-weight: 600;
  padding: .55rem 1.1rem; border-radius: 9px;
  transition: all .15s ease;
}
.tk-btn--primary { background: #e94560; color: #fff; }
.tk-btn--primary:hover { background: #c73252; }
.tk-btn--danger { background: #dc2626; color: #fff; }
.tk-btn--danger:hover { background: #b91c1c; }
.tk-btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.tk-btn--ghost:hover { background: var(--surface-3); }
@keyframes tkFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes tkFadeOut { to { opacity: 0; } }
@keyframes tkModalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── Accessible focus ring (keyboard only) ─────────────────────────────── */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233,69,96,.25);
  border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(233,69,96,.12);
  border-color: #e94560;
}

/* ── Inline SVG icon helper ────────────────────────────────────────────── */
.ic {
  width: 1.05em; height: 1.05em; vertical-align: -0.18em;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; display: inline-block;
}

/* ── Dark-mode toggle (navbar) ─────────────────────────────────────────── */
.theme-toggle {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: rgba(255,255,255,.85); display: inline-flex; align-items: center;
  border-radius: 8px; transition: var(--transition); line-height: 1;
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,.1); }
.theme-toggle__sun  { display: none; }
[data-theme="dark"] .theme-toggle__sun  { display: inline-block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ── TK date-time picker (kit convention: duplicated in admin.css) ──
   Native datetime-local stays in the DOM (invisible, focusable — keeps
   required/min validation); .dtp-display is the visible day-first field. */
.dtp { position: relative; }
.dtp-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0; }
.dtp-display {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 14px; border: 2px solid var(--border, #e5e7eb); border-radius: 8px;
  background: var(--input-bg, #fff); color: var(--text, #2d2d2d);
  font-size: .95rem; font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s;
}
.dtp-display:focus { outline: none; border-color: var(--primary, #e94560); box-shadow: 0 0 0 3px rgba(233,69,96,.12); }
.dtp-ph { color: var(--text-muted, #888); }
.dtp-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 2100; /* above .tk-modal (2000) */
  width: 280px; padding: 12px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.dtp-pop.up { top: auto; bottom: calc(100% + 6px); }
.dtp-pop.dtp-fixed { position: fixed; }
.dtp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dtp-head b { font-size: .92rem; color: var(--text, #2d2d2d); }
.dtp-nav { border: 0; background: var(--surface-2, #f3f4f6); color: var(--text, #2d2d2d); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.dtp-nav:hover { background: var(--surface-3, #e5e7eb); }
.dtp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dtp-dow { font-size: .68rem; font-weight: 700; color: var(--text-muted, #888); text-transform: uppercase; padding: 4px 0; }
.dtp-day { border: 0; background: transparent; color: var(--text, #2d2d2d); font-size: .85rem; font-family: inherit; padding: 6px 0; border-radius: 8px; cursor: pointer; }
.dtp-day:hover { background: var(--surface-2, #f3f4f6); }
.dtp-day.is-today { box-shadow: inset 0 0 0 1px var(--primary, #e94560); }
.dtp-day.is-sel { background: var(--primary, #e94560); color: #fff; font-weight: 700; }
.dtp-day.is-sel:hover { background: var(--primary, #e94560); }
.dtp-day:disabled { opacity: .3; cursor: default; background: transparent; }
.dtp-time { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.dtp-time select { flex: 1; min-width: 0; padding: 7px 8px; border: 2px solid var(--border, #e5e7eb); border-radius: 8px; background: var(--input-bg, #fff); color: var(--text, #2d2d2d); font-size: .88rem; font-family: inherit; }
.dtp-colon { font-weight: 700; color: var(--text-muted, #888); }
.dtp-ampm { display: flex; flex: none; border: 2px solid var(--border, #e5e7eb); border-radius: 8px; overflow: hidden; }
.dtp-ampm button { border: 0; background: transparent; color: var(--text-muted, #888); padding: 7px 10px; font-size: .8rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.dtp-ampm button.on { background: var(--primary, #e94560); color: #fff; }
.dtp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.dtp-link { border: 0; background: transparent; color: var(--primary, #e94560); font-weight: 600; font-size: .85rem; font-family: inherit; cursor: pointer; padding: 4px 2px; }
.dtp-done { border: 0; background: var(--primary, #e94560); color: #fff; font-weight: 700; font-size: .85rem; font-family: inherit; padding: 7px 16px; border-radius: 8px; cursor: pointer; }

/* ── Poster lightbox (TK.lightbox) ─────────────────────────────────────
   Full-viewport image viewer: fit to window, aspect ratio preserved.
   Keep the dark scrim literal — it must look identical in both themes. */
.tk-lb {
  position: fixed; inset: 0; z-index: 2100;
  background: rgba(10, 12, 24, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 28px; opacity: 0; transition: opacity .18s ease;
}
.tk-lb.open { opacity: 1; }
.tk-lb__img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; box-shadow: 0 14px 60px rgba(0,0,0,.55);
}
.tk-lb__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); cursor: pointer;
  font-size: 1.05rem; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: background .15s;
}
.tk-lb__close:hover { background: rgba(255,255,255,.25); }

/* ── Blur-fill poster frame ────────────────────────────────────────────
   Shows the FULL image (contain) over a blurred cover-fit copy of itself,
   so odd aspect ratios look intentional instead of cropped or letterboxed
   on flat black. Pair with data-lightbox for click-to-expand. */
.blur-frame { position: relative; overflow: hidden; }
.blur-frame__bg {
  position: absolute; inset: -22px;
  background-size: cover; background-position: center;
  filter: blur(20px) brightness(.72); transform: scale(1.12);
}
.blur-frame__img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
[data-lightbox] { cursor: zoom-in; }
.lb-expand {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15, 17, 34, .62); color: #fff;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: 6px 11px; font-size: .76rem; font-weight: 600;
  backdrop-filter: blur(4px); pointer-events: none;
  transition: background .15s;
}
[data-lightbox]:hover .lb-expand { background: rgba(15, 17, 34, .85); }
.lb-expand .ic { width: .95em; height: .95em; }
