/* SignTix. Layout concept: a dark venue, with the ticket bracket as the frame for every key moment.
   Tokens are the BRAND.md set. Dark-only by brand decision. */

@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00031D;
  --surface: #11142C;
  --purple: #A24AFD;
  --purple-400: #B772FD;
  --purple-600: #8B1DFC;
  --white: #FFFFFF;
  --text-muted: #AEB4D4;
  --text-dim: #8E95BF;
  --border: #272B45;
  --grey-fill: #2A2D42;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-input: 4px;
  --radius-card: 8px;
  --radius-pill: 999px;

  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* Lock the page to the screen width on phones: hidden is the fallback for older iOS Safari, clip where supported */
html, body { max-width: 100%; }
body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--navy);
}
img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: var(--purple); text-decoration: none; transition: color 150ms ease-out; }
a:hover { color: var(--purple-400); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 64px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--white); padding: 8px 12px; border-radius: var(--radius-input); }
.skip:focus { left: 16px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.98;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.05;
}
.h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--text-muted); max-width: 34ch; }
.label {
  font-size: 12px; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-card);
  font: 600 14px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--purple-600); color: var(--white); }
.btn-primary:hover { background: var(--purple); color: var(--white); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 15px; }

/* ---------- Bracket frame: the brand's ticket corners as a framing device ---------- */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 56px; height: 40px; pointer-events: none;
  border: 0 solid var(--purple);
}
.framed::before { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.framed::after { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 3, 29, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease-out;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.logo { display: block; flex: none; }
.logo img, .footer-logo { width: 180px; height: auto; mix-blend-mode: lighten; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--white); text-decoration: none; }
@media (max-width: 820px) {
  .site-header .nav { display: none; }
  .header-inner { justify-content: space-between; gap: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 56px 96px; overflow: hidden; }
.offer, .about, .fees { overflow-x: hidden; }
@supports (overflow-x: clip) { .offer, .about, .fees { overflow-x: clip; } }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.hero-copy .display { max-width: 9.5ch; }
.hero-stage { position: relative; height: 640px; display: grid; place-items: center; perspective: 1400px; }
.glow {
  position: absolute; width: min(520px, 100vw); height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(162, 74, 253, 0.28), rgba(162, 74, 253, 0.06) 60%, transparent);
  filter: blur(10px);
}
.hero-phone { position: relative; z-index: 2; transform: rotateY(-10deg) rotateX(4deg) rotateZ(1deg); }

.float-ticket {
  --notch: 14px;
  position: absolute; z-index: 1;
  width: 300px; height: 136px;
  padding: 18px 22px 18px 40px;
  display: grid; align-content: space-between;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(162, 74, 253, 0.22), rgba(17, 20, 44, 0.9) 55%),
    var(--surface);
  border: 1px solid rgba(183, 114, 253, 0.45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.float-ticket::before {
  content: ""; position: absolute; left: 24px; top: 14px; bottom: 14px;
  border-left: 2px dashed rgba(174, 180, 212, 0.35);
}
.ft-label { font: 600 11px/1 var(--font-body); letter-spacing: 0.14em; color: var(--purple-400); }
.ft-big { font: 400 34px/1 var(--font-display); letter-spacing: 0.03em; }
.ft-meta { font: 600 10px/1 var(--font-body); letter-spacing: 0.12em; color: var(--text-muted); }
.t1 { left: -8%; top: 16%; transform: rotateY(28deg) rotateZ(-16deg) translateZ(-60px); animation: drift1 9s ease-in-out infinite; }
.t2 { right: -10%; bottom: 14%; transform: rotateY(-30deg) rotateZ(12deg) translateZ(-40px); animation: drift2 11s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: rotateY(24deg) rotateZ(-13deg) translateZ(-60px) translateY(-14px); } }
@keyframes drift2 { 50% { transform: rotateY(-26deg) rotateZ(9deg) translateZ(-40px) translateY(12px); } }

@media (max-width: 960px) {
  .hero { padding-block: 32px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-stage { height: 600px; }
}
@media (max-width: 480px) {
  .hero-stage { height: 540px; }
  .hero-phone { transform: scale(0.86); }
  .float-ticket { width: 240px; height: 112px; }
  .ft-big { font-size: 28px; }
  .t1 { left: -14%; }
  .t2 { right: -16%; }
}

/* ---------- Sections ---------- */
.section { padding-block: 112px; border-top: 1px solid var(--border); }
.section-cta { display: flex; justify-content: flex-start; padding-top: 48px; }
@media (max-width: 720px) { .section { padding-block: 72px; } }

/* ---------- About ---------- */
.about-title { margin-bottom: 48px; }
.sub-title { font: 400 32px/1.05 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--purple-400); }
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.why-grid > .sub-title { position: sticky; top: 120px; align-self: start; }
.team { display: flex; flex-direction: column; gap: 32px; }
.why-first { margin-top: 112px; }
.person-name { margin: 0; font: 400 30px/1.05 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.story { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; min-width: 0; font-size: 18px; color: var(--text-muted); }
.story .btn { align-self: flex-start; margin-top: 12px; }
.story-open { color: var(--white); font-size: 22px; font-weight: 600; line-height: 1.4; }
.story-close { color: var(--white); }
.garage { color: var(--white); font-weight: 600; }

.quote { margin: 64px 0; padding: 56px clamp(24px, 6vw, 88px); }
.quote blockquote { margin: 0; }
.quote p {
  font-size: clamp(22px, 2.7vw, 34px); line-height: 1.38; font-weight: 500;
  letter-spacing: -0.01em; color: var(--white); max-width: 40ch; text-wrap: pretty;
}
.quote figcaption { margin-top: 24px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--purple-400); }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-grid > .sub-title { position: static; }
  .why-first { margin-top: 72px; }
  .why-spacer { display: none; }
}

