/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:        #04040c;
  --panel:     rgba(14,14,26,.88);
  --panel-2:   rgba(255,255,255,.055);
  --panel-3:   rgba(255,255,255,.10);
  --text:      #f0ecff;
  --muted:     #8a82a4;
  --muted-2:   #c4bcd8;
  --purple:    #7c1fff;
  --purple-2:  #b933ff;
  --pink:      #ff1f88;
  --green:     #1ed47a;
  --yellow:    #ffc94d;
  --danger:    #ff3d5e;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --shadow:    0 28px 90px rgba(0,0,0,.65);
  --radius:    28px;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;

  /* ── Motion system ──────────────────────────────────────────────
     One shared vocabulary so every transition feels like the same hand.
     Easing DNA: smooth expo-out for settles, springy back-out for pops. */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);     /* smooth settle          */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* springy pop / overshoot */
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);       /* neutral in-out          */
  --dur-1: .16s;   /* micro (hover, tap)      */
  --dur-2: .28s;   /* standard (cards, sheets)*/
  --dur-3: .42s;   /* expressive (page, hero) */
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 8%,  rgba(124,31,255,.20), transparent 34%),
    radial-gradient(ellipse at 88% 82%, rgba(255,31,136,.075), transparent 32%),
    radial-gradient(ellipse at 60% 45%, rgba(124,31,255,.05), transparent 44%),
    linear-gradient(150deg, #030309, #06061a 62%, #0a0420);
}
button, input, select, textarea, small { font: inherit; }
button {
  cursor: pointer;
  border: 0;
  color: inherit;
  background: none;
  transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
button:active { transform: scale(.965); }
h1, h2, h3, h4, p { margin: 0; }
a { cursor: pointer; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(185,51,255,.72);
  outline-offset: 3px;
}

/* ─── SHELL ──────────────────────────────────────────────────── */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(370px, 420px) minmax(240px, 340px);
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.side-brand, .insight-panel { display: grid; gap: 16px; }

.brand-card, .pitch-card {
  padding: 26px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand-logo-mark {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 60px rgba(124,31,255,.28), 0 0 120px rgba(124,31,255,.16);
  margin-bottom: 20px;
}

.partie-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.partie-icon-light,
.partie-icon-dark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.partie-icon-light {
  display: none;
}
.partie-icon-dark {
  display: block;
}

h1 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1;
}

.brand-sub { color: var(--muted-2); margin-top: 8px; font-size: 14px; }

.brand-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #d4b8ff;
  background: rgba(124,31,255,.15);
  border: 1px solid rgba(124,31,255,.3);
}

.pitch-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 12px 0 8px;
  line-height: 1.25;
}
.pitch-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.pitch-stat-card { padding: 20px 26px; }
.stat-row { display: flex; gap: 0; }
.stat { flex: 1; text-align: center; }
.stat:not(:last-child) { border-right: 1px solid var(--line); }
.stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--text); }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0; }

.label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #e0c8ff;
  background: rgba(124,31,255,.14);
  border: 1px solid rgba(124,31,255,.26);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ─── PHONE FRAME ────────────────────────────────────────────── */
.phone-frame {
  width: 400px;
  height: 860px;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(160deg, #1a1a28, #040408);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 50px 130px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 80px rgba(124,31,255,.12);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #050510;
}

/* Notch */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #040408;
  border-radius: 0 0 20px 20px;
  z-index: 200;
}

.screen-scroll {
  height: calc(100% - 80px);
  overflow-y: auto;
  padding: 46px 18px 30px;
  /* The only scroller on mobile: keep its scroll from chaining to the (locked) page
     and give it native touch momentum. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.screen-scroll::-webkit-scrollbar { width: 0; }
.screen-enter {
  transform-origin: 50% 20%;
  animation: screenReveal .34s cubic-bezier(.2,.82,.25,1) both;
}
@keyframes screenReveal {
  from { opacity: 0; transform: translateY(12px) scale(.992); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.screen-scroll > .venue-card,
.screen-scroll > .party-card,
.screen-scroll > .glass-card {
  animation: contentLift .44s cubic-bezier(.2,.82,.25,1) both;
}
.screen-scroll > :nth-child(3) { animation-delay: .035s; }
.screen-scroll > :nth-child(4) { animation-delay: .07s; }
.screen-scroll > :nth-child(5) { animation-delay: .105s; }
@keyframes contentLift {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Home filter regions (#homeStories/#homeTopPicks/#homeNearYou) are swapped in place
   when the Club/Bar/Gems chip changes — their cards lift in so the filter reads as a
   smooth content swap rather than a page refresh. */
.home-filter-region > .venue-card,
.home-filter-region > .list-card,
.home-filter-region > .story-row,
.home-filter-region > .empty-state,
.home-filter-region > .story-empty-signal {
  animation: contentLift .32s var(--ease-out) both;
}
@media (prefers-reduced-motion: reduce) {
  .home-filter-region > * { animation: none !important; }
}

/* ─── PAGE TRANSITIONS (View Transitions API) ───────────────────
   Replaces the old hard-cut navigation. On a page change JS wraps the DOM
   swap in document.startViewTransition() and stamps html[data-vt="forward|back"];
   the browser crossfades the outgoing screen into the incoming one with a
   directional slide. Falls back to the screenReveal enter animation where the
   API isn't supported, and is fully disabled under reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .40s;
    animation-timing-function: var(--ease-out);
    mix-blend-mode: normal;
  }
  ::view-transition-new(root) { animation-name: vtNewForward; }
  ::view-transition-old(root) { animation-name: vtOldForward; }
  html[data-vt="back"]::view-transition-new(root) { animation-name: vtNewBack; }
  html[data-vt="back"]::view-transition-old(root) { animation-name: vtOldBack; }

  /* The bottom nav gets its own name so it stays put while the page slides
     underneath it (it's identical between screens, so this reads as rock-steady). */
  .bottom-nav { view-transition-name: partie-nav; }
}
@keyframes vtNewForward { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes vtOldForward { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-16px); } }
@keyframes vtNewBack    { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes vtOldBack    { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(16px); } }

/* ─── UI TRANSITIONS (adapted from transitions.dev free effects) ─────
   Their enter halves drop straight in; the close/exit halves need the element
   kept alive during dismissal, which our full re-render removes instantly, so
   we take the entrances only. */

/* Modal / overlay open — transitions.dev "Modal open/close" (p7, scale). The
   .overlay-open class is added by render() ONLY on the render where the overlay
   first appears, so it animates on open but never re-pops on a background re-render
   while it stays open. */
.modal-backdrop.overlay-open { animation: backdropIn var(--dur-2) var(--ease-soft) both; }
.modal.overlay-open { animation: modalIn var(--dur-3) var(--ease-out) both; transform-origin: center bottom; }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Error shake — transitions.dev "Error state shake" (p12). Applied to error
   messages the moment they render. */
.signup-error, .shake-error, .form-error {
  --shake-dist: 7px;
  animation: errorShake .5s cubic-bezier(.36, .07, .19, .97) both;
}
@keyframes errorShake {
  0%     { transform: translateX(0); }
  28.57% { transform: translateX(var(--shake-dist)); }
  57.14% { transform: translateX(calc(var(--shake-dist) * -1)); }
  78.57% { transform: translateX(calc(var(--shake-dist) * .55)); }
  100%   { transform: translateX(0); }
}

/* Shimmer text — transitions.dev "Shimmer text" (p15). A light sweeps across the
   glyphs; utility class for live / loading labels. */
.shimmer {
  background: linear-gradient(100deg, currentColor 42%, #ffffff 50%, currentColor 58%) 100% 0 / 240% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmerSweep 2.6s linear infinite;
}
@keyframes shimmerSweep { to { background-position: 0% 0; } }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal,
  .signup-error, .shake-error, .form-error,
  .shimmer { animation: none !important; }
  .shimmer { -webkit-text-fill-color: currentColor; color: inherit; }
}

/* ─── UI TRANSITIONS — batch 3 (requested effects) ─────────────────── */

/* Panel reveal — "Reserve a table" opens as a panel sliding up from the bottom
   (transitions.dev "Panel reveal"), instead of the generic modal scale. */
