/*
Theme Name: GutWise
Theme URI: https://gutwise.in
Author: GutWise Health
Description: A premium Ayurvedic gut health WordPress theme with patient quiz system and admin dashboard.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: gutwise
*/

/* ========================================
   GUTWISE THEME - CSS VARIABLES
   ======================================== */
:root {
  --sage:        #4A7C59;
  --sage-light:  #6FAE82;
  --sage-dark:   #2E5239;
  --cream:       #F5EFE0;
  --cream-dark:  #E8DEC9;
  --terracotta:  #C4683A;
  --terracotta-light: #E08060;
  --charcoal:    #1C1C1C;
  --charcoal-mid:#3A3A3A;
  --white:       #FFFFFF;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --text-body:   #4A4A4A;
  --text-muted:  #888888;
  --border:      rgba(74, 124, 89, 0.15);
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-accent:  'DM Serif Display', serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  
  --shadow-sm: 0 2px 12px rgba(74,124,89,0.08);
  --shadow-md: 0 8px 32px rgba(74,124,89,0.12);
  --shadow-lg: 0 20px 60px rgba(28,28,28,0.15);
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.2;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--sage);
  display: block;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(196,104,58,0.35);
}
.btn-primary:hover {
  background: #B05830;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,104,58,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--sage-dark);
  border: 2px solid var(--sage);
}
.btn-outline:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); }

.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ========================================
   HEADER / NAVBAR
   ======================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245,239,224,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#header.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: var(--white); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--charcoal);
  font-weight: 700;
}
.logo-text span { color: var(--sage); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--sage-dark); }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
#hero {
  min-height: 100vh;
  padding-top: 70px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74,124,89,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(196,104,58,0.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(201,168,76,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,124,89,0.1);
  border: 1px solid rgba(74,124,89,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.6; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--charcoal);
}
.hero-title .accent { color: var(--sage); font-style: italic; }
.hero-title .highlight {
  position: relative;
  color: var(--terracotta);
}
.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--terracotta);
  opacity: 0.3;
  border-radius: 2px;
}
.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
}
.stat-number .stat-accent { color: var(--sage); }
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 340px;
  position: relative;
  z-index: 2;
}
.hero-card-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.hero-card-icon svg { width: 28px; height: 28px; fill: none; stroke: white; stroke-width: 2; }
.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.hero-card-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.hero-card-progress { margin-bottom: 16px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-light), var(--sage));
  border-radius: 100px;
  transition: width 1s ease;
}
.hero-card-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  padding: 4px 12px;
  background: var(--cream);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--sage-dark);
  font-weight: 500;
}

.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-float-1 { top: 30px; right: -20px; animation-delay: 0s; }
.hero-float-2 { bottom: 60px; left: -30px; animation-delay: 1.5s; }
.float-emoji { font-size: 1.5rem; }
.float-text { font-size: 0.8rem; }
.float-text strong { display: block; font-weight: 700; color: var(--charcoal); font-size: 0.9rem; }
.float-text span  { color: var(--text-muted); }

/* ========================================
   TRUST STRIP
   ======================================== */
#trust-strip {
  background: var(--charcoal);
  padding: 20px 0;
  overflow: hidden;
}
.trust-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.trust-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.trust-dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
#how-it-works {
  background: var(--white);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--sage-light) 0, var(--sage-light) 8px,
    transparent 8px, transparent 16px
  );
}
.step-card {
  text-align: center;
  position: relative;
}
.step-number {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sage);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.step-card:hover .step-number {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  transform: scale(1.1);
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.step-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ========================================
   QUIZ CTA BANNER
   ======================================== */
#quiz-cta {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
#quiz-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.quiz-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.quiz-cta-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.quiz-cta-text h2 em {
  color: var(--gold-light);
  font-style: italic;
}
.quiz-cta-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.quiz-cta-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.quiz-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.quiz-feature-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quiz-preview {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.quiz-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.quiz-preview-icon {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.quiz-preview-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.quiz-preview-sub { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

.quiz-preview-steps { display: flex; flex-direction: column; gap: 12px; }
.quiz-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.quiz-step-num {
  width: 24px; height: 24px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--white);
  flex-shrink: 0;
}

/* ========================================
   CONDITIONS / SYMPTOMS
   ======================================== */
#conditions {
  background: var(--cream);
}
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.condition-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.condition-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-light);
}
.condition-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.condition-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.condition-text { font-size: 0.87rem; color: var(--text-muted); line-height: 1.6; }
.condition-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
}
.condition-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.condition-card:hover .condition-link svg { transform: translateX(4px); }

/* ========================================
   TESTIMONIALS
   ======================================== */
#testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--sage-light);
  font-family: var(--font-display);
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--charcoal-mid);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.author-meta { font-size: 0.75rem; color: var(--text-muted); }
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-top: 12px;
}
.star { color: var(--gold); font-size: 0.85rem; }

/* ========================================
   QUIZ PAGE STYLES
   ======================================== */