/* ---------- Offer: click-through tour ---------- */
.offer .h2 { margin-bottom: 8px; }
.tour { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 520px; }
.tab {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; flex-direction: column; gap: 0;
  padding: 18px 20px 18px 24px; border-radius: var(--radius-card);
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.tab::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px;
  background: var(--border); transition: background-color 250ms ease-out;
}
.tab-title { font: 400 26px/1.1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-dim); transition: color 150ms ease-out; }
.tab-body {
  font-size: 16px; line-height: 1.6; color: var(--text-muted);
  display: grid; grid-template-rows: 0fr; opacity: 0; overflow: hidden;
  transition: grid-template-rows 250ms var(--ease), opacity 250ms ease-out, margin 250ms var(--ease);
}
.tab-body { max-height: 0; }
.tab:hover .tab-title { color: var(--white); }
.tab[aria-selected="true"] { background: var(--surface); border-color: var(--border); }
.tab[aria-selected="true"]::before { background: var(--purple); }
.tab[aria-selected="true"] .tab-title { color: var(--white); }
.tab[aria-selected="true"] .tab-body { max-height: 12em; opacity: 1; margin-top: 8px; }
.tab:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.tour-stage { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; }
.tour-stage::before {
  content: ""; position: absolute; width: min(480px, 100vw); height: 480px; top: 80px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(162, 74, 253, 0.2), transparent);
}
.tour-controls { display: flex; align-items: center; gap: 16px; }
.arrow {
  all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; line-height: 1; color: var(--white);
  border: 1px solid var(--border); transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.arrow:hover { border-color: var(--purple); }
.arrow:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.tour-dots { display: flex; gap: 8px; }
.dot {
  all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 999px; background: var(--border);
  transition: width 250ms var(--ease), background-color 150ms ease-out;
}
.dot:hover { background: var(--text-dim); }
.dot[aria-current="true"] { width: 24px; background: var(--purple); }
.dot:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.tour-caption { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }

.screen-stack { position: relative; }
.screen-stack > .scr {
  position: absolute; inset: 0; visibility: hidden;
  opacity: 0; transform: translateX(18px);
  transition: opacity 250ms ease-out, transform 250ms var(--ease), visibility 0s linear 250ms;
}
.screen-stack > .scr.on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }

@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; gap: 32px; }
  .tour-stage { order: -1; }
  .tour-tabs { max-width: none; }
}

/* ---------- Admin showcase (browser frame) ---------- */
.admin-wrap { margin-top: 96px; }
.browser {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--navy);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.browser-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-url { font-size: 12px; color: var(--text-muted); background: var(--navy); border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px; }
.browser-body { overflow-x: auto; }
@media (max-width: 560px) {
  .browser-bar { gap: 10px; padding: 10px 12px; }
  .browser-bar .dots { display: none; }
  .browser-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sandbox-tag { font-size: 10px; padding: 3px 8px; }
}

/* ---------- Fees ---------- */
.fees { padding-block: 24px 112px; }
.fees-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding-block: 48px; }
.fees-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fees-inner.framed { padding-left: max(48px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); }
.fees-line { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; font-weight: 500; max-width: 52ch; min-width: 0; }
@media (max-width: 820px) {
  .fees-inner { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .fees-inner.framed { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Team ---------- */
.team .section-cta { padding-top: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)) 1fr; gap: 32px; align-items: start; }
.team-note { align-self: end; }
.person { display: flex; flex-direction: column; gap: 6px; }
.headshot {
  aspect-ratio: 4 / 5; width: 100%; max-width: 100%;
  background: var(--grey-fill); border: 1px solid var(--border); border-radius: var(--radius-card);
  margin-bottom: 14px;
}
img.headshot { display: block; height: auto; object-fit: cover; object-position: 50% 30%; }
.role { color: var(--text-muted); font-size: 15px; }
.team-note { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; font-weight: 500; max-width: 22ch; padding-bottom: 32px; min-width: 0; }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-note { grid-column: 1 / -1; max-width: none; padding-bottom: 0; }
}
@media (max-width: 420px) { .team-grid { gap: 16px; } .person-name { font-size: 26px; } .role { font-size: 14px; } }

/* ---------- Book a demo pop-up ---------- */
.book-dialog {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 64px 40px 40px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--navy); color: var(--white);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.book-dialog::backdrop { background: rgba(0, 3, 29, 0.78); backdrop-filter: blur(6px); }
.book-dialog[open] { animation: dlgIn 250ms var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px); } }
.book-close {
  all: unset; cursor: pointer; position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); font-size: 15px;
  transition: border-color 150ms ease-out;
}
.book-close:hover { border-color: var(--purple); }
.book-close:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (max-width: 600px) { .book-dialog { padding: 56px 16px 20px; } }
.book-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.book-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cal-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; min-height: 420px; min-width: 0; }
.cal-inline { width: 100%; min-height: 0; }
.cal-inline:empty { display: none; }
.cal-frame { width: 100%; height: 600px; border: 0; border-radius: var(--radius-input); background: var(--white); display: block; }
@media (max-width: 900px) { .book-inner { grid-template-columns: 1fr; gap: 32px; } }
/* Booking widget: SignTix-styled front end for the Google Calendar booking backend */
.cal-card [hidden], .bk-state[hidden] { display: none !important; }
.bk-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; color: var(--text-muted); font-size: 15px; }
.bk-facts li { display: flex; align-items: center; gap: 12px; }
.bk-facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--purple-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.bk-step { display: flex; flex-direction: column; gap: 20px; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bk-month { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.bk-nav { display: flex; gap: 8px; }
.bk-nav button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); font-size: 18px; line-height: 1; color: var(--white);
  transition: border-color 150ms ease-out, opacity 150ms ease-out;
}
.bk-nav button:hover:not(:disabled) { border-color: var(--purple); }
.bk-nav button:disabled { opacity: 0.3; cursor: default; }
.bk-dow, .bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-dow span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); text-align: center; padding-bottom: 6px; }
.bk-date {
  all: unset; box-sizing: border-box; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--radius-input); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--text-dim); font-variant-numeric: tabular-nums; opacity: 0.55;
}
.bk-date.open {
  cursor: pointer; opacity: 1; color: var(--white);
  background: rgba(162, 74, 253, 0.12); border-color: rgba(162, 74, 253, 0.35);
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.bk-date.open:hover { border-color: var(--purple); }
.bk-date.on { background: var(--purple-600); border-color: var(--purple-600); color: var(--white); font-weight: 700; }
.bk-date.today:not(.on) { text-decoration: underline; text-underline-offset: 4px; }
.bk-nav button:focus-visible, .bk-date:focus-visible, .bk-time:focus-visible, .bk-back:focus-visible, .bk-again:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.bk-day { font-weight: 600; margin: 0 0 12px; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk-time {
  all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 11px 8px;
  border-radius: var(--radius-pill); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.bk-time:hover { border-color: var(--purple); background: rgba(162, 74, 253, 0.12); }
.bk-tz { font-size: 13px; color: var(--text-dim); margin: 0; }
.bk-note { margin: 0; padding: 12px 14px; border-radius: var(--radius-input); background: rgba(162, 74, 253, 0.12); border: 1px solid rgba(162, 74, 253, 0.35); font-size: 14px; }

.bk-back { all: unset; cursor: pointer; align-self: flex-start; color: var(--purple-400); font-size: 14px; font-weight: 600; }
.bk-back:hover { color: var(--white); }
.bk-when { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 26px); line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
.bk-fields { display: grid; gap: 14px; }
.bk-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.bk-field em { font-style: normal; font-weight: 400; color: var(--text-dim); }
.bk-field input {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.3 var(--font-body); color: var(--white);
  background: var(--navy); border: 1px solid var(--border); border-radius: var(--radius-input);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.bk-field input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(162, 74, 253, 0.25); }
.bk-field input[aria-invalid="true"] { border-color: #FF6B8B; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-err { margin: 0; color: #FF8FA6; font-size: 14px; }
.bk-err:empty { display: none; }
.bk-submit { border: 0; cursor: pointer; width: 100%; }
.bk-submit:disabled { opacity: 0.7; cursor: progress; }

.bk-done { align-items: flex-start; padding-block: 8px; }
.bk-tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(162, 74, 253, 0.15); border: 1px solid rgba(162, 74, 253, 0.5); }
.bk-tick svg { width: 26px; height: 26px; fill: none; stroke: var(--purple-400); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-done-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 38px); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; outline: none; }
.bk-done-when { font-size: 18px; font-weight: 600; margin: 0; }
.bk-done-note { color: var(--text-muted); margin: 0; max-width: 42ch; }
.bk-again { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.bk-again:hover { border-color: var(--purple); }

.bk-state { min-height: 360px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; color: var(--text-muted); }
.bk-state p { margin: 0; }
.bk-alt { font-size: 14px; margin-left: 8px; }
.bk-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--purple); animation: bkspin 800ms linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-spinner { animation-duration: 2.4s; } }
@media (max-width: 480px) { .cal-card { padding: 20px 16px; } .bk-dow, .bk-grid { gap: 4px; } .bk-date { font-size: 13px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 32px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-nav { flex-wrap: wrap; }
.footer-base { padding-top: 32px; }
.footer-base p { font-size: 14px; color: var(--text-dim); }
@media (max-width: 820px) { .footer-nav { margin-left: 0; width: 100%; order: 3; } }

/* =================================================================
   Phone + example-event screens
   ================================================================= */
.phone {
  --pw: 300px;
  width: var(--pw); height: calc(var(--pw) * 2.07); flex: none;
  padding: 11px; border-radius: 48px;
  background: linear-gradient(160deg, #2a2d45, #0b0d20 40%, #1a1d33);
  box-shadow: 0 0 0 1px #3a3e5c, 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #05061a;
  position: relative;
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: #000; border-radius: 20px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--navy); position: relative;
}

.scr { height: 100%; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.35; color: var(--white); }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 16px 14px 8px; font-weight: 600; font-size: 13px; min-height: 46px; }
.sb-icons { display: flex; gap: 4px; }
.sb-icons i { width: 14px; height: 9px; border-radius: 2px; background: var(--white); opacity: 0.9; }
.sb-icons i:first-child { width: 12px; }
.sb-icons i:last-child { width: 20px; border-radius: 3px; }

.scr-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; padding-top: 2px; }
.pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface); border: 1px solid var(--border); font-size: 9px; font-weight: 600; color: var(--text-muted);
}

