@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ════════════════════════════════════════
   Aurora Studio — design tokens
   Sunrise palette · soft AI / generative calm
════════════════════════════════════════ */
:root {
  /* Foundations */
  --bg-base:        #FFF8F1;
  --ink:            #1A1530;
  --ink-muted:      #6B6580;
  --ink-faint:      #ABA5C0;

  /* Surfaces */
  --surface:        rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-solid:  #FFFFFF;
  --border-soft:    rgba(26, 21, 48, 0.08);
  --border-mid:     rgba(26, 21, 48, 0.14);
  --border-focus:   rgba(255, 155, 122, 0.55);

  /* Aurora accents */
  --accent-peach:      #FFC9A8;
  --accent-lavender:   #C9B8FF;
  --accent-mint:       #A8E6CF;
  --accent-coral:      #FF9B7A;
  --accent-coral-deep: #F07A55;

  /* Aurora gradients (consumed by .wizard-chat) */
  --gradient-aurora-a: radial-gradient(60% 50% at 20% 10%, var(--accent-peach) 0%, transparent 60%);
  --gradient-aurora-b: radial-gradient(70% 60% at 80% 90%, var(--accent-lavender) 0%, transparent 65%);
  --gradient-aurora-c: radial-gradient(55% 45% at 95% 50%, var(--accent-mint) 0%, transparent 55%);

  /* Canvas ambient (much subtler — frames the work, doesn't compete) */
  --gradient-canvas-blob: radial-gradient(40% 30% at 0% 0%, rgba(255, 201, 168, 0.30) 0%, transparent 70%);

  /* Geometry */
  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  /* Shadows — coral-tinted, never neutral */
  --shadow-sm: 0 2px 12px rgba(255, 155, 122, 0.08);
  --shadow-md: 0 8px 32px rgba(255, 155, 122, 0.12), 0 2px 8px rgba(26, 21, 48, 0.04);
  --shadow-lg: 0 24px 64px rgba(255, 155, 122, 0.18), 0 8px 24px rgba(26, 21, 48, 0.06);

  /* Fonts */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-ui:      'Geist', 'Inter', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Backward-compat aliases — referenced by ads.css and assorted views */
  --bg:           var(--bg-base);
  --surface-legacy: var(--surface-solid);
  --border:       var(--border-mid);
  --text:         var(--ink);
  --text-muted:   var(--ink-muted);
  --text-faint:   var(--ink-faint);
  --accent:       var(--accent-coral);
  --accent-hover: var(--accent-coral-deep);
  --danger:       #dc2626;
  --warn:         #d97706;
  --radius:       var(--radius-sm);
}

/* ── Body ─────────────────────────────────── */
body {
  font-family: var(--font-ui);
  background: var(--bg-base);
  color: var(--ink);
  padding-bottom: 80px;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inherit the Aurora typeface everywhere by default. Class-styled
   surfaces still win because their selectors carry higher specificity. */
input,
textarea,
select,
button {
  font-family: var(--font-ui);
  color: var(--ink);
}

/* ════════════════════════════════════════
   Aurora baseline — bare form elements
   Anything inside the app that doesn't have an explicit class picks up
   this look. Class-styled inputs (.field-input, .lp-*, .btn-*) keep
   their own treatment because class selectors beat element selectors.
   The public landing-page layout doesn't load this stylesheet, so its
   look is untouched.
════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

textarea {
  resize: vertical;
  line-height: 1.55;
  min-height: 88px;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
textarea:hover,
select:hover {
  border-color: var(--border-mid);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 155, 122, 0.5);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px var(--border-focus);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-faint);
  font-style: italic;
  opacity: 1;
}

/* Native dropdown — keep a clean caret */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6580' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Checkbox + radio — let them inherit Aurora coral */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent-coral);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* File input — keep native pickers but theme the button */
input[type="file"] {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-muted);
}
input[type="file"]::file-selector-button {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  margin-right: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
input[type="file"]::file-selector-button:hover {
  background: rgba(255, 201, 168, 0.16);
  color: var(--accent-coral-deep);
  border-color: var(--accent-coral);
}

/* Native range slider — coral track */
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  width: 100%;
  height: 24px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  background: #fff;
  border: 2px solid var(--accent-coral);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid var(--accent-coral);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

/* Bare buttons — only when no class styling. The :not selectors keep us
   from stomping on .wizard-btn-primary, .btn-aurora-primary, .btn-primary,
   etc. that already have their own gradient look. */
button:not([class]),
input[type="submit"]:not([class]),
input[type="button"]:not([class]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
}

button:not([class]):hover,
input[type="submit"]:not([class]):hover,
input[type="button"]:not([class]):hover {
  background: var(--surface-strong);
  border-color: var(--ink-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Disabled — universal */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.7);
}

/* Headings + body type — anything not inside a step layout still
   reads as Aurora. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h4, h5, h6 {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

label {
  font-family: var(--font-ui);
  color: var(--ink-muted);
}

a {
  color: var(--accent-coral-deep);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-coral); }
/* Don't apply link styling to wrapped buttons / cards / nav items */
a.btn-primary,
a.btn-danger,
a.wizard-btn-primary,
a.wizard-btn-secondary,
a.wizard-nav,
a.add-btn,
a.lp-editor-tab,
a.lp-variant-tab,
a.item-card-edit,
a.item-edit-cancel,
a.lp-nav__link {
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 18px 0;
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink);
}