#quiz-page {
  min-height: 100vh;
  background: var(--cream);
  padding-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-container {
  max-width: 700px;
  width: 100%;
  margin: 40px auto;
  padding: 0 24px;
}
.quiz-header-bar {
  text-align: center;
  margin-bottom: 40px;
}
.quiz-header-bar h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.quiz-header-bar p { color: var(--text-muted); }

.quiz-progress-wrap {
  margin-bottom: 32px;
}
.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.quiz-progress-bar {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 100px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage-light), var(--sage));
  border-radius: 100px;
  transition: width 0.5s ease;
}

.quiz-question-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  animation: slideInUp 0.4s ease;
}
@keyframes slideInUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.quiz-q-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--charcoal);
  margin-bottom: 32px;
  line-height: 1.4;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}
.quiz-option:hover {
  border-color: var(--sage-light);
  background: rgba(74,124,89,0.05);
}
.quiz-option.selected {
  border-color: var(--sage);
  background: rgba(74,124,89,0.08);
}
.quiz-option.selected .option-bullet {
  background: var(--sage);
  border-color: var(--sage);
}
.quiz-option.selected .option-bullet::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
}
.option-bullet {
  width: 24px; height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.option-text { font-size: 0.92rem; font-weight: 500; color: var(--charcoal-mid); }

.quiz-text-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: var(--transition);
}
.quiz-text-input:focus { border-color: var(--sage); background: var(--white); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.quiz-back-btn:hover { color: var(--charcoal); }

/* Quiz Result */
.quiz-result-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 52px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s ease;
}
.result-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.result-title {
  font-size: 2rem;
  margin-bottom: 12px;
}
.result-subtitle { color: var(--text-muted); margin-bottom: 32px; }
.result-profile {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}
.result-profile h4 {
  font-family: var(--font-display);
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.result-item:last-child { border-bottom: none; }
.result-item-label { color: var(--text-muted); }
.result-item-value { font-weight: 600; color: var(--charcoal); }
.result-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(74,124,89,0.1);
  border-radius: 100px;
  font-weight: 700;
  color: var(--sage-dark);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */
#admin-page {
  min-height: 100vh;
  background: #F0F4F8;
  padding-top: 70px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}
.admin-sidebar {
  background: var(--charcoal);
  padding: 32px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.admin-sidebar-brand h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
}
.admin-sidebar-brand span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li.active a {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-left-color: var(--sage-light);
}
.admin-nav-icon { width: 16px; height: 16px; opacity: 0.7; }

.admin-main { padding: 40px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.admin-topbar h1 {
  font-size: 1.8rem;
  color: var(--charcoal);
}
.admin-topbar p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid #E5EAF0;
}
.admin-stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.admin-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--charcoal); }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.admin-stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}
.admin-stat-change.up { color: #2E7D32; }
.admin-stat-change.down { color: #C62828; }

/* Admin Tables */
.admin-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid #E5EAF0;
  overflow: hidden;
  margin-bottom: 28px;
}
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #E5EAF0;
}
.admin-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
}
.admin-card-body { padding: 28px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E5EAF0;
}
.admin-table td {
  padding: 14px 16px;
  font-size: 0.87rem;
  border-bottom: 1px solid #F0F4F8;
  color: var(--charcoal-mid);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFBFC; }

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-orange { background: #FFF3E0; color: #E65100; }
.badge-blue { background: #E3F2FD; color: #1565C0; }

/* Question Manager */
.question-form {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-input,
.form-select,
.form-textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--sage); }
.form-textarea { resize: vertical; min-height: 80px; }

.question-item {
  background: var(--white);
  border: 1px solid #E5EAF0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.question-item:hover { box-shadow: var(--shadow-sm); }
.question-drag {
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: grab;
  padding-top: 2px;
  flex-shrink: 0;
}
.question-item-body { flex: 1; }
.question-item-text { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--charcoal); }
.question-item-meta { font-size: 0.78rem; color: var(--text-muted); }
.question-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 32px; height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}
.icon-btn-edit { background: #E3F2FD; color: #1565C0; }
.icon-btn-edit:hover { background: #1565C0; color: white; }
.icon-btn-delete { background: #FFEBEE; color: #C62828; }
.icon-btn-delete:hover { background: #C62828; color: white; }

/* ========================================
   FOOTER
   ======================================== */
#footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-description {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--sage); color: var(--white); }

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sage-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ========================================
   TABS / PANELS (used in admin)
   ======================================== */
.tabs { display: flex; gap: 4px; background: #F0F4F8; padding: 4px; border-radius: var(--radius-md); }
.tab-btn {
  padding: 10px 22px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Notifications / alerts */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error   { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-info    { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { justify-content: center; }
  .hero-stats { justify-content: center; }
  .quiz-cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .conditions-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .quiz-question-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-sage { color: var(--sage); }
.text-terracotta { color: var(--terracotta); }
.mb-0 { margin-bottom: 0; }
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
