/* ================================================================
   MyClubVault — component styles. Design tokens live in tokens.css.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg-app);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent-hover); }
button, input, textarea, select { font: inherit; }
button {
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(var(--accent-rgb), 0.28); }

/* ---- Shell backgrounds ---- */
.stage, .landing, .auth-page, .app-shell, .admin-shell, .find-page, .club-portal, .status-page {
  min-height: 100dvh;
  background: var(--bg-glow), var(--bg-app);
  background-attachment: fixed;
}
.grain { display: none; }

/* ---- Utilities ---- */
.text-muted { color: var(--fg-muted); }
.text-accent { color: var(--accent); }
.tabular { font-variant-numeric: tabular-nums; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }
.theme-toggle .theme-icon-light { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-light { display: inline-block; }

/* Segmented control (theme picker, view toggles) */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  width: 100%;
}
.segmented-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.segmented-opt:hover { color: var(--fg); }
.segmented-opt[aria-pressed="true"],
html[data-theme-pref="system"] .segmented-opt[data-theme-set="system"],
html[data-theme-pref="light"] .segmented-opt[data-theme-set="light"],
html[data-theme-pref="dark"] .segmented-opt[data-theme-set="dark"] {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}

/* ---- Top bar (small logo) ---- */
.site-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + var(--safe-t)) 20px 12px;
  max-width: 600px;
  margin: 0 auto;
}
.mark-sm {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-bar-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* ---- Landing ---- */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-t)) 16px calc(28px + var(--safe-b));
  min-height: 100dvh;
}
.landing-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.landing-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.mark-hero {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
[data-theme="light"] .mark-hero,
[data-theme="light"] .mark-sm { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)); }
.landing-card h1 {
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
  color: var(--fg);
}
.landing-card .sub {
  margin-bottom: 18px;
  line-height: 1.6;
}
.badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.badge-muted {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg-muted);
}
.landing-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: 2px;
}
.step p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.45;
}
.tagline {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.sub, .hint {
  color: var(--fg-muted);
  font-size: var(--fs-md);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.sub strong, .muted strong { color: var(--text-soft); }
.hint { font-size: 0.8rem; margin: -4px 0 16px; }
.fineprint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Typography ---- */
.eyebrow {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 var(--space-2);
}
.lede {
  color: var(--fg-muted);
  font-size: var(--fs-md);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.section-label {
  padding: 12px 4px 0;
  margin-bottom: 4px;
}
h1, h2, h3 {
  color: var(--fg);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: var(--tracking-tight);
}
.panel h1, .modal-panel h1, .stage-inner h1 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  margin: 0 0 var(--space-3);
}
.panel h2, .card h2, .modal-panel h2 {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-2);
}
.card h2 { font-size: var(--fs-base); }
.panel p, .card p, .modal-panel p {
  color: var(--fg-2);
}
.stage-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(20px + var(--safe-t)) 16px calc(28px + var(--safe-b));
  min-height: calc(100dvh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-inner .panel { width: 100%; }

/* ---- Auth pages ---- */
.auth-page {
  padding-bottom: calc(24px + var(--safe-b));
}
.auth-panel {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 8px auto 0;
  width: calc(100% - 32px);
  color: var(--text);
}
.auth-panel label:first-of-type { margin-top: 0; }
.auth-panel .check { color: var(--text-soft); }
.auth-panel h1 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

/* ---- Panels & cards ---- */
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  color: var(--fg);
}
.card { margin: var(--space-3) 0; }
.card.center { text-align: center; padding: var(--space-8) var(--space-5); }
.card.center .lede { margin-bottom: 0; }
.panel-foot {
  text-align: center;
  margin-top: var(--space-5);
  font-size: var(--fs-md);
  color: var(--fg-muted);
}
.panel-foot a { font-weight: var(--fw-semibold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn i { font-size: 0.9em; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 48px; font-size: var(--fs-base); padding: 12px 22px; }
.btn-gold, .btn-primary,
button.btn-gold, button.btn-primary, a.btn-gold, a.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.btn-gold:hover, .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-secondary,
button.btn-secondary, a.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--fg); }
.btn-ghost,
button.btn-ghost, a.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border-strong); }
.btn-danger,
button.btn-danger, a.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: var(--danger-border);
}
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-fg); }
.btn-sm { min-height: var(--control-h-sm); padding: 6px 12px; font-size: var(--fs-sm); width: auto; min-width: 36px; }

.cta-row, .cta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Forms ---- */
label {
  display: block;
  margin: var(--space-4) 0 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-2);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--field-bg);
  color: var(--fg);
  caret-color: var(--accent);
  min-height: var(--input-h);
  font-size: var(--fs-base);
  line-height: 1.4;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9ba3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
input:hover:not(:focus):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea:hover:not(:focus),
select:hover:not(:focus) { border-color: rgba(var(--ink-rgb), 0.24); }
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  min-height: auto;
  font-size: 0.82rem;
  color: var(--text-soft);
}
input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--fg) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
  caret-color: var(--fg);
  border: 1px solid var(--border-strong);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
select option {
  background: var(--surface);
  color: var(--fg);
}
textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: var(--space-3) 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-2);
  line-height: 1.45;
  cursor: pointer;
}
.check input { width: 18px; min-height: 18px; margin-top: 2px; flex-shrink: 0; }
.check span { flex: 1; }
.check.faint { opacity: 0.85; font-size: 0.82rem; }
.optional { color: var(--muted); font-weight: 400; }

/* ---- Signup notices & consent ---- */
.signup-panel { max-width: 440px; }
.notice {
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  text-align: left;
}
.notice strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--fg);
  margin-bottom: 2px;
}
.notice p {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}
.notice-21 {
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
}
.notice-21 strong { color: var(--accent); }
.notice-privacy {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.consent-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-2);
  font-size: var(--fs-md);
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.consent-box:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.4); background: var(--accent-soft); }
.consent-box input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.consent-box span { flex: 1; }
.consent-box em { color: var(--muted); font-style: normal; font-size: 0.82rem; }
.consent-optional {
  opacity: 0.9;
  border-style: dashed;
}
.consent-box a { font-weight: 600; }

.pin-fold {
  margin: var(--space-3) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-3) var(--space-3);
  background: var(--surface-sunken);
}
.pin-fold summary {
  padding: var(--space-3) 0 var(--space-2);
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--accent);
  list-style: none;
}
.pin-fold:not([open]) summary { padding-bottom: 0; }
.pin-fold:not([open]) { padding-bottom: var(--space-3); }
.pin-fold summary::-webkit-details-marker { display: none; }
.pin-fold input { margin-top: 4px; }

/* Inline alerts */
.err, .ok, .warn {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  border: 1px solid transparent;
}
.err { color: var(--danger-fg); background: var(--danger-bg); border-color: var(--danger-border); }
.ok { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.warn { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-border); }

.muted { color: var(--fg-muted); font-size: var(--fs-sm); }
.row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

/* ---- App shell mobile buttons ---- */
.app-shell .btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.app-shell .btn-stack .btn,
.app-shell .account-page .btn-block,
.app-shell .verify-banner .btn {
  width: 100%;
}
.app-shell .card .row .btn-sm { flex-shrink: 0; }

/* ---- Account ---- */
.account-page { display: flex; flex-direction: column; gap: var(--space-4); }
.account-card .account-email {
  font-size: var(--fs-lg);
  word-break: break-word;
  margin-bottom: var(--space-2);
}
.account-meta { margin-top: var(--space-3); }
.account-appearance .segmented { margin-top: var(--space-2); width: 100%; grid-auto-columns: 1fr; }
.account-appearance .segmented-opt { justify-content: center; gap: 6px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  margin: var(--space-2) 0 4px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: var(--surface-2);
}
.status-ok {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}
.status-warn {
  background: var(--danger-bg);
  color: var(--danger-fg);
  border-color: var(--danger-border);
}
.account-push-note {
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: 4px 0;
}
.verify-banner {
  margin: var(--space-3) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}
.verify-banner p:first-child { margin-bottom: var(--space-3); font-size: var(--fs-md); color: var(--fg-2); }
.verify-hint { margin-top: 10px; font-size: 0.82rem; }
.verify-hint.err { color: var(--danger-fg); }
.account-section { display: flex; flex-direction: column; gap: 10px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.section-label { margin: 0; }
.venue-follow-card { padding: 14px; }
.venue-follow-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.venue-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--media-bg);
  border: 1px solid var(--edge);
}
.venue-logo-ph {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--card-hover);
  border: 1px solid var(--edge);
}
.venue-follow-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.venue-follow-meta strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.venue-follow-row .btn-sm {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 12px;
}
.venue-prefs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--edge);
}
.venue-prefs summary {
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
  list-style: none;
}
.venue-prefs summary::-webkit-details-marker { display: none; }
.venue-prefs .check { margin: var(--space-2) 0; font-size: var(--fs-md); }
.empty-card { padding: var(--space-6) var(--space-5); }
.empty-card .lede { margin-bottom: var(--space-4); }
.hidden { display: none !important; }
.center { text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--fg-2);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  line-height: 1.6;
}

