/* ========================================================================
   Atrocity Whiteout — performer-site theme.
   Long-scroll layout: full-screen hero with magazine cover + marquee,
   then alternating big sections with breathing room between each.
   Color system uses CSS vars so per-tenant brand swaps are trivial.
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg:       #0A0814;
  --bg2:      #14102A;
  --card:     #1C1638;
  --card-2:   #251B45;
  --line:     #2E2552;
  --ink:      #FAFAFF;
  --dim:      #9B8FBF;
  --hi:       #FFB347;
  --pink:     #FF3B7F;
  --cyan:     #5BE8FF;
  --grn:      #5FE39B;
  --pending:  #F2C94C;
  --booked:   #FF3B7F;
  --blocked:  #6B6480;
  --open:     #5FE39B;
  /* Themable shape/typography tokens so themes can change feel via vars,
     no per-selector overrides needed. */
  --font-body:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'SF Mono', 'Consolas', monospace;
  --radius-card:  14px;
  --radius-btn:   10px;
  /* Brand override hooks — set by /api/site brand_primary / brand_accent.
     Default to the bold theme accents so existing pages don't change. */
  --brand-primary: var(--hi);
  --brand-accent:  var(--pink);
  /* "Text-on-color" tokens so themes can invert button text without
     touching every selector. */
  --on-hi:    #0A0814;   /* text color when background = --hi */
  --on-pink:  #FFFFFF;   /* text color when background = --pink */
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ========== nav ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,8,20,0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.nav-brand {
  font-weight: 900; letter-spacing: 2px; font-size: 1.15em;
  background: linear-gradient(92deg, var(--hi), var(--pink), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; opacity: 0.85; }
.nav-links { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--dim); font-size: 0.92em;
  padding: 8px 14px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--ink); background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-links a.cta {
  color: var(--hi); border: 1px solid rgba(255,179,71,0.55);
  margin-left: 6px;
}
.nav-links a.cta:hover { background: rgba(255,179,71,0.14); }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 5vw 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(255,59,127,0.42), transparent 60%),
    radial-gradient(ellipse at 82% 55%, rgba(91,232,255,0.32), transparent 62%),
    radial-gradient(ellipse at 50% 100%, rgba(255,179,71,0.18), transparent 70%),
    linear-gradient(160deg, #1B0E36 0%, #0A0814 70%);
}
.hero-bg::after {
  /* subtle film-grain overlay so flat gradients don't feel digital */
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; width: 100%; margin: 0 auto;
  display: grid; gap: 64px;
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.kicker {
  display: inline-block; align-self: flex-start;
  font-size: 0.78em; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--hi);
  padding: 6px 12px;
  border: 1px solid rgba(255,179,71,0.5);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(3.2em, 7.5vw, 6em);
  font-weight: 900; letter-spacing: -2px; line-height: 0.95;
  background: linear-gradient(92deg, var(--hi), var(--pink) 50%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(255,59,127,0.35));
}
.hero .tag {
  font-size: clamp(1.05em, 1.6vw, 1.35em);
  color: var(--ink); opacity: 0.92; max-width: 520px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.hero-cover {
  position: relative; justify-self: end;
  max-width: 420px; width: 100%;
}
.hero-cover img {
  width: 100%; height: auto;
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: rotate(2deg);
  transition: transform .3s ease, filter .3s ease;
  filter: saturate(1.12) contrast(1.06);
}
.hero-cover img:hover {
  transform: rotate(0deg) scale(1.03);
  filter: saturate(1.2) contrast(1.08);
}
/* The animated glow halo behind the cover. */
.hero-cover::before {
  content: ""; position: absolute; inset: -22px;
  background: linear-gradient(135deg, var(--hi), var(--pink), var(--cyan));
  border-radius: 24px; z-index: -1; opacity: 0.45;
  filter: blur(44px);
  animation: cover-glow 6s ease-in-out infinite;
}
@keyframes cover-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.04); }
}
/* Corner kicker — small accent ribbon on the cover. */
.hero-cover::after {
  content: "NERVEDJs SE · NC";
  position: absolute; top: 16px; right: -12px;
  z-index: 2;
  background: linear-gradient(135deg, var(--pink), #C72A66);
  color: var(--on-pink); font-weight: 800; letter-spacing: 1.5px;
  font-size: 0.7em; padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(255,59,127,0.45);
  transform: rotate(2deg);
}

/* marquee under hero */
.hero-marquee {
  position: relative; z-index: 1;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 12px 0;
  background: rgba(255,255,255,0.02);
}
.hero-marquee-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}
.hero-marquee-track span {
  color: var(--dim); font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; font-size: 0.85em;
}
.hero-marquee-track span:nth-child(odd) { color: var(--hi); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========== big section frames ========== */
.bigsec {
  position: relative;
  padding: 110px 0;
}
/* Image-bg variant — full-bleed cinematic backdrop with crossfading
   stack of 3 layered images + multi-axis motion. Overflow is clipped
   so the scale + pan doesn't bleed beyond the panel borders. Each panel
   contains a .imgbg-stack with 3 .imgbg-layer children, each setting
   --bg via inline style. The 3 layers crossfade over a 24s loop with
   staggered delays, and pan+scale continuously underneath for depth. */
.bigsec--imgbg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bigsec--imgbg > .wrap,
.bigsec--imgbg > .section-head { position: relative; z-index: 3; }
.imgbg-stack {
  position: absolute; inset: 0; z-index: 0;
}
.imgbg-layer {
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity, transform;
  animation:
    imgbg-fade 24s ease-in-out infinite,
    imgbg-drift 14s ease-in-out infinite alternate;
}
.imgbg-layer:nth-child(1) {
  animation-delay: 0s, 0s;
}
.imgbg-layer:nth-child(2) {
  animation-delay: -8s, -4s;
}
.imgbg-layer:nth-child(3) {
  animation-delay: -16s, -8s;
}
/* Each layer is fully visible for ~5s of the 24s loop, with a ~3s
   crossfade in/out on each side. Three layers staggered by 8s each
   means at any given moment, one is fully visible while the other two
   are fading. */
@keyframes imgbg-fade {
  0%        { opacity: 0; }
  12.5%     { opacity: 1; }
  29.16%    { opacity: 1; }
  41.66%    { opacity: 0; }
  100%      { opacity: 0; }
}
/* Pan + scale combined for depth — the backdrop drifts diagonally while
   also slowly breathing. Different layers run on different delays so
   the motion never resolves perfectly. */
@keyframes imgbg-drift {
  from { transform: scale(1.10) translate(-2.5%, -1.5%); }
  to   { transform: scale(1.18) translate( 2.5%,  1.5%); }
}
.imgbg-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10,8,20,0.88) 0%,
      rgba(10,8,20,0.55) 40%,
      rgba(10,8,20,0.75) 100%),
    radial-gradient(ellipse at 30% 30%,
      rgba(255,179,71,0.05), transparent 60%),
    radial-gradient(ellipse at 70% 80%,
      rgba(255,59,127,0.06), transparent 55%);
  animation: imgbg-overlay-pulse 18s ease-in-out infinite alternate;
}
@keyframes imgbg-overlay-pulse {
  from {
    background:
      linear-gradient(180deg,
        rgba(10,8,20,0.88) 0%,
        rgba(10,8,20,0.55) 40%,
        rgba(10,8,20,0.75) 100%),
      radial-gradient(ellipse at 30% 30%,
        rgba(255,179,71,0.08), transparent 60%),
      radial-gradient(ellipse at 70% 80%,
        rgba(255,59,127,0.04), transparent 55%);
  }
  to {
    background:
      linear-gradient(180deg,
        rgba(10,8,20,0.82) 0%,
        rgba(10,8,20,0.45) 40%,
        rgba(10,8,20,0.72) 100%),
      radial-gradient(ellipse at 70% 30%,
        rgba(91,232,255,0.06), transparent 55%),
      radial-gradient(ellipse at 30% 80%,
        rgba(255,59,127,0.08), transparent 55%);
  }
}
.bigsec.alt {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(91,232,255,0.05), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(255,59,127,0.06), transparent 55%),
    var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* Diagonal accent strips at each end of alt sections — slight cinematic
   tear so sections don't just stack like a vertical list of cards. */
