/* ================================================================
   Smart Digital Service — AI Resume Builder
   style.css — Complete app styles
   Fonts: Syne (headings) + DM Sans (body)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #3b82f6;
  --primary-light:  #60a5fa;
  --accent:         #fbbf24;
  --accent-light:   rgba(251, 191, 36, 0.15);
  --bg:             #030712;
  --surface:        rgba(17, 24, 39, 0.7);
  --text:           #f9fafb;
  --text-muted:     #9ca3af;
  --muted:          #9ca3af;
  --border:         rgba(255, 255, 255, 0.08);
  --success:        #34d399;
  --error:          #ef4444;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 4px 20px rgba(0,0,0,0.5);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.7);
  --transition:     0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ─── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ────────────────────────────────────────────────────── */
.site-header {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.price-badge {
  background: var(--accent-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent);
}

/* ─── Hero Section ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background: transparent;
  color: white;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,168,56,0.18);
  border: 1px solid rgba(232,168,56,0.45);
  color: #ffd97a;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 16.5px;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 28px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.feat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.hero-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}
.hero-deco-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -200px; }
.hero-deco-2 { width: 400px; height: 400px; background: #fff; bottom: -150px; left: -100px; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(232,168,56,0.35);
  text-decoration: none;
}

.btn-primary:hover {
  background: #d9951e;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(232,168,56,0.45);
}

.btn-primary.btn-xl { font-size: 16px; padding: 15px 34px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-arrow { font-size: 18px; }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 12px;
}

.btn-add:hover { background: #fde9b0; }

.btn-remove {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}
.btn-remove:hover { color: var(--error); }

/* ─── Wizard Section ─────────────────────────────────────────────── */
.wizard-section { padding: 40px 0 80px; }

/* ─── Progress ──────────────────────────────────────────────────── */
.wizard-progress {
  margin-bottom: 36px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
}

.ps-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
  flex: 1;
}

.ps-step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}

.ps-step label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
}

.ps-step.active span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.ps-step.active label { color: var(--primary); font-weight: 600; }

.ps-step.completed span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.ps-step.completed span::after { content: '✓'; }
.ps-step.completed span { font-size: 0; }
.ps-step.completed span::after { font-size: 13px; }

.progress-bar-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ─── Wizard Steps ──────────────────────────────────────────────── */
.wizard-step { display: none; animation: fadeSlide 0.3s ease; }
.wizard-step.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-header {
  margin-bottom: 28px;
}

.step-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-header p {
  color: var(--muted);
  font-size: 14.5px;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.optional { font-weight: 400; color: var(--muted); font-size: 12px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,57,84,0.08);
}

.hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.entry-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: var(--shadow);
}

.section-subtitle {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin: 20px 0 14px;
}

/* ─── Toggle ─────────────────────────────────────────────────────── */
.toggle-group { margin-bottom: 20px; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}

.toggle-label input[type=checkbox] { display: none; }

.toggle-track {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-track { background: var(--accent); }
.toggle-label input:checked + .toggle-track::after { left: 23px; }

/* ─── Template Grid ─────────────────────────────────────────────── */
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.template-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.template-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.template-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,168,56,0.2);
}

.template-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: var(--transition);
}

.template-card.active .template-check { opacity: 1; }

.template-info {
  text-align: center;
  margin-top: 10px;
}

.template-info strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.template-info span   { font-size: 11.5px; color: var(--muted); }

/* Template preview thumbnails */
.template-preview {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
}