/* ---- Global app chrome ---- */
.has-global-nav {
  padding-top: calc(var(--topbar-h) + var(--safe-t));
  padding-bottom: calc(var(--nav) + var(--safe-b) + var(--space-2));
}
.page-pad {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-2);
}
.global-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) max(var(--space-4), calc((100vw - 1040px) / 2)) 0;
  background: var(--surface-glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.global-top-logo { display: flex; align-items: center; }
.global-top-actions { display: flex; align-items: center; gap: var(--space-2); }
.top-install-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.top-install-btn:hover { background: var(--surface-2); color: var(--fg); }
.lang-toggle {
  min-height: 36px;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-toggle:hover { background: var(--surface-2); color: var(--fg); }
.global-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px var(--space-2) calc(6px + var(--safe-b));
  background: var(--surface-glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--border);
}
.global-nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 6px 4px;
  color: var(--fg-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.global-nav-btn:hover { color: var(--fg); }
.global-nav-btn.on { color: var(--accent); }
.global-nav-btn.on::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
  transform: translateX(-50%);
}
.global-nav-btn span { pointer-events: none; }
@media (min-width: 768px) {
  .global-nav {
    left: 50%;
    right: auto;
    bottom: calc(var(--space-4) + var(--safe-b));
    width: 440px;
    padding: 6px;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .global-nav-btn.on { background: var(--accent-soft); }
  .global-nav-btn.on::before { display: none; }
  .has-global-nav { padding-bottom: calc(var(--nav) + var(--space-10) + var(--safe-b)); }
}

/* ---- Find venue (see premium block below) ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- App shell ---- */
.app-shell { padding-bottom: calc(var(--nav) + var(--safe-b) + 8px); overflow-x: visible; }
body.story-open { overflow: hidden; }

.feed-story-bar { display: none !important; }

.feed-stories-inline {
  margin: 0 -16px 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.05);
}
.feed-stories-inline .story-rail-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  padding: 2px 0 4px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.feed-stories-inline .story-rail-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.feed-stories-inline .story-rail-scroll::-webkit-scrollbar { display: none; }
.feed-stories-inline .story-rail {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
  width: auto;
  min-width: 100%;
  padding: 0 0 0 16px;
  box-sizing: border-box;
}
.feed-stories-inline .story-rail-end {
  flex: 0 0 20px;
  width: 20px;
  height: 1px;
  pointer-events: none;
}
.feed-stories-inline .story-bubble {
  flex: 0 0 62px;
  min-width: 62px;
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--edge);
}
.app-top .mark { width: 32px; height: 32px; object-fit: contain; }
.brand-type { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.brand-sub { font-size: 0.62rem; color: var(--gold); letter-spacing: 0.15em; text-transform: uppercase; }

.chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-3) var(--space-4) var(--space-1);
  scrollbar-width: none;
  max-width: var(--content-max);
  margin: 0 auto;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  background: var(--surface);
  color: var(--fg-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--fg); }
.chip.on,
.chip.active { border-color: var(--fg); color: var(--bg-app); background: var(--fg); }

.wrap, .more-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px 16px 20px;
  position: relative;
  z-index: 1;
  overflow-x: visible;
}
.more-wrap {
  text-align: center;
  padding-top: 0;
  padding-bottom: 12px;
}
.card .row {
  align-items: center;
  margin-bottom: 8px;
}
.card .row:last-child { margin-bottom: 0; }
.card > p { margin-bottom: 10px; }
.card > p:last-child { margin-bottom: 0; }

.media {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 12px;
  background: var(--media-bg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
video.media { aspect-ratio: 16/9; }

.heart {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}
.heart.on { color: var(--heart); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Customer gallery — performer directory */
.gal-directory-head {
  margin-bottom: 18px;
  padding: 4px 0 0;
  text-align: center;
}
.gal-directory-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.gal-directory-lede {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.86rem;
  line-height: 1.55;
}
.gal-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.gal-directory .gal-profile-media {
  aspect-ratio: 3 / 4;
}
.gal-directory .gal-profile-overlay {
  padding: 10px 34px 10px 10px;
  gap: 2px;
}
.gal-directory .gal-profile-name {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.gal-directory .gal-profile-meta {
  font-size: 0.62rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gal-directory .gal-profile-chevron {
  width: 28px;
  height: 28px;
  right: 8px;
  font-size: 0.62rem;
}
.gal-directory .gal-follow-icon {
  width: 32px;
  height: 32px;
  top: 8px;
  right: 8px;
  font-size: 0.72rem;
}
.gal-profile-card-wrap {
  position: relative;
}
.gal-follow-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.gal-follow-icon.is-on {
  background: rgba(var(--accent-rgb), 0.22);
  border-color: var(--gold);
  color: var(--on-media-accent);
}
.gal-follow-icon:active { transform: scale(0.92); }
.gal-profile-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.gal-profile-card:active { transform: scale(0.985); }
.gal-profile-card:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), var(--shadow-gold);
}
.gal-profile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--media-bg);
}
.gal-profile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-profile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 52px 16px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}
.gal-profile-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-media-accent);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.gal-profile-meta {
  display: block;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.gal-profile-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--on-media-accent);
  font-size: 0.72rem;
  pointer-events: none;
}
.gal-profile-info { display: none; }
.gal-profile-hero {
  margin-bottom: 14px;
  padding: 14px 16px 16px;
}
.gal-profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.gal-profile-toolbar .gal-back-btn {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}
.gal-profile-toolbar .gal-profile-follow {
  flex-shrink: 0;
  margin-left: auto;
}
.gal-profile-hero-copy {
  min-width: 0;
}
.gal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.gal-profile-head-name {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: capitalize;
  line-height: 1.15;
}
.gal-profile-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.gal-profile-dot {
  opacity: 0.55;
}
.gal-profile-follow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gal-profile-follow.is-on {
  border-color: var(--gold);
  background: var(--accent);
  color: var(--on-accent);
}
.gal-profile-follow span {
  line-height: 1.2;
  white-space: nowrap;
}
.gal-profile-grid {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gal-profile-grid .gal-thumb {
  height: auto;
  aspect-ratio: 3 / 4;
}
.gal-profile-grid .gal-card-foot {
  padding: 6px 8px 8px;
}
.gal-profile-grid .gal-card-meta {
  font-size: 0.65rem;
  margin-bottom: 4px;
}
.gal-profile-grid .gal-card-actions {
  gap: 6px;
}
.gal-profile-grid .gal-card-actions .heart {
  font-size: 0.78rem;
  padding: 2px 0;
}

@media (min-width: 640px) {
  .gal-profile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (min-width: 720px) {
  .gal-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 960px) {
  .gal-directory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.gallery > div,
.gal-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.gal-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--media-bg);
  cursor: pointer;
}
.gal-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.gal-card-foot { padding: 8px 10px 10px; }
.gal-card-meta {
  font-size: 0.72rem;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gal-card-actions {
  align-items: center;
  gap: 8px;
}
.gal-card-actions .feed-share { margin-left: auto; padding: 5px 10px; font-size: 0.62rem; }
.gallery .muted, .gallery .heart { padding: 0; }
.gallery .heart { padding: 4px 0; }

/* Image protection */
.no-save,
.feed-media,
.gal-thumb,
.gal-lightbox-img,
.share-landing-preview img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Gallery lightbox */
.gal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gal-lightbox.hidden { display: none; }
.gal-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.gal-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  background: var(--card);
}
.gal-lightbox-media {
  position: relative;
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
}
.gal-lightbox-img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: #000;
  display: block;
  pointer-events: none;
}
.gal-lightbox-bar {
  padding: 12px 14px;
  border-top: 1px solid var(--edge);
  background: var(--surface-sunken);
  align-items: center;
  gap: 10px;
}
.gal-lightbox-meta {
  min-width: 0;
  flex: 1;
}
.gal-lightbox-meta strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--fg);
  font-size: 0.95rem;
}
.gal-lightbox-meta .muted {
  display: block;
  font-size: 0.72rem;
  margin-top: 2px;
}
.gal-lightbox-actions { flex-shrink: 0; gap: 8px; align-items: center; }
.gal-lightbox-close,
.gal-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gal-lightbox-close { top: 12px; right: 12px; font-size: 1.6rem; }
.gal-lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.gal-lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
body.modal-open { overflow: hidden; }

