/* papis — ShowGenie's layout in Papi's Playhouse colours: crimson and blush on ink, Playfair Display over Inter.
   Self-hosted fonts; no inline styles (the CSP forbids them). */

@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/PlayfairDisplay-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/PlayfairDisplay-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-2: #160a0e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-hot: rgba(192, 69, 94, 0.5);
  --text: #f5e6e8;
  --muted: #b8a2a7;
  --magenta: #c0455e;
  --violet: #a01e3c;
  --cyan: #d4637a;
  --amber: #d4a040;
  --lime: #60c080;
  --red: #e07080;
  --grad: linear-gradient(120deg, var(--magenta), var(--violet) 50%, var(--cyan));
  --grad-warm: linear-gradient(120deg, var(--amber), var(--magenta));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(160, 30, 60, 0.5);
  --glow: 0 0 0 1px rgba(192, 69, 94, 0.45), 0 10px 40px -8px rgba(160, 30, 60, 0.6);
  --display: "Playfair Display", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: 0.85em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--cyan); }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Animated aurora backdrop ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(10, 10, 10, 0) 0, var(--bg) 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px);
}
.aurora span {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.38;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { background: var(--magenta); top: -25vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: var(--violet); top: -10vmax; right: -25vmax; animation-delay: -7s; }
.aurora span:nth-child(3) { background: var(--cyan); bottom: -35vmax; left: 20vmax; opacity: 0.22; animation-delay: -14s; }
@keyframes drift {
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(10, 10, 10, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { color: var(--text); }
.wordmark { display: block; height: 64px; width: auto; transition: filter 0.3s; }
.brand:hover .wordmark { filter: drop-shadow(0 0 10px rgba(160, 30, 60, 0.6)); }
.footer .wordmark { height: 56px; }
@keyframes shimmer { to { background-position: 200% center; } }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.nav-links > a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav-links > a:not(.btn):hover { color: #fff; }
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 0.4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; }

.bell { display: inline-flex; position: relative; }
.bell svg { width: 22px; height: 22px; fill: currentColor; }
.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--magenta);
  color: #fff;
  font: 700 0.7rem/19px var(--body);
  text-align: center;
  box-shadow: 0 0 12px var(--magenta);
  animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), pulse 2.4s ease-in-out 0.4s infinite;
}
@keyframes pop { from { transform: scale(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 22px var(--magenta); } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.75rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--body);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background-position 0.5s, border-color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); background-size: 200% auto; box-shadow: 0 8px 30px -10px var(--magenta); }
.btn-primary:hover { background-position: right center; box-shadow: var(--glow); }
.btn-outline { background: rgba(255, 255, 255, 0.03); border-color: var(--line-hot); }
.btn-outline:hover { border-color: var(--magenta); box-shadow: var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: rgba(224, 112, 128, 0.12); border-color: rgba(224, 112, 128, 0.5); color: #ffc2cf; }
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red); }
.btn-sm { --pad: 0.45rem 0.95rem; font-size: 0.85rem; }
.btn-lg { --pad: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.7);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: var(--red); border-color: var(--red); }

