/* =========================================================
   PacaBot — 4-Step Sales Wizard
   Dark premium theme — #0D1117, cyan (#00D4FF), gold (#F5C842)
   ========================================================= */

:root {
  --bg-primary:    #0D1117;
  --bg-secondary:  #161B22;
  --bg-card:       #1C2230;
  --bg-card-hover: #202838;
  --border:        #30363D;
  --border-active: #00D4FF;
  --cyan:          #00D4FF;
  --cyan-dim:      rgba(0, 212, 255, 0.15);
  --cyan-glow:     rgba(0, 212, 255, 0.35);
  --gold:          #F5C842;
  --gold-dim:      rgba(245, 200, 66, 0.15);
  --gold-glow:     rgba(245, 200, 66, 0.30);
  --text-primary:  #E6EDF3;
  --text-secondary:#8B949E;
  --text-muted:    #484F58;
  --success:       #3FB950;
  --success-dim:   rgba(63, 185, 80, 0.15);
  --error:         #F85149;
  --error-dim:     rgba(248, 81, 73, 0.15);
  --warning:       #F5C842;
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 30px rgba(0, 212, 255, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* -- Background grid texture -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.wizard-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #0080A0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #000;
  letter-spacing: -1px;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* -- Language Toggle -- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(48, 54, 61, 0.6);
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }
.lang-ar, .lang-en { transition: var(--transition); }
.lang-ar.active, .lang-en.active { color: var(--gold); font-weight: 500; }
.lang-sep { opacity: 0.3; }

/* -- RTL overrides -- */
[dir="ltr"] .wizard-nav { direction: ltr; }
[dir="rtl"] .btn-primary svg,
[dir="rtl"] .btn-secondary svg,
[dir="rtl"] .btn-ghost svg,
[dir="rtl"] .btn-gold svg { transform: scaleX(-1); }

/* -- Progress bar -- */
.progress-container {
  flex: 1;
  max-width: 400px;
}

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--cyan-glow);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.progress-step-name {
  color: var(--text-secondary);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.wizard-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 80px;
}

/* =========================================================
   SCREEN CONTAINER & TRANSITIONS
   ========================================================= */
.wizard-viewport {
  width: 100%;
  max-width: 780px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.wizard-screen {
  width: 100%;
  display: none;
  animation-duration: 0.35s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-screen.active {
  display: block;
}

.wizard-screen.slide-in-right  { animation-name: slideInRight; }
.wizard-screen.slide-in-left   { animation-name: slideInLeft; }
.wizard-screen.slide-out-right { animation-name: slideOutRight; }
.wizard-screen.slide-out-left  { animation-name: slideOutLeft; }

@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(60px); opacity: 0; }
}
@keyframes slideOutLeft {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-60px); opacity: 0; }
}

/* =========================================================
   SCREEN HEADERS
   ========================================================= */
.screen-header {
  text-align: center;
  margin-bottom: 36px;
}

.screen-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.screen-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.screen-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* =========================================================
   STEP 1: Section Labels
   ========================================================= */
.step1-section {
  margin-bottom: 32px;
}

.section-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.form-label .required {
  color: var(--cyan);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

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

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-dim);
}

.form-input.valid {
  border-color: var(--success);
}

/* Input with suffix icon */
.input-wrapper {
  position: relative;
}

.input-wrapper .form-input {
  padding-right: 48px;
}

.input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.input-toggle-btn:hover { color: var(--text-secondary); }

.valid-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success-dim);
  border: 1px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: scale(0.7);
}

.valid-indicator.show {
  opacity: 1;
  transform: scale(1);
}

.valid-indicator svg {
  color: var(--success);
  width: 12px;
  height: 12px;
}

/* Error message */
.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  display: none;
}

.form-error.show { display: block; }

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

/* Textarea */
.form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

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

/* =========================================================
   SELECTION CARDS (industry, role)
   ========================================================= */
.card-grid {
  display: grid;
  gap: 10px;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.selection-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-align: center;
  user-select: none;
  position: relative;
}

.selection-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.selection-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 0 1px var(--cyan), var(--shadow-glow);
}

.card-icon {
  font-size: 26px;
  margin-bottom: 6px;
  line-height: 1;
  filter: grayscale(40%);
  transition: filter var(--transition);
}

.selection-card:hover .card-icon,
.selection-card.selected .card-icon {
  filter: none;
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Check mark on selected card */
.selection-card .card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--transition), transform var(--transition);
}

.selection-card.selected .card-check {
  opacity: 1;
  transform: scale(1);
}

.card-check svg {
  width: 9px;
  height: 9px;
  color: #000;
  stroke-width: 3;
}

/* =========================================================
   USE CASE CHECKBOXES (Step 1 Section C)
   ========================================================= */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}

.checkbox-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: var(--bg-card-hover);
}

.checkbox-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.checkbox-card.selected .checkbox-box {
  background: var(--cyan);
  border-color: var(--cyan);
}