/* Share sheet */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.share-sheet.hidden { display: none; }
.share-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.share-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 20px 18px;
  border-radius: var(--radius);
  margin-bottom: env(safe-area-inset-bottom, 0);
}
.share-sheet-head { margin-bottom: 8px; }
.share-sheet-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.share-sheet-lede { font-size: 0.82rem; margin-bottom: 14px; }
.share-sheet-preview {
  margin-bottom: 12px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--edge-gold);
  background: var(--media-bg);
}
.share-sheet-preview.hidden { display: none !important; }
.share-sheet-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
.share-sheet-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.share-sheet-message {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--edge);
  background: var(--field-bg);
  color: var(--gold-light);
  font-size: 0.82rem;
  line-height: 1.45;
  resize: none;
  word-break: break-all;
}
.share-fb-tip {
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border-strong);
  background: rgba(var(--accent-rgb), 0.06);
  margin-bottom: 12px;
}
.share-page-link {
  font-size: 0.72rem;
  word-break: break-all;
  margin-bottom: 14px;
}
.share-page-link a { color: var(--gold); }
.share-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.share-plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
  background: rgba(var(--ink-rgb), 0.03);
  color: var(--text);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.15s, background 0.15s;
}
.share-plat i { font-size: 1.25rem; }
.share-plat:hover { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.06); }
.share-plat-fb i { color: #1877f2; }
.share-plat-x i { color: var(--fg); }
.share-plat-ig i { color: #e4405f; }
.share-plat-sc i { color: #fffc00; }
.share-plat-pin i { color: #e60023; }
.share-plat-wa i { color: #25d366; }
.share-plat-tg i { color: #26a5e4; }
.share-plat-rd i { color: #ff4500; }
.share-plat-li i { color: #0a66c2; }
.share-plat-copy i { color: var(--gold); }
.share-sheet-url {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* Share landing (/p/gallery/...) */
.share-landing-card { max-width: 420px; text-align: center; }
.share-landing-preview {
  margin: -8px -8px 16px;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--media-bg);
}
.share-landing-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  height: calc(var(--nav) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--edge);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.nav button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  cursor: pointer;
  position: relative;
}
.nav button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.nav button.on { color: var(--gold); }
.nav button.on::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-3) var(--space-3) calc(var(--space-3) + var(--safe-b));
  animation: mcvFade var(--dur) var(--ease);
}
.modal-panel {
  width: min(440px, 100%);
  box-shadow: var(--shadow-lg);
  animation: mcvRise 260ms var(--ease);
}
@keyframes mcvFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcvRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.modal.hidden { display: none; }

/* ================================================================
   Admin — app shell (sidebar + top bar)
   ================================================================ */
html[data-admin="1"] [data-theme-toggle],
html[data-admin="1"] .admin-nav-btn[data-theme-toggle] {
  display: none !important;
}

html[data-admin="1"] .admin-shell,
html[data-admin="1"] body.admin-shell {
  --bg-glow: radial-gradient(ellipse 90% 45% at 50% -8%, rgba(220, 200, 141, 0.12), transparent 58%);
}

.admin-shell {
  --font-serif: var(--font-sans);
  font-size: var(--fs-md);
  padding-bottom: 0;
}
.admin-app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding-top: var(--safe-t);
  transform: translateX(-100%);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.admin-app.nav-open .admin-sidebar { transform: none; box-shadow: var(--shadow-lg); }
.admin-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.admin-app.nav-open .admin-scrim { opacity: 1; pointer-events: auto; }
.admin-sidebar-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--topbar-h);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-sidebar-head .mark-sm { width: 32px; height: 32px; }
.admin-sidebar-brand { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.admin-sidebar-brand .brand {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  color: var(--fg);
  letter-spacing: var(--tracking-tight);
}
.admin-sidebar-brand .admin-role-tag { margin-top: 2px; }
.admin-sidebar-close { margin-left: auto; }
.admin-venue-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-2);
  flex-shrink: 0;
}
.admin-venue-label {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.admin-shell .admin-venue-field select {
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}
.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scrollbar-width: thin;
}
.admin-nav-group { min-width: 0; }
.admin-nav-group-label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 6px;
  padding: 0 var(--space-2);
}
.admin-nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.admin-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px var(--space-2);
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  color: var(--fg-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.admin-nav-btn i {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-subtle);
  transition: color var(--dur-fast) var(--ease);
}
.admin-nav-btn span { line-height: 1.25; min-width: 0; }
.admin-nav-btn:hover { background: var(--surface-2); color: var(--fg); }
.admin-nav-btn:hover i { color: var(--fg-muted); }
.admin-nav-btn.on {
  background: var(--accent-soft);
  color: var(--fg);
  font-weight: var(--fw-semibold);
}
.admin-nav-btn.on i { color: var(--accent); }
.admin-nav-btn.on::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.admin-sidebar-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  padding-bottom: calc(var(--space-3) + var(--safe-b));
  border-top: 1px solid var(--border);
}
.admin-sidebar-foot .admin-nav-btn { text-decoration: none; }
.admin-body {
  min-width: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.admin-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: calc(var(--topbar-h) + var(--safe-t));
  padding: var(--safe-t) var(--space-4) 0;
  background: var(--surface-glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.admin-page-heading { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.admin-page-crumb {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-page-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.admin-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: var(--space-5) var(--space-4) calc(var(--space-10) + var(--safe-b));
}
.admin-main { display: flex; flex-direction: column; gap: var(--space-4); }

@media (min-width: 1024px) {
  .admin-sidebar { transform: none; }
  .admin-scrim, .admin-menu-btn, .admin-sidebar-close { display: none !important; }
  .admin-body { margin-left: var(--sidebar-w); }
  .admin-top { padding-left: var(--space-8); padding-right: var(--space-8); }
  .admin-wrap { padding: var(--space-8) var(--space-8) var(--space-10); }
}

/* ---- Admin content primitives ---- */
.admin-subtabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  margin-bottom: var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  align-self: flex-start;
}
.admin-subtabs .chip {
  min-height: 32px;
  padding: 5px 12px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--fg-muted);
  font-size: var(--fs-sm);
}
.admin-subtabs .chip:hover { color: var(--fg); }
.admin-subtabs .chip.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.admin-role-tag {
  align-self: flex-start;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  padding: 1px 0;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.admin-role-tag:not(.muted) { color: var(--accent); }
.admin-guide-fold {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-sunken);
}
.admin-guide-fold summary {
  cursor: pointer;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  color: var(--fg);
  list-style: none;
}
.admin-guide-fold summary::-webkit-details-marker { display: none; }
.admin-guide-body { margin-top: var(--space-3); font-size: var(--fs-md); }
.admin-guide-body p { margin: 0 0 var(--space-2); }
.admin-guide-page .admin-guide-title { font-size: var(--fs-2xl); margin: 0 0 var(--space-4); color: var(--fg); }
.admin-guide-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); margin-bottom: var(--space-5); }
.admin-guide-table th, .admin-guide-table td { border: 1px solid var(--border); padding: 10px; vertical-align: top; text-align: left; }
.admin-guide-table th { color: var(--fg); background: var(--surface-2); font-weight: var(--fw-semibold); }
.admin-guide-ol { margin: 0 0 var(--space-4) 1.2rem; padding: 0; font-size: var(--fs-md); }
.admin-guide-ol li { margin-bottom: var(--space-2); }

.admin-shell .card {
  margin: 0;
  padding: var(--space-5);
  border-radius: var(--radius);
}
.admin-shell .card .card {
  box-shadow: none;
  background: var(--surface-sunken);
}
.admin-shell .card h2 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--fg);
  margin: 0 0 4px;
  letter-spacing: var(--tracking-tight);
}
.admin-shell .card h3 { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.admin-shell .card > .muted:first-of-type,
.admin-shell .card > p.muted:first-of-type {
  margin-bottom: var(--space-4);
}
.admin-shell label:not(.check) {
  margin-top: var(--space-4);
}
.admin-shell .check {
  margin: var(--space-3) 0 0;
  align-items: center;
  color: var(--fg);
  font-size: var(--fs-md);
}
.admin-shell .check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}
.admin-shell .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.admin-shell .form-actions .btn { flex: 0 0 auto; }
.cron-copy-wrap {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
  margin: 10px 0 var(--space-3);
}
.cron-copy-input {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--fg-2);
}
.admin-shell code {
  font-family: var(--font-mono);
  font-size: 0.8em;
  color: var(--fg-2);
  word-break: break-all;
}

/* Stat tiles */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}
.stat .muted {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  margin: 0;
}
.stat b {
  display: block;
  font-size: var(--fs-3xl);
  color: var(--fg);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }

/* Tables */
.admin-table-wrap {
  overflow: auto;
  max-height: 70vh;
  margin-top: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.admin-shell table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-md);
  min-width: 560px;
}
.admin-shell th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.admin-shell td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  color: var(--fg-2);
}
.admin-shell tbody tr { transition: background var(--dur-fast) var(--ease); }
.admin-shell tbody tr:hover td { background: rgba(var(--ink-rgb), 0.025); }
.admin-shell .card p {
  color: var(--fg-2);
  font-size: var(--fs-md);
  line-height: 1.55;
}
.admin-shell .card p.muted { color: var(--fg-muted); }
.admin-shell textarea,
.admin-shell select,
.admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  font-size: var(--fs-md);
  min-height: 40px;
  padding: 8px 12px;
}
.admin-shell select { padding-right: 34px; }
.admin-shell textarea { min-height: 96px; }
.admin-shell tr:last-child td { border-bottom: none; }
.admin-shell td code {
  font-size: var(--fs-xs);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-2);
}
.admin-shell .row {
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.admin-shell .row:last-child { border-bottom: none; }
.admin-shell .row .btn { flex-shrink: 0; }
.admin-shell .gallery { margin-top: var(--space-3); }
.admin-shell .gallery img { height: 140px; }

/* ---- Admin login ---- */
.admin-login {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-8) + var(--safe-t)) var(--space-5) calc(var(--space-10) + var(--safe-b));
}
.admin-login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.admin-login-brand { text-align: center; }
.admin-login-brand .mark-hero {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  object-fit: contain;
}
.admin-login-kicker {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.admin-login-brand h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--fg);
  margin-bottom: 6px;
}
.admin-login-lede {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}
.admin-login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.admin-login-card.hidden { display: none; }
.admin-login-card .field { margin-bottom: 2px; }
.admin-login-card label { margin: var(--space-4) 0 6px; }
.admin-login-card .field:first-of-type label { margin-top: 0; }
.admin-shell .admin-login-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 44px;
  padding: 10px 12px;
  font-size: var(--fs-base);
}
.admin-login-card .btn-gold { margin-top: var(--space-5); }
.admin-login-card .btn-ghost { margin-top: var(--space-2); }
.admin-login-card #err:not(:empty),
.admin-login-card #inviteErr:not(:empty) { margin-bottom: 4px; }
.admin-login-help {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.55;
}
.admin-login-help summary {
  cursor: pointer;
  color: var(--fg-2);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  list-style: none;
  user-select: none;
}
.admin-login-help summary::-webkit-details-marker { display: none; }
.admin-login-help summary::after {
  content: ' +';
  opacity: 0.6;
}
.admin-login-help[open] summary::after { content: ' −'; }
.admin-login-help p { margin-top: 10px; }
.admin-login-help a { font-weight: var(--fw-semibold); }

