:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-hover: #1a1a1a;
  --color-surface-alt: #1e1e1e;
  --color-accent: #c41e3a;
  --color-accent-hover: #d4253f;
  --color-accent-muted: rgba(196, 30, 58, 0.15);
  --color-success: #4bad33;
  --color-success-muted: rgba(75, 173, 51, 0.15);
  --color-warning: #f59e0b;
  --color-warning-muted: rgba(245, 158, 11, 0.15);
  --color-error: #ef4444;
  --color-error-muted: rgba(239, 68, 68, 0.15);
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.4);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 100px;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── LAYOUT ─── */
.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-container--narrow {
  max-width: 480px;
}

.page-container--wide {
  max-width: 1120px;
}

/* ─── HEADER / NAV ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.site-logo svg { width: 28px; height: 32px; }

.site-logo-text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.site-logo-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn--primary {
  background: var(--color-accent);
  color: white;
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: scale(1.02);
}

.btn--primary:active:not(:disabled) {
  background: #b01a33;
  transform: scale(0.98);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--color-surface);
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 10px 16px;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--color-text);
  background: var(--color-surface);
}

.btn--large {
  min-height: 48px;
  padding: 14px 32px;
  font-size: 16px;
}

.btn--full { width: 100%; }

.btn--icon {
  padding: 10px;
  min-height: 40px;
  min-width: 40px;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ─── FORMS ─── */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 4px;
}

/* ─── CARDS ─── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.card--clickable {
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.card--clickable:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge--pending {
  background: var(--color-warning-muted);
  color: var(--color-warning);
}

.badge--approved {
  background: var(--color-success-muted);
  color: var(--color-success);
}

.badge--rejected {
  background: var(--color-error-muted);
  color: var(--color-error);
}

/* ─── ALERTS ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.alert--error {
  background: var(--color-error-muted);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert--success {
  background: var(--color-success-muted);
  color: #86efac;
  border: 1px solid rgba(75, 173, 51, 0.2);
}

.alert--info {
  background: rgba(59, 130, 246, 0.1);
  color: rgba(147, 197, 253, 1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert.visible { display: block; }

/* ─── TABS ─── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  overflow-x: auto;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.tab:hover { color: var(--color-text-secondary); }

.tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── LOADING ─── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--color-text-muted);
  font-size: 14px;
  gap: 12px;
}

/* ─── SECTION HEADINGS ─── */
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.section-subtitle a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.section-subtitle a:hover {
  text-decoration: underline;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  fill: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

/* ─── STAT CARDS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ─── VENUE LIST ITEMS ─── */
.venue-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}

.venue-list-item:hover {
  background: var(--color-surface-hover);
}

.venue-list-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  overflow: hidden;
  flex-shrink: 0;
}

.venue-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-list-info {
  flex: 1;
  min-width: 0;
}

.venue-list-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-list-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── SEARCH ─── */
.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--color-text-muted);
  pointer-events: none;
}

.search-box .form-input {
  padding-left: 42px;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-md) 0;
}

/* ─── FOOTER ─── */
.site-footer {
  text-align: center;
  padding: var(--space-lg) 20px;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--color-text-secondary); }

/* ─── UTILITY ─── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.gap-sm { gap: var(--space-sm); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .section-title { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .site-logo-badge { display: none; }
}

/* ─── V4 ONBOARDING: CHOICE CARDS ─── */
.choice-grid {
  display: grid;
  gap: var(--space-sm);
}
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
  .choice-grid--3,
  .choice-grid--2 { grid-template-columns: 1fr; }
}

.choice-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
  text-align: left;
  position: relative;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.choice-card:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.choice-card:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted), 0 12px 32px rgba(0, 0, 0, 0.3);
}
.choice-card:active {
  transform: translateY(0) scale(0.988);
}
.choice-card.selected {
  border-color: rgba(196, 30, 58, 0.85);
  background: linear-gradient(
    155deg,
    var(--color-accent-muted) 0%,
    rgba(196, 30, 58, 0.07) 55%,
    var(--color-surface-hover) 100%
  );
  box-shadow:
    0 0 0 1px rgba(196, 30, 58, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.42);
}
.choice-card.selected:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.choice-card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.choice-card:hover .choice-card-icon-wrap {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}
.choice-card.selected .choice-card-icon-wrap {
  background: rgba(196, 30, 58, 0.22);
  color: var(--color-accent-hover);
}
.choice-card svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.choice-card-icon {
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.choice-card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-right: 28px;
}
.choice-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.choice-card-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}
.choice-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  display: none;
  align-items: center;
  justify-content: center;
}
.choice-card-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.choice-card.selected .choice-card-check { display: flex; }

