/* ==========================================================================
   LIFEGURU.AI — Zen Theme
   Soft gradients · breathing space · calming palette
   ========================================================================== */

:root {
  /* Calming palette */
  --bg: #fafbff;
  --bg-soft: #f3f5fc;
  --surface: #ffffff;
  --surface-2: #f7f9ff;
  --surface-3: #eef1fa;

  /* Brand from logo */
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --indigo: #4f46e5;
  --purple: #7c3aed;
  --violet: #9333ea;
  --navy: #0c1e57;

  /* Calm accents */
  --sage: #84cab0;
  --lavender: #c4b5fd;
  --sky: #93c5fd;
  --peach: #fed7aa;

  /* Text */
  --text: #0c1e57;
  --text-soft: #475569;
  --text-dim: #64748b;
  --text-faint: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Gradients */
  --grad: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #9333ea 100%);
  --grad-soft: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
  --grad-zen: linear-gradient(180deg, #fafbff 0%, #eef1fa 100%);
  --grad-aurora: linear-gradient(120deg, #dbeafe 0%, #ddd6fe 50%, #fce7f3 100%);

  /* Radius */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;

  /* Shadows (soft) */
  --shadow-sm: 0 2px 8px rgba(76, 70, 165, 0.06);
  --shadow: 0 8px 24px rgba(76, 70, 165, 0.08);
  --shadow-lg: 0 20px 60px rgba(76, 70, 165, 0.10);
  --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);

  /* Fonts */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--grad-zen);
  min-height: 100vh;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--purple); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo-name .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-top: 2px;
}
.header-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}
.region-switch {
  display: flex;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.region-btn {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
}
.region-btn.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.install-btn {
  background: var(--grad);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  text-align: center;
  padding: 64px 0 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: gentle-pulse 2.5s ease-in-out infinite;
}
@keyframes gentle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--navy);
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ==========================================================================
   VOICE BUTTON (zen breathing)
   ========================================================================== */
.voice-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px auto 24px;
}
.voice-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.voice-rings span {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.3);
  opacity: 0;
}
.voice-stage.active .voice-rings span:nth-child(1) {
  animation: ring-out 2.4s ease-out infinite;
}
.voice-stage.active .voice-rings span:nth-child(2) {
  animation: ring-out 2.4s ease-out 0.6s infinite;
}
.voice-stage.active .voice-rings span:nth-child(3) {
  animation: ring-out 2.4s ease-out 1.2s infinite;
}
@keyframes ring-out {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.voice-button {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--grad);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(124, 58, 237, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.voice-button:hover { animation-play-state: paused; transform: scale(1.06); }
.voice-button:active { transform: scale(0.97); }
.voice-button.listening {
  animation: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 80px rgba(239, 68, 68, 0.4);
}
.voice-button svg { width: 76px; height: 76px; }

.voice-status {
  margin-top: 24px;
  font-size: 16px;
  color: var(--text-soft);
  min-height: 24px;
  font-weight: 500;
}
.voice-transcript {
  margin-top: 12px;
  font-size: 22px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
  min-height: 32px;
  font-weight: 500;
}

.fallback-form {
  max-width: 560px;
  margin: 32px auto 0;
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px;
  box-shadow: var(--shadow);
}
.fallback-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 20px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.fallback-form input::placeholder { color: var(--text-faint); }
.fallback-form button {
  background: var(--grad);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   CATEGORY CHIPS / TOPICS
   ========================================================================== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: center;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  background: var(--grad-aurora);
  box-shadow: var(--shadow);
}
.topic-card .topic-icon {
  font-size: 32px;
  display: block;
}
.topic-card .topic-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.topic-card .topic-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* Quick chip suggestions */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px auto 0;
  max-width: 720px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.chip:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: 56px 0;
}
.section-head {
  margin-bottom: 32px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 12px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-head p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ==========================================================================
   ANSWER PAGE — the heart of Lifeguru
   ========================================================================== */
.answer-hero {
  padding: 40px 0 24px;
  text-align: center;
}
.answer-question {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.35;
}
.answer-question::before { content: '"'; color: var(--purple); margin-right: 4px; }
.answer-question::after { content: '"'; color: var(--purple); margin-left: 4px; }

.new-question-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.new-question-btn:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

/* Answer card */
.answer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  margin: 32px auto;
  max-width: 820px;
  box-shadow: var(--shadow);
  position: relative;
}
.answer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--grad);
  border-radius: 0 0 4px 4px;
}
.answer-intro {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin: 0 0 24px;
  font-style: italic;
}
.answer-body {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.8;
}
.answer-body p { margin: 0 0 16px; }

