/* ============================================================
   THE FAMILY AGENCY — indie label aesthetic
   ============================================================ */
:root {
  --bg: #0c0a0f;
  --bg-2: #14111b;
  --panel: #1a1622;
  --ink: #f2eee9;
  --ink-dim: #9b93a6;
  --accent: #ff3d5a;      /* hot red-pink */
  --accent-2: #ffb52e;    /* gig-poster gold */
  --accent-3: #4de1c1;    /* teal pop */
  --border: #2b2536;
  --radius: 14px;
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* the hidden attribute must always win — otherwise a class rule that sets
   display on the same element (e.g. .pos-shell, .pos-gate) silently overrides
   it, since author CSS beats the browser's default [hidden]{display:none} */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* grainy texture overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  font-weight: 400;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1200px; margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em;
}
.logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-dim); font-size: .92rem; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0;
  color: var(--ink); font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: 4px 8px;
}

/* ---------- profile avatar menu (dashboard) ---------- */
.profile-menu { position: relative; }
.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--border); cursor: pointer; padding: 0;
  background: var(--panel); color: var(--accent-2);
  font-family: var(--font-body); font-weight: 800; font-size: .85rem;
  overflow: hidden; display: grid; place-items: center;
  transition: border-color .15s;
}
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { border-color: var(--accent); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-drop {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 210px; padding: 6px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.55);
  z-index: 60;
  /* the mobile menu mirrors every dash-nav section (Door included) plus
     Public Site/Log Out — on a short viewport that can run past the bottom
     of the screen, so cap it and let it scroll instead of clipping */
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.menu-drop a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-dim); font-weight: 600; font-size: .92rem;
}
.menu-drop a:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.menu-user { padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-user strong { display: block; font-size: .95rem; }
.menu-user span { color: var(--ink-dim); font-size: .78rem; overflow-wrap: anywhere; }
/* dashboard sections live in the dropdown on mobile only */
.menu-sections { display: none; border-bottom: 1px solid var(--border); margin-bottom: 6px; padding-bottom: 6px; }
.menu-sections button {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 8px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-dim); font-weight: 600; font-size: .92rem;
  font-family: var(--font-body);
}
.menu-sections button:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.menu-sections button.active { color: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff; font-weight: 700;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer; font-size: 1rem;
  font-family: var(--font-body);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,61,90,.35); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { padding: 8px 18px; font-size: .85rem; }
.btn-gold { background: var(--accent-2); border-color: var(--accent-2); color: #1a1005; }
.btn-danger { background: transparent; border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(255,61,90,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 90%, rgba(77,225,193,.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
/* photo layer sits under the gradients, faded so they blend together */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../BedHeads.jpg") center 30% / cover no-repeat;
  opacity: .28;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.55) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.55) 70%, transparent);
}
.hero > .wrap { position: relative; z-index: 2; }
/* roaming stage lights */
.hero::after {
  content: "";
  position: absolute; inset: -15%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 28% 42% at 18% 0%, rgba(255,61,90,.18), transparent 70%),
    radial-gradient(ellipse 26% 40% at 82% 0%, rgba(255,181,46,.14), transparent 70%);
  animation: stage-sweep 9s ease-in-out infinite alternate;
}
@keyframes stage-sweep {
  from { transform: translateX(-5%) rotate(-2deg); }
  to   { transform: translateX(5%) rotate(2deg); }
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem);
  margin-bottom: 18px;
}
.hero h1, .hero p.lead, .hero .cta-row { animation: rise-in .7s cubic-bezier(.2,.7,.3,1) backwards; }
.hero p.lead { animation-delay: .22s; }
.hero .cta-row { animation-delay: .42s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } }
.hero h1 .stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero h1 .hot {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255,61,90,.55), 0 0 70px rgba(255,61,90,.28);
  animation: neon-flicker 5s linear infinite;
}
/* quick double-stutter like a tired neon sign */
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  3%  { opacity: .5; }  4%  { opacity: 1; }
  6%  { opacity: .75; } 7%  { opacity: 1; }
  54% { opacity: 1; }   55% { opacity: .55; } 56% { opacity: 1; }
}
.hero .cta-row .btn:first-child { animation: rise-in .7s cubic-bezier(.2,.7,.3,1) backwards, cta-glow 2.8s ease-in-out 1.2s infinite; }
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,61,90,0); }
  50% { box-shadow: 0 8px 30px rgba(255,61,90,.45); }
}
.hero p.lead {
  font-size: 1.2rem; color: var(--ink-dim);
  max-width: 620px; margin-bottom: 34px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* scrolling marquee strip */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--accent);
  color: #1a0509;
  font-family: var(--font-display);
  font-size: 1.05rem; text-transform: uppercase;
  padding: 10px 0;
  display: flex;
  align-items: center;
}
.marquee-inner { display: flex; width: max-content; animation: scroll 28s linear infinite; align-items: center; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; white-space: nowrap; align-items: center; }
.marquee-group span { margin: 0 26px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 10px;}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.section-head h2::after {
  content: ""; display: block; width: 70px; height: 5px;
  background: var(--accent-2); margin-top: 10px;
}
.section-head .sub { color: var(--ink-dim); }