.admin-shell .auth-page { padding-bottom: calc(24px + var(--safe-b)); }
.admin-shell .auth-panel {
  max-width: 420px;
  margin: 0 auto;
  width: calc(100% - 32px);
}
.admin-shell .auth-panel .btn { width: 100%; }
.admin-shell .wrap .btn,
.admin-shell .admin-top .btn,
.admin-shell .admin-main .btn { width: auto; }
.admin-shell .btn { min-height: 38px; padding: 8px 14px; font-size: var(--fs-md); }
.admin-shell .btn-sm { min-height: 32px; padding: 5px 10px; font-size: var(--fs-sm); }
.admin-shell .btn-lg { min-height: 44px; }
.admin-shell table .btn { margin: 2px 4px 2px 0; }
.admin-shell input[type="email"],
.admin-email-in {
  min-height: 36px;
  padding: 7px 10px;
  font-size: var(--fs-md);
  min-width: 160px;
  max-width: 240px;
}
.admin-login-card input[type="email"] { max-width: none; }
.admin-actions-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 120px;
}
.admin-actions-col .btn {
  width: 100%;
  min-height: 30px;
  padding: 4px 10px;
  font-size: var(--fs-xs);
}
.venue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--fg-2);
}
.venue-tag button {
  color: var(--danger-fg);
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
}
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.status-pill.active,
.status-pill.published { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.status-pill.pending,
.status-pill.scheduled { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning); }
.status-pill.draft,
.status-pill.suspended,
.status-pill.disabled { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-fg); }
.admin-shell .status-pill { margin: 0; }
.admin-empty {
  padding: var(--space-6) 0 var(--space-2);
  text-align: center;
  color: var(--fg-muted);
  font-size: var(--fs-md);
}

.legal { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; position: relative; z-index: 1; }
.legal-panel { text-align: left; padding: 24px 20px 28px; max-height: none; }
.legal-content h1 { font-size: 1.5rem; margin-bottom: 8px; }
.legal-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 24px 0 10px;
  letter-spacing: 0.02em;
}
.legal-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text);
}
.legal-meta, .legal-lead { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.legal-lead { margin-bottom: 8px; }
.legal-content p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0 0 12px;
}
.legal-content ul {
  margin: 0 0 14px 18px;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { font-weight: 600; }

@media (min-width: 640px) {
  .cta-row { flex-direction: row; }
  .cta-row .btn { flex: 1; }
  .nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: repeat(3, 1fr); }
  .modal { align-items: center; }
}

@media (max-width: 360px) {
  .mark-hero { width: 72px; height: 72px; }
  .landing-card { padding: 24px 18px; }
  .landing-card h1 { font-size: 1.3rem; }
}

/* ---- PWA install ---- */
.install-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; margin: 16px 0; }
.install-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; background: var(--card); border-radius: var(--radius);
  font-size: 0.84rem; line-height: 1.45; color: var(--text-soft);
}
.install-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent);
  color: var(--on-accent); font-weight: 800; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
}
.install-never {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 0.78rem; color: var(--muted); cursor: pointer; justify-content: center;
}
.install-never input { accent-color: var(--gold); }
.push-popup-overlay {
  position: fixed; inset: 0; z-index: 9999; background: var(--overlay);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: pushFadeIn 0.3s ease;
}
@keyframes pushFadeIn { from { opacity: 0; } to { opacity: 1; } }
.push-popup-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6); text-align: center; max-width: 380px; width: 100%;
  box-shadow: var(--shadow-lg); animation: pushSlideUp 0.3s var(--ease);
}
@keyframes pushSlideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.push-popup-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.push-popup-icon i { font-size: 1.45rem; color: var(--on-accent); }
.push-popup-card h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--text); }
.push-popup-card p { margin: 0 0 18px; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.push-popup-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.push-popup-skip {
  background: none; border: none; color: var(--muted); font-size: 0.82rem;
  cursor: pointer; padding: 8px;
}
.push-popup-skip:hover { color: var(--text); }
.ios-install-banner {
  position: fixed; left: 0; right: 0; z-index: 9000;
  bottom: calc(var(--nav) + var(--safe-b));
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(110%); transition: transform 0.35s ease-out;
  cursor: pointer;
}
.ios-install-banner.show { transform: translateY(0); }
.ios-banner-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-accent); font-size: 1rem;
}
.ios-banner-text { flex: 1; min-width: 0; line-height: 1.35; }
.ios-banner-text strong { display: block; font-size: 0.86rem; color: var(--text); }
.ios-banner-text span { font-size: 0.74rem; color: var(--muted); }
.ios-banner-close {
  width: 30px; height: 30px; border: none; border-radius: 50%; flex-shrink: 0;
  background: var(--card); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.ios-banner-close:hover { color: var(--text); }

/* ================================================================
   Premium UI — shared across customer app pages
   ================================================================ */
.panel-premium {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), var(--highlight);
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}
.btn-stack .btn { width: 100%; }

/* Status pages (verify, errors, unsubscribe) */
.status-page,
.auth-shell,
.page-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--nav) - var(--topbar-h) - var(--safe-t) - var(--safe-b));
  padding: var(--space-6) var(--space-4) var(--space-8);
}
.status-wrap,
.auth-wrap,
.page-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.status-brand,
.auth-brand {
  text-align: center;
  padding-top: var(--space-2);
}
.status-brand .mark-hero,
.auth-brand .mark-hero {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
}
.auth-kicker {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 6px;
}
.auth-lede {
  font-size: var(--fs-md);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}
.status-card {
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.05);
}
.status-icon i { font-size: 1.35rem; color: var(--accent); }
.status-success .status-icon { background: var(--success-bg); border-color: var(--success-border); box-shadow: 0 0 0 8px var(--success-bg); }
.status-success .status-icon i { color: var(--success); }
.status-error .status-icon { background: var(--danger-bg); border-color: var(--danger-border); box-shadow: 0 0 0 8px var(--danger-bg); }
.status-error .status-icon i { color: var(--danger-fg); }
.status-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  color: var(--fg);
}
.status-body .lede { margin-bottom: 0; font-size: var(--fs-md); }
.status-actions { margin-top: var(--space-6); }

/* Auth */
.auth-panel.panel-premium { padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-panel .btn-stack { margin-top: var(--space-5); }
.auth-panel label:first-of-type { margin-top: 0; }
.auth-panel input:not([type="checkbox"]) {
  min-height: 46px;
  font-size: var(--fs-base);
}

/* Page shells (find, etc.) */
.page-header { padding: 4px 2px 0; }
.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.15;
}
.page-header .sub { margin-bottom: 0; }

/* Find venue — premium */
.find-brand {
  text-align: center;
  padding: 4px 8px 0;
}
.find-brand .mark-hero {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
}
.find-kicker {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.find-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 10px;
  color: var(--text);
}
.find-lede {
  margin: 0 auto 4px;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.find-panel.panel-premium {
  padding: 20px 18px 18px;
  margin-top: 4px;
}
.find-search-field {
  margin-top: 0;
}
.find-idle {
  margin-top: 18px;
}
.find-idle[hidden],
.find-results[hidden] {
  display: none !important;
}
.find-hint {
  margin: 0 0 14px;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}
.find-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.find-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  text-align: left;
}
.find-step-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
}
.find-step strong {
  display: block;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: 1px;
  color: var(--fg);
}
.find-step p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--fg-muted);
}
.find-results {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.find-loading {
  text-align: center;
  padding: 18px 8px;
  font-size: 0.84rem;
}
.find-loading i {
  margin-right: 8px;
  color: var(--gold);
}
.find-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px !important;
  margin: 0;
}
.find-row-logo {
  flex-shrink: 0;
}
.find-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--border);
}
.find-logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 1rem;
}
.find-meta {
  flex: 1;
  min-width: 0;
}
.find-meta h2 {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.find-row-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.find-action {
  flex-shrink: 0;
}
.find-follow-btn {
  min-width: 88px;
}
.find-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--success);
  white-space: nowrap;
}
.find-status i {
  font-size: 0.62rem;
}
.find-empty-state {
  text-align: center;
  padding: 22px 12px 8px;
}
.find-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 1.05rem;
}
.find-empty-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.find-empty-sub {
  margin: 0;
  font-size: 0.78rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--field-bg);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.search-icon-wrap {
  flex: 0 0 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}
