/* Admin Console Layout Styles
   Design tokens and shared components: ../shared/shared-tokens.css */

/* ═══════════════════════════════════════════════════════
   RapidSanctuary Admin Console — Layout Styles
   Design System: Taiga UI with Navy Blue + Gold
   Version: 3.0 (April 2026) — Layout-only after Phase 2 refactor
   Shared tokens/components: ../shared/shared-tokens.css
   ═══════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════
   5. LAYOUT — Sidebar Nav Items & Scrollbar
   ═══════════════════════════════════════════════════════ */

/* ─── Sidebar Nav Items ─── */
.sidebar-item {
  color: hsl(var(--sidebar-foreground) / 0.65);
  transition: all 0.15s;
}
.sidebar-item:hover {
  color: hsl(var(--sidebar-foreground));
  background-color: hsl(var(--sidebar-accent));
}
.sidebar-item-active {
  color: hsl(var(--sidebar-primary));
  background-color: hsl(var(--sidebar-primary) / 0.12);
}

/* ─── Sidebar Scrollbar (hidden) ─── */
#sidebar::-webkit-scrollbar, #sidebar *::-webkit-scrollbar { display: none; }
#sidebar, #sidebar * { scrollbar-width: none; -ms-overflow-style: none; }


/* ═══════════════════════════════════════════════════════
   15. ROLE SWITCHER
   ═══════════════════════════════════════════════════════ */

.role-card-active {
  border-color: var(--gold) !important;
  background-color: var(--gold-10);
}
.role-avatar-active {
  background-color: var(--gold);
  color: var(--navy);
}


/* ═══════════════════════════════════════════════════════
   24. DARK MODE — Role Switcher Modal
   ═══════════════════════════════════════════════════════ */

html.dark #role-switcher > div { background-color: var(--dm-card) !important; }
html.dark #role-switcher .border-zinc-200 { border-color: var(--dm-border) !important; }
html.dark #role-switcher .text-zinc-900 { color: var(--dm-foreground) !important; }
html.dark #role-switcher .text-zinc-500 { color: var(--dm-muted-foreground) !important; }
html.dark #role-switcher .hover\:bg-zinc-50:hover { background-color: var(--dm-hover) !important; }
html.dark #role-switcher .hover\:border-zinc-300:hover { border-color: rgba(255,255,255,0.12) !important; }
html.dark #role-switcher .bg-zinc-100 { background-color: var(--dm-secondary) !important; }
html.dark #role-switcher .text-zinc-600 { color: var(--dm-muted-foreground) !important; }
html.dark #role-switcher .hover\:bg-zinc-100:hover { background-color: rgba(255,255,255,0.08) !important; }


/* ═══════════════════════════════════════════════════════
   27. LOGIN PAGE
   ═══════════════════════════════════════════════════════ */

.login-card {
  background: linear-gradient(145deg, #13143f 0%, #0e0f30 50%, #0a0b24 100%);
}
.login-page-bg {
  background: var(--navy);
}
.login-card-shadow {
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,78,204,0.3) 0%, rgba(16,17,61,0.6) 60%, rgba(16,17,61,0.95) 100%);
}
.login-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.2s;
}
.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,204,72,0.15);
  background: rgba(255,255,255,0.08);
}
.login-input::placeholder { color: rgba(255,255,255,0.35); }
.social-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}
.social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
.dot { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); transition: all 0.3s; }
.dot.active { width: 32px; background: rgba(255,255,255,0.8); }
.wireframe-select {
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--gold) 30%, transparent);
  color: rgba(255,255,255,0.7);
}
.wireframe-select select {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: var(--white) !important;
}
.wireframe-select select option { background: var(--navy); color: var(--white); }
.wireframe-label {
  color: color-mix(in srgb, var(--gold) 60%, transparent);
}


/* ═══════════════════════════════════════════════════════
   28. CATEGORY LIST ITEMS (modal category management rows)
   ═══════════════════════════════════════════════════════ */

html.dark .category-list > div {
  background-color: var(--dm-secondary) !important;
  border-color: var(--dm-border) !important;
}
html.dark .default-badge {
  color: #52525b; /* zinc-600 — darker text on the light bg-zinc-200 badge in dark mode */
}


/* ═══════════════════════════════════════════════════════
   29. PRINT
   ═══════════════════════════════════════════════════════ */