.bigsec.alt::before, .bigsec.alt::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 4px; pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0,
    rgba(255,179,71,0.4) 30%,
    rgba(255,59,127,0.55) 50%,
    rgba(91,232,255,0.4) 70%,
    transparent 100%);
}
.bigsec.alt::before { top: -1px; }
.bigsec.alt::after  { bottom: -1px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78em; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cyan);
  padding: 4px 10px;
  border: 1px solid rgba(91,232,255,0.4);
  border-radius: 999px;
  margin-bottom: 14px;
}
.bigsec h2 {
  font-size: clamp(2.2em, 4vw, 3.4em);
  font-weight: 900; letter-spacing: -1px; line-height: 1;
  background: linear-gradient(92deg, var(--hi), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.bigsec .sub {
  color: var(--dim); font-size: 1.05em; max-width: 600px;
  margin: 0 auto;
}

/* ========== cards ========== */
.cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  /* subtle diagonal accent */
  content: ""; position: absolute; top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle at top right,
    rgba(255,179,71,0.12), transparent 70%);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--hi);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.card h3 { color: var(--hi); margin-bottom: 10px; font-size: 1.15em; }
.card p { color: var(--dim); font-size: 0.96em; line-height: 1.55; }
.card .tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag-chip {
  font-size: 0.75em; padding: 4px 11px; border-radius: 999px;
  background: rgba(91,232,255,0.12); color: var(--cyan);
  border: 1px solid rgba(91,232,255,0.32); font-weight: 600;
}