.modal.booking-modal.overlay-open { animation: panelReveal var(--dur-3) var(--ease-out) both; transform-origin: bottom center; }
@keyframes panelReveal {
  from { opacity: 0; transform: translateY(48px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Icon swap — the active tab's icon scales + un-blurs in (transitions.dev p10).
   The class is added by render() only on a real navigation, so it never replays
   on background re-renders. */
.nav-ico-swap { animation: iconSwapIn var(--dur-2) var(--ease-spring) both; }
@keyframes iconSwapIn {
  from { transform: scale(.55) rotate(-14deg); filter: blur(3px); opacity: .25; }
  to   { transform: scale(1) rotate(0); filter: blur(0); opacity: 1; }
}

/* Success check — the booking-confirm tick lands with a blur+rotate settle
   (transitions.dev p10) over the existing stroke draw. */
.liquid-check { animation: successCheckIn .6s var(--ease-spring) both; }
@keyframes successCheckIn {
  0%   { transform: scale(.4) rotate(-20deg); filter: blur(6px); opacity: 0; }
  60%  { filter: blur(0); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* Text reveal — a heading wipes + rises in (transitions.dev "Texts reveal", p18). */
.text-reveal { animation: textReveal var(--dur-3) var(--ease-out) both; }
@keyframes textReveal {
  from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: translateY(0); clip-path: inset(0 0 -6px 0); }
}

/* Checkbox check — the tick pops in when the box is ticked (transitions.dev
   "Checkbox check"). Native :checked → fires on click, no re-render needed. */
.policy-check input:checked + .check-mark::after { animation: checkPop var(--dur-2) var(--ease-spring) both; }
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* Toggle — the knob springs across the track when a switch turns on
   (transitions.dev "Toggle"). Matches the static on-position (translateX 20px). */
.settings-toggle span { transition: transform var(--dur-2) var(--ease-spring), background var(--dur-1) var(--ease-soft); }
.settings-toggle.on span { animation: knobOn var(--dur-2) var(--ease-spring) both; }
@keyframes knobOn {
  from { transform: translateX(0); }
  to   { transform: translateX(20px); }
}

/* Accordion — the "Past nights" group expands open (transitions.dev "Accordion"). */
.accordion-panel { animation: accordionOpen var(--dur-3) var(--ease-out) both; overflow: hidden; }
@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-6px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 1600px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal.booking-modal.overlay-open, .nav-ico-swap, .liquid-check, .text-reveal,
  .policy-check input:checked + .check-mark::after,
  .settings-toggle.on span, .accordion-panel { animation: none !important; }
}

/* ─── OPENING EXPERIENCE ────────────────────────────────────── */
.partie-splash {
  position: absolute;
  inset: 0;
  z-index: 250;
  display: grid;
  grid-template-rows: 1fr auto auto;
  place-items: center;
  padding: 80px 28px 44px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 43%, rgba(124,31,255,.24), transparent 27%),
    radial-gradient(circle at 50% 43%, rgba(185,51,255,.10), transparent 48%),
    #030308;
  perspective: 900px;
  animation: splashFade 2.3s ease both;
}
.partie-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 43%, #000, transparent 66%);
}
.splash-stage {
  position: relative;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.splash-track {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(185,51,255,.36);
  border-radius: 50%;
  transform: rotateX(66deg) rotateZ(15deg);
  box-shadow: 0 0 22px rgba(124,31,255,.18);
  animation: orbitTrack 4.2s linear infinite;
}
.splash-track.track-two {
  inset: 34px 4px;
  border-color: rgba(255,255,255,.14);
  transform: rotateY(68deg) rotateZ(-12deg);
  animation-direction: reverse;
  animation-duration: 3.2s;
}
.splash-mark-3d {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 30px;
  transform-style: preserve-3d;
  animation: partieSpin 1.9s cubic-bezier(.2,.74,.25,1) both;
  filter: drop-shadow(0 0 28px rgba(124,31,255,.62));
}
.splash-mark-3d .partie-logo {
  position: relative;
  z-index: 2;
  transform: translateZ(18px);
  box-shadow: 0 0 0 1px rgba(185,51,255,.58), 0 0 34px rgba(124,31,255,.52);
}
.splash-mark-shadow {
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  background: #3d0e7a;
  transform: translateZ(-14px);
  box-shadow: 12px 14px 30px rgba(0,0,0,.72);
}
.partie-splash .partie-icon-light { display: none !important; }
.partie-splash .partie-icon-dark { display: block !important; }
/* White-mode opening transition */
[data-theme="light"] .partie-splash {
  color: #1c0f33;
  background:
    radial-gradient(circle at 50% 43%, rgba(124,31,255,.16), transparent 30%),
    radial-gradient(circle at 50% 43%, rgba(185,51,255,.08), transparent 52%),
    #f5f2fb;
}
[data-theme="light"] .partie-splash::before {
  background-image:
    linear-gradient(rgba(20,8,40,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,8,40,.05) 1px, transparent 1px);
}
[data-theme="light"] .partie-splash .partie-icon-light { display: block !important; }
[data-theme="light"] .partie-splash .partie-icon-dark { display: none !important; }
.splash-wordmark {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  text-align: center;
  animation: splashCopy .7s .78s ease both;
}
.splash-wordmark strong {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}
.splash-wordmark span {
  color: rgba(240,236,255,.62);
  font-size: 11px;
  font-weight: 700;
}
.splash-progress {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 2px;
  margin-top: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
}
.splash-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--purple), var(--purple-2), #fff);
  animation: splashLoad 1.8s .18s cubic-bezier(.2,.75,.2,1) both;
}
@keyframes partieSpin {
  0% { opacity: 0; transform: rotateY(-135deg) rotateX(18deg) scale(.72); }
  45% { opacity: 1; transform: rotateY(25deg) rotateX(-5deg) scale(1.04); }
  100% { opacity: 1; transform: rotateY(0) rotateX(0) scale(1); }
}
@keyframes orbitTrack { to { transform: rotateX(66deg) rotateZ(375deg); } }
@keyframes splashCopy {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splashLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splashFade {
  0%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.location {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
}
.location-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 17px;
  transition: background .15s;
}
.icon-btn:hover { background: var(--panel-3); }

/* ─── HOME HERO ──────────────────────────────────────────────── */
.home-hero {
  margin-bottom: 20px;
}
.home-brand-stage {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124,31,255,.22), rgba(255,31,136,.08) 52%, rgba(30,212,122,.07)),
    #090817;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 22px 52px rgba(0,0,0,.26);
}
.home-brand-stage::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  pointer-events: none;
}
.home-brand-stage::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: -35%;
  top: 0;
  width: 32%;
  height: 100%;
  opacity: .52;
  background: linear-gradient(90deg, transparent, rgba(191,136,255,.20), rgba(104,255,204,.16), transparent);
  transform: skewX(-16deg);
  animation: brandSweep 5.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brandSweep {
  0%, 18% { left: -40%; }
  58%, 100% { left: 118%; }
}
.brand-compass {
  position: relative;
  width: 178px;
  height: 148px;
  margin: 2px auto 14px;
  display: grid;
  place-items: center;
  animation: brandFloat 4.6s ease-in-out infinite;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.brand-compass:active { transform: scale(0.97); }
.surprise-cta {
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(168,85,247,.9), rgba(124,31,255,.9));
  border: 1px solid rgba(203,143,255,.5);
  box-shadow: 0 8px 24px rgba(124,31,255,.32);
  transition: transform .18s ease, box-shadow .18s ease;
}
.surprise-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124,31,255,.42); }
.surprise-cta:active { transform: scale(.96); }
@keyframes brandFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.brand-compass::before,
.brand-compass::after {
  content: '';
  position: absolute;
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,.12);
  transform: rotate(-10deg);
}
.brand-compass::before {
  inset: 16px 4px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: compassDrift 18s linear infinite;
}
@keyframes compassDrift {
  to { transform: rotate(350deg); }
}
.brand-compass::after {
  inset: 32px 28px;
  border-color: rgba(185,51,255,.34);
  box-shadow: 0 0 36px rgba(124,31,255,.32);
}
.brand-core {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 20px 52px rgba(124,31,255,.48), 0 0 0 1px rgba(185,51,255,.30), inset 0 1px 0 rgba(255,255,255,.22);
  animation: brandCorePulse 2.8s ease-in-out infinite;
}
@keyframes brandCorePulse {
  0%, 100% { box-shadow: 0 20px 52px rgba(124,31,255,.42), 0 0 0 1px rgba(185,51,255,.28), 0 0 0 0 rgba(124,31,255,.16); }
  50% { box-shadow: 0 24px 62px rgba(124,31,255,.58), 0 0 0 1px rgba(185,51,255,.50), 0 0 0 12px rgba(124,31,255,0); }
}
.brand-signal {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(5,5,16,.78);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.signal-live { top: 8px; left: 10px; color: #7dffbe; }
.signal-tables { right: 2px; top: 52px; }
.signal-parties { left: 20px; bottom: 8px; color: #ffb0d8; }
.home-brand-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}
.home-brand-title {
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.05;
  letter-spacing: 0;
}
/* ── Booking celebration ───────────────────────────────── */
.cele-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 90% at 50% 30%, rgba(88, 28, 135, 0.62), rgba(6, 4, 16, 0.86));
  backdrop-filter: blur(10px);
  animation: cele-fade 240ms ease both;
  overflow: hidden;
}
.cele-card {
  position: relative;
  z-index: 2;
  width: min(360px, 92%);
  padding: 30px 24px 24px;
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(38, 20, 66, 0.96), rgba(16, 10, 30, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 30px 80px rgba(88, 28, 135, 0.5), inset 0 0 40px rgba(168, 85, 247, 0.12);
  animation: cele-rise 520ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}
.cele-burst {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
}
.cele-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.7);
  animation: cele-ping 900ms ease-out both;
}
.cele-ring-2 { animation-delay: 180ms; border-color: rgba(52, 211, 153, 0.6); }
.cele-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
  animation: cele-pop 520ms cubic-bezier(0.2, 0.9, 0.25, 1.4) both;
}
.cele-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  margin: 0 0 4px;
}
.cele-title {
  font-family: 'Unbounded', var(--font-display);
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}
.cele-venue { font-size: 15px; color: #d9c6ff; font-weight: 700; margin: 0 0 18px; }
.cele-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cele-stats div {
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
}
.cele-stats strong { display: block; font-size: 16px; color: #fff; }
.cele-stats span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cele-day { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.cele-cta { width: 100%; }
.cele-confetti-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cele-confetti {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: cele-fall 1500ms linear both;
}
.cele-confetti.c-0 { background: #a855f7; }
.cele-confetti.c-1 { background: #34d399; }
.cele-confetti.c-2 { background: #f472b6; }
.cele-confetti.c-3 { background: #facc15; }
.cele-confetti.c-4 { background: #38bdf8; }
.cele-confetti.c-5 { background: #fff; }
@keyframes cele-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cele-rise { from { opacity: 0; transform: translateY(26px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cele-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes cele-ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes cele-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0.9; transform: translateY(105vh) rotate(540deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cele-card, .cele-check, .cele-ring, .cele-confetti { animation: none; }
  .cele-confetti { display: none; }
  .cele-ring { opacity: 0; }
}
/* ── Water "booking confirmed" transition ──────────────── */
.liquid-cele {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.liquid-fill {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 42% 36%, #bd94ff, #7c3aed 52%, #4c1d95);
  border-radius: 45% 55% 52% 48%;
  box-shadow: 0 0 130px rgba(140, 90, 255, 0.5);
  animation: water-grow 1300ms cubic-bezier(0.5, 0, 0.15, 1) forwards, water-wave 4s ease-in-out 1s infinite;
}
.water-ripple {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%) scale(0);
  border: 1.5px solid rgba(205, 178, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: water-ripple 1500ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.water-ripple.ripple-2 { animation-delay: 280ms; }
.liquid-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  animation: water-text 760ms cubic-bezier(0.2, 0.8, 0.25, 1) 760ms forwards;
}
.liquid-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
}
.liquid-check svg { width: 32px; height: 32px; }
.liquid-check svg path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: check-draw 520ms cubic-bezier(0.65, 0, 0.35, 1) 1120ms forwards;
}
.liquid-title {
  font-family: 'Caveat', var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin: 0;
}
.liquid-venue {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  margin: -4px 0 0;
}
.liquid-details {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.liquid-details span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
@keyframes water-grow {
  to { width: 320vmax; height: 320vmax; border-radius: 48% 52% 50% 50%; }
}
@keyframes water-wave {
  0%, 100% { border-radius: 48% 52% 50% 50%; }
  50% { border-radius: 52% 48% 51% 49%; }
}
@keyframes water-ripple {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(30); }
}
@keyframes water-text { to { opacity: 1; transform: translateY(0); } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .liquid-fill { animation: none; width: 320vmax; height: 320vmax; border-radius: 0; }
  .water-ripple { display: none; }
  .liquid-content { animation: none; opacity: 1; transform: none; }
  .liquid-check svg path { animation: none; stroke-dashoffset: 0; }
}
.hype-phrase {
  font-family: 'Caveat', var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.0;
  letter-spacing: 0;
  background: linear-gradient(96deg, #fff 0%, #d9c6ff 42%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: rotate(-1.4deg);
  transform-origin: left center;
  text-shadow: 0 0 22px rgba(168, 85, 247, 0.28);
  animation: hype-pop 620ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}
@keyframes hype-pop {
  0% { opacity: 0; transform: rotate(-1.4deg) translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: rotate(-1.4deg) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hype-phrase { animation: none; transform: rotate(-1.4deg); }
}
.home-signal-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}
.home-signal-grid div {
  padding: 11px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.11);
  text-align: center;
}
.home-signal-grid strong {
  display: block;
  font-size: 15px;
  color: #fff;
  margin-bottom: 2px;
}
.home-signal-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--purple-2);
  margin-bottom: 6px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}
.hero-headline em {
  font-style: normal;
  color: var(--purple-2);
}
.hero-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ─── SIGN UP GATE ───────────────────────────────────────────── */
.signup-screen {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 42px 16px 22px;
  background:
    linear-gradient(145deg, rgba(124,31,255,.18), transparent 46%),
    linear-gradient(25deg, rgba(255,31,136,.10), transparent 48%),
    #050510;
}
.signup-screen::-webkit-scrollbar { width: 0; }
.language-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}
.language-selector {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.language-selector button {
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
}
.language-selector button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 0 18px rgba(124,31,255,.28);
}
.language-selector.compact {
  background: rgba(10,10,24,.68);
  backdrop-filter: blur(14px);
}
.signup-brand {
  text-align: center;
  margin-bottom: 16px;
}
.signup-logo-wrap {
  position: relative;
  width: 126px;
  height: 100px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
}
.signup-logo-wrap::before {
  content: '';
  position: absolute;
  inset: 8px 0;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.12);
  transform: rotate(-8deg);
}
.signup-logo-mark {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 18px 58px rgba(124,31,255,.5);
}
.signup-brand h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}
.signup-brand p {
  max-width: 280px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.backend-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}
.backend-status.live {
  color: #caffdf;
  border-color: rgba(30,212,122,.32);
  background: rgba(30,212,122,.12);
}
.signup-card {
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
}
.personal-account-note {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  margin-bottom: 12px;
  border-left: 2px solid var(--purple-2);
  background: rgba(124,31,255,.07);
}
.personal-account-note span {
  color: #ddc4ff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.personal-account-note p {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.45;
}
.login-portal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}
.login-portal-switch button {
  min-height: 42px;
  border-radius: 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 850;
}
.login-portal-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,31,255,.88), rgba(185,51,255,.78));
  box-shadow: 0 8px 24px rgba(124,31,255,.22);
}
.venue-login-note,
.venue-account-gate {
  display: grid;
  gap: 5px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(185,51,255,.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,31,255,.13), rgba(255,31,136,.055));
}
.venue-login-note span,
.venue-account-gate strong {
  color: #ead8ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.venue-login-note p,
.venue-account-gate p {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
}
.venue-account-gate .cta { margin-top: 8px; }
.policy-stack {
  display: grid;
  gap: 8px;
  margin: 2px 0;
}
.policy-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
}
.policy-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-mark {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
}
.policy-check input:checked + .check-mark {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(124,31,255,.28);
}
.policy-check input:checked + .check-mark::after {
  content: '✓';
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.policy-check strong {
  display: inline-block;
  margin-left: 4px;
  color: #ffb0d8;
  font-size: 10px;
  text-transform: uppercase;
}
.policy-check.disabled { opacity: .72; }
.cookie-choice-panel {
  padding: 11px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}
.cookie-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-choice-head span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.cookie-choice-head small {
  color: var(--muted);
  font-size: 10px;
}
.cookie-choice-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 7px;
}
.cookie-choice {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 13px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.cookie-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cookie-choice:has(input:checked) {
  color: #fff;
  border-color: rgba(185,51,255,.44);
  background: linear-gradient(135deg, rgba(124,31,255,.35), rgba(255,31,136,.18));
  box-shadow: 0 0 18px rgba(124,31,255,.20);
}
.cookie-choice.disabled { opacity: .82; }
.signup-error {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,61,94,.12);
  border: 1px solid rgba(255,61,94,.24);
  color: #ffb4c2;
  font-size: 12px;
  font-weight: 700;
}
.signup-error.muted-error {
  color: var(--muted-2);
  background: rgba(255,255,255,.045);
  border-color: var(--line);
}
.signup-notice {
  padding: 11px 12px;
  border-radius: 14px;
  color: #b9fbd8;
  background: rgba(30,212,122,.10);
  border: 1px solid rgba(30,212,122,.28);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}
.verification-panel {
  display: grid;
  gap: 11px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(124,31,255,.09);
  border: 1px solid rgba(185,51,255,.25);
}
.verification-panel strong,
.verification-panel span {
  display: block;
}
.verification-panel strong {
  color: var(--text);
  font-size: 13px;
}
.verification-panel span {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.verification-panel button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  font-size: 11px;
  font-weight: 850;
}
.verification-panel button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

/* ─── SEARCH ─────────────────────────────────────────────────── */
.search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.search:focus-within { border-color: rgba(124,31,255,.5); }
.search-icon { color: var(--muted); font-size: 16px; }
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder { color: var(--muted); }

/* ─── CHIPS / QUICK FILTERS ──────────────────────────────────── */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--dur-1) var(--ease-soft), border-color var(--dur-1) var(--ease-soft), background-color var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease-spring);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #5c0fcc);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(124,31,255,.35);
}
.chip.danger-chip {
  color: #ff9caf;
  border-color: rgba(255,61,94,.30);
  background: rgba(255,61,94,.08);
  box-shadow: none;
}
.chip.danger-chip:hover {
  color: #fff;
  border-color: rgba(255,61,94,.52);
  background: rgba(255,61,94,.18);
}