@media print {
  #sidebar, #topbar { display: none !important; }
  main { margin-left: 0 !important; margin-top: 0 !important; }
}


/* ═══════════════════════════════════════════════════════
   30. RESPONSIVE BREAKPOINTS — Sidebar / Topbar / Main offsets
   ═══════════════════════════════════════════════════════ */

/* ─── Mobile: < 640px ─── */
@media (max-width: 639px) {
  /* Sidebar: hidden off-screen, slide in with .sidebar-open */
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    z-index: 300 !important;
  }
  #sidebar.sidebar-open {
    transform: translateX(0);
  }

  /* Topbar: show hamburger, remove left offset */
  #topbar {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }
  .sidebar-toggle {
    display: flex !important;
  }

  /* Main content: full width */
  main {
    margin-left: 0 !important;
    padding: var(--space-4) !important;
  }

  /* Tables: horizontal scroll */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Touch targets: min 44px */
  .btn-primary, .btn-gold, .btn-outline, .btn-ghost,
  .btn-secondary, .btn-destructive,
  .sidebar-item, .tab-item, .action-icon {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ─── Tablet: 640px – 1023px ─── */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Sidebar: collapsed icons-only */
  #sidebar {
    width: 64px !important;
  }
  #sidebar .sidebar-label {
    display: none;
  }
  #sidebar .sidebar-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  /* Main content: adjusted margin */
  main {
    margin-left: 64px !important;
  }
  #topbar {
    left: 64px !important;
    width: calc(100% - 64px) !important;
  }
}

/* ─── Large Desktop: 1440px+ ─── */
@media (min-width: 1440px) {
  /* 5-column grids where applicable */
  .grid-cols-5 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}


/* ═══════════════════════════════════════════════════════
   35. HAMBURGER MENU BUTTON & SIDEBAR OVERLAY
   Mobile navigation toggle
   ═══════════════════════════════════════════════════════ */

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--zinc-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background-color: var(--zinc-100);
}
html.dark .sidebar-toggle {
  color: var(--dm-foreground);
}
html.dark .sidebar-toggle:hover {
  background-color: var(--dm-hover);
}

/* Hamburger icon lines */
.sidebar-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.sidebar-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Dark overlay behind sidebar on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}
html.dark .sidebar-overlay {
  background: rgba(0,0,0,0.7);
}

/* Show hamburger button on mobile */
@media (max-width: 639px) {
  .sidebar-toggle {
    display: flex;
  }
}


/* ═══════════════════════════════════════════════════════
   36. SIDEBAR COLLAPSE — Desktop Toggle
   Panel-left button collapses sidebar to 64px icon-only
   on desktop (≥1024px). Persisted via localStorage.
   ═══════════════════════════════════════════════════════ */

/* Smooth transitions for collapse/expand */
#sidebar  { transition: width 0.22s ease; overflow: hidden; }
#topbar   { transition: left 0.22s ease; }
main      { transition: margin-left 0.22s ease; }

/* Desktop toggle button — hidden on mobile/tablet */
.sidebar-desktop-toggle { display: none; }
@media (min-width: 1024px) {
  .sidebar-desktop-toggle { display: flex; }
  /* Hide mobile hamburger on desktop */
  .sidebar-toggle { display: none !important; }
}