/* ════════════════════════════════════════
   Legacy palette → Aurora override layer
   Many older partials still carry inline style="background:#1c1917..."
   from the warm-black era. Rather than churn every view, remap the old
   palette here. As views are cleaned up, these rules become no-ops.
   The public landing-page layout doesn't load this stylesheet, so the
   public landing pages are unaffected.
════════════════════════════════════════ */

/* Old warm-black surface → coral gradient */
[style*="background:#1c1917"],
[style*="background: #1c1917"] {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(255, 155, 122, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}

/* Light text on dark — was #f5f4f0/#fff against the warm-black; keep white */
[style*="background:#1c1917"][style*="color:#f5f4f0"],
[style*="background: #1c1917"][style*="color: #f5f4f0"],
[style*="background:#1c1917"][style*="color:#ffffff"],
[style*="background: #1c1917"][style*="color: #ffffff"],
[style*="background:#1c1917"][style*="color:white"],
[style*="background: #1c1917"][style*="color: white"] {
  color: #fff !important;
}

/* Old text colors — remap to Aurora ink scale */
[style*="color:#1c1917"]:not([style*="background:#1c1917"]):not([style*="background: #1c1917"]),
[style*="color: #1c1917"]:not([style*="background:#1c1917"]):not([style*="background: #1c1917"]) {
  color: var(--ink) !important;
}

[style*="color:#78716c"], [style*="color: #78716c"] { color: var(--ink-muted) !important; }
[style*="color:#a8a29e"], [style*="color: #a8a29e"] { color: var(--ink-faint) !important; }

/* Old borders / subtle surfaces → soft Aurora border */
[style*="border:1px solid #e6e4de"],
[style*="border: 1px solid #e6e4de"] {
  border-color: var(--border-soft) !important;
}

/* Old hairline backgrounds */
[style*="background:#f5f4f0"], [style*="background: #f5f4f0"] {
  background: var(--bg-base) !important;
}
[style*="background:#fafaf9"], [style*="background: #fafaf9"] {
  background: var(--surface) !important;
}

/* Old radii (8px square pills) on legacy CTA links → keep them rounded */
[style*="border-radius:8px"][style*="background:#1c1917"],
[style*="border-radius: 8px"][style*="background: #1c1917"] {
  border-radius: var(--radius-pill) !important;
}

/* Old font references (Outfit) → Aurora body */
[style*="Outfit"] {
  font-family: var(--font-ui) !important;
}
[style*="Syne"] {
  font-family: var(--font-display) !important;
  font-style: italic;
  font-weight: 400 !important;
}

/* Bare submit buttons that escaped class styling — force coral pill */
input[type="submit"]:not([class*="btn"]):not([class*="lp-"]):not([class*="theme-"]),
button[type="submit"]:not([class*="btn"]):not([class*="lp-"]):not([class*="wizard-chat"]):not([class*="theme-"]) {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 155, 122, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
  transition: box-shadow 0.18s, transform 0.12s !important;
}

input[type="submit"]:not([class*="btn"]):not([class*="lp-"]):not([class*="theme-"]):hover,
button[type="submit"]:not([class*="btn"]):not([class*="lp-"]):not([class*="wizard-chat"]):not([class*="theme-"]):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(255, 155, 122, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Scrollbars — discreet warm-tinted */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}
*::-webkit-scrollbar       { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* Single peach blob drifting in the upper-left — frames, doesn't compete */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--gradient-canvas-blob);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: canvas-drift 24s ease-in-out infinite alternate;
}

body > * { position: relative; z-index: 1; }

@keyframes canvas-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(20px, 14px, 0); }
}