.search-field input {
  flex: 1;
  min-width: 0;
  width: auto !important;
  min-height: 46px;
  padding: 10px 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.search-field input:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}
.search-field input::-webkit-search-decoration,
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.find-row.panel-premium {
  padding: 14px 16px !important;
  margin: 0;
  flex-wrap: nowrap;
  gap: 12px;
}
.find-action {
  flex-shrink: 0;
  width: auto;
}
.find-action .btn,
.find-action .find-status {
  width: auto;
  display: inline-flex;
  justify-content: center;
}
.find-action .find-status {
  padding: 0;
  text-align: right;
}

/* Landing polish */
.landing-card.panel-premium { box-shadow: var(--shadow-md); }
.landing-card.panel-premium h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 6vw, 2.25rem); letter-spacing: -0.01em; line-height: 1.1; }
.landing-card .cta-row .btn { width: 100%; }

/* Global chrome */
.global-top .mark-sm { width: 34px; height: 34px; }
.global-nav-btn .nav-icon { width: 22px; height: 22px; transition: transform var(--dur-fast) var(--ease); }
.global-nav-btn.on .nav-icon { stroke-width: 2; }

/* Staff portal embed — hide chrome when opened from employee portal iframe */
body.portal-embed {
  min-height: 100%;
  overflow: auto;
}
body.portal-embed .wrap {
  padding-bottom: 16px;
  max-width: 100%;
}
body.portal-embed .feed-story-bar {
  position: sticky;
  top: 0;
  z-index: 19;
}
body.portal-embed .chips {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  max-width: none;
  padding: 10px 16px 8px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Feed & empty states */
.feed-card {
  padding: 0;
  margin: 0 0 var(--space-4);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.feed-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid var(--border);
}
.feed-head-row.feed-head-minimal {
  justify-content: flex-end;
  border-bottom: 0;
  padding: 6px 12px 0;
}
.feed-head-row .feed-performer-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-head-row .feed-performer-name-empty { display: none; }
.feed-working-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ecfdf5;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.88));
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: feed-working-pulse 1.85s ease-in-out infinite;
}
.feed-working-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  animation: feed-working-dot 1.85s ease-in-out infinite;
}
@keyframes feed-working-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); transform: scale(1.02); }
}
@keyframes feed-working-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.82); }
}
.feed-head-row .feed-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.feed-venue-bar {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12) 0%, rgba(var(--accent-rgb), 0.02) 100%);
}
.feed-venue-bar.feed-venue-bar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px 7px;
  border-bottom: 1px solid var(--border);
}
.feed-venue-bar.feed-venue-bar-top .feed-date {
  flex-shrink: 0;
  font-size: 0.68rem;
}
.feed-venue-bar .feed-venue-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.15;
}
.feed-text-only .feed-venue-bar {
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.08) 0%, transparent 100%);
}
.feed-text-only .feed-venue-bar .feed-venue-name {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}
.feed-media {
  width: 100%;
  height: auto;
  max-height: min(85vh, 960px);
  border-radius: 0;
  margin: 0;
  object-fit: contain;
  display: block;
  background: var(--media-bg);
}
.feed-card video.feed-media {
  width: 100%;
  max-height: min(85vh, 960px);
  height: auto;
  aspect-ratio: unset;
  object-fit: contain;
}
.feed-body {
  font-size: 0.88rem;
  line-height: 1.48;
  margin: 0;
  padding: 10px 12px 8px;
  color: var(--text);
}
.feed-address-bar {
  padding: 6px 12px 8px;
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.feed-text-hero {
  padding: 8px 12px 6px;
  background: transparent;
  border-bottom: 0;
}
.feed-text-hero .feed-body {
  padding: 0;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0;
}
.feed-text-only .feed-foot { margin-top: 0; }
.feed-text-only .feed-address-bar {
  padding: 5px 12px 7px;
  border-top: 0;
  background: var(--surface-sunken);
}
.feed-foot {
  margin: 0;
  padding: 7px 12px 8px;
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  align-items: center;
}
.feed-text-only .feed-foot {
  padding: 6px 12px 7px;
  border-top: 1px solid var(--border);
}
.feed-text-only .heart-btn {
  min-height: 32px;
  padding: 4px 2px;
}
.feed-text-only .feed-share {
  padding: 5px 11px;
  font-size: 0.62rem;
}
.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  padding: 6px 2px;
  min-height: 36px;
  transition: color 0.2s, transform 0.15s;
}
.heart-btn:active { transform: scale(0.96); }
.heart-icon {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px transparent);
  transition: filter 0.2s;
}
.heart-btn.on { color: var(--heart); }
.heart-btn.on .heart-icon {
  filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.45));
}
.heart-count {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  min-width: 1ch;
}
.feed-share {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--gold);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.feed-share:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.45);
}

/* Admin feed (Instagram-style preview + remove) */
.admin-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.compose-card { margin-bottom: 4px; }
.compose-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  padding: 4px 0 8px;
}
.admin-feed-card {
  padding: 0;
  overflow: hidden;
}
.admin-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.admin-feed-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-feed-meta .pill { font-size: 0.65rem; }
.admin-feed-card .feed-media { background: var(--media-bg); }
.admin-feed-card .feed-remove { margin-left: auto; }
.admin-feed-more { max-width: 520px; margin: 0 auto; width: 100%; }
.admin-empty-feed { text-align: center; padding: 32px 20px !important; }
.admin-feed-stories {
  max-width: 520px;
  margin: 0 auto 14px;
  width: 100%;
}
.admin-feed-stories .feed-stories-inline {
  margin-left: 0;
  margin-right: 0;
}
.admin-feed-preview-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding: 0 2px;
}
.admin-story-bubble { cursor: default; }
.admin-story-manage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.admin-story-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: var(--surface-2, rgba(255,255,255,0.03));
}
.admin-story-thumb-link { flex: 0 0 auto; line-height: 0; }
.admin-story-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: var(--media-bg);
}
.admin-story-thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--gold, #dcc88d);
}
.admin-story-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-story-dates { font-size: 0.8rem; }
.admin-story-cap {
  font-size: 0.88rem;
  color: var(--text-2, #ccc);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-story-del { flex: 0 0 auto; }
.admin-story-slides {
  display: block;
  font-size: 0.58rem;
  margin-top: 2px;
}

/* Daily post pools — compact rows */
.pool-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pool-row {
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(var(--ink-rgb), 0.015);
  overflow: hidden;
}
.pool-row.pool-off { opacity: 0.5; }
.pool-row-summary {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
}
.pool-row-summary::-webkit-details-marker { display: none; }
.pool-row[open] .pool-row-summary {
  border-bottom: 1px solid var(--edge);
  background: rgba(var(--accent-rgb), 0.04);
}
.pool-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pool-tag-cat { color: var(--muted); background: transparent; border-color: var(--edge); }
.pool-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  min-width: 0;
}
.pool-meta {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}
.pool-edit-panel { padding: 8px 10px 10px; }
.pool-edit-body {
  width: 100%;
  min-height: 48px;
  resize: vertical;
  font-size: 0.82rem;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.pool-edit-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pool-edit-inline select,
.pool-edit-inline input {
  flex: 1 1 88px;
  min-height: 34px;
  font-size: 0.78rem;
  padding: 6px 8px;
}
.pool-edit-inline .btn { padding: 6px 10px; font-size: 0.72rem; }
.pool-gallery.pool-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pool-img-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.pool-img-card.pool-off { opacity: 0.55; }
.pool-img-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}
.pool-img-card .muted {
  padding: 4px 8px;
  font-size: 0.68rem;
}
.pool-img-card .form-actions {
  padding: 0 6px 6px;
  gap: 4px;
  margin: 0;
}
.pool-img-card .btn-sm { padding: 4px 8px; font-size: 0.68rem; }
.pool-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(var(--ink-rgb), 0.02);
}
.pool-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
  display: block;
}
.pool-preview-body { white-space: pre-wrap; margin: 6px 0 0; font-size: 0.86rem; }
.pool-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--edge);
}
.log-line { margin: 4px 0; font-size: 0.78rem; }