/* Collapsed state — desktop only */
@media (min-width: 1024px) {
  body.rs-collapsed #sidebar {
    width: 64px;
  }
  body.rs-collapsed #topbar {
    left: 64px !important;
  }
  body.rs-collapsed main {
    margin-left: 64px !important;
  }

  /* Hide text labels and badges */
  body.rs-collapsed .sidebar-section-label,
  body.rs-collapsed .sidebar-item-label,
  body.rs-collapsed .sidebar-logo-text,
  body.rs-collapsed .sidebar-user-info,
  body.rs-collapsed .sidebar-item-badge {
    display: none !important;
  }

  /* Center icons in nav items */
  body.rs-collapsed .sidebar-item,
  body.rs-collapsed .sidebar-item-active {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-inline: 4px !important;
    gap: 0 !important;
  }
  body.rs-collapsed .sidebar-item i,
  body.rs-collapsed .sidebar-item-active i {
    opacity: 1 !important;
  }

  /* Center logo */
  body.rs-collapsed .sidebar-logo-wrap {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }

  /* Center user footer avatar */
  body.rs-collapsed .sidebar-user-footer {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════════
   40. PASTOR MEETINGS — PRINT
   Print layout and print-only visibility
   ═══════════════════════════════════════════════════════ */

@media print {
  nav, header, .no-print { display: none !important; }
  main { margin: 0 !important; padding: 16px !important; }
  .print-only { display: block !important; }
}


/* ═══════════════════════════════════════════════════════
   42. LOGIN PAGE — Account Picker & Registration
   Account picker, role badges, OTP, plan cards, steps
   ═══════════════════════════════════════════════════════ */

/* View transitions */
.login-view { display: none; }
.login-view.active { display: block; }

/* Account picker cards */
.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: all 0.2s;
}
.account-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(252,204,72,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.account-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.account-card .avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  background: var(--gold);
}
.account-card .info { flex: 1; min-width: 0; }
.account-card .info .name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card .info .email { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card .info .meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* Role badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 18px;
  white-space: nowrap;
}
.role-badge.super-admin   { background: rgba(252,204,72,0.15); color: var(--gold); }
.role-badge.tenant-admin  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.role-badge.org-admin     { background: rgba(34,197,94,0.15);  color: #4ade80; }
.role-badge.org-user      { background: rgba(168,85,247,0.15); color: #c084fc; }
.role-badge.sales-agent   { background: rgba(245,158,11,0.15); color: #fbbf24; }

.org-name-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron on account card */
.account-card .chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s;
}
.account-card:hover .chevron { color: rgba(252,204,72,0.6); }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.back-btn:hover { color: rgba(255,255,255,0.7); }

/* Steps indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.3);
  background: transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}
.step-dot.active {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold);
}
.step-dot.completed {
  border-color: var(--success);
  color: #fff;
  background: var(--success);
}
.step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s;
}
.step-line.completed { background: var(--success); }

/* OTP input */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s;
  outline: none;
}
.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,204,72,0.15);
  background: rgba(255,255,255,0.08);
}

/* Plan cards */
.tier-card {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.tier-card:hover { border-color: rgba(255,255,255,0.15); }
.tier-card.selected {
  border-color: var(--gold);
  background: rgba(252,204,72,0.06);
}
.tier-card .popular-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Success checkmark animation */
@keyframes checkmark-draw {
  to { stroke-dashoffset: 0; }
}
.success-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkmark-draw 0.5s ease 0.3s forwards;
}

/* Scrollable account list */
.account-list {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.account-list::-webkit-scrollbar { width: 4px; }
.account-list::-webkit-scrollbar-track { background: transparent; }
.account-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.account-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Right panel scroll for smaller screens */
.right-panel {
  overflow-y: auto;
  max-height: 100vh;
}
.right-panel::-webkit-scrollbar { width: 4px; }
.right-panel::-webkit-scrollbar-track { background: transparent; }
.right-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Feature highlights in left panel */
.feature-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 767px) {
  .login-card { min-height: 100vh; border-radius: 0 !important; }
}


/* ═══════════════════════════════════════════════════════
   43. ONBOARDING WIZARD
   Full-screen wizard layout, steps, form fields, summary
   ═══════════════════════════════════════════════════════ */

/* Full-screen split layout */
.wizard-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Left Panel ─── */
.wizard-left {
  width: 40%;
  flex-shrink: 0;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background pattern */
.wizard-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(74,78,204,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 10%, rgba(252,204,72,0.08) 0%, transparent 55%);
  pointer-events: none;
}

/* Grid dots pattern */
.wizard-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.wizard-left-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 40px;
}

/* ─── Logo ─── */
.wizard-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
}

.wizard-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
img.wizard-logo-mark { object-fit: contain; background: transparent; }

.wizard-logo-name {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.2px;
}

/* ─── Left panel headline ─── */
.wizard-headline {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.wizard-subtext {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ─── Step list ─── */
.wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.wizard-step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 0 2px;
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
}

.wizard-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.wizard-step-dot.step-current {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(252,204,72,0.18);
}

.wizard-step-dot.step-done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.wizard-step-connector {
  width: 2px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  margin: 4px 0;
  border-radius: 1px;
  transition: background 0.3s;
}

.wizard-step-connector.done {
  background: rgba(34,197,94,0.5);
}

.wizard-step-label {
  padding-top: 2px;
  padding-bottom: 36px;
}

.wizard-step-label-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
  line-height: 1.3;
}