.checkbox-box svg {
  width: 10px;
  height: 10px;
  color: #000;
  opacity: 0;
  transition: opacity var(--transition);
  stroke-width: 3;
}

.checkbox-card.selected .checkbox-box svg { opacity: 1; }

.checkbox-content { flex: 1; }

.checkbox-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* "All of the Above" card spans full width */
.checkbox-card.full-width {
  grid-column: 1 / -1;
}

.checkbox-card.full-width .checkbox-label {
  color: var(--gold);
}

/* =========================================================
   TRUST SIGNAL (Step 1 bottom)
   ========================================================= */
.trust-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(63, 185, 80, 0.06);
  border: 1px solid rgba(63, 185, 80, 0.15);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 24px;
  text-align: center;
}

.trust-icon {
  color: var(--success);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* =========================================================
   STEP 2: AGENT PREVIEW (the WOW moment)
   ========================================================= */
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.preview-header {
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(245,200,66,0.06));
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
}

.preview-persona-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.preview-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.preview-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.preview-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preview-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.preview-capabilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.cap-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.data-sources-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.data-source-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.preview-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-footer-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-footer-text strong {
  color: var(--gold);
}

/* -- Mockup Sections (Daily Briefing / Telegram) -- */
.mockup-section {
  margin-bottom: 20px;
}

.mockup-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mockup-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Daily Briefing Mockup */
.briefing-mockup {
  padding: 20px 24px;
}

.briefing-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.briefing-mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0080A0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #000;
}

.briefing-mockup-meta {
  flex: 1;
}

.briefing-mockup-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.briefing-mockup-time {
  font-size: 11px;
  color: var(--text-muted);
}

.briefing-mockup-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.briefing-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.briefing-item-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Telegram Conversation Mockup */
.telegram-mockup {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.tg-msg-user {
  align-self: flex-end;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text-primary);
  border-bottom-right-radius: 4px;
}

.tg-msg-agent {
  align-self: flex-start;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}

[dir="rtl"] .tg-msg-user {
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 4px;
}

[dir="rtl"] .tg-msg-agent {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 4px;
}

/* Social proof banner */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gold-dim);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 8px;
}

/* =========================================================
   STEP 3: AGENT DESIGN
   ========================================================= */
.name-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.name-chip {
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.name-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.style-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  user-select: none;
}

.style-card:hover {
  border-color: rgba(0,212,255,0.4);
  background: var(--bg-card-hover);
}

.style-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.style-card-icon { font-size: 26px; margin-bottom: 8px; }
.style-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.style-card-desc { font-size: 11px; color: var(--text-secondary); }

.persona-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.persona-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  user-select: none;
}

.persona-card:hover {
  border-color: rgba(0,212,255,0.4);
  background: var(--bg-card-hover);
}

.persona-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.persona-card-icon { font-size: 26px; margin-bottom: 8px; }
.persona-card-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.persona-card-desc { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* =========================================================
   STEP 4: PLAN CARDS
   ========================================================= */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

.plan-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), var(--shadow-glow);
  background: var(--cyan-dim);
}

.plan-card.recommended {
  border-color: var(--gold);
}

.plan-card.recommended.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 30px var(--gold-glow);
  background: var(--gold-dim);
}

.plan-card.recommended:hover {
  border-color: var(--gold);
}

.plan-recommended-badge {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-bottom-left-radius: var(--radius-md);
}

.plan-card.recommended .plan-recommended-badge {
  display: block;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.plan-card.recommended .plan-name { color: var(--gold); }
.plan-card.selected .plan-name { color: var(--cyan); }
.plan-card.recommended.selected .plan-name { color: var(--gold); }

.plan-tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.plan-price {
  margin-bottom: 20px;
}

.plan-price-amount {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.plan-price-currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 2px;
}

.plan-price-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-features li .feat-icon {
  color: var(--success);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-check {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity var(--transition), transform var(--transition);
}

.plan-card.selected .plan-check { opacity: 1; transform: scale(1); }
.plan-card.recommended.selected .plan-check { background: var(--gold); }

.plan-check svg {
  width: 13px;
  height: 13px;
  color: #000;
  stroke-width: 3;
}

/* -- Value comparison bar -- */
.value-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gold-dim);
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}

.value-comparison-icon {
  display: flex;
  align-items: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* -- Cost Details (collapsible) -- */
.cost-details {
  margin-bottom: 24px;
}

.cost-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  padding: 10px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.cost-details summary::-webkit-details-marker { display: none; }

.cost-details summary::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform var(--transition);
}

.cost-details[open] summary::before {
  transform: rotate(90deg);
}

.cost-details summary:hover { color: var(--text-primary); }

.cost-details-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 8px;
}

.cost-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.cost-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cost-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
}