/* Modern preview */
.modern-preview { display: flex; flex-direction: column; }
.modern-preview .tp-header { height: 25%; background: #0B3954; }
.modern-preview .tp-body   { display: flex; flex: 1; }
.modern-preview .tp-sidebar { width: 38%; background: #F0F4F8; padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; }
.modern-preview .tp-main    { flex: 1; padding: 8px 6px; display: flex; flex-direction: column; gap: 4px; }

/* Classic preview */
.classic-preview { padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; }
.classic-preview .tp-name-center { height: 16px; background: #1a1a1a; width: 60%; margin: 0 auto; border-radius: 2px; }
.classic-preview .tp-divider     { height: 2px; background: #1a1a1a; margin: 3px 0; }
.classic-preview .tp-lines-block { display: flex; flex-direction: column; gap: 4px; }

/* Minimal preview */
.minimal-preview { padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; }
.minimal-preview .tp-min-name { height: 14px; background: #1a1a1a; width: 55%; border-radius: 2px; }
.minimal-preview .tp-min-sub  { height: 8px; background: #ccc; width: 70%; border-radius: 2px; }
.minimal-preview .tp-min-sections { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.minimal-preview .tp-min-label { height: 7px; background: #888; width: 30%; border-radius: 1px; }

.tp-line       { height: 7px; background: #ddd; border-radius: 2px; }
.tp-line.short { width: 65%; }

/* ─── Upsell Card ───────────────────────────────────────────────── */
.upsell-card {
  background: linear-gradient(135deg, #fffdf5, var(--accent-light));
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.upsell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upsell-left { display: flex; align-items: flex-start; gap: 14px; }
.upsell-icon { font-size: 24px; line-height: 1; flex-shrink: 0; }
.upsell-left p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.upsell-left strong { font-size: 14.5px; color: var(--primary); }

.upsell-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.upsell-price { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--primary); }

/* ─── Order Summary ─────────────────────────────────────────────── */
.order-summary {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.os-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  padding: 5px 0;
}

.os-total {
  display: flex;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--primary);
  border-top: 1.5px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
}

/* ─── Payment Card ──────────────────────────────────────────────── */
.payment-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.payment-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.pa-label { font-size: 13px; font-weight: 500; opacity: 0.8; }
.pa-value { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--accent); }

.payment-upi {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.upi-logo {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.upi-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 3px; }
.upi-id    { font-size: 18px; font-weight: 700; color: var(--primary); font-family: 'Syne', sans-serif; display: block; }
.upi-name  { font-size: 12px; color: var(--muted); display: block; }

.payment-steps-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.psl-item { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; }
.psl-num  { width: 26px; height: 26px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.payment-note {
  background: #fff8e7;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: 13px;
  color: #6b5200;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ─── Step Actions ──────────────────────────────────────────────── */
.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

/* ─── Loading ───────────────────────────────────────────────────── */
.loading-container {
  text-align: center;
  padding: 80px 24px;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#loadingText {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.loading-container > p { color: var(--muted); font-size: 14px; }

.loading-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.loading-dots span {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { 0%,80%,100%{transform:scale(0.6);opacity:0.5} 40%{transform:scale(1);opacity:1} }

/* ─── Result ────────────────────────────────────────────────────── */
.result-header {
  text-align: center;
  margin-bottom: 28px;
}

.result-success {
  width: 56px; height: 56px;
  background: #ecfdf5;
  color: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  margin: 0 auto 14px;
  border: 2px solid #bbf7d0;
}

.result-header h2 { font-family: 'Syne', sans-serif; font-size: 24px; color: var(--primary); margin-bottom: 6px; }
.result-header p  { color: var(--muted); font-size: 14.5px; }

.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid;
}

.btn-download.pdf {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-download.pdf:hover { background: var(--primary-light); }

.btn-download.word {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: var(--primary);
}

.btn-download.word:hover { background: var(--bg); }

.cl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.cl-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Glassmorphism Overrides */
body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
}
.hero-deco { display: none; }
.entry-card, .template-card, .upsell-card, .order-summary, .payment-card, input, textarea, select {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}
.ps-step span { background: transparent !important; }
.ps-step.active span    { background: var(--accent) !important; }
.ps-step.completed span { background: var(--primary) !important; }

/* ─── Preview Tabs ──────────────────────────────────────────────── */
.preview-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
  gap: 4px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 600; }

/* ─── Preview Wrapper ───────────────────────────────────────────── */
.preview-wrapper {
  overflow-x: auto;
  background: #f0ece4;
  padding: 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin-bottom: 28px;
}

.preview-wrapper > div { box-shadow: var(--shadow-lg); }
.cl-preview { min-height: 200px; padding: 32px; background: white; }

.result-actions { text-align: center; }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
}

/* ─── Toast Notifications ───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: white;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-width: 90vw;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: var(--error); }
.toast.toast-success { background: var(--success); }

/* ─── WhatsApp FAB ──────────────────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-fab:hover { transform: scale(1.08); }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .template-grid { grid-template-columns: 1fr; }
  .download-buttons { flex-direction: column; align-items: center; }
  .upsell-inner { flex-direction: column; align-items: flex-start; }
  .progress-steps .ps-step label { display: none; }
  .hero { padding: 60px 0 70px; }
  .hero-title { font-size: 26px; }
  .payment-card { padding: 18px; }
}

/* ================================================================
   AUTH SYSTEM — Header, Modals, Plans
   ================================================================ */

/* ─── Header Auth ──────────────────────────────────────────────── */
.auth-btns-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-auth-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.btn-auth-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-auth-solid {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.btn-auth-solid:hover { background: var(--primary-light); }

/* ─── User Panel ───────────────────────────────────────────────── */
.user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.credits-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff;
  background: #f59e0b;
  white-space: nowrap;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.user-info:hover { background: rgba(255,255,255,0.06); }

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  object-fit: cover;
  flex-shrink: 0;
}
img.user-avatar { display: block; }

.user-name    { font-size: 13px; font-weight: 600; }
.user-chevron { font-size: 10px; color: var(--text-muted); }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 140px;
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.user-dropdown.open { display: flex; }

.user-dropdown button {
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.user-dropdown button:hover { background: rgba(255,255,255,0.07); }

/* ─── Hero Pricing Pills ────────────────────────────────────────── */
.hero-pricing {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}

.price-pill {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  position: relative;
}
.price-pill.best {
  border-color: var(--accent);
  background: rgba(251,191,36,0.06);
}

.pp-best {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pp-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.pp-price { font-size: 24px; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--text); }
.pp-sub   { font-size: 11px; color: var(--text-muted); }
.price-pill.best .pp-price { color: var(--accent); }

.hero-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Free tag in upsell ────────────────────────────────────────── */
.free-tag {
  background: rgba(52, 211, 153, 0.15) !important;
  color: var(--success) !important;
  border: 1px solid var(--success) !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ─── Generation Info Box ───────────────────────────────────────── */
.gen-info-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}
.gen-info-box.demo  { border-color: #f59e0b; background: rgba(251,191,36,0.06); }
.gen-info-box.paid  { border-color: var(--primary); background: rgba(59,130,246,0.06); }
.gen-info-box.empty { border-color: #ef4444; background: rgba(239,68,68,0.06); }

.gib-icon { font-size: 22px; flex-shrink: 0; }
.gib-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gib-text strong { font-size: 14px; color: var(--text); }
.gib-text span   { font-size: 12px; color: var(--text-muted); }

.gib-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.gib-btn:hover { background: var(--primary-light); }

/* ─── Modal Base ────────────────────────────────────────────────── */
.rb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rb-modal-box {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 32px 28px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.rb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.07);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.rb-modal-close:hover { background: rgba(255,255,255,0.14); color: var(--text); }

/* ─── Auth Modal ────────────────────────────────────────────────── */
.auth-modal-box { max-width: 420px; }

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}
.auth-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; }

.auth-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 14px;
}
.btn-google:hover { background: #f0f0f0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(59,130,246,0.06);
}

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password-wrap input { padding-right: 60px; }
.auth-toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 6px;
}
.auth-toggle-pw:hover { color: var(--text); }

.auth-error   { color: var(--error);   font-size: 13px; min-height: 18px; margin-bottom: 10px; }
.auth-success { color: var(--success); font-size: 13px; min-height: 18px; margin-bottom: 10px; }

.auth-submit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.auth-submit-btn:hover { background: var(--primary-light); }

.auth-switch-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}
.auth-switch-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch-text a:hover { text-decoration: underline; }

/* ─── Plans Modal ───────────────────────────────────────────────── */
.plans-modal-box { max-width: 480px; }

.plan-step { display: none; }
.plan-step.active { display: block; }

.plans-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.plans-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.plan-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px 16px;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.plan-card:hover {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.04);
}
.plan-card.selected {
  border-color: var(--primary);
  background: rgba(59,130,246,0.08);
}
.plan-card.selected .plan-card-check { opacity: 1; }

.plan-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.plan-card-icon  { font-size: 28px; margin-bottom: 8px; }
.plan-card-name  { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.plan-card-price {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--primary);
  margin-bottom: 4px;
}
.plan-card-desc  { font-size: 11px; color: var(--text-muted); }
.plan-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.plans-proceed-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.plans-proceed-btn:hover { background: var(--primary-light); }

.plans-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0 0 16px;
  display: block;
}
.plans-back-btn:hover { color: var(--text); }

/* ─── UPI Payment in Plans Modal ────────────────────────────────── */
.upi-payment-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.upi-logo-badge {
  background: #5c7bfa;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.upi-details-block { display: flex; flex-direction: column; gap: 2px; }
.upi-pay-to   { font-size: 11px; color: var(--text-muted); }
.upi-pay-id   { font-size: 16px; font-weight: 700; color: var(--text); word-break: break-all; }
.upi-pay-name { font-size: 12px; color: var(--text-muted); }

.upi-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.upi-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.upi-step-num {
  width: 22px;
  height: 22px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--primary-light);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upi-trust-note {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: #fbbf24;
  margin-bottom: 20px;
  line-height: 1.5;
}

.plans-confirm-btn {
  width: 100%;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.plans-confirm-btn:hover:not(:disabled) { background: #047857; }
.plans-confirm-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ─── Plans Success ─────────────────────────────────────────────── */
.plans-success {
  text-align: center;
  padding: 20px 0;
}
.plans-success-icon { font-size: 52px; display: block; margin-bottom: 16px; }
.plans-success h3   { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.plans-success p    { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.plans-done-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.plans-done-btn:hover { background: var(--primary-light); }

/* ─── Responsive additions ─────────────────────────────────────── */
@media (max-width: 640px) {
  .plan-cards { grid-template-columns: 1fr; }
  .hero-pricing { gap: 10px; }
  .price-pill { padding: 14px 20px; min-width: 110px; }
  .rb-modal-box { padding: 24px 18px; }
  .gen-info-box { flex-wrap: wrap; }
}


/* ---- HOME BUTTON ---- */
.home-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.home-btn:hover { border-color: rgba(255,255,255,0.55); color: #fff; }