/* ---------- Layout ---------- */
.page { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.landing { flex: 1; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1.75rem; }
.page-head h1 { margin: 0; }
.page-head > :first-child { margin-bottom: 0; }
.page-head .btn, .page-head .actions { margin-left: auto; }
.page-head .eyebrow { flex-basis: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font: 600 0.75rem var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--magenta);
}
.eyebrow a { color: inherit; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.span-2 { grid-column: 1 / -1; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; align-items: end; }

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
}
.glass { background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); box-shadow: var(--shadow); }
.panel { margin-bottom: 1.25rem; }
.grid-2 > .panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; }
.panel-hot { border-color: var(--line-hot); box-shadow: var(--glow); }
.panel-danger { border-color: rgba(224, 112, 128, 0.35); }
.narrow { max-width: 760px; }
.empty { color: var(--muted); padding: 1rem 0; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
input, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
  color: var(--text);
  font: 1rem var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(192, 69, 94, 0.18);
}
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--magenta); }
input[type="file"] { padding: 0.6rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { margin-top: 0.3rem; }

.captcha { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: end; }
.captcha img { border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; border: 0; padding: 0; margin: 0; }
.role-tile { position: relative; cursor: pointer; }
.role-tile input { position: absolute; opacity: 0; }
.role-tile span {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.role-tile strong { font-family: var(--display); }
.role-tile small { color: var(--muted); }
.role-tile input:checked + span { border-color: var(--magenta); box-shadow: var(--glow); background: rgba(192, 69, 94, 0.08); }
.role-tile input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.drop {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 1.5px dashed var(--line-hot);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.drop:hover { border-color: var(--magenta); background: rgba(192, 69, 94, 0.05); }
.drop input { border: 0; background: none; padding: 0; }

.lightbox { padding: 0; border: 0; background: none; max-width: 92vw; max-height: 92vh; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(10, 10, 10, 0.85); }
.lightbox img { display: block; max-width: 92vw; max-height: 92vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.filters input { flex: 1 1 180px; }

.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid; }
.alert-error { background: rgba(224, 112, 128, 0.1); border-color: rgba(224, 112, 128, 0.45); color: #ffc2cf; }

/* In-page replacements for the browser's confirm dialog and validation bubbles. */
.confirm-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; padding: 0.6rem 0.8rem;
  border: 1px solid rgba(224, 112, 128, 0.45); border-radius: var(--radius-sm); background: rgba(224, 112, 128, 0.1); color: #ffc2cf;
}
.confirm-bar span { flex: 1 1 200px; }
.field-error { display: block; margin-top: 0.3rem; color: #ffc2cf; font-size: 0.8rem; }
.alert-ok { background: rgba(96, 192, 128, 0.08); border-color: rgba(96, 192, 128, 0.35); color: #bbf7d0; }
.alert-warn { background: rgba(212, 160, 64, 0.1); border-color: rgba(212, 160, 64, 0.45); color: #ffe2b3; }
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(160, 30, 60, 0.16), rgba(212, 99, 122, 0.08));
  border: 1px solid rgba(160, 30, 60, 0.4);
}
.callout p { margin: 0.2rem 0 0; color: var(--muted); }
.callout form { margin: 0; }
.callout-hot { background: linear-gradient(120deg, rgba(192, 69, 94, 0.18), rgba(212, 160, 64, 0.1)); border-color: var(--line-hot); }

/* ---------- Pills, chips, stars ---------- */
.pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font: 600 0.72rem var(--body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.pill-pending { color: var(--amber); border-color: rgba(212, 160, 64, 0.45); background: rgba(212, 160, 64, 0.08); }
.pill-accepted { color: var(--cyan); border-color: rgba(212, 99, 122, 0.45); background: rgba(212, 99, 122, 0.08); }
.pill-booked { color: var(--lime); border-color: rgba(96, 192, 128, 0.45); background: rgba(96, 192, 128, 0.08); }
.pill-declined, .pill-withdrawn { color: var(--muted); border-color: var(--line); }
.pill-refunded { color: var(--violet); border-color: rgba(160, 30, 60, 0.5); }
.pill-count { color: var(--cyan); border-color: rgba(212, 99, 122, 0.45); background: rgba(212, 99, 122, 0.08); align-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.chip { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--surface-2); font-size: 0.78rem; color: var(--text); }
.chip-fee { background: var(--grad-warm); color: #1a0a0e; font-weight: 700; }
.stars { display: inline-flex; align-items: center; gap: 0.1rem; color: rgba(255, 255, 255, 0.18); font-size: 1.1rem; }
.stars .on { color: var(--amber); text-shadow: 0 0 10px rgba(212, 160, 64, 0.6); }
.stars small { margin-left: 0.5rem; color: var(--muted); font-size: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 1rem; }
.glow-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
  filter: drop-shadow(0 0 24px rgba(192, 69, 94, 0.45));
}
.glow-text.alt { background-image: linear-gradient(120deg, var(--cyan), var(--violet), var(--magenta)); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.hero-logo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 40px rgba(160, 30, 60, 0.45));
}
}

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); padding: 1.1rem 0; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font: 700 1.4rem var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); text-transform: uppercase; }
.marquee-track span:nth-child(3n) { -webkit-text-stroke: 0; color: var(--magenta); text-shadow: 0 0 18px rgba(192, 69, 94, 0.6); }
@keyframes scroll { to { transform: translateX(-50%); } }