/* ─── SECTION TITLE ──────────────────────────────────────────── */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 32px 0 15px;
}
.section-title h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-title a {
  color: var(--purple-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* ─── VENUE CARD (big) ───────────────────────────────────────── */
.venue-card {
  position: relative;
  min-height: 200px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-2);
  margin-bottom: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.venue-card:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.venue-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.15);
  transition: transform .3s;
}
.venue-card:hover .venue-img { transform: scale(1.03); }
.venue-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.92) 100%);
}
.venue-content {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 2;
}

/* ─── BADGES ─────────────────────────────────────────────────── */
.badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}
.badge.hot {
  background: rgba(255,31,136,.22);
  color: #ffb0d8;
  border-color: rgba(255,31,136,.3);
}
.badge.open {
  background: rgba(30,212,122,.15);
  color: #7dffbe;
  border-color: rgba(30,212,122,.25);
}
.badge.scheduled {
  background: rgba(0,0,0,.58);
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.18);
}
.badge.live-dot::before {
  content: '●';
  margin-right: 5px;
  color: #ff4d4d;
  animation: pulse 1.5s infinite;
}

.venue-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.72);
}
.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  margin-top: 6px;
}
.meta-row span { display: flex; align-items: center; gap: 4px; }

/* ─── CROWD BAR ──────────────────────────────────────────────── */
.crowd-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  margin-top: 8px;
  overflow: hidden;
}
.crowd-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width .4s;
}

/* ─── STORIES ────────────────────────────────────────────────── */
.story-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.story-row::-webkit-scrollbar { display: none; }

.story {
  min-width: 74px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  text-align: center;
  cursor: pointer;
}
.story-media {
  position: relative;
  width: 72px;
  height: 84px;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(124,31,255,.35), rgba(255,31,136,.14)),
    rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.story-media::before {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  top: 8px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--purple-2), var(--pink));
  z-index: 3;
}
.story-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5,5,16,.74));
  z-index: 2;
}
.story-image {
  position: absolute;
  inset: 9px 7px 7px;
  border-radius: 19px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}
.story-pulse {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.story-name {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  max-width: 74px;
}
.story-empty-signal {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 12px;
  border: 1px dashed rgba(185,51,255,.28);
  border-radius: 12px;
  background: rgba(124,31,255,.055);
}
.story-empty-signal > span {
  width: 10px;
  height: 34px;
  flex: 0 0 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--purple-2), var(--green));
  box-shadow: 0 0 18px rgba(124,31,255,.42);
}
.story-empty-signal strong,
.story-empty-signal small { display: block; }
.story-empty-signal strong { font-size: 12px; }
.story-empty-signal small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.story-empty-signal.compact { min-height: 58px; margin-bottom: 12px; }

/* ─── LIST CARD ──────────────────────────────────────────────── */
.list-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.list-card:hover { border-color: var(--line-2); background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); }

.thumb {
  width: 72px; height: 72px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.list-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ─── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 12px;
}

/* ─── PARTIES ────────────────────────────────────────────────── */
.party-hero { margin-bottom: 18px; }
.party-trust-card {
  padding: 14px;
  margin-bottom: 4px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,31,255,.16), rgba(255,31,136,.08));
  border: 1px solid rgba(124,31,255,.28);
}
.party-trust-card p {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}
.party-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.party-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.party-cover {
  height: 138px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.party-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(5,5,16,.72));
}
.party-body { padding: 14px; }
.party-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 5px;
}
.party-meta-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  margin-top: 12px;
}
.party-meta-grid span {
  padding: 9px 7px;
  border-radius: 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.host-party-fab {
  position: absolute;
  right: 16px;
  bottom: 96px;
  z-index: 35;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 12px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 40px rgba(255,31,136,.28), 0 0 34px rgba(124,31,255,.3);
  border: 1px solid rgba(255,255,255,.18);
}
.host-party-fab span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 17px;
  line-height: 1;
}
.host-party-fab strong { font-size: 13px; letter-spacing: 0; }
.party-detail-hero {
  height: 150px;
  margin: -20px -20px 16px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.party-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), #0e0e1c);
}
.host-stepper {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  margin-bottom: 16px;
}
.host-stepper span {
  height: 7px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 0;
}
.host-stepper span.active {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-color: transparent;
  box-shadow: 0 0 16px rgba(124,31,255,.32);
}
.publish-summary {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(124,31,255,.16), rgba(255,255,255,.04));
  border: 1px solid rgba(124,31,255,.28);
}
.publish-summary h3 {
  font-size: 20px;
  margin: 10px 0 4px;
  font-weight: 800;
}
.publish-summary p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ─── KPIs ───────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.kpi {
  background: var(--panel-2);
  padding: 10px 8px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--line);
}
.kpi strong { display: block; font-size: 15px; color: #fff; font-weight: 700; }
.kpi span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0; }

/* ─── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(8,7,18,.88);
  backdrop-filter: blur(28px) saturate(1.35);
  box-shadow: 0 18px 46px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}
.bottom-nav::before {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,51,255,.80), rgba(255,255,255,.36), transparent);
}
.nav-tracker {
  --nav-index: 0;
  --nav-from: 0;
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 6px;
  width: calc((100% - 12px) / var(--nav-count, 5));
  height: 58px;
  border: 1px solid rgba(185,51,255,.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(185,51,255,.19), rgba(124,31,255,.11)), rgba(255,255,255,.035);
  box-shadow: 0 0 24px rgba(124,31,255,.24), inset 0 1px 0 rgba(255,255,255,.10);
  transform: translateX(calc(var(--nav-index) * 100%));
  animation: navTrackSlide .42s cubic-bezier(.22,1.35,.32,1) both;
}
@keyframes navTrackSlide {
  from { transform: translateX(calc(var(--nav-from) * 100%)); }
  to { transform: translateX(calc(var(--nav-index) * 100%)); }
}
.nav-item {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0;
  transition: color .22s ease, transform .28s cubic-bezier(.2,.85,.25,1);
}
.nav-item:hover { color: var(--muted-2); transform: translateY(-1px); }
.nav-item:active { transform: scale(.91); }
.nav-ico {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 18px;
  transition: transform .28s cubic-bezier(.2,.85,.25,1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav-ico > svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}
.nav-icon-fallback { line-height: 1; }
.lucide-ready .nav-icon-fallback { display: none; }
.nav-item.active { color: #fff; transform: translateY(-2px); }
.nav-item.active .nav-ico {
  color: #fff;
  background: rgba(124,31,255,.24);
  border-color: rgba(203,143,255,.48);
  box-shadow: 0 0 20px rgba(124,31,255,.34);
  transform: translateY(-2px) scale(1.08);
}
.nav-item-featured:not(.active) .nav-ico {
  color: #dcbcff;
  border-color: rgba(185,51,255,.24);
  background: rgba(124,31,255,.10);
}
.nav-echo {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(207,167,255,.46);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
}
.nav-item:active .nav-echo {
  animation: navEcho .46s ease-out;
}
@keyframes navEcho {
  0% { opacity: .8; transform: scale(.72); }
  100% { opacity: 0; transform: scale(1.65); }
}

/* ─── DETAIL PAGE ────────────────────────────────────────────── */
.detail-hero {
  height: 230px;
  margin: -44px -16px 18px;
  position: relative;
  overflow: hidden;
}
.detail-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, #050510 100%);
}
/* Venue open transition: photo zooms in, then the body reveals. */
.detail-entering .detail-hero-img {
  animation: heroZoom 1250ms cubic-bezier(.16,.72,.2,1) both;
}
.detail-entering .detail-body {
  animation: detailBodyReveal 780ms cubic-bezier(.2,.82,.25,1) .36s both;
}
@keyframes heroZoom {
  from { transform: scale(1.22); }
  to { transform: scale(1); }
}
@keyframes detailBodyReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .detail-entering .detail-hero-img,
  .detail-entering .detail-body { animation: none; }
}
.detail-back {
  position: absolute;
  z-index: 3;
  top: 52px;
  left: 14px;
}
.detail-story-dock {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.detail-story-dock::-webkit-scrollbar { display: none; }
.detail-story-chip {
  min-width: 102px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(5,5,16,.72);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  text-align: left;
}
.detail-story-chip.done { border-color: rgba(30,212,122,.34); }
.detail-story-chip.due { border-color: rgba(255,201,77,.34); }
.detail-story-mini {
  width: 30px;
  height: 38px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.18);
}
.detail-story-chip strong {
  display: block;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.detail-story-chip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.venue-story-rail {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 1px 10px;
  scrollbar-width: none;
}
.venue-story-rail::-webkit-scrollbar { display: none; }
.venue-story-rail .detail-story-chip {
  min-width: 132px;
  grid-template-columns: 48px minmax(0,1fr);
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(124,31,255,.14), rgba(255,255,255,.045));
  border-color: rgba(185,51,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.venue-story-rail .detail-story-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(185,51,255,.52);
  box-shadow: 0 10px 28px rgba(0,0,0,.22), 0 0 20px rgba(124,31,255,.16);
}
.venue-story-rail .detail-story-mini {
  position: relative;
  width: 48px;
  height: 58px;
  border-radius: 9px;
}
.detail-story-mini i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid #11101c;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgba(30,212,122,.84);
}
.story-window-label {
  display: inline-grid;
  min-width: 34px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(30,212,122,.28);
  border-radius: 7px;
  color: #86ffc2;
  background: rgba(30,212,122,.09);
  font-size: 10px;
  font-weight: 850;
}

.detail-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #ff4d4d;
  text-transform: uppercase;
  letter-spacing: 0;
}
.live-indicator.scheduled {
  color: var(--muted-2);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
  animation: pulse 1.2s infinite;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin: 14px 0;
}
.detail-actions button {
  padding: 11px 6px;
  border-radius: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  transition: color var(--dur-1) var(--ease-soft), border-color var(--dur-1) var(--ease-soft), background-color var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease-spring);
}
.detail-actions button:hover { background: var(--panel-3); color: #fff; }
/* Bookings: week-old nights fold into a quiet collapsed group */
.past-bookings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 14px 0 10px;
  padding: 11px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.past-bookings-toggle:hover { color: var(--muted-2); border-color: var(--line-2); }
.booking-card-past { opacity: .55; }
.booking-card-past:hover { opacity: .8; }

.report-link {
  display: block;
  margin: 2px 0 8px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  background: none;
}
.report-link:hover { color: var(--danger); }
.report-modal .report-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}
.report-cat {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-2);
}
.report-cat.active {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: transparent;
  color: #fff;
}
.report-block {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted-2);
  cursor: pointer;
}
.report-block input { width: 18px; height: 18px; accent-color: var(--purple); }