.wizard-step-label-title.step-current {
  color: rgba(255,255,255,0.95);
}

.wizard-step-label-title.step-done {
  color: rgba(255,255,255,0.55);
}

.wizard-step-label-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin-top: 2px;
  line-height: 1.4;
}

.wizard-step-label-sub.step-current {
  color: rgba(252,204,72,0.7);
}

/* ─── Progress bar ─── */
.wizard-progress-area {
  margin-top: auto;
  padding-top: 24px;
}

.wizard-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wizard-progress-text {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

.wizard-progress-pct {
  font-size: 11px;
  color: rgba(252,204,72,0.7);
  font-weight: 700;
}

.wizard-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hover) 100%);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Right Panel ─── */
.wizard-right {
  width: 60%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.wizard-right-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 40px 32px;
}

/* ─── Step header ─── */
.wizard-step-header {
  margin-bottom: 32px;
}

.wizard-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(252,204,72,0.12);
  border: 1px solid rgba(252,204,72,0.25);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #b8900a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.wizard-step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--zinc-900);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.wizard-step-desc {
  font-size: 13px;
  color: var(--zinc-500);
  line-height: 1.6;
}

/* ─── Form fields ─── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field-group.mb-0 { margin-bottom: 0; }
.field-group-mt { margin-top: 18px; }

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--zinc-700);
  letter-spacing: 0.01em;
}

.field-optional {
  font-weight: 400;
  color: var(--zinc-400);
  margin-left: 4px;
}

.field-input {
  padding: 9px 12px;
  border: 1.5px solid var(--zinc-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--zinc-900);
  background: var(--zinc-50);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  width: 100%;
}

.field-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,204,72,0.15);
  background: var(--white);
}

.field-input::placeholder { color: var(--zinc-400); }

select.field-input {
  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 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.field-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  background: rgba(252,204,72,0.07);
  border: 1px solid rgba(252,204,72,0.2);
  border-radius: 8px;
  margin-top: 4px;
}

.field-note-text {
  font-size: 12px;
  color: var(--zinc-500);
  line-height: 1.5;
}
.field-note-mt { margin-top: 16px; }
.icon-amber { color: #b8900a; }
.icon-green  { color: #16a34a; }
.wizard-hidden { display: none !important; }

/* ─── File upload ─── */
.upload-zone {
  border: 2px dashed var(--zinc-200);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--zinc-50);
}

.upload-zone:hover {
  border-color: rgba(252,204,72,0.5);
  background: rgba(252,204,72,0.04);
}

.upload-zone-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(252,204,72,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #b8900a;
}

.upload-zone-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--zinc-700);
  margin-bottom: 3px;
}

.upload-zone-sub {
  font-size: 11px;
  color: var(--zinc-400);
}

/* ─── Invite rows ─── */
.invite-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--zinc-50);
  border: 1.5px solid var(--zinc-200);
  border-radius: 10px;
  transition: border-color 0.15s;
}

.invite-row:focus-within {
  border-color: rgba(252,204,72,0.4);
  background: var(--white);
}

.invite-email-input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--zinc-900);
  outline: none;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  min-width: 0;
}

.invite-email-input::placeholder { color: var(--zinc-400); }

.invite-role-select {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--zinc-600);
  outline: none;
  cursor: pointer;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  padding-right: 4px;
  appearance: none;
  white-space: nowrap;
}

.invite-remove-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zinc-400);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.invite-remove-btn:hover {
  background: var(--error-light);
  color: var(--error);
}

/* ─── Service checkboxes ─── */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1.5px solid var(--zinc-200);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--zinc-50);
  position: relative;
  user-select: none;
}

.service-card:hover {
  border-color: rgba(252,204,72,0.4);
  background: rgba(252,204,72,0.04);
}

.service-card.checked {
  border-color: var(--gold);
  background: rgba(252,204,72,0.07);
}

.service-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-custom-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--zinc-200);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  background: #fff;
}

.service-card.checked .service-custom-check {
  background: var(--gold);
  border-color: var(--gold);
}

.service-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(74,78,204,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple-accent);
  transition: background 0.15s;
}