/* ========== about: split portrait + text ========== */
.split-row {
  display: grid; gap: 64px; align-items: center;
  grid-template-columns: 0.85fr 1fr;
}
.split-img {
  position: relative; max-width: 460px; justify-self: center;
  overflow: visible;
}
.split-img img {
  width: 100%; height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  /* Image gold-mining: punch saturation/contrast, slight cool grade
     pulls the raw bedroom selfie into "cinematic portrait" territory. */
  filter: saturate(1.18) contrast(1.08) brightness(0.96)
          hue-rotate(-4deg) drop-shadow(0 0 20px rgba(255,59,127,0.15));
  transition: filter .3s ease, transform .3s ease;
}
.split-img img:hover {
  filter: saturate(1.25) contrast(1.1) brightness(1.0);
  transform: scale(1.02);
}
.split-img::after {
  /* Subtle vignette + colored wash overlay on the portrait. */
  content: ""; position: absolute; inset: 0;
  border-radius: 18px; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, transparent 60%, rgba(255,59,127,0.12) 100%);
}
.img-frame-deco {
  position: absolute; inset: -10px;
  border: 1px solid var(--hi);
  border-radius: 22px;
  pointer-events: none;
  transform: rotate(-1.5deg);
  z-index: -1;
}
.split-text { display: flex; flex-direction: column; gap: 18px; }
.split-text .eyebrow { align-self: flex-start; }
.split-text h2 { text-align: left; }

/* ========== logo strip ========== */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}
.logo-chip {
  padding: 14px 22px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink); font-weight: 800;
  letter-spacing: 2px; font-size: 0.9em;
  text-transform: uppercase;
}

/* ========== network / cross-promo — 3 slots, fade-cycle ========== */
.network-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) {
  .network-grid { grid-template-columns: 1fr; }
}
.network-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  text-decoration: none;
  transition: opacity .35s ease, transform .35s ease, border-color .18s;
  opacity: 1;
}
.network-card.fading { opacity: 0; transform: translateY(8px); }
.network-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  text-decoration: none;
}
.network-art {
  aspect-ratio: 4 / 3;
  background: var(--card-2);
  background-size: cover;
  background-position: center top;
}
.network-meta { padding: 18px; }
.network-name {
  color: var(--ink); font-weight: 800; font-size: 1.1em;
}
.network-sub { color: var(--dim); font-size: 0.85em; margin-top: 4px; }
.network-card.placeholder .network-name { opacity: 0.6; }