/* Owner venue location picker */
.owner-location-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.owner-location-btn:hover { background: var(--panel-3); }
.owner-location-btn.set { border-color: var(--purple); background: rgba(124,58,237,.08); }
.owner-location-ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--panel-3);
  font-size: 16px;
}
.owner-location-btn.set .owner-location-ico { background: var(--purple); color: #fff; }
.owner-location-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.owner-location-text strong { font-size: 13.5px; color: #fff; }
.owner-location-text small { font-size: 11.5px; color: var(--muted-2); }

.location-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(6,4,14,.72);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.location-modal {
  width: 100%; max-width: 520px;
  background: var(--panel);
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  border: 1px solid var(--line);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
  max-height: 90vh;
}
.location-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.location-modal-head h3 { font-size: 18px; font-weight: 700; }
.location-modal-head p { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.location-close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 14px;
}
.location-map { width: 100%; height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.location-map-loading { height: 300px; display: grid; place-items: center; color: var(--muted-2); background: var(--panel-2); border-radius: 16px; font-size: 13px; }
.location-readout { font-size: 12px; color: var(--muted-2); text-align: center; }
.location-readout strong { color: #fff; font-variant-numeric: tabular-nums; }
.location-modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.location-modal-actions .cta { margin: 0; }

/* ─── TABLE ROW ──────────────────────────────────────────────── */
.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  margin-bottom: 9px;
  border: 1px solid var(--line);
}
.table-row strong { display: block; font-size: 14px; font-weight: 700; }
.table-row small { color: var(--muted); font-size: 12px; }
.table-availability {
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  white-space: nowrap;
}
.table-availability.sold { color: var(--muted); }

/* ─── MAP ────────────────────────────────────────────────────── */
.map-canvas {
  position: relative;
  height: 580px;
  margin: 0 -8px;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(124,31,255,.15), transparent 40%),
    #080f1e;
  background-size: 38px 38px, 38px 38px, auto, auto;
  border: 1px solid var(--line);
}
.area-label {
  position: absolute;
  color: rgba(110,120,170,.7);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
}
.pin {
  position: absolute;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(124,31,255,.20);
  display: grid;
  place-items: center;
  box-shadow: 0 0 34px rgba(124,31,255,.55), 0 0 0 7px rgba(124,31,255,.12);
  border: 1px solid rgba(255,255,255,.48);
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
}
.pin:hover {
  transform: translate(-50%,-50%) scale(1.12);
  background: rgba(185,51,255,.30);
  box-shadow: 0 0 42px rgba(185,51,255,.72), 0 0 0 8px rgba(124,31,255,.16);
}
.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,.86);
}

.map-preview {
  position: absolute;
  left: 12px; right: 12px; bottom: 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(5,5,16,.9);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
}
.map-preview h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; }

/* ─── FILTERS PAGE ───────────────────────────────────────────── */
.filters-grid { display: grid; gap: 18px; }
.filter-block h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}
.option-grid { display: flex; gap: 7px; flex-wrap: wrap; }
.explore-search { margin-bottom: 10px; }
.explore-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 8px;
}
.explore-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted-2);
  background: var(--panel-2);
}
.explore-filter-trigger.active {
  color: #fff;
  border-color: rgba(185,51,255,.42);
  background: rgba(124,31,255,.16);
  box-shadow: 0 0 20px rgba(124,31,255,.18);
}
.explore-filter-trigger strong { font-size: 12px; }
.explore-filter-trigger b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--purple);
  font-size: 10px;
}
.filter-glyph {
  width: 20px;
  display: grid;
  gap: 3px;
}
.filter-glyph i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.filter-glyph i:nth-child(1) { width: 20px; }
.filter-glyph i:nth-child(2) { width: 13px; }
.filter-glyph i:nth-child(3) { width: 7px; }
.compact-text-btn { width: auto; margin: 0; padding: 7px 4px; }
.filter-sheet-backdrop {
  align-items: end;
  padding: 0;
}
.filter-sheet {
  width: 100%;
  max-height: 82%;
  margin: 0;
  padding: 18px 18px 22px;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  animation: sheetRise .28s cubic-bezier(.2,.82,.25,1) both;
}
@keyframes sheetRise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-sheet-actions {
  position: sticky;
  bottom: -22px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  margin: 18px -18px -22px;
  padding: 12px 18px 20px;
  border-top: 1px solid var(--line);
  background: rgba(10,10,22,.96);
  backdrop-filter: blur(16px);
}
.filter-sheet-actions .cta { margin: 0; }

/* ─── PROFILE ────────────────────────────────────────────────── */
.profile-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar-button {
  position: relative;
  flex-shrink: 0;
  border-radius: 24px;
}
.avatar-button .avatar {
  pointer-events: none;
  box-shadow: 0 0 28px rgba(124,31,255,.30);
}
.avatar-button span {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14,14,28,.92);
  border: 1px solid var(--line-2);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.avatar {
  width: 68px; height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-weight: 900;
  font-size: 26px;
  flex-shrink: 0;
}
.avatar.has-photo {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.avatar.large {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  font-size: 28px;
}
.profile-edit-action {
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  border: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}
.profile-edit-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124,31,255,.14), rgba(255,31,136,.07));
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.profile-edit-preview strong,
.profile-edit-preview span {
  display: block;
}
.profile-edit-preview strong {
  font-size: 17px;
  font-weight: 850;
}
.profile-edit-preview span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

/* Owner / Personal toggle */
.owner-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.owner-switch button {
  padding: 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: color var(--dur-2) var(--ease-soft), background-color var(--dur-2) var(--ease-soft), box-shadow var(--dur-2) var(--ease-soft);
}
.owner-switch button.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 0 20px rgba(124,31,255,.35);
}
.owner-switch.profile-tabs { grid-template-columns: repeat(3,1fr); }
.owner-switch.profile-tabs button {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 7px;
}
.owner-access-switch {
  margin-bottom: 20px;
}
.venue-workspace-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 4px 16px;
  border-bottom: 1px solid var(--line);
}
.venue-workspace-hero::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 64px;
  height: 64px;
  border-top: 1px solid rgba(185,51,255,.45);
  border-right: 1px solid rgba(185,51,255,.28);
  border-radius: 0 18px 0 0;
  pointer-events: none;
}
.venue-workspace-hero h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
}
.venue-workspace-hero > p {
  max-width: 310px;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}
.venue-workspace-identity {
  display: grid;
  gap: 2px;
  padding-top: 10px;
}
.venue-workspace-identity span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.venue-workspace-identity strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.venue-workspace-list {
  display: grid;
  gap: 8px;
  padding: 14px 0;
}
.venue-workspace-card {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  text-align: left;
}
.venue-workspace-card:hover {
  border-color: rgba(185,51,255,.36);
  background: rgba(124,31,255,.09);
  transform: translateY(-1px);
}
.venue-workspace-art {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  background-color: rgba(124,31,255,.12);
}
.venue-workspace-art .partie-logo {
  width: 32px;
  height: 32px;
}
.venue-workspace-copy {
  min-width: 0;
}
.venue-workspace-copy strong,
.venue-workspace-copy small {
  display: block;
}
.venue-workspace-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-workspace-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-workspace-state {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}
.venue-workspace-state.active {
  color: #8affc5;
  border-color: rgba(30,212,122,.28);
  background: rgba(30,212,122,.08);
}
.venue-workspace-state.state-paused,
.venue-workspace-state.state-removal {
  color: #ffd27a;
  border-color: rgba(245,180,60,.30);
  background: rgba(245,180,60,.10);
}
.venue-workspace-state.state-removed {
  color: #ff9d97;
  border-color: rgba(226,75,74,.30);
  background: rgba(226,75,74,.10);
}
.venue-workspace-card > b {
  color: var(--muted);
  font-size: 20px;
}
.venue-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.venue-add-button span {
  font-size: 19px;
  line-height: 1;
}
.venue-registration-owner {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(185,51,255,.24);
  border-radius: 8px;
  background: rgba(124,31,255,.07);
}
.venue-registration-owner span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.venue-registration-owner strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.venue-registration-owner small {
  color: var(--muted-2);
  font-size: 10px;
}

/* ─── SETTINGS ───────────────────────────────────────────────── */
.settings-screen { display: grid; gap: 14px; }
.settings-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(124,31,255,.16), rgba(255,31,136,.08)),
    var(--panel-2);
  border: 1px solid var(--line);
}
.settings-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 26px rgba(124,31,255,.32);
}
.settings-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}
.settings-head p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 5px;
}
.settings-section {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.028));
  border: 1px solid var(--line);
}
.settings-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.settings-section-title span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.settings-section-title small {
  color: var(--muted);
  font-size: 11px;
}
.theme-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.theme-option {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}
.theme-option.active {
  border-color: rgba(185,51,255,.58);
  box-shadow: 0 0 24px rgba(124,31,255,.22);
}
.theme-preview {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
}
.theme-option strong { font-size: 14px; }
.theme-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.settings-language-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
}
.settings-language-row strong,
.settings-language-row span {
  display: block;
}
.settings-language-row strong {
  font-size: 13px;
  line-height: 1.25;
}
.settings-language-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
}
.language-selector.settings-language {
  box-shadow: none;
}
.settings-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  margin-top: 8px;
  text-align: left;
}
.settings-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.settings-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
}
.settings-link b {
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}
.settings-link.danger strong,
.settings-link.danger b { color: var(--danger); }
.settings-toggle {
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--line-2);
  transition: background .2s, border-color .2s;
}
.settings-toggle span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: transform .2s, background .2s;
}
.settings-toggle.on {
  background: linear-gradient(135deg, rgba(124,31,255,.82), rgba(185,51,255,.82));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(124,31,255,.28);
}
.settings-toggle.on span {
  transform: translateX(20px);
  background: #fff;
}

