/* ==========================================================================
   Lilka — shared styles
   Discover. Create. Experience.
   ========================================================================== */

:root {
  /* Brand */
  --violet: #6B46FF;
  --violet-dark: #4B2FD1;
  --violet-soft: #F0ECFF;
  --violet-tint: #E8E1FF;
  --violet-ink: #3A22B0;
  --violet-light: #8F74FF;
  --pink: #FF2D7A;
  --pink-dark: #D1175F;
  --amber: #FFB347;
  --amber-soft: #FFF0DB;
  --amber-ink: #8A4B00;
  --navy: #080F1A;
  --navy-2: #1C2433;
  --navy-3: #30374B;
  --danger: #C0154F;

  /* Neutrals */
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --line: #E1E5EE;
  --line-strong: #C9CFDC;
  --muted-bg: #EEF1F6;
  --chip-bg: #E6E9F0;
  --text: #080F1A;
  --text-2: #30374B;
  --text-muted: #5A6275;
  --text-faint: #6B7385;
  --text-disabled: #A3AAB8;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --pill: 999px;
  --shadow: 0 12px 32px rgba(8, 15, 26, 0.12);
  --gutter: 56px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--violet-light); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--pill);
  border: 1px solid transparent; font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-dark-outline { background: transparent; border-color: var(--bg); color: var(--bg); min-height: 44px; padding: 0 20px; }
.btn-dark-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-danger { background: var(--surface); border-color: var(--line-strong); color: var(--danger); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line); border-color: var(--line); color: var(--text-faint); cursor: not-allowed; transform: none;
}

.link-btn {
  background: none; border: 0; padding: 0; min-height: 44px;
  font-size: 14px; font-weight: 600; color: var(--violet);
}

/* --------------------------------------------------------------------------
   Public site header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--navy);
  color: var(--bg);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
}
.site-header__inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 80px; padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }

.site-search {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px; border-radius: var(--pill);
  background: var(--navy-2); border: 1px solid var(--navy-3);
}
.site-search:focus-within { border-color: var(--violet-light); }
.site-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--bg); font-size: 14px;
}
.site-search input::placeholder { color: var(--text-disabled); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--bg); text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.site-nav .btn-primary { min-height: 44px; padding: 0 20px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--navy-3); color: var(--bg);
  align-items: center; justify-content: center;
}

/* --------------------------------------------------------------------------
   Generic cards / chips / form fields
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.card-dark {
  background: var(--navy); color: var(--bg); border-radius: var(--radius-lg);
}

.eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted);
}
.card-dark .eyebrow { color: var(--text-disabled); }

.chip {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill);
  white-space: nowrap;
}
.chip--confirmed, .chip--paid { background: var(--violet-tint); color: var(--violet-ink); }
.chip--pending { background: var(--amber-soft); color: var(--amber-ink); }
.chip--arrived, .chip--checked-in { background: var(--violet); color: #fff; }
.chip--cancelled, .chip--refunded { background: var(--chip-bg); color: var(--text-muted); text-decoration: line-through; }
.chip--refunded { text-decoration: none; }

.tag {
  font-size: 13px; padding: 7px 14px; border-radius: var(--pill); background: var(--chip-bg);
}

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--text-muted); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; font-weight: 400;
}
.textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; font-weight: 500; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.check { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); }

.segmented {
  display: inline-flex; background: var(--chip-bg); border-radius: var(--pill); padding: 4px;
}
.segmented button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--pill);
  background: transparent; font-size: 14px; font-weight: 500; color: var(--text-muted);
}
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Events page
   -------------------------------------------------------------------------- */