@media (prefers-reduced-motion: reduce) {
  .choice-card,
  .choice-card-icon-wrap {
    transition: none;
  }
  .choice-card:hover,
  .choice-card:active,
  .choice-card.selected:hover {
    transform: none;
  }
}

/* ─── V4 ONBOARDING: OTP INPUT ─── */
.otp-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: var(--space-md) 0;
}
.otp-digit {
  width: 48px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--color-accent);
}
.otp-digit:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
  outline: none;
}
.otp-timer {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}
.otp-timer .timer-value { color: var(--color-warning); font-weight: 600; }

/* ─── V4 ONBOARDING: MEDIA GRID ─── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: var(--space-sm);
}
@media (max-width: 480px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

.media-slot {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--color-surface-alt);
  border: 1.5px dashed var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s;
}
.media-slot:hover { border-color: var(--color-border-hover); }
.media-slot.filled { border-style: solid; border-color: var(--color-border); }
.media-slot.hero { border-color: var(--color-accent); border-style: solid; }
.media-slot.dragging { opacity: 0.4; }
.media-slot.drag-over { border-color: var(--color-accent); border-style: dashed; transform: scale(1.02); transition: transform 0.12s; }
.media-slot img,
.media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 12px;
}
.media-slot-placeholder svg {
  width: 28px;
  height: 28px;
  fill: var(--color-text-muted);
  opacity: 0.6;
}
.media-slot-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.media-slot-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.65);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.15s;
}
.media-slot-btn:hover { background: rgba(0,0,0,0.85); }
.media-slot-btn svg { width: 14px; height: 14px; fill: currentColor; }
.media-hero-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ─── V4 ONBOARDING: HOURS SCHEDULE GRID ─── */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-sm);
}
.hours-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 44px;
  gap: 8px;
  align-items: center;
}
@media (max-width: 440px) {
  .hours-row { grid-template-columns: 80px 1fr 1fr 36px; gap: 6px; }
}
.hours-row-day {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.hours-row input[type="time"],
.hours-row .form-select {
  padding: 8px 10px;
  font-size: 13px;
}
.hours-row .closed-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
}

/* ─── V4 ENRICHMENT: PROGRESS BAR ─── */
.progress-bar-wrap {
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.progress-bar-fill--success { background: var(--color-success); }

/* ─── V4 ENRICHMENT: HUB CARDS ─── */
.enrichment-hub-grid {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}
.enrichment-section-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}
.enrichment-section-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}
.enrichment-section-card.complete { border-color: rgba(75,173,51,0.3); }
.enrichment-section-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.enrichment-section-body { flex: 1; min-width: 0; }
.enrichment-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.enrichment-section-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.enrichment-section-unlocks {
  font-size: 12px;
  color: var(--color-success);
}
.enrichment-section-arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  align-self: center;
}

/* ─── V4: PUBLISHED CELEBRATION ─── */
.celebration-screen {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}
.celebration-emoji {
  font-size: 64px;
  margin-bottom: var(--space-sm);
  animation: bounce-in 0.5s cubic-bezier(0.17,0.89,0.32,1.49) both;
}
@keyframes bounce-in {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.celebration-screen h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}
.celebration-screen p {
  color: var(--color-text-secondary);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto var(--space-md);
  line-height: 1.55;
}
.celebration-venue-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  text-align: left;
}
.celebration-venue-name { font-weight: 600; font-size: 16px; }
.celebration-venue-meta { font-size: 13px; color: var(--color-text-muted); }
.celebration-ctas {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── V4: PILL TAG SELECTOR ─── */
.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  /* Explicit colour: native `<button>` text does not reliably inherit body */
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  -webkit-user-select: none;
}
.pill-tag:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-hover);
  color: var(--color-text);
}
.pill-tag.selected {
  background: var(--color-accent-muted);
  border-color: rgba(196,30,58,0.4);
  color: var(--color-text);
}

/* ─── V4: GOOGLE PLACES SUGGESTIONS DROPDOWN ─── */
.places-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.places-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.places-suggestion-item:last-child { border-bottom: none; }
.places-suggestion-item:hover { background: var(--color-surface-hover); }
.places-suggestion-main { font-weight: 500; }
.places-suggestion-secondary { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

/* ─── V4: TIP BOX ─── */
.tip-box {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-md);
  padding: 12px var(--space-sm);
  font-size: 13px;
  color: rgba(147,197,253,1);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}