/* ─── ANALYTICS ──────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.analytics-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color .2s, transform .2s, background .2s;
}
button.analytics-card:hover {
  transform: translateY(-1px);
  border-color: rgba(185,51,255,.38);
  background: rgba(255,255,255,.075);
}
.analytics-card strong {
  font-size: 26px;
  font-weight: 800;
  display: block;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
}
.analytics-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 110px;
  padding-top: 16px;
}
.bar {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--purple-2), var(--purple));
  min-height: 16px;
  transition: opacity .15s;
}
.bar:hover { opacity: .8; }
.bar-labels {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.bar-labels span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }

/* ─── STORY COMPLIANCE TRACKER ───────────────────────────────── */
.story-slots { display: flex; gap: 8px; margin: 10px 0; }
.story-slot {
  flex: 1;
  padding: 9px 6px;
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.story-slot.done {
  background: rgba(30,212,122,.12);
  color: #7dffbe;
  border-color: rgba(30,212,122,.25);
}
.story-slot.due {
  background: rgba(255,201,77,.10);
  color: #ffd980;
  border-color: rgba(255,201,77,.25);
  animation: pulse 2s infinite;
}
.story-slot.empty { background: var(--panel-2); color: var(--muted); }

/* ─── STORY VIEWER ───────────────────────────────────────────── */
.story-viewer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 70;
  padding: 10px;
  background: rgba(0,0,0,.86);
  display: grid;
  place-items: stretch;
}
.story-viewer {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.72);
}
.story-viewer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,5,16,.72), rgba(5,5,16,.08) 34%, rgba(5,5,16,.92)),
    radial-gradient(ellipse at 80% 80%, rgba(124,31,255,.26), transparent 45%);
}
.story-viewer-bars {
  position: absolute;
  z-index: 7;
  top: 14px;
  left: 16px;
  right: 58px;
  display: flex;
  gap: 6px;
}
.story-viewer-bars button {
  flex: 1;
  height: 5px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
  overflow: hidden;
}
.story-viewer-bars span {
  display: block;
  height: 100%;
  width: 55%;
  border-radius: inherit;
  background: transparent;
}
.story-viewer-bars button.active span {
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--purple-2), var(--pink));
}
.story-close {
  position: absolute;
  z-index: 8;
  top: 28px;
  right: 14px;
  color: #fff;
  background: rgba(4,3,12,.36);
  border-color: rgba(255,255,255,.26);
  text-shadow: none;
}
.story-viewer-top {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 48px 18px 0;
}
.story-viewer-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 22px rgba(124,31,255,.36);
}
.story-viewer-top h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.story-viewer-top p {
  color: rgba(255,255,255,.82);
  font-size: 12px;
  margin-top: 2px;
}
.story-viewer-copy {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 22px;
}
.story-viewer-copy h2 {
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.06;
  margin: 12px 0 8px;
  color: #fff;
}
.story-viewer-copy p {
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.story-viewer .label {
  color: #fff;
  background: rgba(11,8,24,.38);
  border-color: rgba(255,255,255,.28);
  text-shadow: none;
}

/* ─── MODAL ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.75);
  display: grid;
  place-items: end center;
  padding: 12px;
  backdrop-filter: blur(4px);
}
.modal {
  width: 100%;
  max-height: 84%;
  overflow-y: auto;
  background: #0e0e1c;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.compact-modal {
  max-height: 78%;
}
.modal::-webkit-scrollbar { width: 0; }

.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.modal-header h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.modal-header p { color: var(--muted); font-size: 13px; margin-top: 4px; }

.profile-detail-list {
  display: grid;
  gap: 9px;
}
.profile-detail-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 17px;
  text-align: left;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.profile-detail-item strong,
.profile-detail-item span,
.profile-detail-item b {
  display: block;
}
.profile-detail-item strong {
  font-size: 14px;
  font-weight: 800;
}
.profile-detail-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.profile-detail-item b {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ─── FORM ───────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s;
}
.field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(124,31,255,.6); }
.field select option { background: #0e0e1c; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ─── PRICE TIERS ────────────────────────────────────────────── */
.price-tiers { display: grid; gap: 8px; margin: 4px 0; }
.price-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.price-tier-label { font-weight: 600; color: var(--muted-2); }
.price-tier-range { font-weight: 700; color: var(--text); }
.price-note { font-size: 11px; color: var(--muted); margin-top: 4px; text-align: center; }

/* ─── CTA BUTTONS ────────────────────────────────────────────── */
.cta {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 36px rgba(124,31,255,.35);
  transition: opacity .15s, transform .15s;
  color: #fff;
}
.cta:hover { opacity: .9; transform: translateY(-1px); }
.cta:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  background: rgba(255,255,255,.12);
  box-shadow: none;
  color: var(--muted-2);
}
.cta.secondary {
  background: var(--panel-2);
  box-shadow: none;
  border: 1px solid var(--line);
  color: var(--muted-2);
}
.cta.secondary:hover { background: var(--panel-3); color: #fff; }
.cta.danger-cta {
  background: linear-gradient(135deg, #d92d50, #ff3d5e);
  box-shadow: 0 0 30px rgba(255,61,94,.22);
}

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: absolute;
  top: 52px;
  left: 14px; right: 14px;
  z-index: 100;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(30,212,122,.14);
  border: 1px solid rgba(30,212,122,.28);
  color: #a8ffda;
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  animation: slideDown .25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BOOKINGS PAGE ──────────────────────────────────────────── */
.booking-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.booking-card:hover {
  transform: translateY(-1px);
  border-color: rgba(185,51,255,.34);
  background: linear-gradient(160deg, rgba(124,31,255,.14), rgba(255,255,255,.055));
}
.booking-card .badge { flex-shrink: 0; }
.booking-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.booking-card p { color: var(--muted); font-size: 12px; }

/* ─── HIDDEN GEM SECTION ─────────────────────────────────────── */
.gem-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,31,255,.12), rgba(255,31,136,.08));
  border: 1px solid rgba(124,31,255,.25);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  transition: border-color .2s;
}
.gem-card:hover { border-color: rgba(124,31,255,.5); }
.gem-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(124,31,255,.2);
  border: 1px solid rgba(124,31,255,.35);
  color: #d4b0ff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.gem-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }

/* ─── INSIGHT PANEL ──────────────────────────────────────────── */
.insight-card {
  padding: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.insight-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 8px;
  line-height: 1.25;
}
.insight-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 32px 16px;
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.empty-state.compact {
  padding: 18px 8px;
}
.empty-state.compact h3 {
  font-size: 15px;
}
.empty-state.compact p {
  margin-bottom: 12px;
}

/* ─── MVP ADDITIONS ──────────────────────────────────────────── */
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 2px 2px 33px;
}
.policy-links button {
  color: #d9b8ff;
  font-weight: 800;
  text-decoration: underline;
  font-size: 12px;
}
.policy-copy {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.policy-more-btn {
  display: inline-flex;
  margin: -4px 0 18px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #ead8ff;
  background: rgba(124,31,255,.20);
  border: 1px solid rgba(185,51,255,.38);
  font-size: 12px;
  font-weight: 850;
}
.recovery-note,
.account-delete-warning {
  padding: 12px;
  border-radius: 14px;
  color: var(--muted-2);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}
.account-delete-warning {
  border-color: rgba(255,61,94,.28);
  background: rgba(255,61,94,.08);
}
.cookie-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(5px);
}
.cookie-banner {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background: #101020;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.cookie-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  margin-bottom: 10px;
}
.cookie-banner h2 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}
.cookie-banner p {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 14px;
}
.cookie-actions {
  display: grid;
  gap: 9px;
}
.text-btn {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  padding: 6px;
}
.cookie-choice-panel.compact { margin-bottom: 12px; }
.cookie-screen-backdrop {
  place-items: stretch;
  padding: 0;
  background: rgba(3,3,10,.78);
  backdrop-filter: blur(14px);
}
.cookie-experience {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 9%, rgba(124,31,255,.21), transparent 25%),
    linear-gradient(180deg, #0b0915, #05050d 46%, #080611);
  animation: cookieScreenIn .36s cubic-bezier(.2,.8,.25,1) both;
}
.cookie-summary {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  padding: 56px 22px 26px;
}
.cookie-summary::before {
  content: '';
  position: absolute;
  inset: 108px 22px auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(185,51,255,.56), transparent);
}
.cookie-summary-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.cookie-summary-brand .cookie-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 11px;
  box-shadow: 0 0 24px rgba(124,31,255,.30);
}
.cookie-summary-copy {
  align-self: start;
  padding-top: 46px;
}
.cookie-kicker {
  display: block;
  margin-bottom: 12px;
  color: #cfa7ff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.cookie-summary-copy h2 {
  max-width: 290px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.06;
}
.cookie-summary-copy p {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.65;
}
.cookie-experience .cookie-actions {
  gap: 10px;
}
.cookie-experience .cookie-actions .cta {
  min-height: 52px;
  border-radius: 12px;
}
.cookie-experience .cookie-actions .text-btn {
  min-height: 42px;
  color: #d8c4ef;
}
.cookie-preferences {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.cookie-screen-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: 46px 16px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,6,15,.90);
  backdrop-filter: blur(16px);
}
.cookie-screen-header > div:nth-child(2) {
  min-width: 0;
  text-align: center;
}
.cookie-screen-header span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.cookie-screen-header h2 {
  margin-top: 2px;
  font-size: 17px;
}
.cookie-back {
  width: 38px;
  height: 38px;
  font-size: 28px;
}
.cookie-header-mark {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 10px;
}
.cookie-scroll {
  overflow-y: auto;
  padding: 20px 16px 28px;
  scrollbar-width: none;
}
.cookie-scroll::-webkit-scrollbar { display: none; }
.cookie-intro {
  padding: 4px 4px 20px;
}
.cookie-intro p,
.cookie-category > p {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.55;
}
.cookie-category {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.cookie-category-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-category-head strong,
.cookie-category-head span {
  display: block;
}
.cookie-category-head strong {
  font-size: 16px;
}
.cookie-category-head span {
  margin-top: 2px;
  color: #b78de7;
  font-size: 10px;
  font-weight: 800;
}
.cookie-preference-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 12px;
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.cookie-preference-row strong,
.cookie-preference-row span {
  display: block;
}
.cookie-preference-row strong { font-size: 12px; }
.cookie-preference-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.cookie-preference-row.locked { opacity: .72; }
.cookie-toggle:disabled { cursor: default; }
.cookie-sticky-actions {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
  background: rgba(7,6,15,.92);
  backdrop-filter: blur(16px);
}
.cookie-sticky-actions .cta {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
}
@keyframes cookieScreenIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reservation-window-note {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,201,77,.10);
  border: 1px solid rgba(255,201,77,.24);
}
.reservation-window-note strong { color: #ffe3a3; font-size: 12px; }
.reservation-window-note span { color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.reservation-window-note.danger-note {
  background: rgba(255,61,94,.11);
  border-color: rgba(255,61,94,.30);
}
.reservation-window-note.danger-note strong { color: #ffb8c5; }
.actual-map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(1) hue-rotate(190deg) saturate(.82) brightness(.66) contrast(1.12);
  z-index: 0;
}
.map-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(124,31,255,.18), transparent 45%),
    linear-gradient(180deg, rgba(5,5,16,.22), rgba(5,5,16,.46));
  pointer-events: none;
  z-index: 1;
}
.map-canvas .area-label,
.map-canvas .pin,
.map-canvas .map-preview { z-index: 2; }