/* ---------- scroll reveals (added by js on the home page) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.section-head.reveal h2::after { width: 0; transition: width .7s ease .25s; }
.section-head.reveal.in h2::after { width: 70px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero p.lead, .hero .cta-row, .hero .cta-row .btn:first-child,
  .hero::after, .hero h1 .hot, .marquee-inner { animation: none !important; }
}

/* ---------- roster grid ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* ---------- family member cards ---------- */
.member-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.member-card:hover { transform: translateY(-6px); border-color: var(--accent-3); }
.member-card .avatar {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px; display: block;
  border: 2px solid var(--border);
}
.member-card .no-avatar {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; color: var(--border);
  background: linear-gradient(135deg, var(--bg-2), var(--panel));
}
.member-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.member-card .badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.member-card .member-acts { font-size: .88rem; color: var(--ink-dim); margin-bottom: 10px; }
.member-card .bio { color: var(--ink-dim); font-size: .92rem; }

.act-card {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  aspect-ratio: 4 / 5;
  transition: transform .2s, border-color .2s;
}
.act-card:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--accent); }
.act-card img.hero-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.act-card .no-img {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3rem; color: var(--border);
  background: linear-gradient(135deg, var(--bg-2), var(--panel));
}
.act-card .meta {
  position: absolute; inset: auto 0 0 0;
  padding: 60px 18px 18px;
  background: linear-gradient(transparent, rgba(5,3,8,.95) 65%);
}
.act-card .meta h3 { font-size: 1.7rem; color: #fff; }
.act-card .meta .genre {
  display: inline-block; margin-top: 6px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-2);
}
.act-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent-2); color: #1a1005;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- shows list ---------- */
.show-row {
  display: grid; grid-template-columns: 130px 1fr auto;
  gap: 18px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.show-row .date {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--accent-2);
}
.show-row .who { font-weight: 700; font-size: 1.1rem; }
.show-row .where { color: var(--ink-dim); font-size: .95rem; }

/* ---------- territories ---------- */
.terr-row { display: flex; flex-wrap: wrap; gap: 12px; }
.terr-chip {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 22px; font-weight: 600; color: var(--ink-dim);
  background: var(--panel);
}
.terr-chip.home { border-color: var(--accent); color: var(--ink); }
.terr-chip.home::before { content: "★ "; color: var(--accent); }

