/* ============================================================
   BuyUrTicket – app.css
   ============================================================ */

:root {
  --ink:      #0a0a0f;
  --paper:    #f5f3ee;
  --white:    #ffffff;
  --accent:   #ff4d1c;
  --accent2:  #1c6fff;
  --gold:     #f5c842;
  --muted:    #7a7870;
  --border:   #e0ddd6;
  --success:  #1ab87a;
  --error:    #e53e3e;
  --warning:  #f5a623;
  --card-bg:  #ffffff;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 16px 48px rgba(0,0,0,.14);
  --font-h:   'Syne', sans-serif;
  --font-b:   'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,243,238,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 32px; height: 64px; gap: 24px;
}
.nav-brand {
  font-family: var(--font-h); font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-link {
  font-size: .88rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: all .2s;
}
.nav-link:hover, .nav-link.active { background: var(--border); color: var(--ink); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }

/* user dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-b); font-size: .88rem; font-weight: 500;
  background: var(--border); border: none; border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}
.nav-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 180px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block; padding: 11px 18px; font-size: .88rem;
  transition: background .15s;
}
.nav-dropdown a:hover { background: var(--paper); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content { min-height: calc(100vh - 64px - 280px); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-b); font-weight: 600; font-size: .92rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--accent);  color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #d93c0e; border-color: #d93c0e; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-outline   { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-card {
  background: var(--white); border-radius: 20px;
  padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form-title { font-family: var(--font-h); font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.form-sub   { font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label       { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.required::after { content: ' *'; color: var(--error); }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=time], input[type=url],
input[type=search], select, textarea {
  width: 100%; font-family: var(--font-b); font-size: .92rem;
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--paper);
  color: var(--ink); transition: border-color .2s, box-shadow .2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(28,111,255,.12);
}
textarea { resize: vertical; min-height: 100px; }
.form-hint  { font-size: .76rem; color: var(--muted); margin-top: 5px; }
.form-error { font-size: .76rem; color: var(--error); margin-top: 5px; }
.input-group { position: relative; }
.input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: .85rem; color: var(--muted); pointer-events: none;
}
.input-group input { padding-left: 44px; }
.slug-preview {
  font-family: monospace; font-size: .78rem; color: var(--accent2);
  background: #f0f5ff; padding: 5px 10px; border-radius: 6px; margin-top: 5px;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }

/* ── EVENT CARD ────────────────────────────────────────────── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card { display: flex; flex-direction: column; }
.event-card-img {
  height: 168px; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.event-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 10px;
}
.tag-tech      { background: #e8f0ff; color: var(--accent2); }
.tag-music     { background: #fff0eb; color: var(--accent); }
.tag-business  { background: #e8fff5; color: var(--success); }
.tag-art       { background: #fef9e7; color: #b8860b; }
.tag-sports    { background: #f0fff0; color: #2d8a4e; }
.tag-food      { background: #fff5f0; color: #d25a00; }
.tag-health    { background: #f0f8ff; color: #1a6e9e; }
.tag-education { background: #f8f0ff; color: #7b2fbe; }
.tag-other     { background: #f4f4f4; color: #555; }

.event-card h3 { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.event-meta    { font-size: .8rem; color: var(--muted); line-height: 1.7; flex: 1; }
.event-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border);
}
.event-price { font-family: var(--font-h); font-size: 1.1rem; font-weight: 700; }
.event-price.free { color: var(--success); }
.capacity-bar { height: 4px; background: var(--border); border-radius: 4px; margin: 8px 0; overflow: hidden; }
.capacity-fill { height: 100%; background: var(--accent2); border-radius: 4px; transition: width .5s; }
.capacity-fill.near { background: var(--accent); }

/* ── BADGE ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.badge-success { background: #e8fff5; color: var(--success); }
.badge-error   { background: #fff0f0; color: var(--error); }
.badge-warning { background: #fff8e6; color: var(--warning); }
.badge-info    { background: #e8f0ff; color: var(--accent2); }
.badge-live    { background: var(--success); color: #fff; animation: pulseBadge 2s infinite; }
@keyframes pulseBadge { 0%,100%{box-shadow:0 0 0 0 rgba(26,184,122,.4)} 50%{box-shadow:0 0 0 6px rgba(26,184,122,0)} }

/* ── SECTION ────────────────────────────────────────────────── */
.section     { padding: 64px 0; }
.section-sm  { padding: 36px 0; }
.section-eyebrow { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.section-title   { font-family: var(--font-h); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -1.5px; }
.section-sub     { font-size: .95rem; color: var(--muted); margin-top: 8px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; padding: 80px 0 60px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--ink); font-size: .74rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-h); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -2.5px;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.05rem; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── STATS BAR ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--ink); display: flex; justify-content: center;
}
.stat-item { flex: 1; max-width: 200px; padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--gold); display: block; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header { padding: 48px 0 32px; }
.page-header h1 { font-family: var(--font-h); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -1.5px; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--accent2); }
.breadcrumb span::before { content: ' / '; }