/* Step list */
.steps-section {
  max-width: 820px;
  margin: 32px auto;
}
.steps-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  text-align: center;
  margin: 0 0 24px;
  color: var(--navy);
}
.step-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.step-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--lavender);
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  background: var(--grad);
  color: #fff;
}
.step-content { flex: 1; }
.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 6px;
}
.step-content p {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Affirmations / mantras */
.affirmation-box {
  max-width: 820px;
  margin: 40px auto;
  padding: 36px;
  background: var(--grad-aurora);
  border-radius: var(--r-xl);
  text-align: center;
}
.affirmation-box .label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 16px;
}
.affirmation-box .quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

/* Recommended products (from Amazon) */
.recommendations-section {
  max-width: 1100px;
  margin: 56px auto 32px;
}
.recommendations-section .head {
  text-align: center;
  margin-bottom: 28px;
}
.recommendations-section .head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 8px;
}
.recommendations-section .head p {
  font-size: 15px;
  color: var(--text-soft);
  margin: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--lavender);
}
.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 700;
}
.product-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.product-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.35;
}
.product-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}
.product-cta::after { content: '→'; transition: transform 0.2s; }
.product-card:hover .product-cta::after { transform: translateX(4px); }

/* Related questions */
.related-section {
  max-width: 820px;
  margin: 40px auto;
  text-align: center;
}
.related-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 20px;
}
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.related-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s;
}
.related-pill:hover {
  background: var(--grad-soft);
  color: var(--navy);
  border-color: var(--lavender);
}

/* Crisis box */
.crisis-box {
  max-width: 820px;
  margin: 24px auto;
  background: linear-gradient(135deg, #fef3f2 0%, #fff5eb 100%);
  border: 2px solid #fecaca;
  border-radius: var(--r-xl);
  padding: 36px;
  text-align: center;
}
.crisis-box h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: #b91c1c;
  margin: 0 0 12px;
  font-size: 24px;
}
.crisis-box p {
  color: #7c2d12;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.crisis-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.crisis-numbers a {
  background: #fff;
  color: #b91c1c;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #fecaca;
  font-size: 14px;
}
.crisis-numbers a:hover { background: #fecaca; }

/* ==========================================================================
   AD SLOTS (custom images, not AdSense)
   ========================================================================== */
.ad-slot {
  margin: 32px auto;
  max-width: 820px;
  text-align: center;
}
.ad-slot a { display: block; }
.ad-slot img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}
.ad-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  padding: 56px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.footer-brand .footer-logo .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-col a:hover { color: var(--purple); }
.footer-disclosure { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-soft);
}
.admin-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.admin-sidebar .sidebar-logo .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.admin-sidebar .sidebar-logo .name .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-sidebar .sidebar-logo .sub {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.admin-nav a:hover { background: var(--surface-2); color: var(--navy); }
.admin-nav a.active {
  background: var(--surface-2);
  color: var(--navy);
  border-left-color: var(--purple);
  font-weight: 600;
}
.admin-main { padding: 32px 40px; }
.admin-main h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--navy);
}
.admin-main .lead { font-size: 15px; color: var(--text-soft); margin: 0 0 28px; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.stat-tile .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--navy);
}

.admin-form { display: flex; flex-direction: column; gap: 18px; }
.admin-form label {
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}
.admin-form input[type=text],
.admin-form input[type=password],
.admin-form input[type=email],
.admin-form input[type=url],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.admin-form textarea { min-height: 90px; resize: vertical; }
.admin-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form .help {
  font-size: 12px;
  color: var(--text-dim);
  margin: -12px 0 0;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 11px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-danger {
  background: #ef4444;
  color: #fff;
  border: 0;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.alert { padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; font-size: 14px; }
.alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
table.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
table.admin-table tr:hover td { background: var(--surface-2); }

/* Ad image preview in admin */
.ad-preview {
  display: block;
  max-width: 200px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin: 8px 0;
}

/* Login screen */
.login-body {
  background: var(--grad-aurora);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  text-align: center;
  margin: 0 0 24px;
  color: var(--navy);
}

/* ==========================================================================
   INSTALLER
   ========================================================================== */
.installer-body {
  background: var(--grad-aurora);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}
.install-card {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}
.install-logo { text-align: center; margin-bottom: 28px; }
.install-logo .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.01em;
}
.install-logo .name .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.install-logo .step {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.install-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--navy);
}
.install-card p.lead { color: var(--text-soft); margin: 0 0 28px; }
.steps-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.steps-bar .step-dot {
  width: 32px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
}
.steps-bar .step-dot.done { background: var(--blue); }
.steps-bar .step-dot.active { background: var(--grad); }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 16px; }
  .hero { padding: 40px 0 20px; }
  .voice-button { width: 160px; height: 160px; }
  .voice-button svg { width: 60px; height: 60px; }
  .voice-rings span { width: 160px; height: 160px; margin: -80px 0 0 -80px; }
  .answer-card { padding: 28px 22px; }
  .step-card { padding: 18px 20px; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-main { padding: 22px 18px; }
  .admin-form .row { grid-template-columns: 1fr; }
  .logo-tag { display: none; }
  .header-nav { gap: 8px; }
}