.tip-box strong { color: white; }

/* ─── V4: DATA REVIEW ROW (Screen 7 Google data) ─── */
.data-review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.data-review-row:last-child { border-bottom: none; }
.data-review-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 90px;
  flex-shrink: 0;
}
.data-review-value {
  font-size: 14px;
  color: var(--color-text);
  flex: 1;
  line-height: 1.45;
}
.data-review-edit {
  font-size: 12px;
  color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

/* ─── V4: COMPLETENESS RING ─── */
.completeness-ring-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}
.completeness-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.completeness-ring svg { transform: rotate(-90deg); }
.completeness-ring-bg { stroke: var(--color-surface-alt); }
.completeness-ring-fill {
  stroke: var(--color-accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.completeness-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.completeness-ring-body { flex: 1; }
.completeness-ring-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.completeness-ring-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ─── V4: OFFER CARDS ─── */
.offer-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-sm); }
.offer-card {
  padding: var(--space-sm);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
}
.offer-card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.offer-card-meta { font-size: 12px; color: var(--color-text-muted); }
.offer-card-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
}
.offer-card-remove:hover { color: var(--color-error); }

/* ─── V4: PORTFOLIO VENUE ROW ─── */
.portfolio-venue-row {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.portfolio-venue-row:last-child { border-bottom: none; }

/* ─── V4: ALERT WARNING ─── */
.alert--warning {
  background: var(--color-warning-muted);
  color: #fde68a;
  border: 1px solid rgba(245,158,11,0.25);
}
.alert--warning.visible { display: block; }

/* ─── Phase 0b: Re-curation deadline banner ─── */
.recuration-banner {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text);
  line-height: 1.5;
}
.recuration-banner[data-tier="warning"] {
  background: var(--color-warning-muted);
  border-color: rgba(245, 158, 11, 0.25);
}
.recuration-banner[data-tier="urgent"],
.recuration-banner[data-tier="critical"] {
  background: var(--color-accent-muted);
  border-color: rgba(196, 30, 58, 0.35);
}
.recuration-banner[data-tier="critical"] {
  animation: recurationPulse 2.4s ease-in-out infinite;
}
@keyframes recurationPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.18); }
}
.recuration-banner__row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.recuration-banner__icon {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
}
.recuration-banner__copy {
  flex: 1 1 280px;
  min-width: 0;
}
.recuration-banner__countdown {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--color-text);
}
.recuration-banner__progress {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.recuration-banner__progress strong {
  color: var(--color-text);
  font-weight: 600;
}
.recuration-banner__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.recuration-banner__ctas .btn {
  min-height: 40px;
  white-space: nowrap;
}
.recuration-banner__error {
  margin-top: var(--space-xs);
  font-size: 13px;
  color: var(--color-error);
}
.recuration-banner--success {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-success-muted);
  border-color: rgba(75, 173, 51, 0.25);
}
.recuration-banner__success {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}
.recuration-banner__post-sunset {
  font-size: 14px;
  color: var(--color-text-secondary);
}

@media (max-width: 600px) {
  .recuration-banner__row { gap: var(--space-sm); }
  .recuration-banner__ctas { width: 100%; }
  .recuration-banner__ctas .btn { flex: 1; min-width: 0; }
}

/* ─── Phase 0b PR-3: per-field source pill ─── */
.recuration-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--space-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
}
.recuration-pill--gmaps {
  background: var(--color-warning-muted);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.recuration-pill--gmaps:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(245, 158, 11, 0.55);
}
.recuration-pill--gmaps:disabled {
  opacity: 0.6;
  cursor: progress;
}
.recuration-pill--owner {
  background: var(--color-success-muted);
  color: #a7f0a0;
  border: 1px solid rgba(75, 173, 51, 0.35);
}
/* Intel-layer-v1 (DD9): LLM-suggested state badge. NOT a tap target — the
   row is. Cherry-tinted so principle 11 (make the learning visible) reads. */
.recuration-pill--llm {
  background: rgba(196, 30, 58, 0.06);
  color: rgba(196, 30, 58, 0.9);
  border: 1px solid rgba(196, 30, 58, 0.35);
}
/* The label can wrap with the pill on narrow screens */
.form-label .recuration-pill { margin-left: 8px; }