.cost-tag--us {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.cost-tag--third {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(245, 200, 66, 0.3);
}

.cost-tag--free {
  background: #065f46;
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cost-section--free {
  border-color: rgba(16, 185, 129, 0.25);
}

.cost-section-desc {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  margin: 4px 0 6px;
  line-height: 1.4;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
  gap: 12px;
}

.cost-line span:last-child {
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--text-primary);
}

/* -- Skill Add-ons Section -- */
.skill-addons-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.skill-addons-section .section-label {
  margin-bottom: 4px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.optional-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(245,166,35,0.1);
  color: var(--gold);
  border: 1px solid rgba(245,166,35,0.2);
}

.skill-addons-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--font);
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.skill-chip:hover {
  border-color: rgba(245,166,35,0.35);
  background: rgba(245,166,35,0.06);
}

.skill-chip.selected {
  border-color: rgba(245,166,35,0.5);
  background: rgba(245,166,35,0.12);
  color: var(--gold);
}

.skill-chip-icon {
  font-size: 14px;
}

.skill-addons-total {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.skill-addons-total #skill-total-price {
  font-weight: 600;
  color: var(--gold);
}

.skill-total-divider {
  color: var(--text-muted);
}

.skill-marketplace-link {
  display: inline-block;
  font-size: 12px;
  color: var(--cyan);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.skill-marketplace-link:hover {
  opacity: 1;
}

/* -- Activation Summary -- */
.activation-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.summary-chip-icon {
  font-size: 14px;
}

.summary-chip.highlight {
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* -- Account Creation Section -- */
.account-creation {
  margin-bottom: 24px;
}

.account-creation .section-label {
  margin-bottom: 16px;
  text-align: center;
}

/* -- Trust Row -- */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--cyan);
  flex-shrink: 0;
}

/* =========================================================
   STEP 5: WELCOME / POST-PAYMENT
   ========================================================= */
.welcome-screen {
  text-align: center;
  padding: 40px 20px;
}

.welcome-icon {
  font-size: 64px;
  margin-bottom: 20px;
  line-height: 1;
}

.welcome-title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-dashboard-btn {
  display: inline-flex;
  text-decoration: none;
  margin-top: 24px;
}

/* -- Speed Up Section -- */
.speed-up-section {
  text-align: left;
  max-width: 480px;
  margin: 0 auto 24px;
}

[dir="rtl"] .speed-up-section { text-align: right; }

.speed-up-section summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  padding: 10px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.speed-up-section summary::-webkit-details-marker { display: none; }

.speed-up-section summary::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform var(--transition);
}

.speed-up-section[open] summary::before {
  transform: rotate(90deg);
}

.speed-up-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 8px;
}

.speed-up-item {
  margin-bottom: 14px;
}

.speed-up-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* =========================================================
   NAVIGATION BUTTONS
   ========================================================= */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  padding: 13px 24px;
  letter-spacing: -0.2px;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #009abc);
  color: #000;
  box-shadow: 0 4px 16px rgba(0,212,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.35);
}

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

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #c9a020);
  color: #000;
  box-shadow: 0 4px 16px rgba(245,200,66,0.3);
  font-size: 17px;
  padding: 16px 32px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245,200,66,0.4);
}

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

.btn-gold:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 12px;
  font-size: 14px;
}

.btn-ghost:hover {
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.btn-google {
  width: 100%;
  background: #fff;
  color: #3c4043;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid #dadce0;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  gap: 10px;
  transition: all var(--transition);
}

.btn-google:hover {
  background: #f7f8f8;
  border-color: #c6c6c6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-google:active {
  background: #eee;
}

.btn-google svg {
  flex-shrink: 0;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   DIVIDER
   ========================================================= */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.modal-body {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  max-width: 320px;
  pointer-events: all;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .toast {
  transform: translateX(-120%);
}

.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--error); }
.toast .toast-icon { font-size: 16px; flex-shrink: 0; }

/* =========================================================
   LOADING STATE
   ========================================================= */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* =========================================================
   UTILITY
   ========================================================= */
.text-cyan  { color: var(--cyan); }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.hidden { display: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 620px) {
  .wizard-main { padding: 24px 16px 60px; }

  .header-inner { gap: 10px; }
  .progress-container { max-width: 200px; }
  .logo-text { display: none; }

  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .usecase-grid { grid-template-columns: 1fr; }

  .plans-grid { grid-template-columns: 1fr; }
  .style-cards { grid-template-columns: repeat(3, 1fr); }
  .persona-cards { grid-template-columns: 1fr 1fr; }

  .trust-row { flex-direction: column; gap: 8px; }

  .modal { padding: 24px; }

  .btn-gold { font-size: 15px; padding: 14px 24px; }

  .screen-title { font-size: 22px; }

  .preview-header { padding: 18px; }
  .preview-body { padding: 18px; }
  .preview-footer { padding: 14px 18px; }

  .value-comparison { font-size: 12px; }
}

@media (max-width: 420px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .selection-card { padding: 10px 8px; }
  .card-icon { font-size: 22px; margin-bottom: 4px; }
  .card-label { font-size: 11px; }
  .style-cards { grid-template-columns: 1fr 1fr 1fr; }
  .style-card { padding: 12px 8px; }
  .style-card-icon { font-size: 20px; margin-bottom: 4px; }
}