/* Admin galleries — by performer */
.gal-admin .gal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
  font-size: 0.82rem;
}
.gal-admin .gal-stats strong { color: var(--gold); font-size: 1rem; }
.gal-stat-live { color: var(--success); }
.gal-stat-hidden { color: var(--muted); }
.gal-stat-new { color: var(--warning); }
.gal-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.gal-filter .chip { text-transform: none; font-size: 0.72rem; }
.gal-person {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(var(--ink-rgb), 0.015);
}
.gal-person-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.gal-person-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.gal-person-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(var(--accent-rgb), 0.35);
  background: var(--media-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.gal-person-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gal-person-summary::-webkit-details-marker { display: none; }
.gal-person[open] .gal-person-summary {
  border-bottom: 1px solid var(--edge);
  background: rgba(var(--accent-rgb), 0.04);
}
.gal-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.72rem;
}
.gal-person-meta .gal-stat {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--surface-sunken);
}
.gal-person-body { padding: 12px 14px 14px; }
.gal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.gal-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 520px) {
  .gal-pick-grid { grid-template-columns: repeat(4, 1fr); }
}
.gal-pick {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gal-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gal-pick img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--media-bg);
}
.gal-pick:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}
.gal-pick-live { opacity: 0.92; position: relative; }
.gal-pick-hidden { opacity: 0.88; }
.gal-hide-btn {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 6px 8px;
  font-size: 0.62rem;
  background: rgba(0, 0, 0, 0.72);
}
.gal-pick-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}
.gal-pick-live .gal-pick-badge { background: rgba(34, 197, 94, 0.85); }
.gal-pick-hidden .gal-pick-badge { background: rgba(120, 120, 120, 0.9); }
.gal-vip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 520px) {
  .gal-vip-grid { grid-template-columns: repeat(3, 1fr); }
}
.gal-vip-item {
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: var(--surface-sunken);
}
.gal-vip-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gal-vip-live { border-color: rgba(34, 197, 94, 0.25); }
.gal-vip-hidden { opacity: 0.82; }
.gal-vip-meta {
  padding: 8px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gal-vip-cap {
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gal-vip-actions {
  padding: 8px 10px 10px;
}
.gal-upload summary {
  cursor: pointer;
  color: var(--fg);
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state { padding: var(--space-10) var(--space-6) !important; }
.empty-state h2, .empty-state h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.empty-state .lede { max-width: 26rem; margin-left: auto; margin-right: auto; }
.empty-icon {
  width: 48px; height: 48px; margin: 0 auto var(--space-4);
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted); font-size: 1.1rem;
}
.empty-state .btn { margin-top: var(--space-5); }

/* Account premium */
.account-card.panel-premium { padding: 24px 20px; }
.account-card .account-email {
  font-family: var(--font-sans);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
}

/* Modal */
.modal-panel.panel-premium { padding: 28px 22px 24px; }
.modal-panel .btn-stack { margin-top: 18px; }
.modal-panel input { margin-bottom: 4px; }

@media (min-width: 520px) {
  .find-row.panel-premium { flex-wrap: nowrap; }
  .find-action { width: auto; margin-left: auto; }
  .find-action .btn { width: auto; min-width: 120px; }
}

/* Media library (admin) */
.media-lib-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.media-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.media-lib-card {
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: rgba(var(--ink-rgb), 0.02);
}
.media-lib-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--media-bg);
  cursor: pointer;
  aspect-ratio: 1;
}
.media-lib-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-lib-video { position: relative; height: 100%; }
.media-lib-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-lib-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.media-lib-meta { padding: 8px 10px 10px; }
.media-lib-meta .pill { font-size: 0.6rem; margin-right: 4px; }
.media-lib-label {
  font-size: 0.75rem;
  margin: 6px 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  color: var(--on-media);
}
.media-lightbox .muted { color: var(--on-media-muted); }
.media-lightbox.hidden { display: none; }
.media-lightbox-tools {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.media-lightbox-tools.hidden { display: none; }
.gal-rotate-btn,
.gal-pick .gal-rotate-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 4px 8px;
  min-width: 0;
  background: rgba(10, 10, 10, 0.75);
}
.gal-pick-live { position: relative; }
.gal-pick { position: relative; }

.media-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}
.media-lightbox-body {
  max-width: min(960px, 100%);
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-lightbox-media {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}
.media-lightbox-cap { margin-top: 12px; text-align: center; max-width: 520px; }

/* Event media */
.event-media-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin: 10px 0;
  background: var(--media-bg);
}
.event-card .event-media,
.event-card .feed-media.event-media {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 12px;
}
.event-card .feed-media.event-media { max-height: none; }

/* Admin events calendar (FullCalendar) */
.admin-events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-events-head h2 { margin: 0 0 6px; }
.admin-events-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--edge-gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-events-cal-wrap { padding: 12px; overflow: hidden; }
#mcvEventsCal { background: transparent; }
.admin-events-cal-wrap .fc .fc-toolbar.fc-header-toolbar {
  background: var(--surface-2);
  padding: 12px 14px;
  margin-bottom: 0;
  border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.admin-events-cal-wrap .fc .fc-toolbar-title {
  color: var(--fg);
  font-size: 1.05em;
  font-weight: 600;
}
.admin-events-cal-wrap .fc .fc-button-primary {
  background: var(--accent) !important;
  border-color: transparent !important;
  color: var(--on-accent) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}
.admin-events-cal-wrap .fc .fc-button-primary:not(:disabled).fc-button-active {
  filter: brightness(0.92);
}
.admin-events-cal-wrap .fc .fc-scrollgrid,
.admin-events-cal-wrap .fc .fc-scrollgrid-section > * {
  border-color: var(--border) !important;
}
.admin-events-cal-wrap .fc .fc-col-header-cell {
  background: var(--surface-sunken) !important;
}
.admin-events-cal-wrap .fc .fc-col-header-cell-cushion {
  color: var(--fg-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  padding: 10px 4px !important;
}
.admin-events-cal-wrap .fc .fc-daygrid-day {
  background: var(--surface) !important;
  cursor: pointer;
}
.admin-events-cal-wrap .fc .fc-daygrid-day:hover {
  background: var(--surface-2) !important;
}
.admin-events-cal-wrap .fc .fc-daygrid-day-number {
  color: var(--text);
  font-weight: 500;
  padding: 6px 8px;
}
.admin-events-cal-wrap .fc .fc-day-today {
  background: var(--accent-soft) !important;
  box-shadow: inset 0 0 0 1px var(--border-accent);
}
.admin-events-cal-wrap .fc .fc-day-today .fc-daygrid-day-number {
  color: var(--accent);
}
.admin-events-cal-wrap .fc .fc-day-other .fc-daygrid-day-number { color: var(--muted); }
.admin-events-cal-wrap .fc-daygrid-day-frame { min-height: 84px; }
.admin-events-cal-wrap .fc-daygrid-event {
  border: none !important;
  background: var(--accent) !important;
  border-radius: 6px !important;
  margin-top: 2px !important;
}
.admin-events-cal-wrap .mcv-cal-event.mcv-cal-draft {
  opacity: 0.72;
  background: rgba(var(--ink-rgb), 0.12) !important;
}
.mcv-cal-ev-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  overflow: hidden;
  width: 100%;
}
.mcv-cal-ev-thumb {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}
.mcv-cal-ev-thumb-video {
  pointer-events: none;
}
.mcv-cal-ev-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.modal-overlay.admin-events-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.admin-events-modal.hidden { display: none !important; }
.digest-account-card .digest-desc { margin-bottom: 14px; }
.digest-account-card .digest-toggle { margin: 0; font-size: var(--fs-md); }
.digest-account-card .digest-hint { margin-top: 10px; margin-bottom: 0; font-size: 0.82rem; }
.digest-panel { margin-bottom: 16px; }
.digest-preview-panel {
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
}
.digest-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.digest-preview-head h2 { margin: 0; font-size: 1.1rem; }
.digest-preview-frame {
  width: 100%;
  flex: 1;
  min-height: 420px;
  height: min(72vh, 720px);
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) - 2px);
  background: #ececec;
}
.admin-events-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--edge-gold);
  background: var(--surface);
}
.admin-events-sheet h3 { margin: 0 0 4px; color: var(--fg); }
.admin-events-date-hint {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edge);
}
.admin-events-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-events-repeat { margin-top: 8px; }
.admin-events-repeat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.admin-events-repeat-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--edge);
  background: var(--surface-sunken);
  cursor: pointer;
}
.admin-events-repeat-opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(var(--accent-rgb), 0.08);
}
.admin-events-repeat-opt input { accent-color: var(--gold); }
.admin-events-repeat-opt span { font-size: 0.86rem; }
.admin-events-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 4px;
}
.admin-events-busy {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay);
  backdrop-filter: blur(3px);
}
.admin-events-busy.hidden { display: none !important; }
.admin-events-busy-card {
  text-align: center;
  padding: 1.5rem 1.75rem;
  max-width: 22rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.admin-events-busy-spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.85rem;
  border: 3px solid rgba(var(--accent-rgb), 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mcvEvSpin 0.75s linear infinite;
}
@keyframes mcvEvSpin { to { transform: rotate(360deg); } }
.admin-events-busy-msg { margin: 0 0 0.35rem; font-weight: 700; color: var(--text); }
.admin-events-busy-hint { margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.admin-events-bulk-sheet { max-width: 640px; max-height: 90vh; overflow: auto; }
.admin-events-weekday-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.admin-events-weekday-pick button {
  min-width: 2.75rem;
  padding: 8px 10px;
}
.admin-events-weekday-pick button.active {
  border-color: var(--gold);
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--gold-light);
}
.admin-events-bulk-list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  margin: 8px 0;
}
.admin-events-bulk-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.admin-events-bulk-row:last-child { border-bottom: none; }
.admin-events-bulk-preview { font-weight: 600; margin: 8px 0; min-height: 1.25rem; }

.admin-events-actions { flex-wrap: wrap; gap: 8px; }
.admin-events-actions #evDeleteFutureBtn {
  color: var(--danger-fg);
  border-color: rgba(240, 168, 168, 0.35);
}
.admin-events-cur-media { margin: 8px 0; }
.admin-events-pin-note { margin: -4px 0 10px; font-size: 0.78rem; }
@media (max-width: 560px) {
  .admin-events-row2 { grid-template-columns: 1fr; }
  .admin-events-repeat-grid { grid-template-columns: 1fr; }
  .admin-events-cal-wrap .fc-daygrid-day-frame { min-height: 64px; }
}