/* ========== merch ========== */
.merch-card { padding: 0; overflow: hidden; }
.merch-art {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5em;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.merch-card h3 { padding: 18px 22px 4px; }
.merch-card p  { padding: 0 22px 22px; }

/* ========== buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 13px;
  font-weight: 800; font-size: 0.98em; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
  background: none; color: var(--ink); font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--hi), #E0931C);
  color: #2A1700;
  box-shadow: 0 6px 28px rgba(255,179,71,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255,179,71,0.55);
}
.btn-ghost { color: var(--ink); border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-pink {
  background: linear-gradient(135deg, var(--pink), #C72A66); color: var(--on-pink);
}
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,59,127,0.5); }
.btn-small { padding: 9px 16px; font-size: 0.88em; border-radius: 10px; }

/* ========== calendar (book section) ========== */
.cal-frame {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
  max-width: 760px; margin: 0 auto;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-head h3 { color: var(--ink); font-size: 1.25em; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  background: var(--bg2); color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 0.9em;
}
.cal-nav button:hover { background: var(--card-2); border-color: var(--hi); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  text-align: center; color: var(--dim);
  font-size: 0.78em; padding: 4px 0; text-transform: uppercase;
  letter-spacing: 1px;
}
.cal-day {
  aspect-ratio: 1 / 1; border-radius: 10px; padding: 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg2); border: 1px solid var(--line);
  font-size: 0.95em; position: relative;
  cursor: pointer; transition: transform .1s;
}
.cal-day.empty { background: transparent; border: none; cursor: default; }
.cal-day.past  { color: var(--blocked); cursor: not-allowed; opacity: 0.4; }
.cal-day.past:hover { transform: none; }
.cal-day.open  { border-color: rgba(95,227,155,0.35); }
.cal-day.open:hover { transform: scale(1.05); border-color: var(--open); }
.cal-day.pending {
  border-color: rgba(242,201,76,0.5);
  background: rgba(242,201,76,0.07);
}
.cal-day.blocked {
  border-color: rgba(107,100,128,0.5);
  background: rgba(107,100,128,0.1);
  color: var(--blocked); cursor: not-allowed;
}
.cal-day.booked {
  border-color: var(--pink); background: rgba(255,59,127,0.1);
  color: var(--pink); cursor: not-allowed;
}
.cal-day .day-num { font-weight: 700; }
.cal-day .day-mark {
  font-size: 0.65em; align-self: flex-end; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cal-legend {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px;
  font-size: 0.82em; color: var(--dim); justify-content: center;
}
.legend-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; vertical-align: middle; margin-right: 6px;
}

/* ========== forms / inputs (global so admin + modals share) ========== */
label {
  display: block; clear: both;
  color: var(--dim); font-size: 0.85em; margin: 12px 0 4px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input:not([type]), textarea {
  display: block; width: 100%; padding: 12px 14px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink);
  font-family: inherit; font-size: 0.95em;
}
input:focus, textarea:focus { outline: none; border-color: var(--cyan); }

/* ========== modal ========== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65);
  z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { color: var(--ink); margin-bottom: 4px; font-size: 1.35em; }
.modal .sub { color: var(--dim); margin-bottom: 18px; font-size: 0.92em; text-align: left; max-width: none; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; justify-content: flex-end; flex-wrap: wrap; }
.modal-msg { padding: 10px 12px; border-radius: 8px; margin-top: 12px; font-size: 0.9em; }
.modal-msg.err { background: rgba(255,59,127,0.15); border: 1px solid var(--pink); color: var(--pink); }
.modal-msg.ok  { background: rgba(95,227,155,0.15); border: 1px solid var(--grn); color: var(--grn); }
.modal-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.modal-tab {
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--dim); border: 1px solid var(--line);
  font-family: inherit; font-size: 0.9em;
}
.modal-tab.active { background: var(--bg2); color: var(--ink); border-color: var(--hi); }

/* ========== footer ========== */
footer {
  text-align: center; color: var(--dim); font-size: 0.85em;
  padding: 56px 24px 40px; border-top: 1px solid var(--line); margin-top: 0;
  background: var(--bg);
}
footer a { color: var(--cyan); text-decoration: none; }
.footer-meta { margin-bottom: 12px; }
.footer-meta .dot { color: var(--blocked); margin: 0 6px; }
.footer-meta a:hover { color: var(--hi); }
.footer-platform { color: var(--blocked); font-size: 0.78em; }
.footer-platform a { color: var(--dim); font-weight: 700; }
.footer-platform a:hover { color: var(--hi); }

/* ========== social row ========== */
.socials {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin: 0 0 26px;
}
.socials a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--dim);
  transition: transform .15s, border-color .15s, color .15s, background .15s;
}
.socials a:hover {
  transform: translateY(-3px);
  border-color: var(--hi);
  background: var(--card-2);
  color: var(--hi);
}
.socials a svg { width: 20px; height: 20px; fill: currentColor; }