/* ════════════════════════════════════════
   Campaigns Index
════════════════════════════════════════ */
.campaigns-index {
  max-width: 860px;
  margin: 48px auto;
  padding: 0 28px;
}

.campaigns-index-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.campaigns-index-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.campaigns-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campaign-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: box-shadow 0.18s cubic-bezier(.2,.8,.2,1),
              border-color 0.18s,
              transform 0.18s;
}

.campaign-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-1px);
}

.campaign-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.campaign-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.campaign-step-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 201, 168, 0.18);
  color: var(--accent-coral-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 155, 122, 0.22);
}

.campaign-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Shared buttons ────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.12s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(220, 38, 38, 0.06);
  color: var(--danger);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 38, 38, 0.24);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-danger:hover { background: rgba(220, 38, 38, 0.1); }

/* ════════════════════════════════════════
   Wizard step track (header)
════════════════════════════════════════ */
.step-track {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-sizing: border-box;
  overflow: hidden;
}

.step-track__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 14px 24px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  /* Soft fade on the right edge to hint at scrollable overflow */
  mask-image: linear-gradient(to right, black 0, black calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0, black calc(100% - 32px), transparent 100%);
}

.step-track__nav::-webkit-scrollbar { display: none; }

.step-track__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  scroll-snap-align: center;
}

/* — Active step: coral gradient pill */
.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 22px rgba(255, 155, 122, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pill-rise 320ms cubic-bezier(.2,.8,.2,1) both;
  flex-shrink: 0;
}

.step-pill__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-coral-deep);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.step-pill__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* — Completed step: mint check disc */
.step-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-mint) 0%, #8FD8B8 100%);
  border-radius: 50%;
  color: #1A4A35;
  box-shadow: 0 4px 14px rgba(168, 230, 207, 0.4);
  transition: transform 0.18s;
}

.step-disc:hover { transform: scale(1.06); }

/* — Future step: ghost ring */
.step-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface-solid);
  border: 1.5px solid var(--border-soft);
  border-radius: 50%;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

/* — Connector line between steps: hairline gradient */
.step-connector {
  width: 18px;
  height: 1.5px;
  margin: 0 6px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--border-mid) 0%, var(--border-soft) 100%);
  flex-shrink: 0;
}

.step-connector--past {
  background: linear-gradient(90deg, var(--accent-mint) 0%, var(--accent-coral) 100%);
}