/* Customer events — pinned featured bar */
.events-pinned-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), var(--surface));
  transition: border-color 0.2s, background 0.2s;
}
.events-pinned-bar:hover,
.events-pinned-bar:focus-visible {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), var(--surface));
  outline: none;
}
.events-pinned-badge {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
}
.events-pinned-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--media-bg);
}
.events-pinned-thumb-ph {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-light);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid var(--border-strong);
}
.events-pinned-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.events-pinned-title {
  font-size: 0.92rem;
  line-height: 1.25;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.events-pinned-meta,
.events-pinned-hint {
  font-size: 0.75rem;
  line-height: 1.3;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.events-pinned-chevron {
  flex: 0 0 auto;
  color: var(--gold-light);
  opacity: 0.85;
  font-size: 0.85rem;
}
.events-carousel-empty {
  margin-top: 8px;
  padding: 20px 16px;
}
@media (max-width: 480px) {
  .events-pinned-badge { display: none; }
  .events-pinned-thumb,
  .events-pinned-thumb-ph { width: 64px; height: 44px; }
}

/* Customer events carousel */
.events-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}
.events-hero-wrap {
  position: relative;
}
.events-hero {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  background: var(--media-bg);
}
.events-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.events-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.events-hero-media {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  background: var(--media-bg);
}
.events-hero-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.events-hero-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
  text-align: left;
}
.events-hero-zoom .events-hero-media { pointer-events: none; }
.events-hero-zoom-hint,
.events-hero-expand {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: var(--on-media-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.events-hero-zoom-hint { pointer-events: none; }
.events-hero-expand:hover,
.events-hero-zoom:hover .events-hero-zoom-hint {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: var(--gold);
}
.ev-lightbox-video {
  width: 100%;
  max-height: min(72vh, 720px);
  display: block;
  background: #000;
}
.ev-lightbox-video.hidden,
#evLightboxImg.hidden { display: none !important; }
.events-detail-foot {
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.events-detail-foot .feed-share { margin-left: auto; }
.events-detail-foot .heart + .feed-share { margin-left: 8px; }
.events-detail-foot .feed-share + .events-ticket { margin-left: auto; }
.events-detail-foot .heart:last-child + .events-ticket,
.events-detail-foot .heart:only-child + .events-ticket { margin-left: auto; }
.events-hero-ph {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    linear-gradient(165deg, var(--surface-3), var(--surface));
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.events-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
}
.events-hero-cap h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 4px 0 6px;
  color: var(--on-media);
}
.events-hero-meta {
  font-size: 0.78rem;
  color: var(--on-media-muted);
}
.events-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: var(--on-media-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.events-arrow-prev { left: 10px; }
.events-arrow-next { right: 10px; }
.events-thumb-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.events-thumb-scroll {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(var(--ink-rgb), 0.03);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.events-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.events-thumbs::-webkit-scrollbar { display: none; }
.events-thumb {
  flex: 0 0 92px;
  width: 92px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  scroll-snap-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.events-thumb.is-active {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.events-thumb-media {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
  background: var(--media-bg);
}
.events-thumb-ph {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
}
.events-thumb-play {
  position: absolute;
  inset: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.events-thumb-date {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 4px 4px 6px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.55);
}
.events-detail {
  margin-top: 2px;
}
.events-detail-head h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-top: 4px;
}
.events-detail-body {
  margin: 10px 0;
  line-height: 1.55;
  color: var(--text-soft);
}
.events-detail-loc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
@media (min-width: 720px) {
  .events-hero { min-height: 420px; }
  .events-hero-media, .events-hero-ph { min-height: 420px; }
  .events-thumb { flex-basis: 108px; width: 108px; }
  .events-thumb-media, .events-thumb-ph { height: 84px; }
}

.qr-print-actions { flex-wrap: wrap; gap: 8px; }
.qr-campaign-card .form-actions { margin-top: 12px; }

.nav-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-accent);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.global-nav-btn { position: relative; }

.announce-banner {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.announce-banner-item {
  position: relative;
  padding: 18px 18px 16px 22px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border-accent);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.08) 0%, var(--surface) 55%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.announce-banner-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.announce-banner-glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.announce-banner-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.announce-banner-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: var(--accent);
  font-size: 1rem;
}
.announce-banner-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}
.announce-banner-head-text {
  min-width: 0;
  flex: 1;
}
.announce-banner-tag {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 2px;
}
.announce-banner-venue {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
}
.announce-banner-body {
  position: relative;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}
.announce-banner-meta {
  position: relative;
  margin: 12px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.chip-info { margin-left: auto; }

.directions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), var(--surface));
}
.directions-bar-compact {
  margin-bottom: 12px;
}
.directions-bar-compact .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.72rem;
}
.directions-bar:not(.directions-bar-compact) {
  flex-direction: column;
}
.directions-bar:not(.directions-bar-compact) .btn {
  width: 100%;
}
.venue-follow-card-wide { flex-direction: column; align-items: stretch; gap: 12px; }
.venue-follow-card-wide > .row { width: 100%; }

.venue-profile-page {
  padding-bottom: 24px;
  overflow-x: hidden;
}
.venue-profile-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 12px 0 16px;
}
.venue-profile-head > div {
  flex: 1;
  min-width: 0;
}
.venue-profile-head h2 {
  margin: 0 0 6px;
  word-break: break-word;
}
.venue-profile-head .lede {
  margin: 0;
  word-break: break-word;
}
.venue-logo-lg { width: 64px; height: 64px; flex-shrink: 0; }
.venue-profile-card {
  overflow: hidden;
}
.venue-profile-row {
  display: grid;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
  gap: 6px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.06);
  align-items: start;
}
.venue-profile-row:last-child { border-bottom: 0; }
.venue-profile-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  padding-top: 2px;
}
.venue-profile-value {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.venue-profile-link {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.venue-profile-link:hover {
  color: var(--gold-light);
}
.venue-policies-body { line-height: 1.6; color: var(--text-soft); white-space: pre-wrap; word-break: break-word; }

@media (max-width: 420px) {
  .venue-profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
}
.events-rsvp {
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.events-rsvp-counts { font-size: 0.78rem; width: 100%; }

.refer-input {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--field-bg);
  color: var(--text);
  font-size: 0.82rem;
}

/* ── Partner integrations (VIP admin + staff portal + BTP mirror) ── */
.mcv-partner-int {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mcv-partner-int-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 20px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(56, 189, 248, 0.06) 100%);
  box-shadow: var(--shadow-soft, 0 4px 24px rgba(0, 0, 0, 0.25));
}
.mcv-partner-int-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.mcv-partner-int-hero h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.mcv-partner-int-lede {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 52rem;
}
.mcv-partner-int-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mcv-partner-int-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.mcv-partner-int-chip strong { color: var(--gold); font-weight: 700; }
.mcv-partner-int-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mcv-partner-int-panel {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel, rgba(18, 18, 22, 0.92));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mcv-partner-int-panel h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  padding-left: 36px;
}
.mcv-partner-int-step {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-accent);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mcv-partner-int-panel .muted,
.mcv-partner-int-panel .mcv-partner-int-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 36px;
}
.mcv-partner-int-panel label:not(.check) {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.mcv-partner-int-panel input,
.mcv-partner-int-panel select,
.mcv-partner-int-panel textarea {
  width: 100%;
  margin-top: 4px;
}
.mcv-partner-int-panel .form-actions {
  margin-top: 12px;
  padding-left: 0;
}
.mcv-partner-int-code-wrap {
  margin-top: 10px;
  display: none;
}
.mcv-partner-int-code-wrap.is-visible { display: block; }
.mcv-partner-int-code-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mcv-partner-int-code-row textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  min-height: 72px;
  resize: vertical;
}
.mcv-partner-int-section {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel, rgba(18, 18, 22, 0.92));
}
.mcv-partner-int-section > h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
.mcv-partner-int-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 0.86rem;
}
.mcv-partner-int-empty i {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 10px;
  opacity: 0.45;
  color: var(--gold);
}
.mcv-partner-int-conn {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  margin-bottom: 12px;
}
.mcv-partner-int-conn:last-child { margin-bottom: 0; }
.mcv-partner-int-conn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.mcv-partner-int-conn-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.mcv-partner-int-conn-title span {
  font-weight: 500;
  color: var(--muted);
}
.mcv-partner-int-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.mcv-partner-int-status--active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.mcv-partner-int-status--pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.mcv-partner-int-status--disabled {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.mcv-partner-int-conn-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.mcv-partner-int-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 14px;
}
.mcv-partner-int-toggle-grid .check {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  align-items: flex-start;
  gap: 10px;
}
.mcv-partner-int-toggle-grid .check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex-shrink: 0;
}
.mcv-partner-int-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mcv-partner-int-actions .btn { min-height: 40px; }
.mcv-partner-int-email-preview {
  margin-top: 12px;
  max-height: 180px;
  overflow: auto;
  font-size: 0.72rem;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 768px) {
  .mcv-partner-int-steps { grid-template-columns: 1fr; }
  .mcv-partner-int-toggle-grid { grid-template-columns: 1fr; }
  .mcv-partner-int-hero { flex-direction: column; padding: 16px; }
  .mcv-partner-int-actions .btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
  .mcv-partner-int-actions .btn-danger { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .mcv-partner-int-actions .btn { flex: 1 1 100%; }
}

.mcv-int-plugins-head { margin-bottom: 14px; }
.mcv-int-plugins-head h3 { margin: 0 0 6px; font-size: 1rem; color: var(--fg); }
.mcv-int-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.mcv-int-plugin-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mcv-int-plugin-card.is-active {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}
.mcv-int-plugin-card.is-locked { opacity: 0.72; }
.mcv-int-plugin-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.12); color: var(--gold); font-size: 1.15rem; margin-bottom: 10px;
}
.mcv-int-plugin-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.mcv-int-plugin-head h4 { margin: 0; font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.mcv-int-plugin-badge {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(148, 163, 184, 0.15); color: var(--muted); border: 1px solid var(--line);
}
.mcv-int-plugin-card.is-active .mcv-int-plugin-badge {
  background: rgba(34, 197, 94, 0.15); color: var(--success); border-color: rgba(34, 197, 94, 0.35);
}
.mcv-int-plugin-desc { margin: 0 0 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.45; flex: 1; }
.mcv-int-plugin-meta { margin: 0 0 12px; font-size: 0.72rem; color: var(--muted); opacity: 0.85; }
.mcv-int-plugin-settings {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mcv-int-plugin-settings .check { margin: 0; font-size: 0.78rem; }
.mcv-int-plugin-footer {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px;
}
.mcv-int-plugin-footer .btn { min-height: 36px; }
.mcv-int-sync-help {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.mcv-partner-int-conn-bar {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.mcv-partner-int-conn-bar-main { flex: 1 1 220px; min-width: 0; }
.mcv-partner-int-conn-identity {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px;
}
.mcv-partner-int-conn-side { flex: 1 1 140px; min-width: 0; }
.mcv-partner-int-conn-side-label {
  display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px;
}
.mcv-partner-int-conn-side-name { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text); word-break: break-word; }
.mcv-partner-int-conn-serial { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; font-family: ui-monospace, monospace; }
.mcv-partner-int-conn-arrow { color: var(--gold); opacity: 0.85; flex-shrink: 0; }
.mcv-partner-int-conn-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0;
}
.mcv-partner-int-sync-status {
  margin: 6px 0 0; font-size: 0.78rem; line-height: 1.4; color: var(--gold); min-height: 1.2em;
}
@media (max-width: 480px) {
  .mcv-int-plugin-grid { grid-template-columns: 1fr; }
}

.mcv-partner-eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.mcv-partner-eco-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-sunken);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mcv-partner-eco-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--eco-accent, var(--gold)) 18%, transparent);
  color: var(--eco-accent, var(--gold));
  font-size: 1.1rem;
}
.mcv-partner-eco-card h4 { margin: 0; font-size: 0.95rem; color: var(--text); }
.mcv-partner-eco-tag { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.mcv-partner-eco-desc { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; flex: 1; }
.mcv-partner-eco-highlights {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.mcv-partner-eco-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--eco-accent, var(--gold));
  text-decoration: none;
}
.mcv-partner-eco-link:hover { text-decoration: underline; }