/* ========== responsive ========== */
@media (max-width: 880px) {
  .hero { min-height: auto; padding: 60px 5vw 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { justify-self: center; max-width: 320px; }
  .hero-cover img { transform: rotate(0); }
  .split-row { grid-template-columns: 1fr; gap: 32px; }
  .split-img { max-width: 320px; }
  .split-text h2 { text-align: center; }
  .split-text .eyebrow { align-self: center; }
  .bigsec { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ========== back-link to platform apex ========== */
.nav-links a.nav-back {
  color: var(--dim);
  border-right: 1px solid var(--line);
  padding-right: 14px;
  margin-right: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-links a.nav-back:hover { color: var(--hi); }
.network-cta {
  text-align: center; margin-top: 36px;
}
.network-cta a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: 0.92em;
  text-decoration: none; transition: all .15s;
}
.network-cta a:hover {
  border-color: var(--hi); color: var(--hi);
  transform: translateY(-2px);
}
/* ========== merch grid ==========
   Identical pattern to crackle-site: image card per product, Buy button
   either link-out to fulfillment or anchor to #book for "reserve via
   inquiry" until a real fulfillment URL is wired. Shared across all
   tenant sites (the engine). */
.merch-grid {
  display: grid; gap: 22px;
  /* Cap card max width at 320px so a single product doesn't stretch the
     full row. auto-fit + 1fr would let one card balloon to 1100px wide. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
  max-width: 1100px; margin: 0 auto;
}
/* Each merch card uses --card-bg (a per-product gradient or image set
   inline by the renderer) behind the cutout model image. Subtle gold
   stroke separates the card from the surrounding panel — keeps the
   product anchored as its own object even when the panel bg is busy. */
.merch-card {
  cursor: pointer;
  background: var(--card-bg, var(--card));
  border: 1px solid rgba(255,179,71,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.merch-card:hover {
  border-color: var(--hi);
  box-shadow: 0 12px 36px rgba(255,179,71,0.22);
}
.merch-card {
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.merch-card:hover {
  transform: translateY(-4px);
}
.merch-card .art {
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center 24px;
  aspect-ratio: 4 / 5;
}
.merch-card .meta { padding: 14px 16px 18px; flex: 1;
  display: flex; flex-direction: column; gap: 4px; }
.merch-card .name { color: var(--ink); font-weight: 800; font-size: 1em; }
.merch-card .note { color: var(--dim); font-size: 0.8em; }
.merch-card .price { color: var(--hi); font-weight: 800; font-size: 1.05em;
  margin-top: 2px; }
.merch-card .buy {
  margin: 14px 16px 16px; padding: 11px 16px;
  background: var(--hi); color: var(--on-hi); border: none;
  border-radius: 10px; font-weight: 800; font-size: 0.95em;
  letter-spacing: 0.3px;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: all .15s; font-family: inherit;
  box-shadow: 0 4px 16px rgba(255,179,71,0.28);
}
.merch-card .buy:hover {
  background: var(--pink); color: var(--ink); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,59,127,0.42);
}
.merch-card .buy:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.merch-card .buy:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255,179,71,0.30);
}
/* Pre-launch state — drop is announced but checkout isn't wired yet.
   Visually a button, but unclickable and styled with the "pending" feel
   so it's clearly not a live buy action. */
.merch-card .buy.pending {
  background: transparent; color: var(--dim);
  border: 1px dashed var(--line);
  cursor: default; pointer-events: none;
  font-style: italic; font-weight: 700;
}
.merch-card .buy.pending:hover {
  background: transparent; color: var(--dim); transform: none;
}
/* ========== product detail modal ==========
   Opens on merch-card click. Shows the flat print design, description,
   price, quantity selector, cart button. Cart button uses .pending
   state until Stripe Connect is wired. */
.modal-backdrop.product-modal,
#product-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 4, 12, 0.78); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
#product-modal.show { display: flex; }
.product-modal {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; max-width: 880px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; padding: 0;
}
.product-close {
  position: absolute; top: 16px; right: 18px; z-index: 10;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
  color: var(--ink); width: 36px; height: 36px;
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.product-close:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.product-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.product-img {
  background: var(--card-2);
  display: flex; align-items: center; justify-content: center;
  padding: 32px; border-radius: 20px 0 0 20px;
}
.product-img img { max-width: 100%; max-height: 480px; object-fit: contain; }
.product-info { padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.product-info .product-brand {
  font-size: 0.78em; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--hi);
}
.product-info h3 {
  color: var(--ink); font-size: 1.9em; font-weight: 900;
  letter-spacing: -0.5px; margin: 4px 0 8px;
}
.product-info p {
  color: var(--dim); font-size: 0.95em; line-height: 1.6;
}
.product-price {
  font-size: 1.6em; font-weight: 900; color: var(--hi);
  margin: 14px 0 8px;
}
.product-qty-label {
  font-size: 0.78em; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--dim); margin-top: 10px;
}
.product-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.qty-btn {
  background: var(--card-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  width: 38px; height: 38px; font-size: 1.2em; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-family: inherit;
}
.qty-btn:hover { border-color: var(--hi); color: var(--hi); }
#qty-input {
  width: 64px; height: 38px; text-align: center;
  background: var(--card-2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 1.05em; font-weight: 800; font-family: inherit;
}
.product-cart {
  width: 100%; padding: 14px 22px;
  font-size: 1em; font-weight: 800;
}
.product-cart.pending {
  background: transparent; color: var(--dim);
  border: 1px dashed var(--line); cursor: not-allowed;
  font-style: italic; box-shadow: none;
}
.product-cart.pending:hover { transform: none; box-shadow: none; }
.product-note {
  color: var(--dim); font-size: 0.82em; margin-top: 8px;
  text-align: center; font-style: italic;
}
@media (max-width: 720px) {
  .product-body { grid-template-columns: 1fr; }
  .product-img { border-radius: 20px 20px 0 0; padding: 24px; }
  .product-img img { max-height: 320px; }
  .product-info { padding: 24px 22px; }
  .product-info h3 { font-size: 1.5em; }
}
.merch-more {
  text-align: center; color: var(--dim); font-size: 0.92em;
  margin-top: 28px; max-width: 540px; margin-left: auto; margin-right: auto;
}
/* ========== merch coming-soon panel ==========
   Used when an artist has no real products yet — restores the original
   tasteful stub instead of an empty grid. */
.merch-soon {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 40px 28px; text-align: center;
  max-width: 720px; margin: 0 auto;
}
.merch-soon .icons {
  font-size: 2.4em; margin-bottom: 14px; letter-spacing: 14px;
}
.merch-soon p {
  color: var(--dim); font-size: 1em; line-height: 1.6;
  max-width: 480px; margin: 0 auto;
}

/* ========== fan→artist message form (public) ========== */
.message-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.message-form label {
  color: var(--ink); font-weight: 700; font-size: 0.88em;
  letter-spacing: 0.5px; margin-top: 8px;
}
.message-form label .req { color: var(--pink); }
.message-form input,
.message-form textarea {
  background: var(--bg2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-family: inherit; font-size: 0.96em;
  width: 100%;
}
.message-form input:focus,
.message-form textarea:focus {
  outline: none; border-color: var(--hi);
}
.message-form textarea { resize: vertical; min-height: 110px; }
.message-form button { margin-top: 18px; align-self: flex-start; }

/* ========== admin inbox (fan messages) ========== */
.inbox-badge {
  display: inline-block; background: var(--pink); color: var(--ink);
  font-size: 0.62em; padding: 3px 9px; border-radius: 999px;
  vertical-align: middle; margin-left: 8px; font-weight: 800;
}
.inbox-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; margin-bottom: 10px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px;
}
.inbox-row.vip { border-color: var(--hi); background:
  linear-gradient(135deg, rgba(255,179,71,0.06), var(--bg2) 40%); }
.inbox-row .who { flex: 1; min-width: 0; }
.inbox-row .who .name { font-weight: 800; color: var(--ink); }
.inbox-row .who .email { color: var(--dim); font-size: 0.84em; }
.inbox-row .who .body { color: var(--ink); margin-top: 8px;
  white-space: pre-wrap; word-wrap: break-word; }
.inbox-row .who .when { color: var(--dim); font-size: 0.78em; margin-top: 8px; }
.inbox-row .actions { display: flex; flex-direction: column; gap: 6px; }
.inbox-row .actions button {
  background: var(--bg2); color: var(--ink); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 8px; font-family: inherit;
  font-size: 0.82em; cursor: pointer; min-width: 76px;
}
.inbox-row .actions button:hover { border-color: var(--hi); color: var(--hi); }
.inbox-row .actions button.vip-btn.on {
  background: var(--hi); color: var(--on-hi); border-color: var(--hi);
}
.inbox-row .actions .delete-btn:hover { border-color: var(--pink); color: var(--pink); }

/* ========== section visibility toggle row ========== */
.section-toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px;
}
.section-toggle .label { color: var(--ink); font-weight: 700; }
.section-toggle .desc  { color: var(--dim); font-size: 0.84em; }
.toggle-switch {
  position: relative; width: 50px; height: 28px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--dim); transition: all .15s;
}
.toggle-switch.on {
  background: rgba(255,179,71,0.16); border-color: var(--hi);
}
.toggle-switch.on::after {
  left: 26px; background: var(--hi);
}

/* ---------- Resources / Storage affiliate card ---------- */
#resources-section { margin-top: 28px; }
.resource-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 24px; margin-top: 14px;
}
.resource-pitch {
  color: var(--ink); opacity: 0.92; font-size: 1.02em;
  line-height: 1.55; margin-bottom: 22px;
}
.resource-pitch-small { font-size: 0.94em; margin: 6px 0 14px; opacity: 0.85; }
.resource-h3 {
  color: var(--hi); margin: 24px 0 12px; font-size: 1.05em;
  letter-spacing: 0.5px;
}
.compare-wrap { overflow-x: auto; margin-bottom: 18px; }
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 640px;
  font-size: 0.92em;
}
.compare-table th, .compare-table td {
  padding: 10px 12px; vertical-align: top; text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  color: var(--dim); font-weight: 600; font-size: 0.88em;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--bg2);
}
.compare-table tbody th {
  color: var(--dim); font-weight: 500; width: 110px;
  white-space: nowrap; background: rgba(255,255,255,0.02);
}
.compare-table td { color: var(--ink); opacity: 0.92; }
.compare-table .compare-recommended {
  color: var(--hi); border-bottom: 2px solid var(--hi);
}
.compare-table tbody tr td:nth-child(2) {
  background: rgba(255,179,71,0.04);
  border-left: 2px solid rgba(255,179,71,0.45);
  border-right: 2px solid rgba(255,179,71,0.45);
}
.compare-table tbody tr:last-child td:nth-child(2) {
  border-bottom: 2px solid rgba(255,179,71,0.45);
}
.chip-rec {
  display: inline-block; margin-left: 6px;
  font-size: 0.7em; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--hi); color: var(--bg);
  letter-spacing: 0.5px; text-transform: uppercase;
  vertical-align: middle;
}
.resource-default {
  background: rgba(255,179,71,0.06);
  border-left: 3px solid var(--hi);
  padding: 12px 14px; border-radius: 0 8px 8px 0;
  color: var(--ink); opacity: 0.95; line-height: 1.55;
  margin: 14px 0 4px;
}
.resource-warning {
  background: rgba(255, 90, 60, 0.08);
  border-left: 3px solid #FF5A3C;
  padding: 14px 16px; border-radius: 0 8px 8px 0;
  color: var(--ink); line-height: 1.6;
  margin: 16px 0 8px;
  font-size: 0.96em;
}
.resource-liability {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 8px;
  color: var(--dim); line-height: 1.55;
  margin: 8px 0 4px;
  font-size: 0.88em;
}
.resource-liability strong { color: var(--ink); }
.region-list, .resource-steps {
  color: var(--ink); opacity: 0.92; line-height: 1.7;
  padding-left: 22px;
}
.region-list li, .resource-steps li { margin-bottom: 4px; }
.resource-security {
  margin-top: 22px; padding: 14px 16px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 10px; line-height: 1.55;
  color: var(--ink); opacity: 0.92; font-size: 0.94em;
}
.resource-cta {
  margin-top: 22px; text-align: center;
}
.resource-btn {
  display: inline-block; padding: 14px 32px;
  font-size: 1.05em; font-weight: 600;
  text-decoration: none;
}
.resource-disclosure {
  margin-top: 8px; color: var(--dim);
  font-size: 0.84em; font-style: italic;
}

