@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Outfit:wght@400;500;600&display=swap');

/* ── Design tokens ── */
:root {
  --bg:           #f5f4f0;
  --surface:      #ffffff;
  --border:       #e6e4de;
  --border-focus: #1c1917;
  --text:         #1c1917;
  --text-muted:   #78716c;
  --text-faint:   #a8a29e;
  --accent:       #1c1917;
  --accent-hover: #292524;
  --danger:       #dc2626;
  --warn:         #d97706;
  --font-display: 'Syne', sans-serif;
  --font-ui:      'Outfit', sans-serif;
  --radius:       8px;
  --radius-pill:  100px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  padding-bottom: 80px;
}

/* ════════════════════════════════════════
   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: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

/* ── Campaign card ── */
.campaign-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.campaign-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #d4d0c8;
}

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

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

.campaign-step-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
}

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

/* ── Shared buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #fef2f2;
  color: var(--danger);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: background 0.15s;
}

/* ════════════════════════════════════════
   Wizard Header — step track
════════════════════════════════════════ */
.wizard-steps {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Connecting line after each step except last */
.wizard-step:not(:last-child) {
  margin-right: 6px;
}

.wizard-step:not(:last-child)::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--border);
  margin-left: 6px;
  flex-shrink: 0;
}

.wizard-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
  font-family: var(--font-ui);
  transition: all 0.2s;
}

.wizard-step-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.wizard-step.active .wizard-step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.wizard-step.active .wizard-step-label {
  color: var(--text);
  font-size: 14px;
}

.wizard-step.active::after {
  background: var(--accent);
  opacity: 0.25;
}

/* ── Campaign Notifications ── */
#notifications {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) 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); border-radius: 2px; }

/* Dismiss button — usable by any broadcast */
[data-notif-item] [data-action="notif#dismiss"] {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-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(--text-muted);
  background: var(--bg);
}

@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: 9px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  animation: notif-life 4s ease forwards;
}

.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: #86efac;
  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;
  padding: 14px 32px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.05);
}

/* Back — minimal text link */
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(--text-muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
}

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

/* Continue — solid pill */
a.wizard-btn-primary,
button.wizard-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  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 2px 8px rgba(28,25,23,0.18), 0 1px 2px rgba(28,25,23,0.1);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

a.wizard-btn-primary:hover,
button.wizard-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(28,25,23,0.22), 0 1px 4px rgba(28,25,23,0.1);
  transform: translateY(-1px);
}

a.wizard-btn-primary:active,
button.wizard-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(28,25,23,0.14);
}

.wizard-btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* ════════════════════════════════════════
   Shared step layout
════════════════════════════════════════ */
.step-layout {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 28px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.step-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

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

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

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

.field-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(28,25,23,0.07);
}

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

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

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

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

