/* Plan badge */
.admin-plan-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.admin-plan-badge--starter         { background: rgba(46,125,50,0.15); color: #4caf50; border-color: rgba(46,125,50,0.3); }
.admin-plan-badge--growth          { background: rgba(21,101,192,0.15); color: #64b5f6; border-color: rgba(21,101,192,0.3); }
.admin-plan-badge--pro             { background: rgba(201,168,76,0.15); color: #c9a84c; border-color: rgba(201,168,76,0.3); }
.admin-plan-badge--full_autonomy   { background: rgba(167,139,250,0.15); color: #a78bfa; border-color: rgba(167,139,250,0.3); }

/* Live status badge */
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}
.live-badge--live {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.live-badge--not-live {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

/* === ADMIN DASHBOARD SERVICE MANAGEMENT === */

/* Section header row */
.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Gold accent button */
.btn-gold-sm {
  background: linear-gradient(135deg, #a88a30, #c9a84c);
  color: #0a0a0a;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}
.btn-gold-sm:hover {
  background: linear-gradient(135deg, #c9a84c, #e0c56a);
  transform: translateY(-1px);
}
.btn-gold-sm:active { transform: translateY(0); }

/* Cancel button */
.btn-cancel-sm {
  background: transparent;
  color: var(--white-muted);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cancel-sm:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* Edit button */
.btn-edit-sm {
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white-muted);
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-edit-sm:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Service form card */
.svc-form-card {
  background: var(--black-card);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
  padding: 24px 28px;
}

.svc-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.svc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.svc-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.svc-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.svc-form-group-sm {
  flex: 0 0 120px;
}

.svc-label {
  font-size: 0.82rem;
  color: var(--white-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.svc-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.svc-input:focus {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.svc-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Service row actions */
.dash-section .svc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  gap: 16px;
}

.svc-row-info {
  flex: 1;
  min-width: 0;
}

.svc-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--white-muted);
}

.svc-duration {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-family: 'Outfit', sans-serif;
}

.svc-price {
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

.svc-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Edit form (below service row) */
.svc-edit-form {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
  margin-top: 4px;
}

/* Empty state */
.svc-empty {
  background: var(--black-card);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  color: var(--white-muted);
  font-size: 0.92rem;
}

.svc-empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.svc-empty-hint {
  font-size: 0.85rem;
  margin-top: 6px;
  color: rgba(160,160,160,0.7);
}

/* === REMINDER SETTINGS === */

.rem-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rem-toggle-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rem-toggle-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.rem-toggle-info {
  flex: 1;
  min-width: 0;
}

.rem-toggle-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.rem-toggle-desc {
  font-size: 0.82rem;
  color: var(--white-muted);
  line-height: 1.4;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #888;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(201,168,76,0.3); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--gold); }

/* Timing checkboxes */
.rem-timing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.rem-timing-card {
  display: flex;
  align-items: center;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  gap: 14px;
  transition: border-color 0.2s;
}
.rem-timing-card:hover { border-color: rgba(201,168,76,0.3); }
.rem-timing-card input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); flex-shrink: 0; }

.rem-timing-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.rem-timing-icon { font-size: 1.3rem; flex-shrink: 0; }

.rem-timing-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.rem-timing-desc {
  font-size: 0.78rem;
  color: var(--white-muted);
  line-height: 1.4;
}

/* Preview panel */
.rem-preview-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-status {
  margin-top: 12px;
  font-size: 0.88rem;
  font-family: monospace;
}

/* Success banner */
.saved-banner {
  background: rgba(76,175,80,0.12);
  border: 1px solid rgba(76,175,80,0.3);
  color: #4caf50;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Center shell for minimal pages */
.center-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.mini-card {
  background: var(--black-card);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
}

.action-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-danger-sm {
  border: 1px solid rgba(239,68,68,0.4);
  color: #ef4444;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.1); }

/* Responsive */
@media (max-width: 640px) {
  .rem-toggle-grid { grid-template-columns: 1fr; }
  .rem-timing-grid { grid-template-columns: 1fr; }
  .rem-preview-btns { flex-direction: column; }
  .action-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .dash-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .svc-form-grid {
    grid-template-columns: 1fr;
  }

  .svc-form-row {
    flex-direction: column;
  }

  .svc-form-group-sm {
    flex: 1;
  }

  .svc-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .svc-row-meta {
    gap: 8px;
  }

  .svc-row-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ─── Onboarding Wizard ──────────────────────────────────────── */
.bfwiz-sheet {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 440px;
  background: var(--black-card);
  border-left: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.bfwiz-sheet--visible {
  transform: translateX(0);
}

.bfwiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bfwiz-step-bar {
  display: flex;
  gap: 10px;
}

.bfwiz-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.3s ease;
}

.bfwiz-step-dot--active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.5);
}

.bfwiz-step-dot--done {
  background: rgba(201, 168, 76, 0.4);
}

.bfwiz-close {
  background: none;
  border: none;
  color: var(--white-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.bfwiz-close:hover { color: var(--white); }

.bfwiz-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 24px;
  transition: opacity 0.2s ease;
}

.bfwiz-fade-out {
  opacity: 0;
}

.bfwiz-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.bfwiz-title--done {
  text-align: center;
  font-size: 1.75rem;
  color: var(--gold);
}

.bfwiz-sub {
  color: var(--white-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.bfwiz-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bfwiz-btn-primary {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  width: 100%;
}

.bfwiz-btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.bfwiz-btn-primary:active { transform: translateY(0); }
.bfwiz-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.bfwiz-btn-skip {
  background: none;
  border: none;
  color: var(--white-muted);
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  padding: 4px;
  text-align: center;
  transition: color 0.2s;
}

.bfwiz-btn-skip:hover { color: var(--white); }

/* Form fields */
.bfwiz-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.bfwiz-field label { font-size: 0.82rem; font-weight: 500; color: var(--white-muted); letter-spacing: 0.04em; text-transform: uppercase; }

.bfwiz-field input[type="text"],
.bfwiz-field input[type="number"],
.bfwiz-field input[type="time"] {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  width: 100%;
  transition: border-color 0.2s;
}

.bfwiz-field input:focus {
  outline: none;
  border-color: var(--gold);
}

.bfwiz-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Hours grid */
.bfwiz-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bfwiz-day-row {
  display: grid;
  grid-template-columns: 44px 32px 1fr;
  align-items: center;
  gap: 10px;
}

.bfwiz-day-label {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-weight: 500;
}

.bfwiz-day-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.bfwiz-day-times {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.bfwiz-day-times input[type="time"] {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  width: 90px;
  text-align: center;
}

.bfwiz-day-times input[type="time"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bfwiz-day-times span {
  color: var(--white-muted);
  font-size: 0.85rem;
}

.bfwiz-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.bfwiz-url-box code {
  flex: 1;
  font-size: 0.82rem;
  color: var(--gold-light);
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

.bfwiz-copy-btn {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.bfwiz-copy-btn:hover { background: var(--gold-light); }

/* URL preview with inline editable slug */
.bfwiz-preview-url {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.bfwiz-url-prefix {
  padding: 10px 10px 10px 14px;
  font-size: 0.85rem;
  color: var(--white-muted);
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.bfwiz-preview-url input {
  background: transparent;
  border: none;
  color: var(--gold-light);
  border-radius: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  width: 100%;
  box-shadow: none;
}

.bfwiz-preview-url input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

/* Textarea */
.bfwiz-textarea {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  width: 100%;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 72px;
}

.bfwiz-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* Timezone select */
.bfwiz-timezone-select {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  width: 100%;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.bfwiz-timezone-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Reminder callout */
.bfwiz-reminder-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.5;
}

.bfwiz-callout-icon {
  width: 22px;
  height: 22px;
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Done step */
.bfwiz-done-check {
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--black);
  margin: 0 auto 20px;
  animation: bfwiz-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bfwiz-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.bfwiz-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--black);
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.1);
}

.bfwiz-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--white-muted);
}

.bfwiz-summary-icon { font-size: 1.1rem; }

.bfwiz-done-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bfwiz-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.bfwiz-link:hover { color: var(--gold-light); }

/* Error */
.bfwiz-error {
  color: #e87070;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}

/* Mobile: full-screen overlay */
@media (max-width: 600px) {
  .bfwiz-sheet {
    width: 100vw;
    height: 100dvh;
    top: 0;
    left: 0;
    border-left: none;
    border-top: 3px solid var(--gold);
    border-radius: 0;
  }

  .bfwiz-row-2 {
    grid-template-columns: 1fr;
  }

  .bfwiz-day-row {
    grid-template-columns: 36px 28px 1fr;
    gap: 6px;
  }

  .bfwiz-day-times input[type="time"] {
    width: 72px;
  }
}

/* ─── Retake tour link ────────────────────────────────────────── */
.wizard-retake {
  padding: 20px 24px 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.wizard-retake a {
  color: var(--white-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.wizard-retake a:hover { color: var(--gold); }

/* ─── Video-Game Tour Overlay (inline form mode) ──────────────────── */

#tour-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 480px;
  background: var(--black-card);
  border: 1.5px solid rgba(201, 168, 76, 0.35);
  border-radius: 20px;
  z-index: 999;
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(201, 168, 76, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

#tour-panel.tour-panel--hidden {
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
}

.tour-panel-inner {
  padding: 28px 32px 24px;
}

.tour-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: inline-block;
}

.tour-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.tour-step-label {
  font-size: 0.75rem;
  color: var(--white-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 16px 0 10px;
}

.tour-progress-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.tour-seg {
  height: 3px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  transition: background 0.3s;
}

.tour-seg.active { background: var(--gold); }
.tour-seg.done   { background: rgba(201, 168, 76, 0.5); }

.tour-tooltip {
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 20px;
}

/* Inline form styles */
.tour-form-wrap {
  margin-bottom: 16px;
}

.tour-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.tour-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.tour-field-row .tour-field {
  margin-bottom: 0;
}

.tour-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tour-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.tour-input:focus {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

.tour-input::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Slug preview */
.tour-slug-preview {
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-top: 4px;
  min-height: 16px;
  font-family: 'Courier New', monospace;
}

/* Time inputs in hours table */
.tour-time-input {
  width: 90px;
  text-align: center;
  padding: 8px 10px;
}

/* Hours table */
.tour-hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.tour-hours-table th {
  color: var(--white-muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: left;
  padding: 0 8px 8px;
}

.tour-hours-table td {
  padding: 6px 8px;
  vertical-align: middle;
}

.tour-day-cell {
  color: var(--white-muted);
  font-weight: 500;
  min-width: 80px;
  font-size: 0.85rem;
}

.tour-hr-sep {
  color: rgba(255, 255, 255, 0.25);
  padding: 0 4px;
  text-align: center;
}

.tour-closed-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white-muted);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.tour-closed-chk {
  accent-color: var(--gold);
  width: 14px;
  height: 14px;
}

/* Error */
.tour-err {
  color: #e87070;
  font-size: 0.85rem;
  min-height: 20px;
  margin-bottom: 10px;
}

/* Tour actions */
.tour-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-btn-primary {
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s;
  width: 100%;
}

.tour-btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.tour-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tour-skip-link {
  text-align: center;
}

.tour-skip-btn {
  background: none;
  border: none;
  color: var(--white-muted);
  font-size: 0.8rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.tour-skip-btn:hover { color: var(--white); }

/* Step 4: Finish screen */
.tour-finish-icon {
  text-align: center;
  margin-bottom: 16px;
}

.tour-finish-msg {
  font-size: 0.92rem;
  color: var(--white-muted);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tour-link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.tour-link-url {
  flex: 1;
  font-size: 0.8rem;
  color: var(--gold-light);
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

.tour-copy-btn {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.tour-copy-btn:hover { background: rgba(201, 168, 76, 0.25); }

/* ─── Retake tour link (admin footer) ────────────────────────────── */
.tour-retake {
  padding: 20px 0 8px;
  text-align: center;
}

.tour-retake a {
  color: var(--white-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.tour-retake a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 520px) {
  #tour-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    border-radius: 20px 20px 0 0;
    max-width: 100%;
  }

  #tour-panel.tour-panel--hidden {
    transform: translateY(100%);
  }

  .tour-panel-inner {
    padding: 24px 20px 20px;
  }

  .tour-field-row {
    grid-template-columns: 1fr;
  }

  .tour-hours-table th:nth-child(3),
  .tour-hours-table td:nth-child(3) {
    display: none;
  }
}

/* ─── Retake tour link (admin footer) ────────────────────────────── */
.tour-retake {
  padding: 20px 0 8px;
  text-align: center;
}

.tour-retake a {
  color: var(--white-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.tour-retake a:hover {
  color: var(--gold);
}

/* Responsive tour panel */
@media (max-width: 768px) {
  #tour-panel {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    width: auto;
    transform: translateY(0);
  }

  #tour-panel.tour-panel--hidden {
    transform: translateY(120%);
  }
}

/* ─── Leads CRM ─────────────────────────────────────────────── */

.lead-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lead-tab {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lead-tab:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--white);
}

.lead-tab--active {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.5);
  color: var(--gold);
}

.lead-tab-count {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.78rem;
}

.lead-tab--active .lead-tab-count {
  background: rgba(201,168,76,0.2);
}

/* Table */
.lead-table-wrap {
  overflow-x: auto;
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
}

.lead-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lead-table td {
  padding: 14px 12px;
  font-size: 0.88rem;
  color: var(--white-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.lead-row:hover td {
  background: rgba(255,255,255,0.02);
}

.lead-name {
  color: var(--white);
  font-weight: 500;
}

.lead-contact { font-size: 0.82rem; }
.lead-phone { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-top: 2px; }

.lead-service { max-width: 140px; }

.lead-source {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.lead-date { font-size: 0.8rem; white-space: nowrap; }

/* Status badges */
.lead-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.lead-badge-new {
  background: rgba(201,168,76,0.12);
  color: #c9a84c;
  border-color: rgba(201,168,76,0.3);
}

.lead-badge-contacted {
  background: rgba(21,101,192,0.12);
  color: #64b5f6;
  border-color: rgba(21,101,192,0.3);
}

.lead-badge-converted {
  background: rgba(76,175,80,0.12);
  color: #4caf50;
  border-color: rgba(76,175,80,0.3);
}

.lead-badge-lost {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.1);
}

/* Action buttons */
.lead-action-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lead-action-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lead-action-btn:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.lead-notes-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.lead-notes-btn:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--gold);
}

/* Notes panel */
.lead-notes-row td { padding: 0 12px 16px; border-bottom: none; }

.lead-notes-panel {
  background: var(--black-card);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  padding: 16px 20px;
}

.lead-notes-input {
  width: 100%;
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  padding: 10px 14px;
  min-height: 80px;
  resize: vertical;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.lead-notes-input:focus {
  outline: none;
  border-color: rgba(201,168,76,0.5);
}

.lead-notes-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.lead-notes-status {
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 18px;
}

/* Empty state */
.lead-empty {
  background: var(--black-card);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  color: var(--white-muted);
}

.lead-empty-icon { font-size: 2rem; margin-bottom: 12px; }
.lead-empty-hint { font-size: 0.85rem; margin-top: 6px; color: rgba(160,160,160,0.7); }

/* Responsive */
@media (max-width: 640px) {
  .lead-filters { gap: 6px; }
  .lead-tab { padding: 7px 12px; font-size: 0.82rem; }
  .lead-table th:nth-child(4),
  .lead-table td:nth-child(4) { display: none; }
  .lead-action-group { flex-direction: column; }
}

/* ─── Availability Insights ──────────────────────────────────── */

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}

.insight-card:hover { border-color: rgba(255,255,255,0.12); }

.insight-card--busy       { border-left-color: #f97316; }
.insight-card--peak_hour  { border-left-color: #f97316; }
.insight-card--slow       { border-left-color: #60a5fa; }
.insight-card--no_show    { border-left-color: #fb923c; }
.insight-card--extend_hours { border-left-color: #a78bfa; }

.insight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.insight-content { flex: 1; min-width: 0; }

.insight-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-muted);
  margin-bottom: 4px;
}

.insight-message {
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.4;
}

.insights-empty {
  background: var(--black-card);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: var(--white-muted);
}

@media (max-width: 640px) {
  .insight-card { flex-direction: column; gap: 8px; }
}

/* ─── Service Recommendations (Cross-sell) ─────────────────── */

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

.rec-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--black-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.2s, background 0.2s;
}

.rec-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.04);
}

.rec-arrow {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

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

.rec-source {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white-muted);
  margin-bottom: 5px;
}

.rec-suggest {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.rec-suggest-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.rec-suggest-price {
  font-size: 0.85rem;
  font-weight: 500;
}

.rec-meta { font-size: 0.8rem; }

.rec-confidence {
  color: rgba(255,255,255,0.45);
}

.recs-empty {
  background: var(--black-card);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: var(--white-muted);
}

@media (max-width: 640px) {
  .rec-card { flex-direction: column; gap: 8px; }
}

/* ─── Weekly Booking Funnel ─────────────────── */

.funnel-summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--black-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 14px;
}

.funnel-summary-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.funnel-summary-lbl {
  font-size: 0.82rem;
  color: var(--white-muted);
  font-weight: 500;
}

.funnel-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.funnel-hdr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-muted);
}

.funnel-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 18px;
  background: var(--black-card);
  font-size: 0.88rem;
  color: var(--white);
  align-items: center;
}

.funnel-row > div:not(:last-child) {
  color: var(--white-muted);
  font-variant-numeric: tabular-nums;
}

.funnel-row--flat { opacity: 0.7; }

.funnel-rate {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
}

.funnel-rate--zero { color: var(--gold-dark); }

.funnel-empty {
  background: var(--black-card);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: var(--white-muted);
}

@media (max-width: 640px) {
  .funnel-hdr,
  .funnel-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 10px 12px; }
  .funnel-summary { flex-direction: column; gap: 6px; padding: 16px 18px; }
  .funnel-summary-num { font-size: 1.6rem; }
}