@keyframes pill-rise {
  0%   { opacity: 0; transform: translateY(4px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Notification bar (under the track) */
#campaign_notifications {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  box-sizing: border-box;
}

/* ── Inline notifications (below header) ── */
#notifications {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
}

#notifications:not(:empty) { margin: 12px 28px 0; }

#notifications::-webkit-scrollbar       { width: 4px; }
#notifications::-webkit-scrollbar-track { background: transparent; }
#notifications::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

[data-notif-item] [data-action="notif#dismiss"] {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
  flex-shrink: 0;
}

[data-notif-item] [data-action="notif#dismiss"]:hover {
  color: var(--ink-muted);
  background: var(--bg-base);
}

@keyframes notif-life {
  0%   { opacity: 0; transform: translateY(-6px); }
  8%   { opacity: 1; transform: translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

.notif {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(168, 230, 207, 0.18);
  border: 1px solid rgba(168, 230, 207, 0.45);
  border-radius: var(--radius-sm);
  animation: notif-life 4s ease forwards;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.notif__icon { color: #16a34a; flex-shrink: 0; }

.notif__message {
  flex: 1;
  font-size: 13px;
  color: #15803d;
  font-weight: 500;
}

.notif__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(22, 163, 74, 0.5);
  padding: 2px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 3px;
  transition: color 0.12s;
}
.notif__close:hover { color: #15803d; }

/* ════════════════════════════════════════
   Wizard footer
════════════════════════════════════════ */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 32px;
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-soft);
}

/* button_to wraps each in a <form>, breaking the natural left/right split.
   Push the two forms to opposite ends with auto margins. */
.wizard-footer > form:first-of-type { margin-right: auto; }
.wizard-footer > form:last-of-type  { margin-left: auto; }
.wizard-footer > button:last-of-type { margin-left: auto; }

a.wizard-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}

a.wizard-btn-secondary:hover { color: var(--ink); }

a.wizard-btn-primary,
button.wizard-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 155, 122, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: box-shadow 0.18s, transform 0.12s;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

a.wizard-btn-primary:hover,
button.wizard-btn-primary:hover {
  box-shadow: 0 10px 32px rgba(255, 155, 122, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

a.wizard-btn-primary:active,
button.wizard-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(255, 155, 122, 0.28);
}

.wizard-btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
  filter: saturate(0.6);
}

/* Full-width primary action — used inside step forms */
.wizard-btn-primary--block {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
}

/* ── Wizard nav circles (footer back/continue) ─────────────────────── */
.wizard-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.12s, background 0.18s, color 0.18s, border-color 0.18s;
  font-family: var(--font-ui);
  flex-shrink: 0;
}

.wizard-nav--back {
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wizard-nav--back:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
  background: var(--surface-strong);
  transform: translateX(-2px);
}

.wizard-nav--next {
  width: auto;
  min-height: 48px;
  padding: 0 22px 0 26px;
  gap: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(255, 155, 122, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.wizard-nav--next:hover {
  box-shadow: 0 10px 32px rgba(255, 155, 122, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateX(2px);
}

.wizard-nav__label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
}

.wizard-nav--next:active {
  transform: translateX(0);
  box-shadow: 0 3px 10px rgba(255, 155, 122, 0.28);
}

/* Forms generated by button_to wrap the button — keep them inline so the
   circle sits flush against its sibling. */
.wizard-footer form { display: inline-flex; }

/* ════════════════════════════════════════
   Shared step layout
════════════════════════════════════════ */
.step-layout {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 32px;
  animation: step-rise 320ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes step-rise {
  0%   { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

.step-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  border-radius: 2px;
}

.step-hint {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  line-height: 1.55;
}

.step-hint .step-warn {
  color: var(--accent-coral-deep);
  font-weight: 600;
}

/* ── Field ── */
.field { margin-bottom: 20px; }

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.field-label svg { color: var(--ink-faint); flex-shrink: 0; }

.field-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.field-input:hover { border-color: var(--border-mid); }

.field-input:focus {
  border-color: rgba(255, 155, 122, 0.5);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px var(--border-focus);
}

.field-input--textarea {
  resize: vertical;
  line-height: 1.55;
}

/* ── Section divider ── */
.step-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 26px;
  margin-top: 8px;
}

.step-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.step-section-title svg { color: var(--ink-faint); }

/* ── Add button ── */
.add-btn {
  padding: 10px 22px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.add-btn:hover {
  background: rgba(255, 201, 168, 0.12);
  border-color: var(--accent-coral);
  border-style: solid;
  color: var(--accent-coral-deep);
}

/* ════════════════════════════════════════
   Item / service / video / theme cards
════════════════════════════════════════ */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

/* Gradient stripe on the left edge */
.item-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
}

.item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-1px);
}

.item-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: 6px;
}

.item-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.item-card-desc {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.item-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: opacity 0.18s;
}

.item-card:hover .item-card-actions { opacity: 1; }

.item-card-edit {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}

.item-card-edit:hover {
  background: rgba(255, 201, 168, 0.16);
  color: var(--accent-coral-deep);
}

.item-card-delete form { display: inline; }

.item-card-delete button {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.item-card-delete button:hover {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.item-card--editing {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border-color: var(--accent-coral);
}

.item-card--editing::before {
  background: linear-gradient(180deg, var(--accent-coral) 0%, var(--accent-lavender) 100%);
  width: 3px;
}

.item-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-edit-save {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.12s;
}

.item-edit-save:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.item-edit-cancel {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 7px 10px;
  transition: color 0.12s;
}

.item-edit-cancel:hover { color: var(--ink); }

/* ════════════════════════════════════════
   Video cards
════════════════════════════════════════ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

/* The inner turbo-frame#videos_grid wraps every video card — without
   `display: contents` it would eat the row as a single grid child and
   stack the cards as plain blocks inside it. */
.videos-grid > turbo-frame {
  display: contents;
}

@media (max-width: 560px) {
  .videos-grid { grid-template-columns: 1fr; }
}

.video-card {
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-3px);
}

.video-card--editing { padding: 14px; }

.video-preview {
  position: relative;
  background: #18181b;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-player--small {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #52525b;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-card-body { padding: 12px 14px; }

.video-description {
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.video-description:empty::before {
  content: 'Untitled video';
  color: var(--ink-faint);
  font-style: italic;
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  margin-top: 2px;
}

/* Small "Preview" tag overlay on the thumbnail */
.video-preview__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  background: rgba(26, 21, 48, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

/* ── Upload drop zone ── */
.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.upload-zone {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.upload-zone__input { display: none; }

.upload-zone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 110px;
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.upload-zone__label:hover,
.upload-zone.is-dragging .upload-zone__label {
  border-color: var(--accent-coral);
  background: rgba(255, 201, 168, 0.10);
}

.upload-zone.is-dragging .upload-zone__label { border-style: solid; }

.upload-zone__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.upload-zone__hint svg { color: var(--ink-faint); }

.upload-zone__hint span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

.upload-zone__hint em {
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.upload-zone__preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone__preview img,
.upload-zone__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-zone__label.has-file {
  border-style: solid;
  border-color: var(--border-soft);
}

/* ── Error bar ── */
.step-errors {
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 22px;
}

/* ════════════════════════════════════════
   Landing Page Editor (wizard step)
════════════════════════════════════════ */
turbo-frame#landing_page {
  display: block;
  padding: 40px 20px;
}

.lp-editor {
  display: grid;
  grid-template-columns: minmax(450px, 550px) 420px;
  gap: 64px;
  align-items: start;
  justify-content: center;
  margin: 0 auto;
}

.lp-editor__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: none;
}
.lp-editor__form::-webkit-scrollbar { display: none; }

.lp-editor__actions {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-base);
  padding: 0 0 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}

.lp-editor-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-editor-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lp-editor-tab {
  padding: 7px 18px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lp-editor-tab--active {
  background: var(--surface-solid);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.lp-pane-save {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-card {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

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

.theme-card--selected,
.theme-card:has(input:checked) {
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-md);
}

.theme-card__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-preview__palette {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
}

.theme-preview__swatch {
  flex: 1;
  height: 24px;
  border-radius: 3px;
}

.theme-preview__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.theme-preview__fonts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-preview__font-sep { color: var(--ink-faint); }

.lp-theme-preview {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  max-height: 200px;
}

.lp-theme-preview__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 12px;
  background: rgba(26, 21, 48, 0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.lp-theme-preview__remove:hover { background: rgba(220, 38, 38, 0.85); }

.lp-theme-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Generic wizard buttons (used in landing page editor) */
.wizard-btn-primary, .wizard-btn-secondary {
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
  cursor: pointer;
  font-family: var(--font-ui);
}

.wizard-btn-secondary {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
}

.wizard-btn-secondary:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink-muted);
}

/* Copy items inside landing-page editor */
.lp-copy-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.lp-copy-section:last-of-type { border-bottom: none; }

.lp-copy-section__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
}

.lp-copy-section__hint {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
  margin-left: 6px;
}

.lp-copy-item {
  margin-bottom: 14px;
  padding: 20px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.lp-copy-item:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-md);
}

.lp-copy-item:last-child { margin-bottom: 0; }

.lp-copy-item__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0;
}

/* ── Mobile preview phone ── */
.lp-editor__preview {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 24px;
}

turbo-frame#lp_preview_frame { display: block; } /* must match LandingPage::PREVIEW_FRAME_ID */

.lp-preview-phone {
  width: 375px;
  height: 700px;
  border: 8px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.lp-preview-phone__bar {
  height: 28px;
  background: var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-preview-phone__bar::after {
  content: "";
  width: 72px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.lp-preview-frame {
  width: 375px;
  flex: 1;
  border: none;
}

/* ── Landing Page Variant Tabs ─── */
.lp-wrapper {
  background: var(--bg-base);
  min-height: 100vh;
}

.lp-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: var(--surface-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  gap: 16px;
}

.lp-variant-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: calc(var(--radius-sm) + 4px);
}

.lp-variant-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  min-width: 0;
}

.lp-variant-tab:hover {
  background: var(--surface-solid);
  border-color: var(--border-soft);
}

.lp-variant-tab--active {
  background: var(--surface-solid);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.lp-variant-tab__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-base);
  color: var(--ink-muted);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lp-variant-tab--active .lp-variant-tab__num {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  color: #fff;
  border-color: var(--accent-coral);
}

.lp-variant-tab__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.lp-variant-tab--active .lp-variant-tab__title {
  color: var(--ink);
  font-weight: 600;
}

.lp-generate-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-peach) 100%);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.12s;
}

.lp-generate-all-btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.lp-generate-all-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Places search */
.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s;
}
.suggestion:hover { background: var(--surface); }
.suggestion-flag { font-size: 20px; flex-shrink: 0; }
.suggestion-text { display: flex; flex-direction: column; }
.suggestion-text strong { font-size: 13px; color: var(--ink); }
.suggestion-text small  { font-size: 11px; color: var(--ink-muted); }