.service-card.checked .service-icon-wrap {
  background: rgba(252,204,72,0.15);
  color: #b8900a;
}

.service-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--zinc-700);
  line-height: 1.3;
}

/* ─── Summary card (step 5) ─── */
.summary-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 14px;
  padding: 24px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(252,204,72,0.07);
  pointer-events: none;
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.summary-row:last-child { border-bottom: none; }

.summary-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(252,204,72,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.summary-row-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  margin-bottom: 1px;
}

.summary-row-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* ─── Confetti ─── */
.confetti-wrap {
  position: relative;
  height: 48px;
  margin-bottom: 16px;
  overflow: hidden;
}

.confetti-dot {
  position: absolute;
  border-radius: 2px;
  animation: confetti-fall 2.5s ease-in infinite;
  opacity: 0.85;
}

@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  15%  { opacity: 0.9; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(60px) rotate(360deg); opacity: 0; }
}

/* ─── Navigation footer ─── */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--zinc-100);
  margin-top: auto;
}

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

.btn-wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1.5px solid var(--zinc-200);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zinc-600);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.btn-wizard-back:hover {
  border-color: var(--zinc-400);
  background: var(--zinc-50);
}

.btn-wizard-skip {
  font-size: 12px;
  font-weight: 500;
  color: var(--zinc-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.btn-wizard-skip:hover { color: var(--zinc-500); }

.btn-wizard-next {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.1px;
}

.btn-wizard-next:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

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

.btn-wizard-next.large {
  padding: 13px 32px;
  font-size: 14px;
  border-radius: 10px;
}

/* ─── Add member link ─── */
.add-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 1.5px dashed var(--zinc-200);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.add-invite-btn:hover {
  border-color: rgba(252,204,72,0.5);
  background: rgba(252,204,72,0.05);
}

/* ─── Step animation ─── */
.wizard-step-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: step-in 0.3s ease;
  position: relative;
}

.wizard-step-panel.active {
  display: flex;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Quick links row ─── */
.quick-links-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.quick-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  transition: color 0.15s;
}

.quick-link:hover { color: var(--navy); }

.quick-link-sep {
  font-size: 12px;
  color: var(--zinc-200);
}

/* ─── PDF download link ─── */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--zinc-500);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  transition: color 0.15s;
  margin-top: 6px;
}

.pdf-link:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════════════
   Registration page — plan cards, billing tabs, add-on
   ═══════════════════════════════════════════════════════ */

/* Horizontal plan card (radio row style) */
.tier-card-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tier-card-h:hover { border-color: rgba(252,204,72,0.4); }
.tier-card-h.selected {
  border-color: var(--gold);
  background: rgba(252,204,72,0.07);
}

/* Radio indicator inside tier-card-h */
.tier-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  transition: all 0.2s;
}
.tier-radio.selected {
  border-color: var(--gold);
  background: radial-gradient(circle at center, var(--gold) 38%, var(--navy-deep) 38%);
}

/* Billing cycle tab strip */
.cycle-tab {
  flex: 1;
  padding: 7px 4px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
}
.cycle-tab.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.cycle-tab .save-badge {
  display: inline-block;
  font-size: 0.58rem;
  background: rgba(34,197,94,0.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  padding: 0 4px;
  margin-left: 2px;
  vertical-align: middle;
  font-weight: 600;
}

/* Member Portal add-on row */
.addon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
}
.addon-row:hover { border-color: rgba(252,204,72,0.3); }