.map-search {
  margin-bottom: 10px;
}
.map-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin: -4px 0 8px;
  color: var(--muted-2);
  font-size: 11px;
}
.map-result-bar strong {
  color: var(--text);
  font-size: 13px;
}
.map-fit-btn {
  width: 34px;
  height: 34px;
  border-color: rgba(185,51,255,.34);
  color: #fff;
  background: rgba(124,31,255,.18);
}
.interactive-map-shell {
  position: relative;
  height: 590px;
  margin: 0 -8px;
  overflow: hidden;
  border: 1px solid rgba(185,51,255,.22);
  border-radius: 18px;
  background: #080b13;
  box-shadow: 0 18px 48px rgba(0,0,0,.34);
}
.partie-vector-map {
  width: 100%;
  height: 100%;
  background: #0c111a;
}
.partie-vector-map .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(19,20,27,.92);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.partie-vector-map .maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
  border-color: rgba(255,255,255,.10);
  background-color: transparent;
}
.partie-vector-map .maplibregl-ctrl-group button:hover {
  background-color: rgba(124,31,255,.72);
}
.partie-vector-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}
.partie-vector-map .maplibregl-ctrl-attrib {
  padding: 2px 5px;
  color: rgba(255,255,255,.62);
  background: rgba(13,14,19,.82);
  font-size: 8px;
}
.partie-vector-map .maplibregl-ctrl-attrib a {
  color: #d7b8ff;
}
.partie-map-beacon {
  position: relative;
  width: 54px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: start center;
  cursor: pointer;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.42));
}
.partie-map-beacon-aura {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(185,51,255,.34);
  box-shadow: 0 0 26px rgba(124,31,255,.58);
  transform: translateX(-50%);
  animation: mapBeaconAura 2.5s ease-out infinite;
}
@keyframes mapBeaconAura {
  0% { opacity: .85; transform: translateX(-50%) scale(.72); }
  78%, 100% { opacity: 0; transform: translateX(-50%) scale(1.28); }
}
.partie-map-beacon-shell {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: 50%;
  width: 42px;
  height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #b950ff 0%, #7c1fff 48%, #41107e 100%);
  clip-path: polygon(50% 0, 91% 14%, 100% 54%, 76% 78%, 50% 100%, 24% 78%, 0 54%, 9% 14%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.44), inset 0 7px 16px rgba(255,255,255,.13);
  transform: translateX(-50%);
  transition: transform .2s ease, filter .2s ease;
}
.partie-map-beacon:hover .partie-map-beacon-shell {
  transform: translateX(-50%) translateY(-3px) scale(1.08);
  filter: brightness(1.12);
}
.partie-map-beacon-core {
  position: relative;
  display: grid;
  width: 27px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 7px 7px 10px 10px;
  color: #fff;
  background: rgba(12,7,28,.74);
  box-shadow: 0 7px 16px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.20);
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
}
.partie-map-beacon-shell i {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 8px;
  height: 2px;
  border-radius: 99px;
  background: #dcbcff;
  box-shadow: 0 0 8px rgba(255,255,255,.72);
  transform: translateX(-50%);
}
.partie-map-beacon.live::after {
  content: '';
  position: absolute;
  z-index: 3;
  right: 4px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid #201037;
  border-radius: 50%;
  background: #31e892;
  box-shadow: 0 0 10px rgba(49,232,146,.90);
}
.partie-vector-popup .maplibregl-popup-content {
  width: 238px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(185,51,255,.32);
  border-radius: 12px;
  color: #f4efff;
  background: rgba(7,7,18,.97);
  box-shadow: 0 22px 54px rgba(0,0,0,.62), 0 0 30px rgba(124,31,255,.16);
}
.partie-vector-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: rgba(7,7,18,.97);
}
.partie-map-popup {
  display: grid;
}
.partie-map-popup-image {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #111122;
}
.partie-map-popup-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.partie-map-popup-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.partie-map-popup-heading strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partie-map-popup-status {
  color: #c4bcd8;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.partie-map-popup-status.live {
  color: #6effb5;
}
.partie-map-popup-meta {
  overflow: hidden;
  color: #a99fbd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partie-map-popup-details {
  display: flex;
  gap: 5px;
  overflow: hidden;
}
.partie-map-popup-details span {
  min-width: 0;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 7px;
  color: #d7d0e8;
  background: rgba(255,255,255,.055);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partie-map-popup-action {
  min-height: 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7c1fff, #a82cff);
  font-size: 11px;
  font-weight: 800;
}
.map-load-status,
.map-empty-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 500;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.map-load-status {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: #d7d0e8;
  background: rgba(5,7,16,.86);
  font-size: 10px;
  font-weight: 700;
}
.map-load-status.hidden {
  display: none;
}
.map-load-status.error {
  color: #ffc0cb;
  border-color: rgba(255,61,94,.28);
}
.map-empty-overlay {
  display: grid;
  width: min(250px, calc(100% - 48px));
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  text-align: center;
  color: #fff;
  background: rgba(5,7,16,.88);
  box-shadow: 0 14px 36px rgba(0,0,0,.36);
}
.map-empty-overlay strong {
  font-size: 12px;
}
.map-empty-overlay span {
  color: #aaa0bc;
  font-size: 10px;
}
.party-info-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.party-info-list div,
.profile-party-list div,
.profile-info-grid div,
.funnel-row {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.party-info-list span,
.profile-party-list span,
.profile-info-grid span,
.funnel-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.party-info-list strong,
.profile-party-list strong,
.profile-info-grid strong,
.funnel-row strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}
.profile-party-list,
.profile-info-grid {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.profile-info-grid { grid-template-columns: 1fr 1fr; }
.settings-info-grid { margin-bottom: 14px; }
.taste-card .badges {
  margin-bottom: 0;
}
.profile-empty-row {
  display: grid;
  gap: 7px;
}
.mini-cta {
  padding: 10px 12px;
  font-size: 12px;
  margin-top: 4px;
}
.owner-registration { padding-bottom: 8px; }
.owner-document-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.owner-document-upload.uploaded {
  border-style: solid;
  border-color: rgba(30,212,122,.34);
}
.owner-document-upload strong,
.owner-document-upload span {
  display: block;
}
.owner-document-upload strong {
  color: var(--text);
  font-size: 13px;
}
.owner-document-upload > div span {
  max-width: 210px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owner-file-action {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(185,51,255,.38);
  border-radius: 10px;
  color: var(--text);
  background: rgba(124,31,255,.12);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.owner-file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.owner-plan-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.owner-plan-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  border-radius: 18px;
  text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid var(--line);
}
.owner-plan-card.active,
.owner-plan-card:hover {
  border-color: rgba(185,51,255,.44);
  box-shadow: 0 0 22px rgba(124,31,255,.2);
}
.owner-plan-card strong { font-size: 16px; }
.owner-plan-card span,
.owner-plan-price { color: #fff; font-size: 22px; font-weight: 900; }
.owner-plan-card small { color: var(--muted); line-height: 1.45; }
.owner-checkout {
  display: grid;
  gap: 12px;
}
.owner-checkout h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.05;
}
.owner-checkout > p {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}
.owner-checkout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-checkout-summary div,
.owner-payment-method {
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.owner-checkout-summary span,
.owner-payment-method span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.owner-checkout-summary strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-top: 5px;
}
.owner-payment-method {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-color: rgba(185,51,255,.28);
}
.owner-payment-method strong,
.owner-payment-method b {
  color: var(--text);
  font-size: 14px;
}
.owner-payment-method span {
  margin-top: 4px;
  text-transform: none;
}
.owner-payment-method.free {
  border-color: rgba(30,212,122,.28);
  background: rgba(30,212,122,.07);
}
.owner-meeting-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(124,31,255,.18), rgba(255,31,136,.08)),
    rgba(255,255,255,.045);
  border: 1px solid rgba(185,51,255,.28);
}
.owner-meeting-card h2 {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.08;
}
.owner-meeting-card p {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}
.owner-meeting-lead {
  color: var(--text) !important;
  font-weight: 850;
}
.owner-contact-grid {
  margin: 2px 0 0;
}
.owner-meeting-note {
  color: var(--muted) !important;
}
.owner-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.owner-dashboard-head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}
.owner-dashboard-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.owner-dashboard-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.owner-menu-button {
  width: 40px;
  height: 40px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}