.place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.place-row-flag    { font-size: 22px; flex-shrink: 0; }
.place-row-name    { font-size: 13px; font-weight: 600; color: var(--ink); }
.place-row-address { font-size: 11px; color: var(--ink-muted); margin-left: auto; }

/* Pexels video picker */
.pexels-current {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.pexels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.pexels-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  aspect-ratio: 9 / 16;
  transition: border-color 0.18s, transform 0.18s;
}

.pexels-item:hover { transform: translateY(-2px); }

.pexels-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pexels-item--selected { border-color: var(--accent-coral); }

.pexels-duration {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  background: rgba(26, 21, 48, 0.65);
  border-radius: 4px;
  padding: 1px 5px;
  pointer-events: none;
}

/* ════════════════════════════════════════
   Conversion Action Step
════════════════════════════════════════ */
.conversion-action-explainer {
  background: var(--surface);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.conversion-action-explainer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 8px;
}

.conversion-action-explainer__body {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.conversion-action-create-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
}

.conversion-action-create-row .field-input { flex: 1; }

.conversion-actions-empty {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 12px 0;
}

.conversion-action-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  margin-bottom: 8px;
}

.conversion-action-option:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.conversion-action-option:has(.conversion-action-option__radio:checked) {
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-md);
  background: rgba(255, 201, 168, 0.10);
}