.hero {
  background: var(--navy); color: #fff;
}
.hero__inner {
  max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 56px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.tagline { font-size: 14px; font-weight: 600; letter-spacing: .3em; }
.tagline .t1 { color: var(--violet-light); }
.tagline .t2 { color: var(--pink); }
.tagline .t3 { color: var(--amber); }
.hero h1 {
  margin-top: 14px; font-size: clamp(34px, 5vw, 54px); font-weight: 600;
  letter-spacing: -1.5px; line-height: 1.08; max-width: 720px;
}
.hero__mark { width: 150px; flex-shrink: 0; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

.filters {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px 0 24px;
}
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  min-height: 44px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.pill:hover { border-color: var(--text); }
.pill[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.pill--quiet { font-weight: 500; }
.pill-select {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; padding: 0 40px 0 42px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23080F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat 16px center,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235A6275' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center,
    var(--surface);
}

.event-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding-bottom: 56px;
}
.event-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.event-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card__media { position: relative; height: 200px; background: var(--navy); overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.event-card:hover .event-card__media img { transform: scale(1.04); }
.event-card__cat {
  position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 600;
  padding: 5px 12px; background: #fff; color: var(--text);
}
.event-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card__when { font-size: 12px; font-weight: 600; color: var(--pink-dark); text-transform: uppercase; letter-spacing: .08em; }
.event-card__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.event-card__venue { font-size: 14px; color: var(--text-muted); }
.event-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.event-card__price { font-size: 15px; font-weight: 600; }
.event-card__left { font-size: 13px; color: var(--text-muted); }
.event-card__left.low { color: var(--pink-dark); font-weight: 600; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state img { width: 64px; opacity: .9; }
.empty-state h2 { font-size: 20px; font-weight: 600; }

.site-footer { background: var(--navy); color: var(--line-strong); font-size: 15px; margin-top: 48px; }
.site-footer__inner { max-width: 1440px; margin: 0 auto; padding: 64px var(--gutter) 32px; }
.site-footer a { color: var(--line-strong); text-decoration: none; transition: color .15s; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 26px; width: auto; }
.footer-brand p { margin: 18px 0 22px; line-height: 1.65; max-width: 380px; color: var(--text-disabled); }
.footer-contact, .footer-col ul, .footer-social { list-style: none; margin: 0; padding: 0; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact svg { color: var(--violet-light); flex-shrink: 0; }
.footer-col h2 { font-size: 15px; font-weight: 600; color: #fff; margin: 4px 0 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--line-strong); cursor: pointer; text-align: left; transition: color .15s;
}
.footer-link-btn:hover, .footer-link-btn:focus-visible { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-3); font-size: 13px; color: var(--text-disabled);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--navy-3); color: var(--line-strong);
}
.footer-social a:hover, .footer-social a:focus-visible { border-color: var(--violet-light); color: #fff; background: var(--navy-2); }
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-footer__inner { padding-top: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-bottom { margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   Event detail page
   -------------------------------------------------------------------------- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--bg);
}
.back-link:hover { color: #fff; }

.event-hero { position: relative; min-height: 320px; background: var(--navy); color: #fff; overflow: hidden; }
.event-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.event-hero__shade { position: absolute; inset: 0; background: rgba(8, 15, 26, .62); }
.event-hero__inner {
  position: relative; min-height: 320px; max-width: 1440px; margin: 0 auto;
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
}
.event-hero__cat { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 14px; background: var(--violet); }
.event-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; max-width: 760px; }
.event-hero__host { font-size: 16px; color: var(--line); }
.event-hero__host strong { color: var(--amber); font-weight: 600; }

.event-layout {
  max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 64px;
  display: flex; gap: 40px; align-items: flex-start;
}
.event-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); }
.fact svg { flex-shrink: 0; }
.fact strong { display: block; font-weight: 600; }
.fact span { font-size: 14px; color: var(--text-muted); }
.prose { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.prose h2 { font-size: 24px; font-weight: 600; }
.prose p { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; }

.ticket-panel {
  position: relative; z-index: 2; width: 400px; flex-shrink: 0;
  margin-top: -120px; padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.ticket-panel h2 { font-size: 20px; font-weight: 600; }
.ticket-row {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  transition: background-color .15s, border-color .15s;
}
.ticket-row.is-selected { border-color: var(--violet); background: var(--violet-soft); }
.ticket-row.is-soldout { opacity: .6; }
.ticket-row__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ticket-row__name { font-weight: 600; font-size: 15px; }
.ticket-row__note { font-size: 13px; color: var(--text-muted); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 44px; height: 44px; border-radius: var(--pill); font-size: 20px; line-height: 1;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.stepper button:disabled { background: var(--muted-bg); border-color: var(--chip-bg); color: var(--text-disabled); cursor: default; }
.stepper output { width: 22px; text-align: center; font-weight: 600; }
.total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 16px; }
.btn-cta { min-height: 52px; font-size: 16px; }
.demo-note { font-size: 12px; color: var(--text-muted); text-align: center; }

.done { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.done__mark { width: 56px; }
.done h2 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.qr { width: 160px; height: 160px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; font-weight: 600; letter-spacing: .05em; }

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */
.book-layout {
  max-width: 1440px; margin: 0 auto; padding: 36px var(--gutter) 56px;
  display: flex; gap: 32px; align-items: flex-start;
}
.book-main { flex: 1; min-width: 0; padding: 36px 40px; display: flex; flex-direction: column; gap: 28px; min-height: 640px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px;
  border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--text-faint);
}
.steps .num {
  width: 28px; height: 28px; border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; background: var(--chip-bg); color: var(--text-muted);
}
.steps li.is-current { background: var(--violet-soft); color: var(--text); }
.steps li.is-done { color: var(--text); }
.steps li.is-current .num, .steps li.is-done .num { background: var(--violet); color: #fff; }

.step-panel { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.step-panel[hidden] { display: none; }
.step-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; }
.step-head p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--line);
  transition: border-color .15s, background-color .15s;
}
.service:hover { border-color: var(--line-strong); }
.service[aria-checked="true"] { background: var(--violet-soft); border-color: var(--violet); }
.service__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service__name { font-size: 17px; font-weight: 600; }
.service__price { font-size: 15px; font-weight: 600; }
.service__dur, .service__desc { font-size: 14px; color: var(--text-muted); }

.datetime { display: flex; gap: 36px; }
.calendar { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.calendar__head { display: flex; justify-content: space-between; align-items: center; }
.calendar__head h2 { font-size: 16px; font-weight: 600; }
.icon-btn {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.calendar__dow, .calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar__dow { font-size: 13px; color: var(--text-muted); text-align: center; font-weight: 500; }
.day {
  height: 44px; border: 0; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  background: var(--muted-bg); color: var(--text);
}
.day:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--violet-tint); }
.day.is-today { box-shadow: inset 0 0 0 2px var(--violet-light); }
.day[aria-pressed="true"] { background: var(--violet); color: #fff; }
.day:disabled { background: transparent; color: var(--text-disabled); cursor: default; }
.day.is-closed { text-decoration: line-through; }
.day.is-blank { visibility: hidden; }

.times { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.times h2 { font-size: 16px; font-weight: 600; }
.time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.time {
  height: 48px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line-strong);
}
.time:hover:not(:disabled) { border-color: var(--violet); }
.time[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.time:disabled { background: var(--muted-bg); border-color: var(--muted-bg); color: var(--text-disabled); cursor: default; text-decoration: line-through; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: span 2; }

.step-nav { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.step-nav .btn-ghost[hidden] { display: inline-flex; visibility: hidden; }

.confirmed { justify-content: center; align-items: flex-start; gap: 18px; padding: 0 20px; }
.confirmed img { width: 72px; }
.confirmed h1 { font-size: 42px; font-weight: 600; letter-spacing: -1px; }
.confirmed p { font-size: 17px; color: var(--text-muted); max-width: 520px; line-height: 1.6; }
.confirmed .actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.book-aside { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 104px; }
.summary { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.summary h2 { font-size: 20px; font-weight: 600; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 15px; }
.summary dt { font-size: 12px; color: var(--text-disabled); text-transform: uppercase; letter-spacing: .1em; }
.summary dd { margin: 4px 0 0; font-weight: 500; }
.summary .is-empty { color: var(--text-disabled); font-weight: 400; }
.summary__total { border-top: 1px solid var(--navy-3); padding-top: 18px; display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; }
.summary__total span:last-child { color: var(--amber); }
.info { padding: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.info h2 { font-size: 15px; font-weight: 600; color: var(--text); }

/* --------------------------------------------------------------------------
   Dashboards (bookings + organiser)
   -------------------------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--navy); color: var(--bg);
  padding: 28px 18px; display: flex; flex-direction: column; gap: 32px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar__brand img { height: 24px; width: auto; margin-left: 12px; }
.sidebar__nav { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.sidebar__nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--line-strong); text-decoration: none;
}
.sidebar__nav a:hover { background: var(--navy-2); color: #fff; }
.sidebar__nav a[aria-current="page"] { background: var(--violet); color: #fff; }
.sidebar__foot { margin-top: auto; font-size: 13px; color: var(--text-disabled); padding: 0 12px; }
.sidebar__foot a { color: var(--bg); }

.app-main { flex: 1; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head .sub { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.page-head h1 { margin-top: 4px; font-size: 32px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.dash-cols { display: flex; gap: 24px; align-items: flex-start; }
.table-card { flex: 1; min-width: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th {
  text-align: left; padding: 14px 24px; font-size: 12px; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 14px 24px; border-bottom: 1px solid var(--muted-bg); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .t-strong { font-weight: 600; }
.data-table .t-sub { display: block; font-size: 13px; color: var(--text-muted); }
.data-table tbody tr.is-clickable { cursor: pointer; }
.data-table tbody tr.is-clickable:hover { background: #FAFBFD; }
.data-table tbody tr.is-selected { background: var(--violet-soft); box-shadow: inset 3px 0 0 var(--violet); }
.data-table .day-row td {
  background: var(--muted-bg); font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted); padding: 10px 24px;
}
.table-empty { padding: 48px 24px; text-align: center; color: var(--text-muted); }

.detail-aside { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.detail { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.detail__name { font-size: 22px; font-weight: 600; line-height: 1.3; }
.detail__rows { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.detail__rows div { display: flex; justify-content: space-between; gap: 12px; }
.detail__rows dt { color: var(--text-muted); }
.detail__rows dd { margin: 0; font-weight: 500; text-align: right; }
.note { background: var(--muted-bg); border-radius: var(--radius-sm); padding: 14px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.detail__actions { display: flex; flex-direction: column; gap: 10px; }
.detail__actions .row { display: flex; gap: 10px; }
.detail__actions .row .btn { flex: 1; }
.next-slot { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.next-slot strong { font-size: 26px; font-weight: 600; color: var(--amber); }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 22px; display: flex; flex-direction: column; gap: 10px; border-radius: 18px; }
.stat__value { font-size: 38px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; }
.stat__value small { font-size: 18px; color: var(--text-muted); letter-spacing: 0; font-weight: 600; }
.card-dark .stat__value { color: var(--amber); }
.stat__note { font-size: 14px; color: var(--text-muted); }
.card-dark .stat__note { color: var(--line-strong); }
.bar { height: 8px; border-radius: var(--pill); background: var(--chip-bg); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--violet); transition: width .4s; }
.bar--lg { height: 10px; }

.types { width: 360px; flex-shrink: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; border-radius: 18px; }
.types h2, .orders-card h2 { font-size: 16px; font-weight: 600; }
.type-row { display: flex; flex-direction: column; gap: 8px; }
.type-row__top { display: flex; justify-content: space-between; font-size: 14px; }
.type-row__top span:first-child { font-weight: 500; }
.type-row__top span:last-child { color: var(--text-muted); }
.share {
  margin-top: auto; background: var(--violet-soft); border-radius: var(--radius-sm); padding: 14px;
  font-size: 14px; line-height: 1.5; color: var(--text-2); display: flex; flex-direction: column; gap: 8px;
}
.share code { font-family: inherit; font-weight: 600; color: var(--violet-dark); overflow-wrap: anywhere; }
.orders-card { flex: 1; min-width: 0; border-radius: 18px; overflow: hidden; }
.orders-card__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 12px; }

/* Dialog */
.dialog {
  border: 0; border-radius: var(--radius-lg); padding: 0; width: min(520px, calc(100vw - 32px));
  box-shadow: var(--shadow); color: var(--text);
}
.dialog::backdrop { background: rgba(8, 15, 26, .55); }
.dialog__inner { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog__head h2 { font-size: 22px; font-weight: 600; }
.checkin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.checkin-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.checkin-list .who { display: flex; flex-direction: column; font-size: 15px; font-weight: 500; }
.checkin-list .who span { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100;
  max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datetime { flex-direction: column; }
  .calendar { width: 100%; max-width: 420px; }
  .book-aside { width: 300px; }
  .dash-cols { flex-direction: column; align-items: stretch; }
  .detail-aside, .types, .table-card, .orders-card { width: 100%; }
  .detail-aside { flex-direction: row; flex-wrap: wrap; }
  .detail-aside > * { flex: 1 1 300px; }
}

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; min-height: 0; }
  .nav-toggle { display: inline-flex; }
  .site-search { order: 3; flex-basis: 100%; }
  .site-nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    display: none; padding-bottom: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .site-nav .btn, .site-nav .btn-dark-outline { justify-content: center; margin-top: 6px; }
  .back-link { margin-left: auto; }

  .event-layout, .book-layout { flex-direction: column; }
  .ticket-panel { width: 100%; margin-top: 0; order: -1; }
  .book-aside { width: 100%; position: static; }
  .book-main { min-height: 0; }

  .app { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 30;
    flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; overflow-x: auto;
  }
  .sidebar__brand { flex-shrink: 0; }
  .sidebar__brand img { margin-left: 0; width: auto; max-width: none; height: 22px; }
  .sidebar__nav { flex-direction: row; gap: 4px; }
  .sidebar__nav a { white-space: nowrap; padding: 0 12px; }
  .sidebar__nav a svg { display: none; }
  .sidebar__foot { display: none; }
  .app-main { padding: 24px var(--gutter); }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero__inner { padding-top: 28px; padding-bottom: 36px; }
  .hero__mark { display: none; }
  .tagline { letter-spacing: .18em; font-size: 12px; }
  .event-grid { grid-template-columns: 1fr; gap: 16px; }
  .filters { gap: 12px; padding: 20px 0; }
  .pill-group { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .pill-group::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .event-layout { padding-top: 24px; }
  .book-layout { padding-top: 20px; }
  .book-main { padding: 24px 18px; gap: 22px; }
  .steps li { padding: 6px; font-size: 0; gap: 0; }
  .steps li.is-current { font-size: 14px; gap: 8px; padding-right: 14px; }
  .step-head h1 { font-size: 26px; }
  .service-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .calendar { max-width: none; }
  .confirmed { padding: 0; }
  .confirmed h1 { font-size: 32px; }
  .step-nav .btn { padding: 0 18px; }
  .page-head h1 { font-size: 26px; }
  .page-head .actions { width: 100%; }
  .data-table th, .data-table td { padding: 12px 14px; }
  .data-table .hide-sm { display: none; }
  .detail__actions .row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   Legal links (footer) and consent line at checkout
   -------------------------------------------------------------------------- */
.consent { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.consent a { color: var(--violet); }