/* ---------- forms ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim); margin: 16px 0 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-3); }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: var(--accent-3); }
.form-msg.err { color: var(--accent); }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .85rem; color: var(--ink-dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent); }

.check-row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 4px; }
.check-row .check {
  display: flex; align-items: center; gap: 8px; margin: 0;
  text-transform: none; letter-spacing: 0;
  font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.check-row input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.hint { color: var(--ink-dim); font-size: .85rem; margin-top: 8px; }

.media-box {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 4px 16px 16px; margin-top: 14px;
  background: var(--bg-2);
}
.media-box-label {
  font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent-2); margin-top: 12px;
}
.media-or { text-align: center; color: var(--ink-dim); font-size: .85rem; margin: 12px 0 0; }

/* ---------- act detail / EPK ---------- */
.epk-hero {
  position: relative; min-height: 46vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border);
}
.epk-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, var(--bg)); }
.epk-hero .wrap { padding-bottom: 40px; z-index: 2; }
.epk-hero h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
.epk-hero .tagline { color: var(--accent-2); font-weight: 700; font-size: 1.1rem; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.social-row a {
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; font-size: .85rem; font-weight: 700; color: var(--ink-dim);
}
.social-row a:hover { border-color: var(--accent-3); color: var(--accent-3); }

.media-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.media-grid iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); background: var(--bg-2); }
.media-grid iframe.audio { aspect-ratio: auto; height: 160px; }
.media-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }

/* ---------- dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 0 0 80px; }
.dash-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 90px; align-self: start; }
.dash-nav button {
  text-align: left; padding: 11px 16px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: ghostwhite; font-weight: 600; font-size: .95rem;
  cursor: pointer; font-family: var(--font-body);
}
.dash-nav button.active { background: var(--panel); color: var(--ink); border-color: var(--border); }
.dash-nav button:hover { color: var(--ink); }
/* bundles related nav buttons under a small label instead of one long flat
   list — the label itself hides (see syncNavGroups() in dashboard.js) when
   every button underneath it is gated off for the current member */
.dash-nav-group { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.dash-nav-label {
  padding: 0 16px; margin-bottom: 2px;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-dim);
}
.locked-note {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed var(--border); border-radius: 8px;
  color: var(--ink-dim); font-size: .8rem; line-height: 1.5;
}
.dash-section { display: none; padding-top: 25px; }
.dash-section.active { display: block; }

/* mobile-only "Next" nav — desktop already has the sidebar, see the
   mobile breakpoint below for the visible version */
.next-page-bar { display: none; }

/* ---------- the mission (letter from the don) ---------- */
.manifesto {
  position: relative; overflow: hidden;
  max-width: 780px; padding: 48px 52px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,61,90,.08), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(255,181,46,.06), transparent 45%),
    var(--panel);
  font-size: 1.02rem; line-height: 1.75;
}
.manifesto p { margin-bottom: 20px; color: var(--ink); }
.manifesto strong { color: var(--accent-2); }
.manifesto-wide { max-width: none; }
.manifesto-table-wrap { overflow-x: auto; margin-bottom: 6px; }
.manifesto-stamp {
  position: absolute; top: 26px; right: -52px;
  transform: rotate(35deg);
  padding: 5px 60px;
  border-top: 2px solid rgba(255,61,90,.5); border-bottom: 2px solid rgba(255,61,90,.5);
  color: var(--accent); font-size: .66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .22em; white-space: nowrap;
  opacity: .8; pointer-events: none;
}
.manifesto-kicker {
  color: var(--accent); font-size: .78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .28em;
  margin-bottom: 10px !important;
}
.manifesto-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.manifesto-title em { color: var(--accent); font-style: normal; }
.manifesto-lead {
  font-size: 1.15rem; line-height: 1.7;
}
.manifesto-why {
  font-family: var(--font-display);
  font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink);
  margin: 28px 0 !important;
}
.manifesto-why strong { color: var(--accent); }
.manifesto-crew {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin: 26px 0;
}
.manifesto-crew > div {
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px;
  border-top: 3px solid var(--accent-2);
}
.manifesto-crew > div:nth-child(2) { border-top-color: var(--accent); }
.manifesto-crew > div:nth-child(3) { border-top-color: var(--accent-3); }
.manifesto-crew h4 {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.05rem; margin-bottom: 8px;
}
.manifesto-crew p { color: var(--ink-dim); font-size: .9rem; line-height: 1.6; margin: 0; }
.manifesto-quote {
  margin: 30px 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--accent);
  font-size: 1.25rem; line-height: 1.55;
  font-weight: 700; color: var(--ink);
}
.manifesto-sign {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.manifesto-sign span { display: block; color: var(--ink-dim); font-style: italic; }
.manifesto-sign strong {
  display: block; margin-top: 6px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 2.2rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-2);
  transform: rotate(-2deg); transform-origin: left center;
}