.conversion-action-option__radio {
  accent-color: var(--accent-coral);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.conversion-action-option__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* Conversion-action option — selectable card with hidden radio.
   Used by google_ads/conversion_actions/_conversion_action.html.erb. */
.ca-option {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.ca-option__text {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: var(--surface);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s, transform 0.18s;
}

.ca-option__text::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  background: var(--surface-solid);
  flex-shrink: 0;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.ca-option:hover .ca-option__text {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.ca-option:has(input:checked) .ca-option__text {
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-md);
  background: rgba(255, 201, 168, 0.10);
}

.ca-option:has(input:checked) .ca-option__text::before {
  background:
    radial-gradient(circle, var(--accent-coral) 0 36%, transparent 38%),
    var(--surface-solid);
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 4px rgba(255, 155, 122, 0.18);
}

.ca-empty {
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  padding: 12px 0;
  margin: 0;
}

/* ════════════════════════════════════════
   Reduced motion
════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .step-pill { animation: none; }
  .step-layout { animation: none; }
  *, *::before, *::after {
    transition-duration: 0ms !important;
  }
}

/* Tabs strip — add button + delete × (added for variant variants feature) */
.lp-variant-tab--add {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.lp-variant-tab--add:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lp-variant-tab__delete-form {
  display: inline;
  margin: 0;
  padding: 0;
}
.lp-variant-tab__delete {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 0.95rem;
  margin-left: 0.4rem;
  padding: 0.1rem 0.35rem;
  border-radius: 50%;
}
.lp-variant-tab__delete:hover {
  background: rgba(255, 90, 90, 0.18);
  color: #ff7676;
}

/* New-variant inline form */
.lp-new-variant {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
}
.lp-new-variant__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ── Wizard language picker (Wizard::LanguagePickerComponent) ── */
.wizard-language-picker { margin-bottom: 20px; }

.wizard-language-picker__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1c1917;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wizard-language-picker__required { color: #b91c1c; }

.wizard-language-picker__select {
  width: 100%;
  height: 42px;
  background: #f5f4f0;
  border: 1px solid #e6e4de;
  border-radius: 8px;
  padding: 0 38px 0 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #1c1917;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.wizard-language-picker__select:focus { border-color: #1c1917; }

/* ── Audience step (target_location + target_keywords shared) ── */
.audience-step {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.audience-step--keywords {
  /* Fill the canvas — no centered narrow column on this step. The two
     panes lock to the viewport so the AI chat + keywords list each get
     real height instead of floating in a 1100px box. */
  max-width: none;
  margin: 0;
  padding: 16px 24px;
  /* 80px sticky step-track + 80px fixed wizard-footer = 160px reserved.
     dvh handles mobile chrome resize cleanly; vh is the fallback. */
  height: calc(100vh - 160px);
  height: calc(100dvh - 160px);
  gap: 0;
}

.audience-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.audience-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.audience-card__subtitle {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1c1917;
  margin: 0;
}

.audience-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.audience-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1c1917;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.audience-input {
  width: 100%;
  height: 42px;
  background: #f5f4f0;
  border: 1px solid #e6e4de;
  border-radius: 8px;
  padding: 0 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #1c1917;
  outline: none;
  box-sizing: border-box;
}
.audience-input:focus { border-color: #1c1917; }

.audience-hint {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #78716c;
  margin: 0 0 16px;
  line-height: 1.5;
}

.audience-map {
  width: 100%;
  height: 200px;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e6e4de;
  background: #f5f4f0;
}

.audience-primary {
  width: 100%;
  height: 48px;
  background: #1c1917;
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, background 0.2s ease;
}
.audience-primary:hover    { background: #292524; }
.audience-primary:active   { transform: scale(0.99); }
.audience-primary:disabled { background: #a8a29e; cursor: wait; }

/* ── target_keywords two-column split ──
   Both panes are children of a viewport-locked grid (parent is
   .audience-step--keywords with calc(100dvh - 160px) height). Each
   column is a flex column so its inner card fills the row height,
   and the chat panel + keyword list scroll INSIDE their own column
   instead of pushing the page. */
.keywords-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.keywords-split__chat,
.keywords-split__list {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* The chat card now stretches to fill its column. Its internal padding
   shrinks because the chat panel itself owns the visual frame. */
.audience-card--chatbot {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 0;
  overflow: hidden;
}

.audience-chatbot {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 0;
  border-top: 1px solid #e6e4de;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.audience-chatbot .wizard-chat {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.audience-chatbot .wizard-chat__messages { flex: 1 1 auto; min-height: 0; }

/* Right column: keywords list — same full-height behavior, with its
   own internal scroll for long lists. */
.keywords-split__list .added-pane {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.keywords-split__list .added-pane__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 900px) {
  .audience-step--keywords {
    height: auto;
    min-height: auto;
  }
  .keywords-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .audience-chatbot { height: 60vh; }
  .keywords-split__list .added-pane__list { max-height: 50vh; }
}

/* ── Why videos matter (videos step callout) ── */
.why-videos {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  margin: 4px 0 22px;
  background: linear-gradient(135deg, #faf7f0 0%, #f3ede0 100%);
  border: 1px solid #e8e0cc;
  border-radius: 14px;
}

.why-videos__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 22px;
  border-right: 1px solid #e0d6bf;
}

.why-videos__stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #1c1917;
  line-height: 1;
  letter-spacing: -0.03em;
}

.why-videos__stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #57534e;
}

.why-videos__stat-source {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-style: italic;
  color: #a8a29e;
  margin-top: 2px;
}

.why-videos__title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.why-videos__body {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #44403c;
  margin: 0;
}

@media (max-width: 640px) {
  .why-videos {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-videos__stat {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: none;
    border-bottom: 1px solid #e0d6bf;
  }
}

/* ── Solo upload zone (videos step — first stage) ── */
.upload-zone--solo .upload-zone__label { height: 150px; }

.field-label__hint {
  font-style: normal;
  font-weight: 400;
  color: #a8a29e;
  margin-left: 6px;
  font-size: 11px;
}