.owner-menu-button i {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: var(--muted-2);
  transition: transform .18s ease, width .18s ease;
}
.owner-menu-button i:nth-child(2) { width: 12px; justify-self: end; margin-right: 11px; }
.owner-menu-button.active {
  border-color: rgba(185,51,255,.44);
  background: rgba(124,31,255,.18);
  box-shadow: 0 0 22px rgba(124,31,255,.22);
}
.owner-menu-button.active i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.owner-menu-button.active i:nth-child(2) { opacity: 0; }
.owner-menu-button.active i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.owner-command-menu {
  position: absolute;
  z-index: 85;
  top: 100px;
  left: 14px;
  right: 14px;
  max-height: 650px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(185,51,255,.30);
  border-radius: 14px;
  background: rgba(8,8,20,.97);
  box-shadow: 0 26px 70px rgba(0,0,0,.62), 0 0 38px rgba(124,31,255,.18);
  backdrop-filter: blur(24px);
  animation: ownerMenuIn .22s cubic-bezier(.2,.82,.25,1) both;
}
@keyframes ownerMenuIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.owner-command-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 2px 8px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.owner-command-list {
  display: grid;
  gap: 5px;
}
.owner-command-list button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
  background: rgba(255,255,255,.035);
}
.owner-command-list button:hover {
  border-color: rgba(185,51,255,.36);
  background: rgba(124,31,255,.10);
  transform: translateX(2px);
}
.owner-command-list strong,
.owner-command-list small { display: block; }
.owner-command-list strong { font-size: 13px; }
.owner-command-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.owner-command-list b { color: var(--purple-2); font-size: 20px; }
.owner-command-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
}
.owner-command-actions button {
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-2);
  background: var(--panel-2);
  font-size: 10px;
  font-weight: 800;
}
.owner-command-actions .danger {
  grid-column: 1 / -1;
  color: #ff9caf;
  border-color: rgba(255,61,94,.25);
}
.owner-focus-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 8px;
}
.owner-focus-strip button {
  min-height: 64px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  background: linear-gradient(145deg, rgba(124,31,255,.11), rgba(255,255,255,.03));
}
.owner-focus-strip span,
.owner-focus-strip strong { display: block; }
.owner-focus-strip span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.owner-focus-strip strong { margin-top: 6px; font-size: 12px; }
.owner-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.owner-kpi-grid div {
  padding: 14px;
  border-radius: 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.owner-kpi-grid strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.owner-kpi-grid span {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  margin-top: 7px;
}
.owner-kpi-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.owner-dashboard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 14px;
}
.funnel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.funnel-row:last-child { margin-bottom: 0; }
.funnel-row span { margin-bottom: 0; }
.funnel-row strong { font-size: 15px; }
.owner-request-list {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.owner-request-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 17px;
  text-align: left;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.owner-request-row.static { cursor: default; }
.owner-request-row strong,
.owner-request-row span,
.owner-request-row b,
.owner-request-row small {
  display: block;
}
.owner-request-row strong { font-size: 14px; font-weight: 850; }
.owner-request-row span,
.owner-request-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.owner-request-row b {
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}
.owner-request-row small { grid-column: 1 / -1; }
.owner-booking-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.owner-booking-actions .chip {
  flex: 1;
  text-align: center;
}
.owner-inventory-grid,
.owner-mini-metrics,
.owner-health-list,
.owner-tool-grid {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}
.owner-inventory-grid { grid-template-columns: 1fr; }
.owner-inventory-grid div,
.owner-mini-metrics div,
.owner-health-list div,
.owner-tool-grid button {
  padding: 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  text-align: left;
}
.owner-inventory-grid span,
.owner-mini-metrics span,
.owner-health-list span,
.owner-tool-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}
.owner-inventory-grid strong,
.owner-mini-metrics strong,
.owner-health-list strong,
.owner-tool-grid strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}
.owner-inventory-grid small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 4px;
}
.owner-health-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
}
.owner-health-list b {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
}
.owner-health-list span { grid-column: 1 / -1; }
.owner-tool-grid {
  grid-template-columns: 1fr 1fr;
}
.owner-tool-grid button {
  min-height: 86px;
  transition: border-color .2s, background .2s;
}
.owner-tool-grid button:hover {
  border-color: rgba(185,51,255,.42);
  background: rgba(124,31,255,.10);
}
.owner-split-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.owner-tool-modal {
  max-height: 82%;
}
.owner-tool-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.owner-tool-tabs::-webkit-scrollbar { height: 0; }
.owner-tool-tabs button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted-2);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 850;
}
.owner-tool-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-color: transparent;
}
.owner-tool-content {
  display: grid;
  gap: 10px;
}
.owner-team-list {
  display: grid;
  gap: 8px;
}
.owner-team-member {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
}
.owner-team-member strong,
.owner-team-member span {
  display: block;
}
.owner-team-member strong {
  color: var(--text);
  font-size: 13px;
}
.owner-team-member span,
.owner-team-member small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.owner-team-member select {
  width: 100%;
  padding: 9px 28px 9px 9px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-2);
  font: inherit;
  font-size: 11px;
}
.owner-team-member small {
  grid-column: 1 / -1;
}
.owner-team-member.owner-team-owner {
  grid-template-columns: minmax(0, 1fr) auto;
}
.owner-team-member.owner-team-owner b {
  color: var(--muted-2);
  font-size: 11px;
}
.owner-team-remove {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 26px;
  height: 26px;
  font-size: 17px;
}
.owner-team-form {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.owner-story-editor .story-slot {
  border: 1px solid var(--line);
}
.owner-public-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.owner-public-preview h3 {
  margin: 3px 0;
  color: #fff;
  font-size: 17px;
}
.owner-public-preview p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 10px;
}
.owner-public-cover,
.owner-story-thumb {
  background-size: cover;
  background-position: center;
  background-color: var(--panel-2);
  border: 1px solid var(--line);
}
.owner-public-cover {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 16px;
}
.owner-upload-row,
.owner-story-form,
.owner-table-editor > div {
  padding: 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.owner-upload-row {
  display: grid;
  gap: 10px;
}
.owner-upload-row strong,
.owner-table-editor strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}
.owner-upload-row span,
.owner-table-editor span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}
.owner-upload-row input[type="file"] {
  width: 100%;
  color: var(--muted-2);
  font-size: 12px;
}
.owner-table-editor,
.owner-story-form-list {
  display: grid;
  gap: 10px;
}
.owner-story-form {
  display: grid;
  gap: 10px;
}
/* Tap-to-post story slots */
.owner-story-intro { margin-bottom: 14px; }
.owner-story-intro h3 { font-size: 17px; font-weight: 800; }
.owner-story-intro p { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.owner-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.owner-story-slot { position: relative; }
.owner-story-tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 9 / 12;
  border: 1.5px dashed var(--line-2);
  border-radius: 16px;
  background-color: rgba(255,255,255,.03);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.owner-story-tap:hover { border-color: var(--purple); background-color: rgba(124,31,255,.06); }
.owner-story-slot.filled .owner-story-tap { border-style: solid; border-color: rgba(30,212,122,.35); }
.owner-story-add {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(124,31,255,.16);
  color: var(--purple-2, #b789ff);
  font-size: 22px;
  font-weight: 700;
}
.owner-story-hint { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.owner-story-live {
  align-self: flex-start;
  margin: auto 0 10px 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(5,5,16,.78);
  border: 1px solid rgba(30,212,122,.35);
  color: #8affc5;
  font-size: 10px;
  font-weight: 850;
}
.owner-story-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(5,5,16,.8);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
}
:root[data-theme="light"] .owner-story-tap { background-color: rgba(83,55,130,.05); }
:root[data-theme="light"] .owner-story-live { background: rgba(255,255,255,.9); color: #0d7a45; border-color: rgba(13,122,69,.3); }
:root[data-theme="light"] .owner-story-remove { background: rgba(255,255,255,.92); color: #171326; border-color: var(--line-2); }
.owner-story-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background-color: rgba(255,255,255,.025);
  background-size: cover;
  background-position: center;
}
.owner-story-thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  color: var(--muted-2);
  background: rgba(5,5,16,.76);
  font-size: 9px;
  font-weight: 850;
}
.owner-story-thumb.has-media {
  border-style: solid;
  border-color: rgba(30,212,122,.28);
}
.owner-plan-choice {
  margin: 16px 0 18px;
}
.owner-dashboard-actions-compact {
  margin-bottom: 18px;
}
.owner-kpi-grid-compact {
  grid-template-columns: 1fr 1fr;
}
.owner-insights-board {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.owner-insights-head {
  display: grid;
  gap: 10px;
}
.owner-insights-head h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  margin: 5px 0;
}
.owner-insights-head p {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
}
.owner-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.owner-live-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #39dc91;
  box-shadow: 0 0 12px rgba(57,220,145,.72);
}
.owner-insight-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-insight-filters label {
  display: grid;
  gap: 5px;
}
.owner-insight-filters label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.owner-insight-filters select {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.owner-insight-refresh {
  align-self: end;
  width: 38px;
  height: 38px;
  font-size: 20px;
}
.owner-insight-notice {
  padding: 11px 12px;
  color: #ffd788;
  background: rgba(255,190,59,.09);
  border: 1px solid rgba(255,190,59,.26);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}
.owner-insight-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-insight-kpis > div,
.owner-insight-grid > div {
  padding: 12px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.owner-insight-kpis span,
.owner-insight-kpis small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.owner-insight-kpis strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  margin: 7px 0 5px;
}
.owner-insight-grid {
  display: grid;
  gap: 9px;
}
.owner-insight-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}
.owner-insight-title strong {
  color: var(--text);
  font-size: 13px;
}
.owner-insight-title span {
  color: var(--muted);
  font-size: 10px;
}
.owner-insight-bars {
  display: grid;
  gap: 9px;
}
.owner-insight-row {
  display: grid;
  gap: 5px;
}
.owner-insight-row > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 11px;
}
.owner-insight-row strong {
  color: var(--text);
}
.owner-insight-row i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--panel-2);
}
.owner-insight-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c1fff, #ff4b9b);
}
.owner-insight-empty {
  min-height: 54px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.support-channel-list {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}
.support-channel-list button {
  display: grid;
  gap: 4px;
  padding: 13px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.support-channel-list span,
.support-channel-list small {
  color: var(--muted);
  font-size: 11px;
}
.support-channel-list strong {
  font-size: 15px;
}
/* ─── LIGHT MODE ─────────────────────────────────────────────── */
:root[data-theme="light"] {
  --bg:        #fbf9ff;
  --panel:     rgba(255,255,255,.92);
  --panel-2:   rgba(83,55,130,.075);
  --panel-3:   rgba(124,31,255,.13);
  --text:      #171326;
  --muted:     #756985;
  --muted-2:   #40334f;
  --line:      rgba(65,42,98,.12);
  --line-2:    rgba(65,42,98,.20);
  --shadow:    0 30px 80px rgba(75,55,120,.18);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 12% 8%, rgba(124,31,255,.18), transparent 30%),
    radial-gradient(ellipse at 88% 80%, rgba(255,31,136,.08), transparent 28%),
    linear-gradient(145deg, #fff, #f7f2ff 62%, #efe7ff);
}
:root[data-theme="light"] .partie-icon-light { display: block; }
:root[data-theme="light"] .partie-icon-dark { display: none; }
:root[data-theme="light"] .phone-frame {
  background: linear-gradient(160deg, #fff, #eee6ff);
  border-color: rgba(65,42,98,.16);
  box-shadow:
    0 42px 120px rgba(80,58,126,.24),
    0 0 0 1px rgba(255,255,255,.88) inset,
    0 0 80px rgba(124,31,255,.10);
}
:root[data-theme="light"] .phone-screen { background: #fbf9ff; }
:root[data-theme="light"] .phone-screen::before { background: #171326; }
:root[data-theme="light"] .signup-screen {
  background:
    linear-gradient(145deg, rgba(124,31,255,.12), transparent 46%),
    linear-gradient(25deg, rgba(255,31,136,.07), transparent 48%),
    #fbf9ff;
}
:root[data-theme="light"] .brand-card,
:root[data-theme="light"] .pitch-card,
:root[data-theme="light"] .insight-card,
:root[data-theme="light"] .signup-card,
:root[data-theme="light"] .glass-card,
:root[data-theme="light"] .party-card,
:root[data-theme="light"] .settings-section,
:root[data-theme="light"] .theme-option,
:root[data-theme="light"] .settings-row,
:root[data-theme="light"] .table-row,
:root[data-theme="light"] .analytics-card,
:root[data-theme="light"] .owner-meeting-card,
:root[data-theme="light"] .owner-kpi-grid div,
:root[data-theme="light"] .owner-insight-kpis > div,
:root[data-theme="light"] .owner-insight-grid > div,
:root[data-theme="light"] .support-channel-list button {
  background: rgba(255,255,255,.78);
  border-color: var(--line);
  box-shadow: 0 12px 38px rgba(75,55,120,.08);
}
/* Signature/brand text must stay readable on light surfaces: the base .label and
   .brand-pill colors are pale lavender (built for dark), and the script signature
   line's gradient starts at white — all near-invisible on a light background. */
:root[data-theme="light"] .label {
  color: #4b1d99;
  background: rgba(124,31,255,.12);
  border-color: rgba(124,31,255,.30);
}
:root[data-theme="light"] .brand-pill {
  color: #4b1d99;
  background: rgba(124,31,255,.12);
  border-color: rgba(124,31,255,.30);
}
:root[data-theme="light"] .hype-phrase {
  background: linear-gradient(96deg, #3c1177 0%, #6d28d9 46%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}
:root[data-theme="light"] .home-brand-stage,
:root[data-theme="light"] .settings-head,
:root[data-theme="light"] .party-trust-card {
  background:
    linear-gradient(135deg, rgba(124,31,255,.10), rgba(255,31,136,.06) 48%, rgba(30,212,122,.05)),
    rgba(255,255,255,.82);
  border-color: rgba(124,31,255,.16);
}
:root[data-theme="light"] .brand-signal,
:root[data-theme="light"] .map-preview,
:root[data-theme="light"] .bottom-nav,
:root[data-theme="light"] .modal,
:root[data-theme="light"] .cookie-banner {
  background: rgba(255,255,255,.92);
  border-color: var(--line-2);
  color: var(--text);
}
:root[data-theme="light"] .bottom-nav { box-shadow: 0 -12px 40px rgba(75,55,120,.10); }
:root[data-theme="light"] .nav-tracker {
  border-color: rgba(124,31,255,.20);
  background: linear-gradient(180deg, rgba(124,31,255,.12), rgba(185,51,255,.055));
  box-shadow: 0 8px 22px rgba(90,50,150,.10), inset 0 1px 0 rgba(255,255,255,.88);
}
:root[data-theme="light"] .venue-workspace-card,
:root[data-theme="light"] .venue-registration-owner,
:root[data-theme="light"] .personal-account-note {
  background: rgba(124,31,255,.045);
  border-color: var(--line);
}
:root[data-theme="light"] .personal-account-note span { color: #5f218f; }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
  color: var(--text);
  background: rgba(255,255,255,.78);
}
:root[data-theme="light"] .field select option { background: #fff; color: #171326; }
:root[data-theme="light"] .signup-notice {
  color: #12633d;
  background: rgba(30,180,105,.10);
  border-color: rgba(30,160,95,.24);
}
:root[data-theme="light"] .signup-error {
  color: #9d2944;
  background: rgba(220,45,85,.09);
  border-color: rgba(210,40,80,.22);
}
:root[data-theme="light"] .backend-status.live {
  color: #12633d;
  background: rgba(30,180,105,.09);
  border-color: rgba(30,160,95,.24);
}
:root[data-theme="light"] .verification-panel {
  background: rgba(124,31,255,.07);
  border-color: rgba(124,31,255,.20);
}
:root[data-theme="light"] .owner-insight-filters select,
:root[data-theme="light"] .owner-insight-filters select option {
  color: var(--text);
  background: #fff;
}
:root[data-theme="light"] .language-selector,
:root[data-theme="light"] .language-selector.compact,
:root[data-theme="light"] .settings-language-row {
  background: rgba(255,255,255,.76);
  border-color: var(--line);
}
:root[data-theme="light"] .language-selector button {
  color: var(--muted-2);
}
:root[data-theme="light"] .language-selector button.active {
  color: #fff;
}
:root[data-theme="light"] .home-signal-grid div,
:root[data-theme="light"] .cookie-choice,
:root[data-theme="light"] .policy-check {
  background: rgba(255,255,255,.62);
  border-color: var(--line);
}
:root[data-theme="light"] .home-signal-grid strong,
:root[data-theme="light"] .kpi strong,
:root[data-theme="light"] .nav-item.active { color: var(--text); }
:root[data-theme="light"] .modal-header h2,
:root[data-theme="light"] .settings-head h2,
:root[data-theme="light"] .settings-section-title span,
:root[data-theme="light"] .settings-row strong,
:root[data-theme="light"] .settings-language-row strong,
:root[data-theme="light"] .theme-option strong,
:root[data-theme="light"] .analytics-card strong,
:root[data-theme="light"] .profile-detail-item strong,
:root[data-theme="light"] .profile-info-grid strong,
:root[data-theme="light"] .profile-party-list strong,
:root[data-theme="light"] .party-info-list strong,
:root[data-theme="light"] .funnel-row strong,
:root[data-theme="light"] .owner-kpi-grid strong,
:root[data-theme="light"] .owner-plan-card strong,
:root[data-theme="light"] .owner-plan-price,
:root[data-theme="light"] .owner-request-row strong,
:root[data-theme="light"] .owner-inventory-grid strong,
:root[data-theme="light"] .owner-mini-metrics strong,
:root[data-theme="light"] .owner-health-list strong,
:root[data-theme="light"] .owner-tool-grid strong,
:root[data-theme="light"] .owner-public-preview h3,
:root[data-theme="light"] .owner-upload-row strong,
:root[data-theme="light"] .owner-document-upload strong,
:root[data-theme="light"] .owner-team-member strong,
:root[data-theme="light"] .owner-table-editor strong,
:root[data-theme="light"] .table-row strong,
:root[data-theme="light"] .price-tier-range {
  color: var(--text);
}
:root[data-theme="light"] .modal-header p,
:root[data-theme="light"] .settings-head p,
:root[data-theme="light"] .settings-section-title small,
:root[data-theme="light"] .settings-row span,
:root[data-theme="light"] .settings-language-row span,
:root[data-theme="light"] .settings-link b,
:root[data-theme="light"] .analytics-card span,
:root[data-theme="light"] .profile-detail-item span,
:root[data-theme="light"] .profile-detail-item b,
:root[data-theme="light"] .profile-info-grid span,
:root[data-theme="light"] .profile-party-list span,
:root[data-theme="light"] .party-info-list span,
:root[data-theme="light"] .funnel-row span,
:root[data-theme="light"] .field label,
:root[data-theme="light"] .muted,
:root[data-theme="light"] .policy-copy,
:root[data-theme="light"] .cookie-banner p,
:root[data-theme="light"] .text-btn,
:root[data-theme="light"] .price-tier-label,
:root[data-theme="light"] .price-note,
:root[data-theme="light"] .owner-plan-card small,
:root[data-theme="light"] .owner-request-row span,
:root[data-theme="light"] .owner-request-row small,
:root[data-theme="light"] .owner-request-row b,
:root[data-theme="light"] .owner-inventory-grid span,
:root[data-theme="light"] .owner-inventory-grid small,
:root[data-theme="light"] .owner-mini-metrics span,
:root[data-theme="light"] .owner-health-list span,
:root[data-theme="light"] .owner-health-list b,
:root[data-theme="light"] .owner-tool-grid span,
:root[data-theme="light"] .owner-public-preview p,
:root[data-theme="light"] .owner-upload-row span,
:root[data-theme="light"] .owner-upload-row input[type="file"],
:root[data-theme="light"] .owner-document-upload > div span,
:root[data-theme="light"] .owner-team-member span,
:root[data-theme="light"] .owner-team-member small,
:root[data-theme="light"] .owner-table-editor span,
:root[data-theme="light"] .owner-tool-tabs button {
  color: var(--muted-2);
}
:root[data-theme="light"] .profile-detail-item,
:root[data-theme="light"] .profile-info-grid div,
:root[data-theme="light"] .profile-party-list div,
:root[data-theme="light"] .party-info-list div,
:root[data-theme="light"] .funnel-row,
:root[data-theme="light"] .profile-edit-preview,
:root[data-theme="light"] .owner-plan-card,
:root[data-theme="light"] .owner-request-row,
:root[data-theme="light"] .owner-inventory-grid div,
:root[data-theme="light"] .owner-mini-metrics div,
:root[data-theme="light"] .owner-health-list div,
:root[data-theme="light"] .owner-tool-grid button,
:root[data-theme="light"] .owner-public-preview,
:root[data-theme="light"] .owner-upload-row,
:root[data-theme="light"] .owner-document-upload,
:root[data-theme="light"] .owner-team-member,
:root[data-theme="light"] .owner-story-form,
:root[data-theme="light"] .owner-table-editor > div {
  background: rgba(255,255,255,.68);
  border-color: var(--line);
}
:root[data-theme="light"] .owner-team-member select {
  color: var(--text);
  background: #fff;
}
:root[data-theme="light"] .owner-file-action {
  color: #4f147f;
  background: rgba(124,31,255,.08);
}
:root[data-theme="light"] .profile-edit-action,
:root[data-theme="light"] .avatar-button span {
  background: rgba(255,255,255,.92);
  border-color: var(--line-2);
  color: var(--muted-2);
}
:root[data-theme="light"] .toast {
  background: rgba(255,255,255,.96);
  border-color: rgba(30,150,90,.22);
  color: #1b6b45;
  box-shadow: 0 18px 44px rgba(75,55,120,.16);
}
:root[data-theme="light"] .pin {
  border-color: rgba(124,31,255,.38);
  background: rgba(124,31,255,.16);
}
:root[data-theme="light"] .badge {
  background: rgba(255,255,255,.76);
  color: var(--muted-2);
  border-color: var(--line);
}
:root[data-theme="light"] .venue-card .badge.scheduled {
  background: rgba(0,0,0,.60);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
:root[data-theme="light"] .chip.active,
:root[data-theme="light"] .nav-item.active .nav-ico,
:root[data-theme="light"] .owner-switch button.active,
:root[data-theme="light"] .owner-tool-tabs button.active {
  color: #fff;
}
:root[data-theme="light"] .modal-backdrop,
:root[data-theme="light"] .cookie-backdrop {
  background: rgba(34,24,54,.34);
}
:root[data-theme="light"] .cookie-experience {
  color: var(--text);
  background:
    radial-gradient(circle at 82% 9%, rgba(124,31,255,.13), transparent 25%),
    linear-gradient(180deg, #fff, #f8f4ff 48%, #fff);
}
:root[data-theme="light"] .cookie-screen-header,
:root[data-theme="light"] .cookie-sticky-actions {
  background: rgba(255,255,255,.92);
  border-color: var(--line);
}
:root[data-theme="light"] .cookie-preference-row {
  background: rgba(124,31,255,.035);
  border-color: var(--line);
}
:root[data-theme="light"] .cookie-experience .text-btn { color: #5a2a88; }
:root[data-theme="light"] .story-media::after {
  background: linear-gradient(180deg, transparent 35%, rgba(18,13,29,.56));
}
:root[data-theme="light"] .story-slot.done {
  background: rgba(12,138,82,.18);
  color: #057044;
  border-color: rgba(12,138,82,.48);
  box-shadow: inset 0 0 0 1px rgba(12,138,82,.12);
}
:root[data-theme="light"] .story-slot.due {
  background: rgba(245,157,11,.22);
  color: #8a5200;
  border-color: rgba(190,116,0,.48);
  box-shadow: inset 0 0 0 1px rgba(190,116,0,.12);
}
:root[data-theme="light"] .story-slot.empty {
  background: rgba(124,31,255,.10);
  color: #4d3670;
  border-color: rgba(124,31,255,.30);
}
:root[data-theme="light"] .story-slot span {
  color: inherit;
  opacity: .9 !important;
}
:root[data-theme="light"] .detail-story-chip.done {
  background: rgba(12,138,82,.16);
  border-color: rgba(12,138,82,.46);
}
:root[data-theme="light"] .detail-story-chip.due {
  background: rgba(245,157,11,.20);
  border-color: rgba(190,116,0,.46);
}
:root[data-theme="light"] .detail-story-chip strong {
  color: var(--text);
}
:root[data-theme="light"] .detail-story-chip small {
  color: var(--muted-2);
}
:root[data-theme="light"] .venue-card::after,
:root[data-theme="light"] .party-cover::after {
  background: linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.42) 64%, rgba(0,0,0,.70) 100%);
}
:root[data-theme="light"] .interactive-map-shell {
  border-color: rgba(82,54,128,.20);
  background: #e7edf2;
  box-shadow: 0 18px 46px rgba(75,55,120,.16);
}
:root[data-theme="light"] .partie-vector-map {
  background: #e7edf2;
}
:root[data-theme="light"] .partie-vector-map .maplibregl-ctrl-group {
  border-color: rgba(65,42,98,.16);
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(75,55,120,.16);
}
:root[data-theme="light"] .partie-vector-map .maplibregl-ctrl-group button {
  border-color: rgba(65,42,98,.10);
}
:root[data-theme="light"] .partie-vector-map .maplibregl-ctrl-group button:hover {
  background-color: rgba(124,31,255,.12);
}
:root[data-theme="light"] .partie-vector-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: none;
}
:root[data-theme="light"] .partie-vector-map .maplibregl-ctrl-attrib {
  color: #4f465e;
  background: rgba(255,255,255,.88);
}
:root[data-theme="light"] .partie-vector-map .maplibregl-ctrl-attrib a {
  color: #5d238f;
}
:root[data-theme="light"] .map-load-status {
  color: #40334f;
  border-color: rgba(65,42,98,.14);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(75,55,120,.14);
}
:root[data-theme="light"] .map-load-status.error {
  color: #a92846;
  border-color: rgba(169,40,70,.24);
}
:root[data-theme="light"] .filter-sheet-actions {
  background: rgba(251,249,255,.96);
}
:root[data-theme="light"] .owner-command-menu {
  border-color: rgba(82,54,128,.20);
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 62px rgba(75,55,120,.22);
}
:root[data-theme="light"] .owner-command-list button,
:root[data-theme="light"] .owner-command-actions button,
:root[data-theme="light"] .owner-focus-strip button,
:root[data-theme="light"] .explore-filter-trigger {
  color: var(--muted-2);
  background: rgba(75,55,120,.055);
  border-color: var(--line);
}
:root[data-theme="light"] .owner-story-thumb span {
  color: #fff;
  background: rgba(23,19,38,.78);
}
:root[data-theme="light"] .story-empty-signal {
  background: rgba(124,31,255,.05);
}
.theme-preview.light .partie-icon-light,
:root[data-theme="dark"] .theme-preview.light .partie-icon-light,
:root[data-theme="light"] .theme-preview.light .partie-icon-light { display: block; }
.theme-preview.light .partie-icon-dark,
:root[data-theme="dark"] .theme-preview.light .partie-icon-dark,
:root[data-theme="light"] .theme-preview.light .partie-icon-dark { display: none; }
.theme-preview.dark .partie-icon-light,
:root[data-theme="dark"] .theme-preview.dark .partie-icon-light,
:root[data-theme="light"] .theme-preview.dark .partie-icon-light { display: none; }
.theme-preview.dark .partie-icon-dark,
:root[data-theme="dark"] .theme-preview.dark .partie-icon-dark,
:root[data-theme="light"] .theme-preview.dark .partie-icon-dark { display: block; }

/* ─── DISCOVERY, EVENTS & NOTIFICATIONS ─────────────────────── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar-actions .icon-btn {
  position: relative;
}
.topbar-actions svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}
.notification-button > span {
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: #7c1fff;
}
.event-badge {
  color: #fff;
  border-color: rgba(194, 145, 255, .48);
  background: rgba(124, 31, 255, .62);
}
.venue-special-event {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(170, 105, 255, .38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 31, 255, .23), rgba(255, 255, 255, .035)),
    var(--panel);
  box-shadow: inset 3px 0 0 #9a48ff;
}
.venue-special-event::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 3px;
  background: #c48cff;
  box-shadow: 0 0 16px rgba(154, 72, 255, .9);
}
.venue-special-event-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #cda7ff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.venue-special-event h3 {
  margin: 8px 0 5px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
}
.venue-special-event p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  line-height: 1.55;
}
.detail-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.detail-actions button {
  min-width: 0;
  padding-inline: 4px;
  font-size: 10px;
}
.notification-center {
  max-height: min(700px, 88vh);
}
.notification-list {
  display: grid;
  gap: 7px;
  max-height: 520px;
  margin: 10px 0 14px;
  overflow-y: auto;
}
.notification-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  color: var(--muted-2);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}
.notification-row.unread {
  border-color: rgba(163, 92, 255, .36);
  background: rgba(124, 31, 255, .13);
  box-shadow: inset 3px 0 0 #8f39ff;
}
.notification-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #c497ff;
  border: 1px solid rgba(157, 84, 255, .32);
  border-radius: 7px;
  background: rgba(124, 31, 255, .13);
}
.notification-glyph svg {
  width: 17px;
  height: 17px;
}
.notification-row > span:nth-child(2) {
  min-width: 0;
}
.notification-row strong,
.notification-row small {
  display: block;
}
.notification-row strong {
  color: var(--text);
  font-size: 12px;
}
.notification-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.notification-row time {
  align-self: start;
  color: var(--muted);
  font-size: 9px;
}
.notification-preference-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.notification-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px;
  color: var(--muted-2);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}
.notification-preference-row.active {
  border-color: rgba(156, 80, 255, .42);
  background: rgba(124, 31, 255, .12);
}
.notification-preference-row.locked {
  cursor: default;
  opacity: .82;
}
.notification-preference-row strong,
.notification-preference-row small {
  display: block;
}
.notification-preference-row strong {
  color: var(--text);
  font-size: 12px;
}
.notification-preference-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.notification-preference-row > i {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #fff;
  font-style: normal;
  border: 1px solid rgba(170, 108, 255, .45);
  border-radius: 50%;
  background: rgba(124, 31, 255, .22);
}
.notification-preference-row.active > i {
  background: #7c1fff;
}
.owner-event-intro,
.owner-removal-warning {
  margin-bottom: 14px;
  padding: 14px;
  border-left: 3px solid #8f39ff;
  background: rgba(124, 31, 255, .09);
}
.owner-event-intro h3,
.owner-removal-warning h3 {
  margin: 5px 0;
  color: var(--text);
  font-size: 16px;
}
.owner-event-intro p,
.owner-removal-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.owner-event-list {
  display: grid;
  gap: 7px;
}
.owner-event-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px;
  color: var(--muted-2);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}
.owner-event-list strong,
.owner-event-list small {
  display: block;
}
.owner-event-list strong {
  color: var(--text);
  font-size: 12px;
}
.owner-event-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.owner-event-list b {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.owner-event-list b.published {
  color: var(--green);
}
.owner-command-actions .owner-danger-action,
.owner-danger-action {
  color: #ff9aad;
}
.owner-removal-tool .field {
  margin-bottom: 10px;
}
.owner-removal-tool .policy-check {
  margin-top: 8px;
}
.owner-removal-tool .removal-confirm {
  border-color: rgba(255, 92, 122, .3);
}
.danger-cta {
  margin-top: 14px;
  color: #fff;
  border-color: rgba(255, 92, 122, .52);
  background: #a82a48;
  box-shadow: none;
}
.danger-cta:hover {
  background: #c33456;
}
:root[data-theme="light"] .venue-special-event {
  border-color: rgba(106, 29, 217, .26);
  background: linear-gradient(135deg, rgba(124, 31, 255, .13), rgba(255, 255, 255, .9));
}
:root[data-theme="light"] .venue-special-event h3,
:root[data-theme="light"] .venue-special-event p {
  color: #2d213c;
}
:root[data-theme="light"] .venue-special-event-head {
  color: #6720b8;
}
:root[data-theme="light"] .notification-button > span {
  border-color: #fbf9ff;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1020px) {
  /* Phones/tablets: drop the desktop marketing shell + phone-mockup bezel and run
     the real app full-screen, edge-to-edge, with notch/home-bar safe areas.
     (On tablets it stays a centred column; on a phone width:100% fills the screen.) */
  /* Lock the document so the PAGE can't scroll or rubber-band — only the app's
     inner .screen-scroll scrolls. Without this the whole app felt like a draggable
     card floating in a scrollable page. */
  html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .app-shell {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    grid-template-columns: none;
    gap: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .side-brand, .insight-panel { display: none; }
  .phone-frame {
    width: 100%;
    max-width: 520px;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #050510;
    box-shadow: none;
  }
  .phone-screen { border-radius: 0; }
  .phone-screen::before { display: none; } /* remove the fake notch */
  /* Keep content clear of a real notch and the home indicator. */
  .screen-scroll {
    padding-top: calc(env(safe-area-inset-top) + 18px);
    height: calc(100% - 80px - env(safe-area-inset-bottom));
  }
  .bottom-nav { bottom: calc(8px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