/* ── Add button ── */
.add-btn {
  padding: 9px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.add-btn:hover {
  background: var(--bg);
  border-color: #d0cdc6;
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════
   Service cards
════════════════════════════════════════ */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: box-shadow 0.15s;
}

.item-card:hover { box-shadow: var(--shadow-sm); }

.item-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.item-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

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

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

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

.item-card-edit:hover {
  background: var(--bg);
  color: var(--text);
}

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

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

.item-card-delete button:hover {
  background: #fef2f2;
  color: var(--danger);
}

/* ── Inline edit card ── */
.item-card--editing {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-left-color: var(--border-focus);
}

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

.item-edit-save {
  padding: 7px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.item-edit-save:hover { background: var(--accent-hover); }

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

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

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

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

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

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

.video-player--small {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

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

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

.video-description {
  font-size: 13px;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.45;
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.upload-zone {
  border-radius: var(--radius);
  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);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
  position: relative;
}

.upload-zone__label:hover,
.upload-zone.is-dragging .upload-zone__label {
  border-color: var(--text-faint);
  background: var(--surface);
}

.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(--text-faint);
}

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

.upload-zone__hint em {
  font-size: 10px;
  font-style: normal;
  color: var(--text-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);
}

/* ── Error bar ── */
.step-errors {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ════════════════════════════════════════
   Landing Page Editor (wizard step)
════════════════════════════════════════ */

/* ════════════════════════════════════════
   Landing Page Editor (wizard step)
════════════════════════════════════════ */

turbo-frame#landing_page {
  display: block;
  padding: 40px 20px;
}

/* --- MODIFIED: Layout & Centering --- */
.lp-editor {
  display: grid;
  /* Constrain form width, keep exact 420px for the phone */
  grid-template-columns: minmax(450px, 550px) 420px; 
  gap: 64px;
  align-items: start;
  justify-content: center; /* This perfectly centers the two columns on the screen */
  margin: 0 auto;
}

/* --- MODIFIED: Sleek Form & Hidden Scrollbar --- */
.lp-editor__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 80vh; /* Responsive max height */
  overflow-y: auto;
  padding-right: 16px;
  scrollbar-width: none; /* Firefox */
}
.lp-editor__form::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

/* --- MODIFIED: Sticky Actions & Modern Buttons --- */
.lp-editor__actions {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg, #fff);
  padding: 0 0 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border, #eaeaea);
}

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

/* Content / Theme tab switcher */
.lp-editor-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

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

/* Save button at bottom of each pane */
.lp-pane-save {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ── Theme picker grid ── */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.theme-card {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  transition: border-color 0.15s;
}

.theme-card:hover { border-color: #bbb; }

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

.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(--text);
  margin: 0 0 4px;
}

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

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

/* Theme pane preview image */
.lp-theme-preview {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 200px;
}

.lp-theme-preview__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.lp-theme-preview__remove:hover { background: rgba(220,38,38,0.8); }

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

.wizard-btn-primary, .wizard-btn-secondary {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.wizard-btn-primary {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.wizard-btn-primary:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-1px);
}

.wizard-btn-secondary {
  background: transparent;
  color: #555;
  border: 1px solid #ddd;
}

.wizard-btn-secondary:hover {
  background: #f4f4f4;
  color: #111;
}

/* --- MODIFIED: Clean Copy Items --- */
.lp-copy-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border, #eaeaea);
}

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

.lp-copy-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #888);
  margin: 0 0 16px;
}

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

.lp-copy-item {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #eaeaea);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03); /* Very subtle elevation */
  transition: border-color 0.2s ease;
}

.lp-copy-item:hover {
  border-color: #ccc;
}

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

.lp-copy-item__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #666);
  margin: 0;
}


/* ════════════════════════════════════════
   STRICTLY UNTOUCHED: Mobile Preview
════════════════════════════════════════ */

.lp-editor__preview {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 24px;
}

turbo-frame#lp_preview {
  display: block;
}

.lp-preview-phone {
  width: 375px;
  height: 700px;
  border: 8px solid var(--text);
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  background: #fff;
}

.lp-preview-phone__bar {
  height: 28px;
  background: var(--text);
  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);
  min-height: 100vh;
}

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

/* Segment-control container */
.lp-variant-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

/* Individual tab */
.lp-variant-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius);
  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);
  border-color: var(--border);
}

/* Active: filled card */
.lp-variant-tab--active {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Num badge */
.lp-variant-tab__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lp-variant-tab--active .lp-variant-tab__num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Title text */
.lp-variant-tab__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-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(--text);
  font-weight: 600;
}

/* Generate All button */
.lp-generate-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(28,25,23,0.16);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.lp-generate-all-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(28,25,23,0.2);
  transform: translateY(-1px);
}

.lp-generate-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(28,25,23,0.12);
}


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

.place-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  background: var(--surface-muted, #f8fafc);
}
.place-row-flag    { font-size: 22px; flex-shrink: 0; }
.place-row-name    { font-size: 13px; font-weight: 600; color: var(--text-primary, #1e293b); }
.place-row-address { font-size: 11px; color: var(--text-muted, #94a3b8); margin-left: auto; }

/* Pexels video picker */
.pexels-current {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  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);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  aspect-ratio: 9 / 16;
  transition: border-color 0.15s;
}

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

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

.pexels-duration {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 4px;
  padding: 1px 4px;
  pointer-events: none;
}