/* ── EVENT DETAIL ───────────────────────────────────────────── */
.event-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.event-banner { height: 340px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 6rem; margin-bottom: 32px; }
.event-detail h1 { font-family: var(--font-h); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.event-info-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; }
.event-info-icon { font-size: 1.1rem; flex-shrink: 0; }
.event-description { font-size: .95rem; line-height: 1.8; color: #333; margin-top: 28px; }
.event-description h2 { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; margin: 20px 0 8px; }

/* Register sidebar */
.register-sidebar { position: sticky; top: 80px; }
.register-card { background: var(--white); border-radius: 20px; padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.register-price { font-family: var(--font-h); font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.register-price.free { color: var(--success); }
.custom-link-box {
  background: #f0f5ff; border: 1px dashed var(--accent2); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-size: .82rem;
}
.custom-link-box a { color: var(--accent2); font-weight: 600; word-break: break-all; }

/* ── TICKET ─────────────────────────────────────────────────── */
.ticket-wrapper { display: flex; justify-content: center; padding: 20px 0; }
.ticket {
  background: var(--white); border-radius: 20px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden;
}
.ticket-header { background: var(--ink); color: var(--paper); padding: 24px 28px; }
.ticket-brand  { font-family: var(--font-h); font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .5; margin-bottom: 12px; }
.ticket-event-name { font-family: var(--font-h); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 6px; }
.ticket-organizer  { font-size: .82rem; opacity: .6; }
.ticket-divider {
  position: relative; border-top: 2px dashed var(--border);
}
.ticket-divider::before, .ticket-divider::after {
  content: ''; position: absolute; top: -12px;
  width: 22px; height: 22px; background: var(--paper);
  border-radius: 50%; border: 1px solid var(--border);
}
.ticket-divider::before { left: -11px; }
.ticket-divider::after  { right: -11px; }
.ticket-body { padding: 24px 28px; }
.ticket-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; padding: 6px 14px;
  border-radius: 999px; margin-bottom: 18px;
}
.ticket-status-valid    { background: #e8fff5; color: var(--success); }
.ticket-status-used     { background: #fff0f0; color: var(--error); }
.ticket-status-cancelled{ background: #f4f4f4; color: var(--muted); }
.ticket-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ticket-meta-item label { font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: block; margin-bottom: 2px; }
.ticket-meta-item span  { font-family: var(--font-h); font-size: .92rem; font-weight: 700; }
.ticket-qr { display: flex; flex-direction: column; align-items: center; background: var(--paper); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.ticket-qr-id { margin-top: 10px; font-family: monospace; font-size: .74rem; color: var(--muted); letter-spacing: 1px; }
.ticket-footer { padding: 14px 28px; background: #f9f7f2; border-top: 1px solid var(--border); text-align: center; font-size: .74rem; color: var(--muted); }

/* ── SCANNER ────────────────────────────────────────────────── */
.scanner-card { background: var(--white); border-radius: 20px; padding: 32px; border: 1px solid var(--border); max-width: 520px; margin: 0 auto; }
.scanner-viewport { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; margin-bottom: 20px; }
#scanner-video { width: 100%; height: 100%; object-fit: cover; }
.scanner-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.scanner-frame {
  width: 200px; height: 200px; border: 3px solid var(--accent); border-radius: 16px;
  box-shadow: 0 0 0 2000px rgba(0,0,0,.5);
  animation: scanPulse 2s ease-in-out infinite;
}
@keyframes scanPulse {
  0%,100% { border-color:var(--accent); box-shadow: 0 0 0 2000px rgba(0,0,0,.5), 0 0 20px var(--accent); }
  50%     { border-color:var(--gold);   box-shadow: 0 0 0 2000px rgba(0,0,0,.5), 0 0 30px var(--gold); }
}
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanLine 2s linear infinite;
}
@keyframes scanLine {
  0%   { top: calc(50% - 100px); opacity: 1; }
  100% { top: calc(50% + 100px); opacity: .3; }
}
.scan-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: #fff; background: #111; }
.scan-result { border-radius: 12px; padding: 18px; margin-top: 16px; border: 2px solid; display: none; }
.scan-result.shown { display: block; }
.scan-result.valid   { border-color: var(--success); background: #e8fff5; }
.scan-result.invalid { border-color: var(--error);   background: #fff0f0; }
.scan-result-name   { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; }
.scan-result-detail { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.scan-result-badge  { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-top: 8px; }
.scan-result-badge.ok  { background: var(--success); color: #fff; }
.scan-result-badge.err { background: var(--error);   color: #fff; }
.attendance-log { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.log-entry { display: flex; justify-content: space-between; align-items: center; background: var(--paper); padding: 10px 14px; border-radius: 8px; font-size: .82rem; }

/* ── DASHBOARD ──────────────────────────────────────────────── */
.dash-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-card   { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.dash-num    { font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; color: var(--ink); }
.dash-label  { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.dash-trend  { font-size: .75rem; margin-top: 6px; }
.dash-trend.up   { color: var(--success); }
.dash-trend.down { color: var(--error); }
.data-table  { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { font-weight: 700; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--paper); }

/* ── TABS ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn { font-family: var(--font-b); font-size: .88rem; font-weight: 600; padding: 12px 20px; border: none; background: none; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
  font-size: .88rem; font-weight: 600; width: 38px; height: 38px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); color: var(--muted); transition: all .2s;
}
.page-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.page-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--paper); padding: 14px 20px;
  border-radius: 12px; font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-lg); transform: translateX(120%);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  max-width: 320px; display: flex; align-items: center; gap: 10px;
}
.toast.show  { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 56px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-h); font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: .85rem; line-height: 1.7; opacity: .6; }
.footer-heading { font-weight: 700; color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer a { display: block; font-size: .85rem; margin-bottom: 10px; opacity: .6; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; opacity: .5; flex-wrap: wrap; gap: 8px; }

/* ── FLASH ──────────────────────────────────────────────────── */
.flash { border-radius: 10px; padding: 14px 18px; font-size: .9rem; margin-bottom: 20px; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(10,10,15,.75); backdrop-filter: blur(4px); justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: 20px; padding: 36px; width: 100%; max-width: 480px; position: relative; animation: modalIn .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes modalIn { from{transform:scale(.88);opacity:0} to{transform:scale(1);opacity:1} }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: none; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-h); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }

/* ── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.filter-chip {
  font-size: .8rem; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--white); color: var(--muted);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.filter-chip:hover { border-color: var(--accent2); color: var(--accent2); }
.filter-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── ALERT ──────────────────────────────────────────────────── */
.alert { border-radius: 10px; padding: 14px 18px; font-size: .9rem; margin-bottom: 16px; }
.alert-info    { background: #e8f0ff; border-left: 4px solid var(--accent2); color: #1a3a7a; }
.alert-success { background: #e8fff5; border-left: 4px solid var(--success); color: #0d5c3a; }
.alert-error   { background: #fff0f0; border-left: 4px solid var(--error);   color: #7a0d0d; }
.alert-warning { background: #fff8e6; border-left: 4px solid var(--warning); color: #7a4a00; }

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .navbar, .site-footer, .btn, .no-print { display: none !important; }
  .ticket { box-shadow: none !important; }
  body { background: #fff; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .event-detail-grid { grid-template-columns: 1fr; }
  .register-sidebar  { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--border); padding: 12px 16px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 45%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
}