/* ---------- Security / 2FA section ---------- */
#security-section { margin-top: 28px; }
.security-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 22px; margin-top: 14px;
}
.security-status {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.security-status strong {
  color: var(--ink); font-size: 1.05em; margin-right: 10px;
}
.security-actions { display: flex; gap: 8px; }
.security-help {
  color: var(--dim); font-size: 0.92em; line-height: 1.55;
  margin-top: 12px;
}
.status-pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 0.78em; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; vertical-align: middle;
}
.status-pill.status-on  { background: rgba(127,217,124,0.18); color: #7fd97c; border: 1px solid rgba(127,217,124,0.45); }
.status-pill.status-off { background: rgba(155,143,191,0.14); color: var(--dim); border: 1px solid var(--line); }

.totp-input {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 1.25em; letter-spacing: 4px; text-align: center;
  width: 100%; padding: 12px 14px;
  background: var(--bg2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  margin-top: 4px;
}
.totp-input:focus {
  outline: none; border-color: var(--hi);
  box-shadow: 0 0 0 3px rgba(255,179,71,0.15);
}

/* Modal scaffolding for all three 2FA dialogs. */
.twofa-modal {
  position: fixed; inset: 0;
  background: rgba(8,4,28,0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.twofa-modal-inner {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px;
  max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.twofa-modal-inner h3 {
  color: var(--hi); margin-bottom: 14px; font-size: 1.15em;
}
.twofa-modal-inner label {
  display: block; margin-top: 14px; color: var(--dim); font-size: 0.92em;
}

.qr-frame {
  background: #fff; padding: 14px; border-radius: 12px;
  display: flex; justify-content: center; margin: 0 auto 16px;
  max-width: 240px;
}
.qr-frame img { display: block; width: 100%; height: auto; }
.twofa-secret-fallback {
  color: var(--dim); font-size: 0.88em; line-height: 1.55;
  margin-bottom: 10px;
}
.twofa-secret-fallback code {
  display: block; margin-top: 6px;
  background: var(--bg2); border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 8px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.95em; word-break: break-all;
  color: var(--ink); letter-spacing: 0.5px;
}

.recovery-intro {
  color: var(--ink); opacity: 0.92; line-height: 1.55;
  margin-bottom: 14px; font-size: 0.95em;
}
.recovery-codes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.recovery-code {
  display: block; text-align: center;
  background: var(--bg2); border: 1px solid var(--line);
  padding: 10px 6px; border-radius: 8px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.95em; color: var(--ink); letter-spacing: 1px;
}

/* ---------- Theme picker grid (admin) ---------- */
#theme-section { margin-top: 28px; }
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 14px;
}
.theme-card {
  text-align: left;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px;
  padding: 0; cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: border-color .15s, transform .1s;
}
.theme-card:hover { border-color: var(--hi); transform: translateY(-2px); }
.theme-card.active {
  border-color: var(--hi);
  box-shadow: 0 0 0 3px rgba(255,179,71,0.18);
}
.theme-swatch {
  height: 90px;
  border-bottom: 1px solid var(--line);
}
.theme-name {
  padding: 12px 14px 4px;
  font-weight: 700; color: var(--hi);
  font-size: 1.05em;
}
.theme-current {
  font-size: 0.72em; color: var(--dim); font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
}
.theme-blurb {
  padding: 0 14px 14px;
  color: var(--dim); font-size: 0.88em; line-height: 1.5;
}