.section-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }

.table-filter { max-width: 260px; margin-bottom: 14px; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--ink); }
.data-table th.sortable[data-dir="asc"]::after { content: " ↑"; color: var(--accent-2); }
.data-table th.sortable[data-dir="desc"]::after { content: " ↓"; color: var(--accent-2); }

.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th {
  text-align: left; padding: 10px 12px; color: var(--ink-dim);
  text-transform: uppercase; font-size: .72rem; letter-spacing: .08em;
  border-bottom: 2px solid var(--border);
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.pill.inquiry   { background: #3a3345; color: #cfc6dd; }
.pill.hold      { background: #4d3a12; color: var(--accent-2); }
.pill.confirmed { background: #123d33; color: var(--accent-3); }
.pill.completed { background: #223; color: #8fa3c7; }
.pill.cancelled { background: #401820; color: var(--accent); }
.pill.pending   { background: #4d3a12; color: var(--accent-2); }
.pill.member    { background: #123d33; color: var(--accent-3); }
.pill.admin     { background: #401820; color: var(--accent); }

/* NOT display:flex on the td itself — that overrides its table-cell box
   type, which stops it from stretching to match the row's height like its
   sibling cells do and is exactly what produced the jagged, stair-stepped
   row borders. The inner .row-actions-icons wrapper is what actually flexes
   — a real flex container gives predictable, guaranteed-correct wrapping
   for the icon buttons, instead of relying on inline/nowrap edge cases. */
.row-actions { padding-top: 8px; padding-bottom: 8px; }
/* min-width: 0 overrides the default "auto" min-width a flex item gets from
   its content — without it, some browsers size this against its unwrapped
   (all-icons-on-one-line) width when it's itself a flex item on mobile
   (.data-table td.row-actions goes flex there), forcing the row past the
   card edge instead of letting flex-wrap actually wrap it. */
.row-actions-icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.epk-link { display: block; font-size: .8rem; }
.site-link-inline { font-size: .8rem; color: var(--ink-dim); margin-right: auto; }
.site-link-inline:hover { color: var(--accent-3); }

/* Targets: action icons + site link live in a second <tr> below the data
   row instead of a cramped final column — these two rows should still read
   as one row, so the shared edge between them loses its border/radius/gap. */
.target-row td { border-bottom: none; }
.row-actions-continuation td.row-actions { padding-top: 0; }
.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--ink-dim);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: .8rem;
}
.icon-btn:hover { border-color: var(--accent-3); color: var(--accent-3); }
.icon-btn.danger:hover { border-color: var(--accent); color: var(--accent); }
/* the one action in a row worth reaching for first — same size and shape as
   its neighbors, just picked out by color instead of by being a bigger button */
.icon-btn.primary { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.icon-btn.primary:hover { background: var(--accent); color: #fff; }
.icon-btn.icon-only {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; vertical-align: middle;
}
.icon-btn.icon-only svg { width: 16px; height: 16px; }
/* every row-action click handler reads e.target.dataset off the <button> —
   without this, a click landing on the icon's <svg>/<path> (which covers
   most of the button's visible area) makes e.target the icon itself, which
   has no data-* attrs, so only the sliver of bare button padding around the
   icon actually registered a click. Excluding the icon from hit-testing
   makes the whole button clickable, the way it visually appears to be. */
.icon-btn svg { pointer-events: none; }

/* modal */
dialog {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; max-width: 640px; width: 92vw;
  max-height: 85vh; overflow-y: auto;
  inset: 0;
  margin: auto;
}
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }

/* ---------- auth page ---------- */
.auth-wrap { max-width: 440px; margin: 80px auto; padding: 0 24px; position: relative; z-index: 2;}
.auth-tabs { display: flex; gap: 0; margin-bottom: -1px; }
.auth-tabs button {
  flex: 1; padding: 14px; cursor: pointer;
  background: var(--bg-2); color: var(--ink-dim); font-weight: 700;
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; font-family: var(--font-body);
}
.auth-tabs button.active { background: var(--panel); color: var(--ink); }
.auth-wrap .panel { border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 0; color: var(--ink-dim); font-size: .9rem;
  background: var(--bg-2);
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

.empty { color: var(--ink-dim); font-style: italic; padding: 20px 0; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 10px 24px 18px;
    background: rgba(12,10,15,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 1rem; width: 100%; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { display: none; }
  .menu-sections { display: block; }
  .next-page-bar { display: flex; margin: 36px 0 8px; }
  .next-page-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; text-align: left; padding: 16px 22px;
  }
  .next-page-eyebrow {
    display: block; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em; opacity: .85;
  }
  .next-page-label { display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .02em; margin-top: 2px; }
  .next-page-arrow { font-size: 1.6rem; flex-shrink: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .show-row { grid-template-columns: 100px 1fr; }
  .show-row .where { grid-column: 2; }
  .table-filter { max-width: 100%; }

  .manifesto { padding: 32px 20px; font-size: .98rem; }
  .manifesto-stamp { display: none; }
  .manifesto-lead { font-size: 1.05rem; }
  .manifesto-why { font-size: 1.25rem; }
  .manifesto-quote { font-size: 1.1rem; padding-left: 16px; }
  .manifesto-sign strong { font-size: 1.8rem; }

  /* data tables become stacked cards (labels come from td[data-label]) */
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  /* a card is a fixed-width box now, not a table cell that grows to fit its
     content — overflow: hidden is the backstop that guarantees nothing
     (a long email, an unbroken venue name) can ever poke a card wider than
     the screen and force horizontal scroll, no matter what data comes in */
  .manifesto-table-wrap { overflow-x: visible; }
  .data-table tr {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 4px 14px; margin-bottom: 14px;
    background: rgba(255,255,255,.02);
    overflow: hidden;
  }
  .data-table tr:hover td { background: transparent; }
  .data-table td {
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
    overflow-wrap: anywhere; word-break: break-word;
  }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td[data-label] {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; text-align: right;
  }
  .data-table td[data-label]::before {
    content: attr(data-label);
    color: var(--ink-dim); text-transform: uppercase;
    font-size: .7rem; letter-spacing: .08em; font-weight: 700;
    flex-shrink: 0; text-align: left;
  }
  /* Merch rows carry more per field (pills, prices, act names) than a
     side-by-side label fits comfortably — stack label above value instead. */
  #merchItemsTable td[data-label], #merchKitsTable td[data-label], #merchSessionsTable td[data-label] {
    display: block; text-align: left;
  }
  #merchItemsTable td[data-label]::before, #merchKitsTable td[data-label]::before, #merchSessionsTable td[data-label]::before {
    display: block; margin-bottom: 4px;
  }
  .data-table td[style*="max-width"] { max-width: none !important; }
  .data-table td.row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
  .data-table td .empty, .data-table td.empty { padding: 4px 0; }
  .epk-link, .act-featured { display: none; }

  /* Targets: fuse the target-row card with its row-actions-continuation
     card right below it so the pair still reads as one card, like every
     other table's single-row-per-record cards. */
  .target-row {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    border-bottom: none; margin-bottom: 0;
  }
  .row-actions-continuation {
    border-top-left-radius: 0; border-top-right-radius: 0;
    border-top: none; margin-top: -1px;
  }
  .row-actions-continuation td.row-actions { padding-top: 6px; }
  .site-link-inline { margin-right: 0; }
}

/* ---------- merch sub-tabs (dashboard) + checkout method tabs (POS) ---------- */
.merch-subtabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.merch-subtabs button {
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); color: var(--ink-dim); font-weight: 700; font-size: .85rem;
  border: 1px solid var(--border); font-family: var(--font-body);
}
.merch-subtabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.merch-subpane[hidden] { display: none; }

/* ---------- POS / Display Mode (merch-pos.html) ---------- */
/* Phone-first on purpose — the opposite direction from the rest of the
   site, because this screen's real usage is a phone on a merch table. */
.pos-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); }
.pos-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.pos-header h1 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.pos-header .sub { color: var(--ink-dim); font-size: .78rem; }

.pos-gate {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 24px; text-align: center;
}

/* .pos-main is sized to its content, not stretched to fill the viewport —
   a short item grid must NOT leave a dead gap before the cart bar/drawer. */
.pos-main { padding: 16px; padding-bottom: 96px; }
.pos-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pos-tile {
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 100px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel); color: var(--ink);
  font-family: var(--font-body); transition: transform .1s ease;
}
.pos-tile:active:not(.sold-out) { transform: scale(.96); }
.pos-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.pos-tile .pos-tile-name { font-weight: 700; padding-right: 30px; }
.pos-tile .pos-tile-price { color: var(--accent-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.pos-tile .pos-tile-stock { font-size: .75rem; color: var(--ink-dim); }
.pos-tile.low-stock .pos-tile-stock { color: var(--accent-2); }
.pos-tile.sold-out { opacity: .45; pointer-events: none; }
.pos-tile.sold-out::after {
  content: "SOLD OUT"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,10,15,.55); font-family: var(--font-display); letter-spacing: .06em;
}
/* always-visible "+" corner badge — signals a tile is tappable before you've
   touched it, then flips to the accent color and shows the cart quantity */
.pos-tile-badge {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; line-height: 1;
  background: var(--bg-2); color: var(--ink-dim); border: 1px solid var(--border);
}
.pos-tile.in-cart .pos-tile-badge { background: var(--accent); color: #fff; border-color: var(--accent); }

.pos-cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: var(--panel); border-top: 1px solid var(--border);
  cursor: pointer; font-weight: 700;
}
.pos-cart-bar strong { font-variant-numeric: tabular-nums; }
.pos-cart-bar.empty { color: var(--ink-dim); }

/* mobile: a slide-up sheet, closed by default, opened by tapping the cart bar.
   desktop (see breakpoint below): an always-visible sidebar instead. */
.pos-cart-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: 85vh; background: var(--bg);
  border-top: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateY(100%); transition: transform .25s ease;
}
.pos-cart-panel.open { transform: translateY(0); }

.pos-register-drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; overflow-y: auto;
}
.pos-cart-header, .pos-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.pos-cart-lines { flex: 1; overflow-y: auto; padding: 8px 18px; }
.pos-cart-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.pos-cart-line .name { font-weight: 600; }
.pos-cart-line .price { color: var(--ink-dim); font-size: .85rem; font-variant-numeric: tabular-nums; }
.pos-qty-stepper { display: flex; align-items: center; gap: 12px; }
.pos-qty-stepper button {
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--ink); font-size: 1.2rem;
}
.pos-qty-stepper span { min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.pos-cart-footer { padding: 16px 18px 22px; border-top: 1px solid var(--border); background: var(--panel); }
.pos-cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; font-variant-numeric: tabular-nums;
}

.pos-action-btn { display: block; width: 100%; padding: 18px; border-radius: var(--radius); font-size: 1.05rem; text-align: center; }

.pos-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.pos-keypad button {
  padding: 18px; font-size: 1.3rem; font-weight: 700; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--ink); font-family: var(--font-body);
}
.pos-quick-cash { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pos-quick-cash button {
  flex: 1; min-width: 70px; padding: 14px; border-radius: 10px; cursor: pointer; font-weight: 700;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--ink); font-family: var(--font-body);
}
.pos-tender-display { text-align: center; font-size: 1.4rem; font-weight: 800; margin: 10px 0; font-variant-numeric: tabular-nums; }
.pos-change-due {
  text-align: center; padding: 18px; border-radius: var(--radius);
  font-size: 1.6rem; font-weight: 800; margin: 12px 0; background: var(--bg-2);
  font-variant-numeric: tabular-nums;
}
.pos-change-due.ok { color: var(--accent-3); border: 1px solid var(--accent-3); }
.pos-change-due.short { color: var(--accent); border: 1px solid var(--accent); }

/* deliberately breaks the dark theme — a QR needs real contrast to scan */
.pos-qr-box {
  background: #fff; border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0;
}
.pos-qr-box a { color: #1a1622; font-weight: 700; font-size: .85rem; word-break: break-all; text-align: center; }

.pos-register-row { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.pos-register-row strong { font-variant-numeric: tabular-nums; }
.pos-movement-form { display: flex; gap: 8px; padding: 14px 18px; }
.pos-movement-form input { flex: 1; }
.pos-movements-list { padding: 0 18px; }

.pos-summary { padding: 20px; max-width: 720px; margin: 0 auto; }
.pos-summary-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.pos-summary-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; color: var(--ink-dim); }
.pos-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.pos-summary-row:last-child { border-bottom: 0; }
.pos-summary-total { font-weight: 800; font-size: 1.1rem; }
.pos-variance.ok { color: var(--accent-3); }
.pos-variance.short { color: var(--accent); }

@media (min-width: 700px) {
  /* the two-column layout is only for the open-table shop+cart view — applying
     it to #posMain unconditionally left a dead 380px gutter next to the
     single-column Draft and Closing Summary screens */
  .pos-main.pos-main-shop { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; padding-bottom: 20px; }
  .pos-grid { grid-template-columns: repeat(3, 1fr); }
  .pos-cart-bar { display: none; }
  /* the cart stops being a toggled sheet and becomes a permanent sidebar —
     no click needed to see what's in it while you have a mouse and room */
  .pos-cart-panel {
    position: sticky; left: auto; right: auto; top: 84px; bottom: auto; z-index: 1;
    max-height: calc(100vh - 110px); transform: none; transition: none;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  }
  .pos-register-drawer { position: static; height: auto; }
}

/* ---------- audience cards (last-minute booking page) ---------- */
.audience-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.audience-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  border-top: 3px solid var(--accent-2);
  transition: transform .2s, border-color .2s;
}
.audience-card:nth-child(2) { border-top-color: var(--accent); }
.audience-card:nth-child(3) { border-top-color: var(--accent-3); }
.audience-card:hover { transform: translateY(-6px); }
.audience-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.audience-card p { color: var(--ink-dim); font-size: .95rem; }

/* ---------- numbered step list (how it works) ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { padding: 24px 22px 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent);
  font-family: var(--font-display); font-size: 1.1rem; color: #fff;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; text-transform: none; }
.step p { color: var(--ink-dim); font-size: .92rem; }

/* ---------- FAQ (native details/summary — content stays in the DOM whether
   or not it's expanded, so crawlers that don't run JS or click still see it) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 24px;
}
.faq-item summary {
  padding: 18px 34px 18px 0; cursor: pointer; font-weight: 700;
  font-size: 1.02rem; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-2);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-dim); padding-bottom: 20px; margin-top: -6px; }