.split, .how, .pricing, .cta-band { max-width: var(--max); margin: 0 auto; padding: 5rem 1.25rem 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split-card {
  position: relative;
  padding: 2.5rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.split-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6; }
.split-card.customers::before { background: radial-gradient(circle at 0% 0%, rgba(192, 69, 94, 0.35), transparent 60%); }
.split-card.performers::before { background: radial-gradient(circle at 100% 0%, rgba(212, 99, 122, 0.3), transparent 60%); }
.split-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 2rem; color: #e8d6da; }
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
.section-title { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 2.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.steps li:hover { transform: translateY(-6px); border-color: var(--line-hot); box-shadow: var(--glow); }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: block; font: 700 2.4rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.5rem; }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 1.5rem; }
.price-card { position: relative; padding: 2.25rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.5rem; align-content: start; }
.price-card.featured { border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; box-shadow: var(--glow); }
.price { font: 700 3rem var(--display); margin: 0.25rem 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.ribbon { position: absolute; top: 1.2rem; right: 1.2rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--grad); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cta-band { text-align: center; padding-bottom: 5rem; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 1.5rem; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: min(100%, 440px); padding: 2.25rem; }
.auth-card.wide { width: min(100%, 620px); }
.auth-card h1 { font-size: 2rem; }

/* ---------- Dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.2rem; color: var(--muted); }
.stat-n { font: 700 2.4rem var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wave { display: inline-block; color: var(--magenta); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.row-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  padding: 0.9rem 1rem;
  margin: 0 -1rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.15s;
}
.row-link + .row-link { border-top: 1px solid var(--line); }
a.row-link:hover { background: var(--surface-2); color: var(--text); }
.row-link > :last-child { margin-left: auto; }
.row-link form { margin: 0 0 0 auto; }
.row-link.unread { background: rgba(192, 69, 94, 0.06); }
.row-link:not(.unread) .toast-dot { opacity: 0.2; box-shadow: none; }

/* ---------- Ticket cards (events) ---------- */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.ticket:hover { transform: translateY(-4px) rotate(-0.3deg); border-color: var(--line-hot); box-shadow: var(--glow); color: var(--text); }
.ticket-date {
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--grad);
  color: #fff;
  /* perforated edge */
  mask: radial-gradient(circle 6px at right, transparent 98%, #000) right / 100% 18px;
  -webkit-mask: radial-gradient(circle 6px at right, transparent 98%, #000) right / 100% 18px;
}
.ticket-date .month { font: 700 0.75rem var(--body); text-transform: uppercase; letter-spacing: 0.15em; }
.ticket-date .day { font: 700 2.2rem/1 var(--display); }
.ticket-date .dow { font-size: 0.75rem; opacity: 0.85; }
.ticket-date.big { border-radius: var(--radius); padding: 1.5rem 1.75rem; mask: none; -webkit-mask: none; box-shadow: var(--glow); }
.ticket-date.big .day { font-size: 3.2rem; }
.ticket-body { padding: 1rem 1.2rem; min-width: 0; }
.ticket-body h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.ticket-body p { margin: 0; font-size: 0.88rem; }
.load-more { grid-column: 1 / -1; justify-self: center; }

.event-hero, .profile-hero { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; margin-bottom: 2rem; }
.prose { white-space: pre-line; color: #e8d6da; }

/* ---------- Artists ---------- */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.artist-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  aspect-ratio: 3 / 4;
  transition: transform 0.25s, box-shadow 0.25s;
}
/* The photo keeps its own aspect ratio inside the card instead of being cropped. */
.artist-card img, .artist-card .avatar-empty { width: 100%; height: 100%; object-fit: contain; background: var(--bg); transition: transform 0.6s; }
.artist-card:hover { transform: translateY(-5px); box-shadow: var(--glow); color: var(--text); }
.artist-card:hover img { transform: scale(1.06); }
.artist-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  display: grid;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.95));
}
.artist-card-body strong { font-family: var(--display); }
.avatar-empty { display: grid; place-items: center; background: var(--grad); font: 700 3rem var(--display); color: #fff; }

/* The profile photo in its own shape: no circle, no crop. */
.profile-photo {
  display: block; flex: none; max-width: 240px; max-height: 300px; width: auto; height: auto;
  border-radius: var(--radius-sm); border: 1px solid var(--line-hot); box-shadow: var(--glow);
}
div.profile-photo { width: 160px; height: 200px; }
.profile-head { justify-content: flex-start; gap: 1.5rem; align-items: center; }
.profile-head .profile-photo { max-width: 160px; max-height: 200px; }
.profile-head div.profile-photo { width: 120px; height: 150px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: contain; background: var(--bg); }  /* whole photo, own shape */
.gallery form { position: absolute; top: 6px; right: 6px; margin: 0; }
.gallery .photo-choice { top: auto; right: auto; bottom: 6px; left: 6px; position: absolute; margin: 0; }

.review { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; }
.review p { margin: 0.4rem 0; }
.review cite { color: var(--muted); font-size: 0.85rem; font-style: normal; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.25rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; display: grid; gap: 0.6rem; width: min(360px, calc(100vw - 2.5rem)); }
.toast {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(22, 10, 14, 0.92);
  border: 1px solid var(--line-hot);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow);
  color: var(--text);
  animation: slide-in 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
  transition: opacity 0.5s, transform 0.5s;
}
.toast:hover { color: #fff; border-color: var(--magenta); }
.toast.leaving { opacity: 0; transform: translateX(40px); }
.toast-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
@keyframes slide-in { from { opacity: 0; transform: translateX(60px); } }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 2.5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.1rem; }
.legal li { margin-bottom: 0.4rem; color: #e8d6da; }
.agreement-text { max-height: 22rem; overflow-y: auto; padding: 1rem 1.25rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.agreement-text h1 { font-size: 1.3rem; }
.agreement-text h2 { margin-top: 1.5rem; font-size: 1.05rem; }
.agreement-text h3 { font-size: 0.95rem; }
.agreement-parties { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.agreements .panel { margin-bottom: 1.25rem; }
.legal p { color: #e8d6da; }

/* ---------- Admin tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.table td { padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.pager { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.admin .brand .pill { margin-left: 0.4rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(10, 10, 10, 0.7); margin-top: auto; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1.25rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin-top: 0.75rem; max-width: 22rem; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 3rem; }
.footer-cols div { display: grid; gap: 0.5rem; align-content: start; }
.footer-cols h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin: 0 0 0.3rem; }
.footer-cols a { color: var(--text); font-size: 0.92rem; }
.footer-cols a:hover { color: var(--magenta); }
.footer-legal { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem 2rem; color: var(--muted); font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 0.6rem 0; }
  .grid-2, .stats, .price-grid, .steps, .role-pick { grid-template-columns: 1fr; }
  .captcha { grid-template-columns: 1fr; }
  .split-card { padding: 1.75rem; }
  .page-head .btn, .page-head .actions { margin-left: 0; }
}

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

/* Overlays (the adults-only gate): the page stays visible but blurred behind a card. */
.access-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem;
  background: rgba(10, 10, 10, 0.78); backdrop-filter: blur(6px);
}
.access-card {
  display: grid; justify-items: center; gap: 0.9rem; max-width: 440px; padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--line-hot); border-radius: var(--radius); background: var(--surface); box-shadow: var(--glow);
}
.access-card h2 { margin: 0; }
.access-card p { margin: 0; }

/* Pre-launch coming soon page (visitors outside PAPIS_SITE_ALLOWED_IPS). */
.coming-soon {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 2rem 1rem; text-align: center;
}
.coming-soon img { width: min(373px, 80vw); height: auto; }
.coming-soon h1 { margin: 0; }
.coming-soon .lead { max-width: 34rem; margin: 0; }

/* Profile photos open full size in the lightbox. */
.photo-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); }
.photo-zoom:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.gallery .photo-zoom { width: 100%; height: 100%; }