/* Guest club portal (/club/slug) */
body.club-portal .global-nav { display: none; }
body.club-portal.has-global-nav { padding-bottom: 24px; }

.club-portal.page-pad {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.club-hero {
  margin-bottom: 18px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.club-hero-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.club-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--line-gold, rgba(var(--accent-rgb), 0.35));
  flex-shrink: 0;
}

.club-hero-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.club-hero-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.club-hero-meta { font-size: 0.78rem; line-height: 1.4; }

.club-hero[style*="background-image"] .club-hero-title { color: var(--on-media); }
.club-hero[style*="background-image"] .club-hero-bio,
.club-hero[style*="background-image"] .club-hero-meta { color: var(--on-media-muted); }

.club-feed-heading {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.club-feed-section { position: relative; }

.club-feed-gate {
  position: relative;
  margin-top: -120px;
  height: 140px;
  pointer-events: none;
  z-index: 2;
}

.club-feed-gate.hidden { display: none; }

.club-feed-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--surface-glass) 75%, var(--bg, #0a0a0a) 100%);
}

.club-feed-ghosts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 0 4px;
  filter: blur(6px);
  opacity: 0.35;
}

.club-ghost-card {
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--ink-rgb), 0.06);
}

.club-unlock {
  text-align: center;
  margin-top: 8px;
  padding: 24px 20px;
}

.club-unlock.hidden { display: none; }

.club-unlock-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--gold);
  font-size: 1.1rem;
}

.club-powered {
  text-align: center;
  font-size: 0.72rem;
  margin-top: 20px;
}

.find-action-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.find-portal-btn { white-space: nowrap; }

.guest-feed-card .feed-foot { display: none; }

.chip-favorites.on i { color: var(--heart); }

.mix-card { border-color: var(--border); }
.mix-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mix-card-img { max-height: 320px; object-fit: cover; }
.mix-event-title { font-size: 1.05rem; padding: 0 14px 6px; }
.mix-event-when { padding: 0 14px 8px; font-size: 0.82rem; }
.mix-event-soon { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35); }

.weekly-carousel { margin-bottom: 14px; padding: 16px; }
.weekly-head h2 { font-size: 0.95rem; margin-bottom: 4px; }
.weekly-stat { font-size: 0.72rem; margin-bottom: 10px; }
.weekly-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.weekly-slide {
  flex: 0 0 78%;
  max-width: 280px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--media-bg);
}
.weekly-slide img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.weekly-slide-cap { padding: 10px 12px; font-size: 0.78rem; line-height: 1.35; }
.weekly-slide-cap strong { display: block; margin-bottom: 4px; }

.story-rail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 2px 0 4px;
  width: max-content;
}
.feed-stories-inline .story-avatar-ring {
  width: 50px;
  height: 50px;
}
.story-bubble {
  flex: 0 0 auto;
  width: 68px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.story-avatar-ring {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 7px;
  padding: 2px;
  border-radius: 50%;
  box-sizing: border-box;
}
.story-avatar-ring.is-new {
  background: linear-gradient(145deg, #e8d9a8, #9e6e3d 55%, #dcc88d);
}
.story-avatar-ring.is-seen {
  background: rgba(var(--ink-rgb), 0.14);
}
.story-avatar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid var(--bg-app);
  box-sizing: border-box;
}
.story-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-avatar-fallback {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  font-family: var(--font-serif, Georgia, serif);
}
.story-bubble-name {
  font-size: 0.65rem;
  line-height: 1.25;
  display: block;
  max-width: 68px;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 500;
}
.story-bubble:active .story-avatar-inner { opacity: 0.92; }

.mix-gallery-compact {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  background: var(--surface);
}
.mix-gallery-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.mix-gallery-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--ink-rgb), 0.05);
  color: var(--muted);
}
.mix-gallery-copy { min-width: 0; flex: 1; }
.mix-gallery-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.mix-gallery-title { font-size: 0.88rem; line-height: 1.35; margin-bottom: 4px; }
.mix-gallery-sub { font-size: 0.78rem; line-height: 1.35; margin-bottom: 6px; }
.mix-gallery-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  color: var(--on-media);
  display: flex;
  flex-direction: column;
}
.story-viewer .muted { color: var(--on-media-muted); }
.story-viewer.hidden { display: none; }
.story-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(0,0,0,.5);
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.story-progress {
  display: flex;
  gap: 4px;
  padding: 12px 12px 0;
  position: relative;
  z-index: 3;
}
.story-prog-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
}
.story-prog-seg.done { background: var(--on-media-accent); }
.story-prog-seg.active { background: rgba(255, 255, 255, 0.35); }
.story-prog-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--on-media-accent);
  border-radius: 2px;
}
@keyframes storyProgress {
  from { width: 0; }
  to { width: 100%; }
}
.story-viewer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.story-viewer-body .story-viewer-head,
.story-viewer-body .story-caption { pointer-events: none; }
.story-viewer-head { margin-bottom: 12px; }
.story-viewer-head-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.story-viewer-time {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
.story-viewer-venue { font-size: 0.78rem; display: block; margin-top: 2px; }
.story-nav-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  bottom: 0;
  z-index: 6;
  cursor: pointer;
  touch-action: manipulation;
}
.story-img-slide {
  max-width: 100%;
  max-height: min(88dvh, calc(100dvh - 120px));
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.story-text-slide {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  padding: 24px;
}
.story-caption { text-align: center; margin-top: 12px; color: var(--on-media-muted); }
.story-tap {
  flex: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-tap-prev { flex: 0 0 32%; max-width: none; }
.story-tap-next { flex: 1; max-width: none; margin-left: 0; }

.feed-gallery-pill {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.feed-gallery-highlight .feed-gallery-open {
  margin-left: auto;
  font-size: 0.82rem;
}

.gal-view-toggle { display: flex; gap: 8px; margin-top: 12px; }
.gal-stack-wrap { padding: 8px 0 24px; }
.gal-stack-card {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card, var(--surface));
  touch-action: pan-y;
}
.gal-stack-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.gal-stack-meta { padding: 10px 14px; font-size: 0.82rem; }
.gal-stack-actions { padding: 0 14px 14px; justify-content: space-between; }
.gal-stack-hint { text-align: center; font-size: 0.72rem; margin-top: 10px; }
