:root {
  --brand: #4c6fff;
  --brand-dark: #3b5ce6;
  --brand-soft: #eef2ff;
  --violet: #7c5cff;
  --accent: #ff5a3d;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e8edf5;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --warn: #d97706;
  --warn-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --radius: 16px;
  --nav-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }

.btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  transition: .18s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(76, 111, 255, .28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-block { width: 100%; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eef2f7; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.04em;
  color: var(--ink);
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.nav-links { display: flex; gap: 18px; font-weight: 600; font-size: 14px; color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 42px; height: 42px; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 72px 0 88px;
  background:
    linear-gradient(120deg, rgba(15,23,42,.82), rgba(76,111,255,.55)),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -.05em;
  line-height: 1.05;
  max-width: 14ch;
}
.hero .lead { max-width: 46ch; color: rgba(255,255,255,.86); font-size: 18px; margin: 14px 0 28px; }
.search-card {
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.search-card .form-control, .search-card .form-select { border-radius: 12px; border-color: var(--line); min-height: 48px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat-row b { display: block; font-size: 28px; letter-spacing: -.03em; }

.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }
.eyebrow { color: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.cat-card, .event-card, .panel, .speaker-card, .price-card, .venue-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cat-card {
  padding: 22px 18px;
  text-align: center;
  transition: .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card .icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 22px;
}
.cat-card-photo {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 0;
  text-align: left;
  color: #fff;
  border: 0;
}
.cat-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.cat-card-photo:hover img { transform: scale(1.06); }
.cat-card-photo .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.1) 20%, rgba(15,23,42,.82));
}
.cat-card-photo .copy {
  position: relative;
  z-index: 1;
  padding: 18px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cat-card-photo .icon {
  width: 42px; height: 42px; margin: 0 0 10px; background: rgba(255,255,255,.16);
  color: #fff; backdrop-filter: blur(8px);
}
.cat-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  transition: .18s ease;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.cat-chip i { color: var(--brand); }
.featured-spot {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  min-height: 420px;
}
.featured-spot .media { position: relative; min-height: 320px; }
.featured-spot .media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-spot .copy { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-spot .copy h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; margin: 10px 0 12px; }
.event-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.event-card.featured-spot {
  display: grid;
  flex-direction: unset;
}
.event-card .thumb { position: relative; height: 180px; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card .meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; }
.fav {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: var(--muted); display: grid; place-items: center;
}
.fav.active { color: var(--accent); }
.price { font-weight: 800; color: var(--ink); }
.how-step { padding: 22px; height: 100%; }
.how-step .num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.quote-card { padding: 24px; height: 100%; }
.footer {
  background: var(--ink); color: #cbd5e1; padding: 56px 0 24px;
}
.footer a:hover { color: #fff; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 12px; }

.page-hero {
  padding: 36px 0 20px;
  background: linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.filter-card { padding: 18px; position: sticky; top: 92px; }
.event-banner { height: 380px; border-radius: 24px; overflow: hidden; position: relative; }
.event-banner img { width: 100%; height: 100%; object-fit: cover; }
.event-banner .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(15,23,42,.72));
  color: #fff; display: flex; align-items: end; padding: 28px;
}
.timeline { border-left: 2px solid var(--brand-soft); padding-left: 18px; }
.timeline .item { margin-bottom: 16px; position: relative; }
.timeline .item::before {
  content: ""; width: 10px; height: 10px; background: var(--brand); border-radius: 50%;
  position: absolute; left: -24px; top: 6px;
}
.price-card { padding: 22px; height: 100%; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.map-ph {
  height: 220px; border-radius: 16px; background:
    linear-gradient(135deg, #dbeafe, #e0e7ff);
  display: grid; place-items: center; color: var(--muted); border: 1px dashed #c7d2fe;
}

.ticket {
  width: min(420px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.ticket-top {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff; padding: 24px;
}
.ticket::after {
  content: ""; position: absolute; left: 0; right: 0; top: 58%;
  border-top: 2px dashed var(--line);
}
.ticket-body { padding: 28px 24px 24px; }
.qr-box { width: 148px; height: 148px; margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 8px; border-radius: 12px; }
.qr-box svg { width: 100%; height: 100%; }

.dash-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #cbd5e1; padding: 22px 14px; position: sticky; top: 0; height: 100vh;
}
.sidebar a, .sidebar button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  color: #cbd5e1; background: none; border: 0; width: 100%; text-align: left; font-weight: 600;
}
.sidebar a.active, .sidebar a:hover { background: rgba(76,111,255,.18); color: #fff; }
.sidebar .label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #64748b; margin: 16px 12px 8px; }
.dash-main { min-width: 0; }
.topbar {
  height: 68px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px; position: sticky; top: 0; z-index: 20;
}
.kpi { padding: 18px; }
.kpi b { display: block; font-size: 28px; letter-spacing: -.04em; margin: 6px 0; }
.table-card { overflow: auto; }
.table { margin: 0; }
.table th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wizard-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.wizard-steps span {
  padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted);
}
.wizard-steps span.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.wizard-steps span.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; }

.success-mark {
  width: 84px; height: 84px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center; font-size: 36px; margin: 0 auto 16px;
}
.pay-method { border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; }
.pay-method.active { border-color: var(--brand); background: var(--brand-soft); }
.notif { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; }
.toast-item { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; }

.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}
.enquiry-modal[hidden] { display: none !important; }
.enquiry-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: rise .35s ease;
}
.enquiry-dialog .form-control {
  border-radius: 12px;
  border-color: var(--line);
  min-height: 46px;
}

.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-art {
  background: linear-gradient(160deg, #0f172a, #4c6fff);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
}

@media (max-width: 991px) {
  .nav-links, .nav-actions .hide-sm { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-nav { display: none; }
  .mobile-nav.open { display: block; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 16px; }
  .stat-row, .dash-shell, .auth-split { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; }
  .filter-card { position: static; }
  .event-banner { height: 240px; }
  .featured-spot { grid-template-columns: 1fr; }
}

/* Motion */
.hero { animation: heroFade .8s ease both; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: sheen 6s linear infinite;
}
.hero > .container { position: relative; z-index: 1; }
.search-card { animation: rise .7s .15s ease both; }
.stat-row > div { animation: rise .6s ease both; }
.stat-row > div:nth-child(2) { animation-delay: .08s; }
.stat-row > div:nth-child(3) { animation-delay: .16s; }
.stat-row > div:nth-child(4) { animation-delay: .24s; }

.highlights-marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
}
.highlights-marquee.light {
  background: #fff;
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.marquee-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
}
.highlights-marquee { position: relative; }
.highlights-marquee.light .marquee-label { background: var(--brand); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 14px 0 14px 132px;
  animation: marquee 32s linear infinite;
}
.highlights-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.reverse { animation-name: marquee-rev; animation-duration: 38s; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  padding: 0 28px;
  font-weight: 700;
  font-size: 14px;
}
.marquee-item i { color: var(--accent); }
.highlights-marquee.light .marquee-item i { color: var(--brand); }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: pulse 1.6s infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .55s ease forwards;
}
#home-cats > [class*="col-"]:nth-child(1) { animation-delay: .05s; }
#home-cats > [class*="col-"]:nth-child(2) { animation-delay: .1s; }
#home-cats > [class*="col-"]:nth-child(3) { animation-delay: .15s; }
#home-cats > [class*="col-"]:nth-child(4) { animation-delay: .2s; }
#home-cats > [class*="col-"]:nth-child(5) { animation-delay: .25s; }
#home-cats > [class*="col-"]:nth-child(6) { animation-delay: .3s; }
#home-cats > [class*="col-"]:nth-child(7) { animation-delay: .35s; }
#home-cats > [class*="col-"]:nth-child(8) { animation-delay: .4s; }
#home-events > [class*="col-"] { animation: rise .55s ease both; }
#home-events > [class*="col-"]:nth-child(2) { animation-delay: .08s; }
#home-events > [class*="col-"]:nth-child(3) { animation-delay: .16s; }
#home-events > [class*="col-"]:nth-child(4) { animation-delay: .24s; }
#home-events > [class*="col-"]:nth-child(5) { animation-delay: .32s; }
#home-events > [class*="col-"]:nth-child(6) { animation-delay: .4s; }
#home-spotlight { animation: rise .6s ease both; }
.cat-chip { animation: rise .45s ease both; }

.how-step { transition: transform .25s ease, box-shadow .25s ease; }
.how-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.how-step .num { animation: pop .6s ease both; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroFade {
  from { opacity: .65; }
  to { opacity: 1; }
}
@keyframes sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes pop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero::after, .search-card, .stat-row > div, .marquee-track, .reveal,
  #home-cats > [class*="col-"], #home-events > [class*="col-"], #home-spotlight, .cat-chip, .live-dot, .how-step .num {
    animation: none !important;
  }
  .reveal, #home-cats > [class*="col-"], #home-events > [class*="col-"] { opacity: 1; transform: none; }
}