/* event page (EM4 layout) */
.scr { overflow-y: auto; scrollbar-width: none; }
.scr > * { flex-shrink: 0; }
.scr::-webkit-scrollbar { display: none; }
/* The event screen scrolls inside .ev-scroll and the Continue bar is a plain footer below it.
   (No position: sticky here: iOS Safari mis-draws sticky children inside transformed, scrolling frames.) */
.scr-event { padding: 0; gap: 0; position: relative; overflow: hidden; }
.scr-event > .ev-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ev-scroll::-webkit-scrollbar { display: none; }
.ev-banner { position: relative; height: 178px; flex: none; overflow: hidden;
  background:
    radial-gradient(90% 90% at 80% 10%, rgba(162, 74, 253, 0.85), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(139, 29, 252, 0.5), transparent 65%),
    linear-gradient(180deg, #14103a, #05061a);
}
.ev-banner::after { content: ""; position: absolute; inset: auto 0 0; height: 50px; background: linear-gradient(transparent, var(--navy)); }
.ev-back { position: absolute; top: 46px; left: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 3, 29, 0.6); font-size: 13px; }
.ev-back.plain { position: static; background: none; width: auto; height: auto; font-size: 18px; }
.ev-art { position: absolute; inset: 52px 14px 18px 14px; display: flex; flex-direction: column; align-items: center; }
.ev-art-kicker { font-size: 7px; letter-spacing: 0.2em; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.ev-art-title { font: 400 46px/1 var(--font-display); letter-spacing: 0.03em; }
.ev-art-meta { width: 100%; display: flex; justify-content: space-between; font-size: 6.5px; line-height: 1.35; letter-spacing: 0.14em; font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-top: 4px; }
.ev-art-meta .r { text-align: right; }
.ev-body { padding: 4px 14px 80px; display: flex; flex-direction: column; gap: 10px; }
.ev-title { margin: 0; font: 400 26px/1.05 var(--font-display); letter-spacing: 0.02em; }
.ev-sub { color: var(--text-muted); font-size: 11px; }
.ev-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ev-actions span { text-align: center; padding: 8px 4px; border: 1px solid var(--border); border-radius: 6px; font-size: 10.5px; font-weight: 500; }
.ev-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ev-facts b { display: block; font-size: 11px; font-weight: 600; }
.ev-facts div:first-child b { color: var(--purple-400); }
.ev-facts small { display: block; color: var(--text-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-h { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.rel { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.rel > div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.rel b { font-size: 12px; font-weight: 600; }
.rel small { color: var(--text-dim); font-size: 10px; }
.rel s, .rel .price { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rel s { color: var(--text-dim); }
.rel em { font-style: normal; font-size: 8.5px; letter-spacing: 0.1em; font-weight: 600; color: var(--text-dim); border: 1px solid var(--border); padding: 4px 7px; border-radius: 4px; }
.rel.sold { opacity: 0.6; }
.rel.on { border-color: var(--purple); }
.qty { font-size: 13px; color: var(--text-muted); letter-spacing: 0.08em; white-space: nowrap; }
.qty b { color: var(--white); }
.lineup { display: flex; flex-direction: column; gap: 2px; }
.lu-tag { font-size: 8.5px; letter-spacing: 0.14em; font-weight: 600; color: var(--purple-400); }
.lineup b { font: 400 24px/1.05 var(--font-display); letter-spacing: 0.02em; }
.lineup span:not(.lu-tag) { font-size: 13px; color: var(--text-muted); }
.ev-bar {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px 18px; background: rgba(0, 3, 29, 0.94); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.ev-bar small { display: block; color: var(--text-muted); font-size: 10px; }
.ev-bar b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ev-continue, .pay-btn {
  cursor: pointer; padding: 11px 22px; border-radius: 8px; background: var(--purple-600);
  font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 150ms ease-out;
}
.ev-continue:hover, .pay-btn:hover { background: var(--purple); }
.ev-rels { display: flex; flex-direction: column; gap: 6px; }
.rel.soon { opacity: 0.75; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-tags span { font-size: 8.5px; letter-spacing: 0.12em; font-weight: 700; color: var(--purple-400); border: 1px solid rgba(162, 74, 253, 0.45); background: rgba(162, 74, 253, 0.1); padding: 3px 6px; border-radius: 3px; }
.ev-desc { font-size: 11.5px; line-height: 1.5; }
.ev-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 11px; }
.ev-bullets li { display: flex; gap: 6px; }
.ev-bullets li::before { content: "✦"; color: var(--purple-400); flex: none; }
.ev-hosted { color: var(--text-dim); font-size: 10.5px; }
.ev-artists { display: flex; flex-direction: column; gap: 8px; }
.artist { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.artist.head { border-color: var(--purple); margin-top: 6px; }
.artist .lu-tag { position: absolute; top: -8px; left: 10px; background: var(--purple-600); color: var(--white); padding: 2px 6px; border-radius: 4px; font-size: 7.5px; }
.art-ph { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 400 13px/1 var(--font-display); letter-spacing: 0.04em; background: radial-gradient(circle at 30% 30%, #8B1DFC, #1a0b40 75%); }
.artist b { flex: 1; font-size: 13px; }
.art-img { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid var(--border); }
.artist.head .art-img { border: 2px solid var(--purple); }
.soc { display: flex; gap: 6px; }
.soc-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--navy); color: var(--white); }
.soc-ic svg { width: 14px; height: 14px; display: block; }
.soc-ic.sp svg { width: 17px; height: 17px; }
.ev-h2 { font-size: 12px; font-weight: 600; margin-top: 2px; }
.ev-hl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; }
.ev-hl li { display: flex; align-items: center; gap: 10px; }
.hl-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(162, 74, 253, 0.14); color: var(--purple-400); font-size: 9px; font-weight: 700; }
.ev-muted { color: var(--text-muted); font-size: 11px; }
.ev-loc { display: flex; flex-direction: column; font-size: 11px; color: var(--text-muted); }
.ev-loc b { color: var(--white); font-size: 12.5px; }
.ev-map { position: relative; height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.m-bg { fill: #0b0e26; }
.m-river { fill: none; stroke: #1b1f4a; stroke-width: 14; }
.m-road path { fill: none; stroke: #2a2e52; stroke-width: 5; }
.m-lane path { fill: none; stroke: #1c2040; stroke-width: 2; }
.m-pin path { fill: var(--purple); }
.m-pin circle { fill: var(--navy); }
.m-lab rect { fill: var(--navy); stroke: var(--border); }
.m-lab text { fill: var(--white); font: 600 10px var(--font-body); text-anchor: middle; }
.map-zoom { position: absolute; top: 8px; left: 8px; width: 20px; text-align: center; line-height: 1.4; font-size: 12px; background: var(--navy); border: 1px solid var(--border); border-radius: 4px; }
.ev-link { color: var(--purple-400); font-size: 11px; font-weight: 600; }
.ev-go { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ev-go span { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 10.5px; text-align: center; }
.ev-org { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ev-org-top { display: flex; align-items: center; gap: 10px; }
.ev-org-top b { font-size: 13px; }
.ev-org-btns { display: flex; gap: 6px; }
.ev-org-btns span { padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 10.5px; font-weight: 600; }
.ev-org-btns span.on { background: var(--purple-600); border-color: var(--purple-600); }
.ev-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ev-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }

/* checkout */
.pay-head { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.pay-head h5 { margin: 0; font: 400 28px/1 var(--font-display); letter-spacing: 0.02em; }
.hold { color: var(--text-muted); font-size: 11.5px; padding-left: 30px; }
.hold b { color: var(--purple-400); font-variant-numeric: tabular-nums; }
.card-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.cb-title { font-size: 13px; font-weight: 600; }
.cb-sub { color: var(--text-muted); font-size: 10.5px; margin-top: -4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.cb-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.cb-row i { font-style: normal; color: var(--text-dim); }
.cb-row.muted { color: var(--text-muted); }
.cb-row.accent { color: var(--purple-400); }
.cb-row code { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em; }
.cb-row.total { border-top: 1px solid var(--border); padding-top: 8px; align-items: baseline; font-weight: 600; }
.cb-row.total b { font-size: 18px; }
.card-box label { font-size: 10.5px; font-weight: 500; margin-top: 2px; }
.inp { padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--navy); font-size: 11.5px; }
.inp.ph { color: var(--text-dim); }
.inp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inp-row > div { display: flex; flex-direction: column; gap: 6px; }
.pay-btn { text-align: center; padding: 13px; font-size: 13px; flex: none; }
.pay-note { text-align: center; color: var(--text-muted); font-size: 10.5px; padding-bottom: 8px; }

/* ticket (earlier draft layout) */
.scr-ticket { background: radial-gradient(100% 50% at 50% 100%, rgba(139, 29, 252, 0.28), transparent 70%), var(--navy); }
.tk { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; position: relative; flex: none; }
.tk-top { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.tk-org { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; }
.tk-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 2px solid var(--purple); color: var(--white); font: 400 12px/1 var(--font-display); letter-spacing: 0.04em; }
.tk-title { margin: 2px 0 0; font: 400 30px/1 var(--font-display); letter-spacing: 0.03em; }
.tk-line { display: flex; gap: 8px; color: var(--text-muted); font-size: 11px; }
.tk-ic { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--purple-400); stroke-width: 1.5; stroke-linecap: round; margin-top: 1px; }
.tk-after { display: flex; flex-direction: column; gap: 8px; padding: 6px 4px 8px; }
.tk-wallet { align-self: flex-start; margin-top: 4px; padding: 8px 14px; border-radius: 8px; background: var(--white); color: var(--navy); font-size: 11px; font-weight: 600; }

/* Stripe payments screen */
.str-h { margin: 0; font: 400 30px/1 var(--font-display); letter-spacing: 0.02em; }
.str-sub { color: var(--text-muted); font-size: 11.5px; margin-top: -4px; }
.str-lab { font-size: 9px; letter-spacing: 0.14em; font-weight: 700; color: var(--text-dim); }
.str-conn { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.str-conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px rgba(162, 74, 253, 0.25); }
.card-box .ok { color: var(--purple-400); font-weight: 600; }
.str-btn { margin-top: 4px; text-align: center; padding: 10px; border-radius: 8px; background: var(--purple-600); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.flow { display: flex; flex-direction: column; gap: 0; padding: 4px 2px; }
.flow-step { display: flex; gap: 10px; align-items: flex-start; position: relative; padding-bottom: 14px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; width: 2px; background: var(--border); }
.flow-ic { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1px solid var(--purple); color: var(--purple-400); font-size: 11px; font-weight: 700; background: var(--navy); }
.flow-step b { display: block; font-size: 12.5px; }
.flow-step small { color: var(--text-muted); font-size: 10.5px; }
.str-note { color: var(--text-dim); font-size: 10.5px; }
.tk-perf { position: relative; height: 0; border-top: 2px dashed var(--border); margin: 4px 14px; }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); border: 1px solid var(--border); }
.tk-perf::before { left: -24px; }
.tk-perf::after { right: -24px; }
.tk-bottom { padding: 12px 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tk-name { font-size: 16px; font-weight: 600; }
.tk-pill { font-size: 9px; letter-spacing: 0.16em; font-weight: 600; color: var(--purple-400); border: 1px solid var(--purple); background: rgba(162, 74, 253, 0.12); padding: 4px 10px; border-radius: 4px; }
.qr-wrap { background: var(--white); padding: 10px; border-radius: 6px; width: 72%; margin-top: 4px; }
.qr-wrap .qr { width: 100%; padding: 0; }
.tk-code { font-size: 15px; letter-spacing: 0.14em; color: var(--purple-400); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.tk-code-l { font-size: 8.5px; letter-spacing: 0.14em; color: var(--text-dim); font-weight: 600; margin-top: -4px; }
.tk-valid { width: 100%; text-align: center; padding: 9px; border-radius: 6px; border: 1px solid var(--purple); background: rgba(162, 74, 253, 0.14); color: var(--white); font-size: 11px; letter-spacing: 0.16em; font-weight: 600; margin-top: 4px; }
.tk-note { color: var(--text-muted); font-size: 10px; }

/* dashboard */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile, .chart, .campaign { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.tile small, .chart small, .campaign small { display: block; color: var(--text-dim); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.tile b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 10px; }
.bars i { flex: 1; height: calc(var(--h) * 1%); background: linear-gradient(var(--purple), rgba(162, 74, 253, 0.35)); border-radius: 2px 2px 0 0; }
.bars i:last-child { background: var(--purple-400); }
.campaign b { display: block; margin: 4px 0 6px; font-size: 13px; font-weight: 600; }
.camp-stats { display: flex; gap: 12px; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.row span:nth-child(2) { flex: 1; font-weight: 500; }
.row em { font-style: normal; font-size: 10px; color: var(--text-dim); }

/* promoters */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--purple-400); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(162, 74, 253, 0.6); } 100% { box-shadow: 0 0 0 8px rgba(162, 74, 253, 0); } }
.promo-list { display: flex; flex-direction: column; gap: 8px; }
.promo { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.promo-top { display: flex; align-items: center; gap: 10px; }
.pn { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.pn small { font-weight: 500; font-size: 10px; letter-spacing: 0.08em; color: var(--text-dim); }
.promo-top b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--purple); border-radius: 4px; }
.promo-foot { margin-top: auto; display: flex; justify-content: space-between; padding: 10px 2px 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.promo-foot b { color: var(--white); font-variant-numeric: tabular-nums; }

.qr { aspect-ratio: 1; display: grid; }
.qr i { display: block; aspect-ratio: 1; }
.qr i.f { background: var(--navy); }

/* door scanner (earlier draft layout) */
.scr-scan { padding: 0; gap: 0; position: relative; overflow: hidden; }
.scr-scan .sb { padding-inline: 30px; }
.door-top { display: flex; align-items: baseline; gap: 8px; padding: 4px 16px 10px; border-bottom: 1px solid var(--border); font-size: 10px; }
.door-label { font-weight: 700; letter-spacing: 0.14em; font-size: 9px; }
.door-who { color: var(--text-dim); flex: 1; text-align: right; }
.door-out { color: var(--purple-400); }
.door-event { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 16px; opacity: 0.45; }
.door-event b { display: block; font: 400 20px/1.1 var(--font-display); letter-spacing: 0.02em; }
.door-event small { color: var(--text-muted); font-size: 10px; }
.door-count { text-align: right; }
.door-count b { font-size: 22px; color: var(--purple-400); font-family: var(--font-body); font-weight: 700; }
.door-cam { margin: 0 16px; height: 150px; border-radius: 10px; background: #000; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px; opacity: 0.45; position: relative; }
.door-cam small { color: var(--text-dim); font-size: 10px; }
.door-start { width: 100%; text-align: center; padding: 9px; border-radius: 6px; background: rgba(139, 29, 252, 0.45); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.door-offline { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--text-muted); border: 1px dashed var(--border); border-radius: 999px; padding: 3px 8px; }
.door-offline i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }
.door-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 248px; background: var(--surface); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5); }
.door-ok { background: var(--purple-600); text-align: center; padding: 12px; font: 400 26px/1 var(--font-display); letter-spacing: 0.04em; }
.door-dl { display: grid; grid-template-columns: 62px 1fr; gap: 7px 10px; margin: 0; padding: 14px 18px 10px; font-size: 11.5px; }
.door-dl dt { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; padding-top: 2px; }
.door-dl dd { margin: 0; }
.door-dl dd.big { font-size: 16px; font-weight: 600; line-height: 1.1; }
.door-dl dd.accent { color: var(--purple-400); }
.door-dl dd small { display: block; color: var(--text-muted); font-size: 10px; }
.door-next { margin: 4px 18px 0; text-align: center; padding: 10px; border-radius: 8px; border: 2px solid var(--purple); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.door-undo { text-align: center; color: var(--text-muted); font-size: 10.5px; text-decoration: underline; margin-top: 8px; }

/* admin sandbox (EM4 admin layout). Container queries switch it to the phone layout
   whenever the frame itself is narrow, so it also changes live when the window is resized. */
.browser-body { container-type: inline-size; container-name: adm; overflow: hidden; }
.sandbox-tag { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple-400); border: 1px solid rgba(162, 74, 253, 0.45); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.adm { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); height: 760px; font-size: 13px; background: var(--navy); color: var(--white); }
.adm-side { border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.adm-me { display: flex; align-items: center; gap: 10px; padding-left: 4px; font-size: 10px; letter-spacing: 0.16em; font-weight: 600; color: var(--text-muted); }
.adm-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--purple); font: 400 11px/1 var(--font-display); letter-spacing: 0.04em; color: var(--white); flex: none; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adm-nav button { all: unset; box-sizing: border-box; cursor: pointer; padding: 8px 10px; border-radius: 6px; color: var(--text-muted); font-size: 13px; white-space: nowrap; transition: background-color 150ms ease-out, color 150ms ease-out; }
.adm-nav button:hover { color: var(--white); background: rgba(255, 255, 255, 0.03); }
.adm-nav button[aria-current="page"] { background: rgba(162, 74, 253, 0.14); color: var(--white); box-shadow: inset 2px 0 0 var(--purple); }
.adm-nav button:focus-visible, .adm button:focus-visible, .adm input:focus-visible, .adm select:focus-visible, .adm textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.adm-logout { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 9px; border: 1px solid var(--border); border-radius: 6px; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.adm-main { padding: 22px 24px 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-y: auto; }
.adm-main > * { flex-shrink: 0; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.adm-titles { min-width: 0; }
.adm-h1 { margin: 0; font: 400 34px/1 var(--font-display); letter-spacing: 0.02em; }
.adm-subline { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.adm-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-tools small { color: var(--text-dim); font-size: 11px; }
.adm-select, .adm-input {
  font: 400 13px/1.3 var(--font-body); color: var(--white);
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--surface);
  transition: border-color 150ms ease-out; min-width: 0;
}
.adm-input::placeholder { color: var(--text-dim); }
.adm-input:focus, .adm-select:focus { border-color: var(--purple); outline: none; }
textarea.adm-input { resize: vertical; width: 100%; }
.adm-input.grow { flex: 1; }
.num-in { width: 72px; }
.adm-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 6px; background: var(--purple-600); color: var(--white);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.adm-btn:hover { background: var(--purple); }
.adm-btn.ghost { background: transparent; border: 1px solid var(--border); }
.adm-btn.ghost:hover { border-color: var(--purple); }
.adm-btn.danger { background: #B4235A; }
.adm-btn.danger-text { background: transparent; border: 1px solid var(--border); color: #FF8FB3; }
.link-btn { all: unset; cursor: pointer; color: var(--purple-400); font-size: 12px; font-weight: 600; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }
.danger-text { color: #FF8FB3 !important; }
.panel-link { all: unset; cursor: pointer; color: var(--purple-400); font-size: 12px; font-weight: 600; white-space: nowrap; }
.panel-link:hover { text-decoration: underline; }
.panel-link.inline { font-size: inherit; }
.code-link { all: unset; cursor: pointer; color: var(--purple-400); font-weight: 600; letter-spacing: 0.04em; }
.code-link:hover { text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { color: var(--text-muted); font-size: 12px; }
.muted { color: var(--text-muted); }
.block { display: block; }
.empty { color: var(--text-dim); padding: 12px 0; }
.row-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-btns.end { align-self: end; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.check input, .radios input { accent-color: var(--purple); }
.tag { display: inline-block; font-size: 9.5px; letter-spacing: 0.1em; font-weight: 700; padding: 3px 7px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-muted); white-space: nowrap; }
.tag.on, .tag.upcoming { color: var(--purple-400); border-color: rgba(162, 74, 253, 0.5); background: rgba(162, 74, 253, 0.12); }
.tag.sold, .tag.past { color: var(--text-dim); }
.tag.soon, .tag.draft { color: #F2C66D; border-color: rgba(242, 198, 109, 0.4); }
.tag.hidden { color: var(--text-dim); border-style: dashed; }
.tag-btn { all: unset; cursor: pointer; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); white-space: nowrap; }
.tag-btn.in { background: rgba(162, 74, 253, 0.16); border-color: var(--purple); color: var(--white); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { all: unset; cursor: pointer; font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.chip.on { background: var(--purple-600); border-color: var(--purple-600); color: var(--white); }
.adm-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--white); color: var(--navy); font-size: 12.5px; font-weight: 600; padding: 10px 16px; border-radius: 8px;
  max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); transition: opacity 150ms ease-out, transform 250ms var(--ease); z-index: 5;
}
.adm-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* tickets page */
.see { flex-direction: row !important; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.see-b { display: block; font-size: 18px; font-weight: 600; margin: 4px 0; }
.see-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rel-card { flex-direction: row !important; align-items: center; gap: 16px !important; flex-wrap: wrap; }
.order-ctl { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-dim); font-size: 12px; }
.order-ctl button { all: unset; cursor: pointer; width: 22px; height: 18px; text-align: center; border-radius: 4px; color: var(--text-muted); }
.order-ctl button:hover:not([disabled]) { background: var(--border); color: var(--white); }
.order-ctl button[disabled] { opacity: 0.3; cursor: default; }
.rel-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.rel-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rel-name b { font-size: 15px; }
.rel-name small { color: var(--text-dim); font-size: 11px; }
.rel-nums { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rel-nums b { color: var(--white); }
.rel-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rel-card.editing { flex-direction: column !important; align-items: stretch; }
.rel-edit { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.rel-edit label, .filters label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); }
.confirm { font-size: 12.5px; color: var(--text-muted); }
.events-t .menu-cell { position: relative; text-align: right; width: 32px; }
.kebab { all: unset; cursor: pointer; padding: 2px 8px; border-radius: 4px; color: var(--text-muted); font-size: 16px; }
.kebab:hover { background: var(--border); }
.pop { position: absolute; right: 0; top: 100%; z-index: 4; display: flex; flex-direction: column; min-width: 140px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.pop button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 4px; text-align: left; font-size: 12.5px; }
.pop button:hover { background: var(--border); }

/* forms (event page, filters) */
.subtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.subtabs button { all: unset; cursor: pointer; padding: 8px 12px; font-size: 12.5px; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.subtabs button[aria-selected="true"] { color: var(--white); border-bottom-color: var(--purple); }
.panel.form { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field legend { font-size: 12.5px; font-weight: 600; }
.field small { color: var(--text-dim); font-size: 11.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prefix { display: flex; align-items: center; gap: 0; }
.prefix span { padding: 8px 10px; border: 1px solid var(--border); border-right: 0; border-radius: 4px 0 0 4px; color: var(--text-dim); background: var(--navy); }
.prefix .adm-input { flex: 1; border-radius: 0 4px 4px 0; }
.radios label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.list-row { display: flex; gap: 8px; align-items: center; }
.list-row .adm-input { flex: 1; }
.x { all: unset; cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: var(--text-dim); flex: none; }
.x:hover { background: var(--border); color: var(--white); }
.artist-row { display: grid; grid-template-columns: 40px 1.2fr auto 1fr 1fr 28px; gap: 10px; align-items: end; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.art-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-600), #2a1060); font: 400 13px/1 var(--font-display); letter-spacing: 0.04em; }
.art-av.big { width: 52px; height: 52px; font-size: 18px; }
.banner-prev { height: 140px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border);
  background: radial-gradient(90% 90% at 80% 10%, rgba(162, 74, 253, 0.85), transparent 60%), radial-gradient(80% 80% at 0% 100%, rgba(139, 29, 252, 0.5), transparent 65%), #0a0c28; }
.banner-prev span { font: 400 44px/1 var(--font-display); letter-spacing: 0.04em; }
.ok-note { color: var(--purple-400); font-size: 12px; }
.map-mini { height: 170px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-mini svg, .ev-map svg { width: 100%; height: 100%; display: block; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal-tile { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; padding: 8px; font-size: 11px; }
.g1 { background: linear-gradient(160deg, #3b1a7a, #0a0c28); }
.g2 { background: linear-gradient(200deg, #6d2bd9, #11142C 70%); }
.g3 { background: radial-gradient(circle at 30% 30%, #8B1DFC, #05061a 70%); }
.g4 { background: linear-gradient(120deg, #1a1d3a, #4b1f8f); }
.savebar { position: sticky; bottom: -32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 -24px -32px; background: rgba(17, 20, 44, 0.96); border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1fr 1fr auto; gap: 10px; align-items: end; }
.inline-form { display: flex !important; flex-direction: row !important; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .adm-input { flex: 1; min-width: 120px; }
.discount-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--navy); }
.discount-bar p { font-size: 13px; }
.promo-t .sel-col { width: 28px; }
.promo-t th:nth-child(-n+5), .promo-t td:nth-child(-n+5) { text-align: left; padding-left: 0; }
.promo-t th:nth-child(5), .promo-t td:nth-child(5) { padding-left: 12px; }
.orders-t th, .orders-t td { text-align: left; }
.orders-t th:nth-child(n+7), .orders-t td:nth-child(n+7) { text-align: right; }
.orders-t th:nth-child(n+10), .orders-t td:nth-child(n+10) { text-align: left; padding-left: 16px; }
.promo-t tr.sel td { background: rgba(162, 74, 253, 0.08); }
.promo-t input { accent-color: var(--purple); }
.act-cell { white-space: nowrap; text-align: right; }
.act-cell .link-btn { margin-left: 12px; }
.scan-link { font-size: 15px; font-weight: 600; margin: 4px 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 6px 0 10px; font-size: 13px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
.kv dd.ok { color: var(--purple-400); font-weight: 600; }
.panel.narrow { max-width: 620px; }
.bars-h { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.bars-h div { display: grid; grid-template-columns: 70px 1fr 32px; gap: 10px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.bars-h b { text-align: right; }

.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat small { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); }
.stat b { font: 600 30px/1.1 var(--font-body); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.stat em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.stat-bar { height: 4px; border-radius: 4px; background: var(--border); margin: 4px 0 2px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: var(--purple); }
.adm-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.adm-row.even { grid-template-columns: 1fr 1fr; }
.panel { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel-head b { font-size: 14px; font-weight: 600; }
.panel-head small { color: var(--text-dim); font-size: 11px; }
.panel-link { color: var(--purple-400); font-size: 12px; font-weight: 600; }
.line-chart { width: 100%; height: auto; display: block; }
.line-chart .grid line { stroke: var(--border); stroke-width: 1; }
.line-chart text { fill: var(--text-dim); font: 500 10px var(--font-body); }
.line-chart .ylab text { text-anchor: end; }
.line-chart .xlab text { text-anchor: middle; }
.line-chart .area { fill: rgba(162, 74, 253, 0.14); stroke: none; }
.line-chart .line { fill: none; stroke: var(--purple); stroke-width: 2; stroke-linejoin: round; }
.line-chart .pts circle { fill: var(--navy); stroke: var(--purple); stroke-width: 1.5; }
.line-chart .pts .end { fill: var(--purple); stroke: var(--white); }
.line-chart .end-lab { fill: var(--white); font-weight: 600; font-size: 11px; text-anchor: end; }
.split { height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; }
.split i { display: block; height: 100%; background: var(--purple); }
.split-lab { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.split-lab span:first-child b { color: var(--purple-400); }
.split-lab b { color: var(--white); }
.mini, .lb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini th, .lb th { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); text-align: right; padding: 6px 0; }
.mini td, .lb td { padding: 8px 0; border-top: 1px solid var(--border); text-align: right; font-size: 12.5px; }
.mini th:first-child, .mini td:first-child, .lb th:first-child, .lb td:first-child, .lb th:nth-child(2), .lb td:nth-child(2) { text-align: left; }
.lb td:nth-child(2) { padding-left: 12px; }
.lb th:nth-child(2) { padding-left: 12px; }
.panel code { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.06em; font-size: 11.5px; color: var(--purple-400); }
.panel-sub { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); margin-top: 4px; }
.share { display: grid; grid-template-columns: 70px 1fr 36px 36px; align-items: center; gap: 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
.share code { color: var(--white); }
.sbar { height: 5px; border-radius: 5px; background: var(--border); overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--purple); }
.share em { font-style: normal; color: var(--text-muted); text-align: right; }
.share b { text-align: right; font-weight: 600; }
.lb td { vertical-align: middle; }
.lb td:last-child, .lb th:last-child { padding-right: 0; }
.orders-t td, .orders-t th { padding-left: 8px; }
.orders-t td:first-child, .orders-t th:first-child { padding-left: 0; }
.panel { overflow-x: auto; }
.panel.ev-panel { overflow: visible; }

/* medium frames: tighten before going to the phone layout */
@container adm (max-width: 1000px) {
  .adm { grid-template-columns: 168px minmax(0, 1fr); }
  .adm-row, .adm-row.even { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .artist-row { grid-template-columns: 40px 1fr auto 28px; }
  .artist-row .field:nth-of-type(2), .artist-row .field:nth-of-type(3) { display: none; }
}

/* phone layout, matching the EM4 admin on a phone */
@container adm (max-width: 720px) {
  /* Phone mode: no inner scroll box. The admin grows to its content and the page itself scrolls,
     so a swipe never gets caught between two scrollers. */
  .adm { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 560px; }
  .adm-main { overflow: visible; }
  .savebar { position: static; }
  .adm-side {
    border-right: 0; border-bottom: 1px solid var(--border); padding: 12px 0 0; gap: 10px; overflow: visible;
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "me out" "nav nav";
  }
  .adm-me { grid-area: me; padding-left: 16px; }
  .adm-logout { grid-area: out; margin-right: 16px; padding: 7px 14px; }
  .adm-nav {
    grid-area: nav; flex-direction: row; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 0 12px 10px; gap: 4px;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x proximity; scroll-padding-inline: 12px;
  }
  .adm-nav button { scroll-snap-align: start; flex: none; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav button { padding: 8px 12px; font-size: 14px; }
  .adm-nav button[aria-current="page"] { box-shadow: none; }
  .adm-main { padding: 18px 16px 28px; }
  .adm-h1 { font-size: 30px; }
  .adm-head { flex-direction: column; align-items: stretch; }
  .adm-tools { display: grid; grid-template-columns: 1fr auto; }
  .adm-tools .adm-select { grid-column: 1 / -1; width: 100%; font-size: 14px; padding: 10px 12px; }
  .adm-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; }
  .stat b { font-size: 24px; }
  .stat small { font-size: 9.5px; }
  .filters, .two, .rel-edit { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .savebar { margin: 0 -16px -28px; bottom: -28px; }
  .see { flex-direction: column !important; align-items: stretch; }
  .rel-actions { width: 100%; }
  .artist-row { grid-template-columns: 36px 1fr 28px; }
  .artist-row .check { grid-column: 2; }
  .discount-bar .row-btns { width: 100%; }
  .panel-head { flex-wrap: wrap; }
  .panel-head .adm-input { width: 100%; }

  /* tables become stacked cards */
  .cardify thead { display: none; }
  .cardify, .cardify tbody { display: block; }
  .cardify tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--border); position: relative; }
  .cardify td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
  .cardify td[data-l]::before { content: attr(data-l); display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--text-dim); margin-bottom: 2px; }
  .cardify td:first-child { grid-column: 1 / -1; font-size: 14px; }
  .cardify td.empty { grid-column: 1 / -1; }
  .cardify .act-cell, .cardify .menu-cell { grid-column: 1 / -1; text-align: left !important; width: auto; }
  .cardify .act-cell .link-btn { margin: 0 14px 0 0; }
  .promo-t .sel-col { position: absolute; right: 0; top: 12px; grid-column: auto; }
  .promo-t td:nth-child(2) { display: none; }
  .events-t .pop { right: auto; left: 0; }
}

/* lock screen payouts */
.scr-money {
  padding-top: 60px; align-items: stretch;
  background: radial-gradient(120% 60% at 50% 0%, rgba(139, 29, 252, 0.35), transparent 70%), var(--navy);
}
.lock-time { text-align: center; font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lock-date { text-align: center; color: var(--text-muted); font-weight: 500; margin-bottom: 20px; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: rgba(17, 20, 44, 0.88); border: 1px solid var(--border);
}
.note div { flex: 1; min-width: 0; }
.note b { display: block; font-size: 12px; }
.note small { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.note em { font-style: normal; font-size: 10px; color: var(--text-dim); align-self: flex-start; }
.nicon { width: 28px; height: 28px; border-radius: 7px; flex: none; background: var(--purple-600); position: relative; }
.nicon::before, .nicon::after { content: ""; position: absolute; width: 8px; height: 6px; border: 0 solid var(--white); }
.nicon::before { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 3px; }
.nicon::after { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 3px; }
.note.dim { opacity: 0.55; }
.screen-stack > .scr-money.on .note { animation: noteIn 400ms var(--ease) both; }
.screen-stack > .scr-money.on .note:nth-child(2) { animation-delay: 80ms; }
.screen-stack > .scr-money.on .note:nth-child(3) { animation-delay: 160ms; }
.screen-stack > .scr-money.on .note:nth-child(4) { animation-delay: 240ms; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}

/* ---------- Booking privacy note ---------- */
.book-privacy { grid-column: 1 / -1; font-size: 13px; color: var(--text-dim); }

/* ---------- Legal pages ---------- */
.legal { max-width: calc(760px + 64px); padding-block: 64px 112px; display: flex; flex-direction: column; gap: 16px; }
.legal .h2 { margin-top: 4px; }
.legal-meta { color: var(--text-dim); font-size: 14px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.legal-toc a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); }
.legal-toc a:hover { color: var(--white); border-color: var(--purple); text-decoration: none; }
.legal section { padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.legal h2 { font: 400 26px/1.1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.legal h3 { font-size: 17px; font-weight: 600; margin-top: 8px; }
.legal p, .legal li { color: var(--text-muted); max-width: 68ch; }
.legal strong { color: var(--white); font-weight: 600; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal li::marker { color: var(--purple-400); }
mark.fill { background: rgba(242, 198, 109, 0.16); color: #F2C66D; border: 1px dashed rgba(242, 198, 109, 0.6); border-radius: 4px; padding: 0 4px; }
.footer-nav a[aria-current="page"] { color: var(--white); }

/* Sandbox reset button */
.sandbox-reset {
  all: unset; cursor: pointer; flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--white);
  transition: border-color 150ms ease-out;
}
.sandbox-reset:hover { border-color: var(--purple); }
.sandbox-reset:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (max-width: 560px) { .browser-url { display: none; } .sandbox-tag { margin-left: 0; } .sandbox-reset { margin-left: auto; } }

/* Admin portal intro */
.admin-intro { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; max-width: 720px; }
.admin-title { margin: 0; font: 400 clamp(32px, 4.2vw, 44px)/1.05 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.admin-lead { color: var(--text-muted); font-size: 18px; line-height: 1.6; max-width: 60ch; }
.admin-intro .label { color: var(--purple-400); }

/* Hero headline: longer line, so a touch smaller and wider */
.hero-copy .display { font-size: clamp(44px, 6.2vw, 84px); max-width: 12ch; }
.hero-lead { font-size: clamp(20px, 2vw, 26px); color: var(--white); font-weight: 500; max-width: none; }
.hero-lead { text-wrap: balance; }

/* Background gradient: a fixed layer the size of the screen, sitting behind all content.
   It stays in place while the page scrolls, so the glow is there from top to bottom on every page.
   (A fixed element, not background-attachment: fixed, which iPhone Safari ignores or stutters on.) */
body { background-color: var(--navy); }
html::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 88% 0%, rgba(139, 29, 252, 0.22), transparent 70%),
    radial-gradient(60% 55% at 0% 100%, rgba(76, 40, 180, 0.20), transparent 70%),
    radial-gradient(45% 40% at 10% 25%, rgba(162, 74, 253, 0.08), transparent 70%),
    linear-gradient(160deg, #04052A 0%, #00031D 45%, #03042A 100%);
}
.cal-inline .bk-alt { display: inline-block; margin: 12px 0 0; }
.bk-state-title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; color: var(--white); }
#bk-error p:not(.bk-state-title) { max-width: 34ch; }
#bk-error .btn { margin-top: 8px; }
.bk-retry { all: unset; cursor: pointer; font-size: 13px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.bk-retry:hover { color: var(--white); }
.bk-retry:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 96px 128px; }
.notfound-title { font-size: clamp(56px, 10vw, 120px); line-height: 0.95; }
.notfound-home { font-weight: 600; }