/* ID check QR code: dark on white, whatever the theme, so phones can read it. */
.verify-qr { display: grid; justify-items: start; gap: 0.5rem; }
.verify-qr svg { background: #fff; padding: 12px; border-radius: 8px; }

/* A count beside a heading: a pill about as tall as the heading's capitals, its number at half the heading's size. */
.count-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5em; height: 1.44em; min-width: 1.44em; padding: 0 0.5em; margin-left: 0.35em;
  border-radius: 999px; background: var(--grad); color: #fff; line-height: 1; letter-spacing: 0;
  vertical-align: baseline; position: relative; top: 0.06em;
}

/* ---------- Dashboard tabs ---------- */
.tabs { display: flex; gap: 0.25rem; margin: -0.75rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: 0.6rem 1rem; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--magenta); }
.how-to h2 { margin-top: 0; }
.how-to ol, .how-to ul { padding-left: 1.25rem; line-height: 1.6; }
.how-to li + li { margin-top: 0.35rem; }

/* Landing page: Contact us form. */
.contact { padding-bottom: 4rem; }
.contact-card { max-width: 720px; margin: 0 auto; }
.message-text { white-space: pre-wrap; min-width: 16rem; }

/* ---------- papis: show rooms ---------- */
.stage { position: relative; min-height: 360px; display: grid; place-items: center; overflow: hidden; margin-bottom: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
.stage video { width: 100%; max-height: 70vh; display: block; }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; max-height: 300px; overflow-y: auto; }
.tip-list li { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.tips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.pill-scheduled { color: var(--cyan); border-color: rgba(212, 99, 122, 0.45); background: rgba(212, 99, 122, 0.08); }
.pill-live { color: var(--lime); border-color: rgba(96, 192, 128, 0.45); background: rgba(96, 192, 128, 0.08); }
.pill-completed, .pill-cancelled { color: var(--muted); border-color: var(--line); }
.pill-private { color: var(--amber); border-color: rgba(212, 160, 64, 0.45); background: rgba(212, 160, 64, 0.08); }
.pill-paid { color: var(--lime); border-color: rgba(96, 192, 128, 0.45); background: rgba(96, 192, 128, 0.08); }
.pill-failed { color: var(--red); border-color: rgba(224, 112, 128, 0.45); }
.ticket-date .time { font-size: 0.75rem; opacity: 0.85; }
.disabled { opacity: 0.4; pointer-events: none; }