/* Checkbox inside addon-row */
.addon-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.addon-checkbox.checked {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.tier-card-h .popular-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Wizard: Back to website link ─── */
.wizard-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.wizard-back-link:hover { color: rgba(255,255,255,0.9); }

/* ─── Wizard Step 3: Plan cards ─── */
.cycle-toggle-row {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--navy-xlight, #edf1f7);
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.cycle-toggle-btn {
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--zinc-500, #71717a);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.cycle-toggle-btn.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.cycle-badge {
  font-size: 10px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
  padding: 1px 5px;
  border-radius: 10px;
}
.tier-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.tier-cards-row .tier-card {
  border: 2px solid var(--zinc-200, #e4e4e7);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  background: #fff;
}
.tier-cards-row .tier-card:hover { border-color: var(--navy); }
.tier-cards-row .tier-card.tier-card-selected { border-color: var(--navy) !important; box-shadow: 0 0 0 3px rgba(30,58,95,0.12); }
.tier-cards-row .tier-card.tier-card-popular { border-color: var(--gold, #d4a035); }
.tier-cards-row .tier-card.tier-card-popular:hover { border-color: var(--gold, #d4a035); }
.tier-popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold, #d4a035);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.tier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.tier-card-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.tier-card-tagline { font-size: 11px; color: var(--zinc-500, #71717a); margin-top: 1px; }
.tier-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tier-price-row { display: flex; align-items: baseline; gap: 3px; margin-bottom: 10px; }
.tier-price { font-size: 24px; font-weight: 800; color: var(--navy); }
.tier-price-period { font-size: 11px; color: var(--zinc-500, #71717a); }
.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tier-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--zinc-700, #3f3f46);
}
.tier-features li svg { color: #22c55e; flex-shrink: 0; }
.tier-feature-dim { opacity: 0.45; }
.tier-feature-dim svg { color: var(--zinc-400, #a1a1aa) !important; }

/* ─── Wizard Step 3: Add-on row ─── */
.addon-check-wrap { flex-shrink: 0; }
.addon-check-wrap input[type="checkbox"] { display: none; }
.addon-custom-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--zinc-300, #d4d4d8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.addon-active .addon-custom-check { background: var(--navy); border-color: var(--navy); }
.addon-info { flex: 1; }
.addon-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.addon-desc { font-size: 11px; color: var(--zinc-500, #71717a); margin-top: 2px; }
.addon-price { font-size: 16px; font-weight: 700; color: var(--navy); flex-shrink: 0; }

/* ─── Wizard addon-row: light override (scoped to wizard panel) ─── */
.wizard-right .addon-row {
  background: #fff;
  border: 2px solid var(--zinc-200, #e4e4e7);
  border-radius: 10px;
  padding: 12px 14px;
  gap: 12px;
}
.wizard-right .addon-row:hover { border-color: var(--navy); }
.wizard-right .addon-row.addon-active { border-color: var(--navy); background: rgba(30,58,95,0.04); }

/* ═══════════════════════════════════════════════════
   STEP 5 — Go Live
   ═══════════════════════════════════════════════════ */

/* Hero banner */
.golive-hero {
  position: relative;
  text-align: center;
  padding: 28px 20px 22px;
  margin: 0 0 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 60%, #1a3a6e 100%);
  overflow: hidden;
}
.golive-confetti-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.golive-hero-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold, #d4a035);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: golive-pulse 2.5s ease-in-out infinite;
}
@keyframes golive-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(212,160,53,0.2), 0 0 0 20px rgba(212,160,53,0.08); }
  50%       { box-shadow: 0 0 0 14px rgba(212,160,53,0.28), 0 0 0 30px rgba(212,160,53,0.1); }
}
.golive-title {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.golive-subtitle {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 16px;
}
.golive-url-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 10px 6px 12px;
  color: rgba(255,255,255,0.92);
  font-size: 11px;
  font-family: monospace;
  max-width: 100%;
}
.golive-url-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.golive-copy-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.golive-copy-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Summary tiles */
.golive-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.golive-tile {
  background: var(--zinc-50, #fafafa);
  border: 1px solid var(--zinc-200, #e4e4e7);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.golive-tile svg { color: var(--navy); opacity: 0.55; margin-bottom: 4px; }
.golive-tile-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zinc-400, #a1a1aa);
}
.golive-tile-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

/* What's next */
.golive-next {
  background: var(--zinc-50, #fafafa);
  border: 1px solid var(--zinc-200, #e4e4e7);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.golive-next-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zinc-400, #a1a1aa);
}
.golive-next-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.golive-next-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.golive-next-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.golive-next-desc  { font-size: 11px; color: var(--zinc-500, #71717a); margin-top: 2px; }

/* Go to Dashboard CTA */
.btn-golive-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold, #d4a035);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(212,160,53,0.38);
}
.btn-golive-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212,160,53,0.5);
}

/* ═══════════════════════════════════════════════════
   STEP 2 — Email OTP Verification
   ═══════════════════════════════════════════════════ */
.email-verify-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.email-verify-row .field-input {
  flex: 1;
  min-width: 0;
}
.btn-send-otp {
  flex-shrink: 0;
  padding: 0 16px;
  border-radius: 8px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-send-otp:hover { background: var(--navy); color: #fff; }
.btn-send-otp.sent  { background: #f0f4f8; color: var(--zinc-400, #a1a1aa); border-color: var(--zinc-200, #e4e4e7); cursor: default; }

.otp-section {
  background: var(--zinc-50, #fafafa);
  border: 1px solid var(--zinc-200, #e4e4e7);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.otp-sent-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--zinc-600, #52525b);
  margin-bottom: 14px;
}
.otp-sent-note svg { color: var(--navy); flex-shrink: 0; }
.otp-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.otp-digits {
  display: flex;
  gap: 8px;
}
.otp-digit {
  width: 44px;
  height: 52px;
  border: 2px solid var(--zinc-200, #e4e4e7);
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-digit:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.otp-digit:disabled { background: var(--zinc-100, #f4f4f5); color: var(--zinc-400, #a1a1aa); }
.btn-otp-verify {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.btn-otp-verify:hover { opacity: 0.88; }
.btn-otp-verify.verified { background: #16a34a; cursor: default; }
.btn-otp-verify:disabled { opacity: 0.5; cursor: default; }
.otp-feedback { font-size: 12px; min-height: 18px; margin-bottom: 8px; }
.otp-feedback-error   { color: #dc2626; }
.otp-feedback-success { color: #16a34a; font-weight: 600; }
.otp-resend-row {
  font-size: 12px;
  color: var(--zinc-500, #71717a);
  display: flex;
  align-items: center;
  gap: 5px;
}
.otp-resend-link {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.15s;
}
.otp-resend-link:disabled { opacity: 0.4; cursor: default; text-decoration: none; }
.otp-timer { font-size: 12px; color: var(--zinc-400, #a1a1aa); }

/* Disable Continue button state */
.btn-wizard-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════
   STEP 4 — Payment
   ═══════════════════════════════════════════════════ */

/* Order summary */
.wiz-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.wiz-order-plan  { font-size: 15px; font-weight: 700; }
.wiz-order-cycle { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.wiz-order-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold, #d4a035);
  line-height: 1;
}
.wiz-order-amount span { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.6); }

/* Payment method tabs */
.wiz-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.wiz-method-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--zinc-200, #e4e4e7);
  background: #fff;
  color: var(--zinc-500, #71717a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wiz-method-tab:hover { border-color: var(--navy); color: var(--navy); }
.wiz-method-tab.active { border-color: var(--navy); color: var(--navy); background: rgba(30,58,95,0.05); font-weight: 600; }

/* Card number field with brand icons */
.card-number-wrap {
  position: relative;
}
.card-number-wrap .field-input {
  padding-right: 100px;
}
.card-brand-icons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}
.card-brand {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  opacity: 0.35;
  transition: opacity 0.15s;
}
.card-brand.visa  { background: #1a1f71; color: #fff; }
.card-brand.mc    { background: #eb001b; color: #fff; }
.card-brand.amex  { background: #007bc1; color: #fff; }
.card-brand.active { opacity: 1; }

/* CVV help button */
.cvv-help-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--zinc-400, #a1a1aa);
  padding: 0 0 0 4px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  transition: color 0.15s;
}
.cvv-help-btn:hover { color: var(--navy); }

/* M-Pesa banner */
.mpesa-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.mpesa-info-banner svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.mpesa-info-title { font-size: 13px; font-weight: 600; color: #15803d; margin-bottom: 3px; }
.mpesa-info-desc  { font-size: 12px; color: #166534; line-height: 1.5; }

/* Processing overlay */
.wiz-proc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-direction: column;
  gap: 16px;
}
.wiz-proc-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.wiz-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--zinc-200, #e4e4e7);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wiz-proc-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.wiz-proc-sub {
  font-size: 12px;
  color: var(--zinc-400, #a1a1aa);
}

/* Payment success state */
.wiz-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  gap: 10px;
  text-align: center;
}
.wiz-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.wiz-success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.wiz-success-sub {
  font-size: 13px;
  color: var(--zinc-500, #71717a);
  max-width: 280px;
  line-height: 1.5;
}
.addon-price-unit { font-size: 11px; font-weight: 400; }
.wiz-mpesa-icon { width: 16px; height: 16px; object-fit: contain; border-radius: 2px; }
