/*
 * Cloche Design System v2.0
 * Botanical luxury — inspired by Planta, Bloom, Calm
 * Muted sage greens · Warm ivory backgrounds · Dusty terracotta · Warm charcoal
 *
 * This file is injected AFTER inline <style> blocks so these :root variables win.
 */

/* ─────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS (CSS Custom Properties)
───────────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Primary palette: muted botanical greens ── */
  --sage:        #587A52;   /* desaturated, earthier — was #3B6B35 */
  --sage-deep:   #3B5535;   /* warmer, softer deep green — was #2A4D26 */
  --sage-light:  #7A9E72;   /* dusty, muted — was #5A8F52 */

  /* ── Backgrounds: warm ivory/cream ── */
  --cream:       #F4EFE6;   /* amber-warm cream — was #FAF7F2 */
  --cream-dark:  #E5DDD0;   /* warm sand — was #EDE8DF */

  /* ── Accent: dusty terracotta ── */
  --terracotta:       #A66348;   /* deeper, dustier — was #C4724E */
  --terracotta-light: #C07F64;   /* softer — was #D4896A */

  /* ── Text: warm charcoal (KEY CHANGE — was dark green #1A2E0D) ── */
  --soil:        #2C2B28;   /* warm charcoal, natural feel */
  --text-muted:  #6B6560;   /* secondary text */
  --text-light:  #9A9490;   /* tertiary / placeholders */

  /* ── Supporting greens ── */
  --moss:        #82A677;   /* more muted — was #8DB580 */
  --moss-faint:  #D8E8D1;   /* softer tint — was #D4E5CE */

  /* ── Surfaces ── */
  --warm-white:  #FDFAF6;   /* barely-there warmth — was #FEFDFB */
  --card-bg:     #FFFFFF;

  /* ── Status ── */
  --error:       #A84040;   /* less aggressive red — was #C0392B */
  --success:     #4A8A58;   /* more muted green — was #27AE60 */
  --gold:        #C49922;
  --gold-faint:  #FFF8E3;

  /* ── Shadows: layered, natural depth ── */
  --shadow-xs: 0 1px 2px rgba(44, 43, 40, 0.05);
  --shadow-sm: 0 1px 4px rgba(44, 43, 40, 0.07), 0 1px 2px rgba(44, 43, 40, 0.04);
  --shadow-md: 0 4px 16px rgba(44, 43, 40, 0.09), 0 1px 4px rgba(44, 43, 40, 0.04);
  --shadow-lg: 0 8px 32px rgba(44, 43, 40, 0.11), 0 2px 8px rgba(44, 43, 40, 0.05);

  /* ── Border radius system ── */
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-pill: 100px;

  /* ── Spacing system ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Border tokens ── */
  --border-subtle:  1px solid rgba(90, 78, 62, 0.10);
  --border-default: 1px solid rgba(90, 78, 62, 0.16);
  --border-strong:  1px solid rgba(90, 78, 62, 0.25);

  /* ── Transition ── */
  --transition: all 0.2s ease;
}


/* ─────────────────────────────────────────────────────────────────────────────
   2. BASE RESET & BODY
───────────────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--soil);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Better body type defaults */
p {
  line-height: 1.65;
  color: var(--soil);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--soil);
}

/* Elevate DM Serif Display headings */
.font-serif,
.hero-title,
.plan-name,
.nav-logo-name,
.plan-gen-title,
.diag-modal-title,
.snap-diag-headline,
.garden-stat-val {
  font-family: 'DM Serif Display', serif;
  letter-spacing: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. NAVIGATION
   PERMANENT: Cloche bell dome logo only. No emoji placeholders. Do not change.
   The logo SVG (bell dome + seedling) is the ONLY brand mark allowed in nav,
   error pages, empty states, and onboarding. See public/login.html for reference.
───────────────────────────────────────────────────────────────────────────── */
nav {
  background: rgba(253, 250, 246, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-subtle);
  height: 64px;
}

.nav-logo-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}

.nav-link {
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--cream-dark);
  color: var(--soil);
}

.nav-link.active {
  background: var(--moss-faint);
  color: var(--sage-deep);
  font-weight: 600;
}

.btn-logout {
  border: var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--cream-dark);
  color: var(--soil);
  border-color: var(--cream-dark);
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. BUTTON SYSTEM
   Softer, rounder — premium botanical feel
───────────────────────────────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Primary: muted sage, not aggressive */
.btn-primary,
.btn-sage {
  background: var(--sage);
  color: white;
  box-shadow: 0 2px 8px rgba(88, 122, 82, 0.28), 0 1px 3px rgba(44, 43, 40, 0.08);
}

.btn-primary:hover,
.btn-sage:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88, 122, 82, 0.32), 0 1px 4px rgba(44, 43, 40, 0.08);
}

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

/* Secondary/Outline: muted border */
.btn-secondary,
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage);
  transition: var(--transition);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--moss-faint);
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

/* Ghost: very subtle */
.btn-ghost {
  background: var(--cream-dark);
  color: var(--soil);
  border: none;
}

.btn-ghost:hover {
  background: #d8cfc3;
}

/* Terracotta CTA variant */
.btn-terracotta {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 2px 8px rgba(166, 99, 72, 0.25);
}

.btn-terracotta:hover {
  background: #8f5138;
  transform: translateY(-1px);
}

/* Waitlist button */
.btn-waitlist {
  background: var(--cream);
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  transition: var(--transition);
}

.btn-waitlist:hover {
  background: var(--terracotta);
  color: white;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. CARD SYSTEM
   Consistent corners · Soft layered shadows · Generous padding
───────────────────────────────────────────────────────────────────────────── */

/* Base card */
.card,
.plan-card,
.garden-card,
.diag-card,
.todo-quick-add {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

/* Dashboard plan card */
.plan-card {
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  box-shadow: var(--shadow-sm);
  border: var(--border-subtle);
}

/* Paywall tier cards */
.plan-card[class*="plan-card"] {
  border-radius: var(--radius-xl);
}

/* Feature card featured state */
.plan-card.featured {
  border-color: var(--sage);
  box-shadow: 0 6px 28px rgba(88, 122, 82, 0.14), 0 1px 4px rgba(44, 43, 40, 0.04);
  transform: translateY(-2px);
}

/* Garden status card */
.garden-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Reminder items */
.reminder-item,
.todo-item {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: var(--border-subtle);
}

/* Diagnostic result cards */
.diag-card {
  border-radius: var(--radius-lg);
  border: var(--border-default);
}

/* Login/signup card */
.card.login-card,
.card:not([class*="plan-card"]):not([class*="garden-"]):not([class*="diag-"]):not([class*="reminder-"]):not([class*="todo-"]) {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. FORM INPUTS
   Warm, refined feel
───────────────────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
textarea,
select {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  color: var(--soil);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sage);
  background: white;
  box-shadow: 0 0 0 3px rgba(88, 122, 82, 0.10);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--soil);
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. SECTION HEADINGS & LAYOUT
   More breathing room · Better visual hierarchy
───────────────────────────────────────────────────────────────────────────── */
main {
  padding-top: 36px;
  padding-bottom: 100px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  margin-top: 36px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--soil);
  letter-spacing: -0.01em;
}

/* Eyebrow labels (small uppercase above headings) */
.hero-eyebrow,
.tier-label {
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-eyebrow {
  background: var(--terracotta);
  color: white;
  border-radius: var(--radius-pill);
  padding: 5px 18px;
}

.tier-label {
  color: var(--text-light);
}

/* Hero title: larger, more elegant */
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.0rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .hero-title { font-size: 1.85rem; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. GREETING BAR
   Softer, more sophisticated
───────────────────────────────────────────────────────────────────────────── */
.greeting-bar {
  background: var(--sage);
  /* Subtle texture overlay for depth */
  box-shadow: 0 2px 12px rgba(59, 85, 53, 0.15), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.greeting-text {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.greeting-meta span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
}

.greeting-plants-link {
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.greeting-plants-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
}

.greeting-zone-pill {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 700;
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. PAYWALL / PLAN CARDS (pricing page)
───────────────────────────────────────────────────────────────────────────── */
.plan-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.plan-badge {
  background: var(--terracotta);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-badge.best-value {
  background: var(--gold);
  color: var(--soil);
}

.plan-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.plan-features li {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.5;
}

.plan-features li .check {
  color: var(--sage);
}

.price-variant {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: var(--transition);
}

.price-variant:hover {
  background: var(--cream-dark);
  border-color: var(--sage);
}

.price-variant.selected {
  background: var(--moss-faint);
  border-color: var(--sage);
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. BADGES & PILLS
───────────────────────────────────────────────────────────────────────────── */
.reminder-cat,
.todo-source-badge {
  background: var(--moss-faint);
  color: var(--sage-deep);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
}

.done-count {
  background: var(--moss-faint);
  color: var(--sage-deep);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.garden-status-badge {
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.garden-status-badge.expired {
  background: #FEF0EB;
  color: var(--terracotta);
  border: 1px solid #F5C4B0;
}

.garden-status-badge.active {
  background: var(--moss-faint);
  color: var(--sage-deep);
  border: 1px solid var(--moss);
}


/* ─────────────────────────────────────────────────────────────────────────────
   11. DIAGNOSTIC CARD (dark gradient)
   Softer, warmer gradient
───────────────────────────────────────────────────────────────────────────── */
.snap-diagnostic-card {
  background: linear-gradient(
    135deg,
    #2C2B28 0%,
    #3B5535 55%,
    #587A52 100%
  );
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.snap-diagnostic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 43, 40, 0.22);
}

.snap-diag-btn {
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  background: white;
  color: var(--sage-deep);
}

.snap-diag-btn:hover {
  background: var(--cream);
  transform: scale(1.02);
}


/* ─────────────────────────────────────────────────────────────────────────────
   12. GARDEN STATS (plan card stat blocks)
───────────────────────────────────────────────────────────────────────────── */
.garden-stat {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  text-align: center;
}

.garden-stat-val {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--sage);
}

.garden-stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 2px;
  display: block;
}


/* ─────────────────────────────────────────────────────────────────────────────
   13. TOAST NOTIFICATION
───────────────────────────────────────────────────────────────────────────── */
#toast {
  background: var(--soil);
  color: white;
  border-radius: var(--radius-md);
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
}


/* ─────────────────────────────────────────────────────────────────────────────
   14. GUARANTEE / INFO BLOCKS
───────────────────────────────────────────────────────────────────────────── */
.guarantee {
  background: var(--moss-faint);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid rgba(130, 166, 119, 0.25);
}

.guarantee p {
  font-size: 0.88rem;
  color: var(--sage-deep);
  line-height: 1.65;
}


/* ─────────────────────────────────────────────────────────────────────────────
   15. PLAN CONTENT (rendered markdown in dashboard)
───────────────────────────────────────────────────────────────────────────── */
.plan-content {
  line-height: 1.7;
  font-size: 0.93rem;
  color: var(--soil);
}

.plan-content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--sage-deep);
}

.plan-content h2:first-child {
  margin-top: 0;
}

.plan-content em {
  color: var(--text-muted);
}

.plan-content a {
  color: var(--sage-deep);
}


/* ─────────────────────────────────────────────────────────────────────────────
   16. PLAN GENERATION STEPS (animated loader)
───────────────────────────────────────────────────────────────────────────── */
.plan-gen-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--sage-deep);
}

.plan-gen-step-dot {
  background: var(--cream-dark);
}

.plan-gen-step.active .plan-gen-step-dot {
  background: var(--sage);
}

.plan-gen-step.done .plan-gen-step-dot {
  background: var(--sage);
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 122, 82, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(88, 122, 82, 0); }
}


/* ─────────────────────────────────────────────────────────────────────────────
   17. BOTTOM NAV (PWA mobile nav)
───────────────────────────────────────────────────────────────────────────── */
.bottom-nav {
  background: rgba(253, 250, 246, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: var(--border-subtle);
}

.bottom-nav-item.active {
  color: var(--sage);
}

.bottom-nav-item {
  color: var(--text-muted);
}


/* ─────────────────────────────────────────────────────────────────────────────
   18. DONE SECTION TOGGLE
───────────────────────────────────────────────────────────────────────────── */
.done-toggle {
  background: white;
  border-radius: var(--radius-md);
  border: var(--border-default);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.done-toggle:hover {
  background: var(--cream-dark);
  color: var(--soil);
}


/* ─────────────────────────────────────────────────────────────────────────────
   19. MODAL OVERLAYS
───────────────────────────────────────────────────────────────────────────── */
.diag-modal {
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

@media (min-width: 600px) {
  .diag-modal {
    border-radius: var(--radius-xl);
  }
}

.diag-modal-header {
  background: white;
  border-bottom: var(--border-subtle);
}

.diag-modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--soil);
}

.diag-result-overall {
  background: var(--cream);
  border-radius: var(--radius-md);
}

.diag-action-text {
  background: var(--moss-faint);
  border-radius: var(--radius-sm);
}


/* ─────────────────────────────────────────────────────────────────────────────
   20. SPINNER COLORS
───────────────────────────────────────────────────────────────────────────── */
.spinner-lg {
  border-color: var(--cream-dark);
  border-top-color: var(--sage);
}

.spinner-sm {
  border-color: var(--cream-dark);
  border-top-color: var(--sage);
}


/* ─────────────────────────────────────────────────────────────────────────────
   21. ONBOARDING STYLES
───────────────────────────────────────────────────────────────────────────── */
.onboarding-step {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.step-title {
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.01em;
  color: var(--sage-deep);
}

/* Search input in plant finder / onboarding */
.search-input,
.plant-search {
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  color: var(--soil);
  transition: var(--transition);
}

.search-input:focus,
.plant-search:focus {
  border-color: var(--sage);
  background: white;
  box-shadow: 0 0 0 3px rgba(88, 122, 82, 0.10);
}


/* ─────────────────────────────────────────────────────────────────────────────
   22. PLANT CARDS
───────────────────────────────────────────────────────────────────────────── */
.plant-card {
  background: white;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.plant-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.plant-name {
  font-weight: 700;
  color: var(--soil);
  letter-spacing: -0.01em;
}

.plant-type-badge {
  background: var(--moss-faint);
  color: var(--sage-deep);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   23. SETTINGS PAGE
───────────────────────────────────────────────────────────────────────────── */
.settings-section {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  overflow: hidden;
}

.settings-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--text-light);
  padding: 20px 22px 10px;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  gap: 14px;
  border-top: var(--border-subtle);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--soil);
}

.settings-item:first-of-type {
  border-top: none;
}

.settings-item:hover {
  background: var(--cream);
}


/* ─────────────────────────────────────────────────────────────────────────────
   24. CHAT PAGE
───────────────────────────────────────────────────────────────────────────── */
.chat-bubble {
  border-radius: var(--radius-xl);
  line-height: 1.6;
  font-size: 0.93rem;
}

.chat-bubble.user {
  background: var(--sage);
  color: white;
  border-bottom-right-radius: var(--radius-xs);
}

.chat-bubble.assistant {
  background: white;
  color: var(--soil);
  border: var(--border-subtle);
  border-bottom-left-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

.chat-input-area {
  background: rgba(253, 250, 246, 0.96);
  backdrop-filter: blur(12px);
  border-top: var(--border-subtle);
}


/* ─────────────────────────────────────────────────────────────────────────────
   25. PROGRESS / LEVEL UP PAGE
───────────────────────────────────────────────────────────────────────────── */
.level-badge {
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  border-radius: var(--radius-xl);
  color: white;
  box-shadow: var(--shadow-md);
}

.xp-bar-fill {
  background: linear-gradient(90deg, var(--sage), var(--sage-light));
  border-radius: var(--radius-pill);
}

.xp-bar-track {
  background: var(--cream-dark);
  border-radius: var(--radius-pill);
}

.achievement-card {
  background: white;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}


/* ─────────────────────────────────────────────────────────────────────────────
   26. SEASONAL / JOURNAL / TIMELINE
───────────────────────────────────────────────────────────────────────────── */
.season-card,
.journal-entry,
.timeline-item-card {
  background: white;
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.season-header {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   27. LANDING PAGE (index.html) OVERRIDES
───────────────────────────────────────────────────────────────────────────── */

/* Feature section cards */
.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Pricing cards on landing */
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: var(--sage);
  box-shadow: 0 8px 32px rgba(88, 122, 82, 0.16);
}

/* CTA sections */
.cta-section {
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage) 100%);
  border-radius: var(--radius-xl);
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}


/* ─────────────────────────────────────────────────────────────────────────────
   28. UTILITY CLASSES
───────────────────────────────────────────────────────────────────────────── */
.text-muted      { color: var(--text-muted) !important; }
.text-light      { color: var(--text-light) !important; }
.text-sage       { color: var(--sage) !important; }
.text-sage-deep  { color: var(--sage-deep) !important; }
.text-terracotta { color: var(--terracotta) !important; }
.text-soil       { color: var(--soil) !important; }

.bg-cream        { background: var(--cream) !important; }
.bg-cream-dark   { background: var(--cream-dark) !important; }
.bg-moss-faint   { background: var(--moss-faint) !important; }
.bg-sage         { background: var(--sage) !important; }
.bg-white        { background: white !important; }

.rounded-pill    { border-radius: var(--radius-pill) !important; }
.rounded-xl      { border-radius: var(--radius-xl) !important; }
.rounded-lg      { border-radius: var(--radius-lg) !important; }

.shadow-sm       { box-shadow: var(--shadow-sm) !important; }
.shadow-md       { box-shadow: var(--shadow-md) !important; }

/* Spacing helpers */
.mt-section      { margin-top: var(--space-10); }
.mb-section      { margin-bottom: var(--space-8); }
.gap-card        { gap: var(--space-5); }

/* Divider */
hr.divider,
.divider {
  border: none;
  border-top: var(--border-subtle);
  margin: 24px 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   29. SCROLLBAR (subtle, on-brand)
───────────────────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--cream-dark);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--moss);
}


/* ─────────────────────────────────────────────────────────────────────────────
   30. FOCUS VISIBLE (accessibility)
───────────────────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ─────────────────────────────────────────────────────────────────────────────
   31. WAITLISTED / SUCCESS STATES
───────────────────────────────────────────────────────────────────────────── */
.waitlisted-badge {
  background: var(--gold-faint);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: #7a6000;
  font-weight: 600;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.plan-refresh-note {
  background: var(--moss-faint);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--sage-deep);
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid rgba(130, 166, 119, 0.25);
}


/* ─────────────────────────────────────────────────────────────────────────────
   32. MOBILE / RESPONSIVE ADJUSTMENTS
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav {
    height: 60px;
  }

  .plan-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }

  .garden-card {
    padding: 20px 18px;
  }

  main {
    padding-top: 28px;
  }

  .section-row {
    margin-top: 28px;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .plan-name {
    font-size: 1.4rem;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   33. LANDING PAGE SPECIFIC OVERRIDES
   Replace hardcoded rgba(26,46,13,...) secondary text with warm tones
───────────────────────────────────────────────────────────────────────────── */

/* Secondary text on landing — was rgba(26,46,13,0.6) dark green tint */
.lp-section-head p,
.hero-sub,
.hero-supporting,
.nav-user,
.lp-nav-links a,
.footer-col p,
.social-proof-text {
  color: var(--text-muted);
}

/* Landing nav background with new cream */
.lp-nav-wrap {
  background: rgba(244, 239, 230, 0.96);
  border-bottom: var(--border-subtle);
}

.lp-nav-wrap.scrolled {
  box-shadow: 0 2px 20px rgba(44, 43, 40, 0.09);
}

/* Hero badge: muted sage tint */
.hero-badge {
  background: rgba(88, 122, 82, 0.10);
  border: 1px solid rgba(88, 122, 82, 0.20);
  color: var(--sage-deep);
}

/* Hero gradient: cream-moss-cream → warmer amber-to-moss */
#landing .lp-hero {
  background: linear-gradient(170deg, var(--cream) 0%, var(--moss-faint) 55%, var(--cream) 100%);
}

/* Feature section cards — extra whitespace */
.lp-feature-card,
.feature-row-card {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lp-feature-card:hover,
.feature-row-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Social proof / testimonials */
.testimonial {
  background: white;
  border-radius: var(--radius-xl);
  border: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

/* Zone badge */
.nav-zone {
  background: rgba(88, 122, 82, 0.10);
  color: var(--sage);
  border-radius: var(--radius-pill);
}

/* Footer */
footer,
.lp-footer {
  background: var(--sage-deep);
  color: rgba(255, 255, 255, 0.85);
}

.lp-footer a,
footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.lp-footer a:hover,
footer a:hover {
  color: white;
}

/* CTA block at bottom of landing */
.lp-cta-section {
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage) 100%);
  border-radius: var(--radius-xl);
}

/* ─────────────────────────────────────────────────────────────────────────────
   34. REDUCED MOTION
───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   35. GLOBAL SPACING OVERHAUL
   More breathing room everywhere — premium botanical feel
───────────────────────────────────────────────────────────────────────────── */

/* Generous main container padding */
main {
  padding-top: 40px !important;
  padding-bottom: 120px !important;
}

/* Card padding — more generous across the board */
.card {
  padding: 36px 32px !important;
}

.plan-card {
  padding: 32px 28px !important;
}

.garden-card {
  padding: 32px 28px !important;
}

.settings-section {
  margin-bottom: 24px !important;
}

/* Section spacing — more room between sections */
.section-row {
  margin-top: 44px !important;
  margin-bottom: 20px !important;
}

/* List item breathing room */
.reminder-item,
.todo-item {
  padding: 16px 18px !important;
}

/* Plant card padding */
.plant-card {
  padding: 18px 16px !important;
}

/* Onboarding card — premium centered experience */
body > .card:first-of-type,
.onboarding-step {
  padding: 48px 44px !important;
}

@media (max-width: 600px) {
  main {
    padding-top: 28px !important;
    padding-bottom: 100px !important;
  }
  .card {
    padding: 28px 22px !important;
  }
  .plan-card {
    padding: 24px 20px !important;
  }
  .garden-card {
    padding: 24px 20px !important;
  }
  body > .card:first-of-type,
  .onboarding-step {
    padding: 36px 24px !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   36. NAVIGATION POLISH (all pages)
   Consistent nav across every page
───────────────────────────────────────────────────────────────────────────── */
nav {
  background: rgba(253, 250, 246, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: var(--border-subtle) !important;
  height: 64px !important;
  box-shadow: none !important;
}

.nav-logo-name {
  font-family: 'DM Serif Display', serif !important;
  color: var(--sage-deep) !important;
  font-size: 1.25rem !important;
}

/* Nav links — consistent hover/active states */
.nav-link {
  color: var(--text-muted) !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 14px !important;
  transition: var(--transition) !important;
}

.nav-link:hover {
  background: var(--cream-dark) !important;
  color: var(--soil) !important;
}

.nav-link.active {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   37. TYPOGRAPHY HIERARCHY
   DM Serif for headings, generous line-height
───────────────────────────────────────────────────────────────────────────── */

/* h2 inside cards & step screens — serif treatment */
.card h2,
.onboarding-step h2,
.step-title,
.screen h2,
.diag-modal-title,
.plan-gen-title,
.plan-name,
.hero-title {
  font-family: 'DM Serif Display', serif !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
}

/* Section titles — bolder, cleaner */
.section-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--soil) !important;
}

/* Muted secondary text — use warm charcoal scale, not cold grays */
.hero-sub,
.plan-desc,
.garden-info-sub,
.screen-hint,
.cat-desc {
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
}

/* Label style — clean uppercase for section eyebrows */
.tier-label,
.settings-section-title,
.garden-stat-label {
  font-size: 0.71rem !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: var(--text-light) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   38. BUTTON SYSTEM OVERRIDES
   Ensure all btn variants get proper radius & feel
───────────────────────────────────────────────────────────────────────────── */
.btn,
button.btn,
a.btn {
  border-radius: var(--radius-md) !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

/* Primary/sage — muted botanical green */
.btn-sage,
.btn-primary {
  background: var(--sage) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(88, 122, 82, 0.25) !important;
  border: none !important;
}

.btn-sage:hover,
.btn-primary:hover {
  background: var(--sage-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(88, 122, 82, 0.30) !important;
}

/* Outline/secondary */
.btn-outline,
.btn-secondary {
  background: transparent !important;
  border: 1.5px solid var(--sage) !important;
  color: var(--sage) !important;
}

.btn-outline:hover,
.btn-secondary:hover {
  background: var(--moss-faint) !important;
  border-color: var(--sage-deep) !important;
  color: var(--sage-deep) !important;
}

/* Terracotta CTA */
.btn-terracotta {
  background: var(--terracotta) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(166, 99, 72, 0.22) !important;
}

/* Ghost */
.btn-ghost {
  background: var(--cream-dark) !important;
  color: var(--soil) !important;
  border: none !important;
}

.btn-ghost:hover {
  background: #d8cfc3 !important;
}

/* Logout button — consistent across all pages */
.btn-logout {
  background: none !important;
  border: var(--border-default) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-muted) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.btn-logout:hover {
  background: var(--cream-dark) !important;
  color: var(--soil) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   39. FORM INPUTS — CONSISTENT ACROSS ALL PAGES
───────────────────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
textarea,
select {
  font-family: 'Outfit', sans-serif !important;
  background: var(--cream) !important;
  border: 1.5px solid var(--cream-dark) !important;
  border-radius: var(--radius-md) !important;
  color: var(--soil) !important;
  font-size: 0.95rem !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--sage) !important;
  background: white !important;
  box-shadow: 0 0 0 3px rgba(88, 122, 82, 0.10) !important;
  outline: none !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   40. LOGIN / SIGNUP PAGE POLISH
───────────────────────────────────────────────────────────────────────────── */

/* Centered auth pages — cream background with spacious card */
body.auth-page,
.auth-container {
  background: var(--cream) !important;
}

/* Logo on auth pages */
.logo-name,
.auth-logo-name {
  font-family: 'DM Serif Display', serif !important;
  color: var(--sage-deep) !important;
  font-size: 1.4rem !important;
  letter-spacing: -0.01em !important;
}

/* Auth form headings */
.auth-title,
.login-title,
.signup-title {
  font-family: 'DM Serif Display', serif !important;
  color: var(--sage-deep) !important;
  font-size: 1.6rem !important;
  letter-spacing: -0.01em !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   41. ONBOARDING — PREMIUM FLOW
───────────────────────────────────────────────────────────────────────────── */

/* Choice/selection cards */
.choice {
  border: 2px solid var(--cream-dark) !important;
  border-radius: var(--radius-md) !important;
  transition: var(--transition) !important;
  background: white !important;
}

.choice:hover {
  border-color: var(--sage) !important;
  background: var(--moss-faint) !important;
}

.choice.selected {
  border-color: var(--sage) !important;
  background: var(--moss-faint) !important;
  box-shadow: 0 0 0 3px rgba(88, 122, 82, 0.12) !important;
}

/* Skill chips */
.skill-chip {
  border: 2px solid var(--cream-dark) !important;
  border-radius: var(--radius-sm) !important;
  background: white !important;
  transition: var(--transition) !important;
}

.skill-chip:hover {
  border-color: var(--sage) !important;
}

.skill-chip.selected {
  border-color: var(--sage) !important;
  background: var(--moss-faint) !important;
}

/* Progress bar */
.progress-bar {
  background: var(--cream-dark) !important;
  border-radius: var(--radius-pill) !important;
  height: 5px !important;
}

.progress-fill {
  background: linear-gradient(90deg, var(--sage), var(--sage-light)) !important;
  border-radius: var(--radius-pill) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   42. PAYWALL / PRICING — PREMIUM FEEL
───────────────────────────────────────────────────────────────────────────── */

/* Plan cards — featured card elevated */
.plan-card {
  border-radius: var(--radius-xl) !important;
  border: 2px solid var(--cream-dark) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition) !important;
}

.plan-card:hover {
  box-shadow: var(--shadow-md) !important;
}

.plan-card.featured {
  border-color: var(--sage) !important;
  box-shadow: 0 6px 32px rgba(88, 122, 82, 0.16), 0 1px 4px rgba(44, 43, 40, 0.04) !important;
  transform: translateY(-3px) !important;
}

/* Plan badge */
.plan-badge {
  background: var(--terracotta) !important;
  color: white !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.plan-badge.best-value {
  background: var(--gold) !important;
  color: var(--soil) !important;
}

/* Feature check marks — on-brand */
.plan-features li .check {
  color: var(--sage) !important;
}

.plan-features li .cross {
  color: var(--text-light) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   43. DASHBOARD SPECIFIC OVERRIDES
───────────────────────────────────────────────────────────────────────────── */

/* Greeting bar — muted sage, not harsh green */
.greeting-bar {
  background: var(--sage) !important;
  box-shadow: 0 2px 16px rgba(59, 85, 53, 0.18) !important;
}

/* Plan content container — generous inner padding */
.plan-container,
.plan-body {
  padding: var(--space-6) !important;
  line-height: 1.7 !important;
}

/* Todo quick add area */
.todo-quick-add {
  border-radius: var(--radius-lg) !important;
  border: var(--border-subtle) !important;
  background: white !important;
}

/* Reminder items — slightly taller tap targets */
.reminder-item,
.todo-item {
  border-radius: var(--radius-md) !important;
  background: white !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  transition: var(--transition) !important;
}

.reminder-item:hover,
.todo-item:hover {
  box-shadow: var(--shadow-sm) !important;
  border-color: var(--cream-dark) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   44. SETTINGS PAGE REFINEMENTS
───────────────────────────────────────────────────────────────────────────── */
.settings-section {
  border-radius: var(--radius-xl) !important;
  border: var(--border-subtle) !important;
  background: white !important;
  box-shadow: var(--shadow-xs) !important;
}

.settings-item {
  padding: 16px 24px !important;
  transition: var(--transition) !important;
}

.settings-item:hover {
  background: var(--cream) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   45. CHAT PAGE REFINEMENTS
───────────────────────────────────────────────────────────────────────────── */
.chat-bubble.user {
  background: var(--sage) !important;
  color: white !important;
  border-radius: var(--radius-xl) !important;
  border-bottom-right-radius: var(--radius-xs) !important;
  box-shadow: 0 1px 4px rgba(88, 122, 82, 0.18) !important;
}

.chat-bubble.assistant {
  background: white !important;
  border: var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  border-bottom-left-radius: var(--radius-xs) !important;
  box-shadow: var(--shadow-xs) !important;
}

.chat-input-area {
  background: rgba(253, 250, 246, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  border-top: var(--border-subtle) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   46. SEASON / JOURNAL CARDS
───────────────────────────────────────────────────────────────────────────── */
.season-card,
.journal-entry,
.timeline-item-card {
  border-radius: var(--radius-lg) !important;
  border: var(--border-subtle) !important;
  background: white !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 20px 22px !important;
  transition: var(--transition) !important;
}

.season-card:hover,
.journal-entry:hover,
.timeline-item-card:hover {
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-1px) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   47. PLANT CARDS
───────────────────────────────────────────────────────────────────────────── */
.plant-card {
  border-radius: var(--radius-lg) !important;
  border: var(--border-subtle) !important;
  background: white !important;
  box-shadow: var(--shadow-xs) !important;
  transition: var(--transition) !important;
}

.plant-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}

.plant-type-badge {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   48. BOTTOM NAV — CONSISTENT ACROSS ALL PAGES
───────────────────────────────────────────────────────────────────────────── */
.bottom-nav {
  background: rgba(253, 250, 246, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: var(--border-subtle) !important;
}

.bottom-nav-item {
  color: var(--text-muted) !important;
  transition: var(--transition) !important;
}

.bottom-nav-item.active {
  color: var(--sage) !important;
}

.bottom-nav-item:hover {
  color: var(--sage) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   49. LANDING PAGE (index.html) PREMIUM UPGRADES
───────────────────────────────────────────────────────────────────────────── */

/* Landing hero — warm gradient */
#landing .lp-hero,
.lp-hero {
  background: linear-gradient(
    160deg,
    var(--cream) 0%,
    rgba(216, 232, 209, 0.55) 50%,
    var(--cream) 100%
  ) !important;
}

/* Feature section — cards with hover lift */
.lp-feature-card,
.feature-card,
.feature-row-card {
  background: white !important;
  border-radius: var(--radius-xl) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 32px 28px !important;
  transition: var(--transition) !important;
}

.lp-feature-card:hover,
.feature-card:hover,
.feature-row-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-3px) !important;
}

/* Testimonials */
.testimonial,
.testimonial-card {
  background: white !important;
  border-radius: var(--radius-xl) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 28px 24px !important;
}

/* Pricing cards on landing */
.pricing-card {
  background: white !important;
  border-radius: var(--radius-xl) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 32px 28px !important;
}

.pricing-card.featured {
  border-color: var(--sage) !important;
  box-shadow: 0 8px 40px rgba(88, 122, 82, 0.16) !important;
}

/* CTA section */
.cta-section,
.lp-cta-section {
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage) 100%) !important;
  border-radius: var(--radius-2xl) !important;
  padding: 64px 48px !important;
}

/* Footer */
footer,
.lp-footer {
  background: var(--sage-deep) !important;
  color: rgba(255, 255, 255, 0.80) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   50. DIAGNOSTIC / SNAP CARD — PREMIUM DARK CARD
───────────────────────────────────────────────────────────────────────────── */
.snap-diagnostic-card {
  background: linear-gradient(
    135deg,
    #2C2B28 0%,
    var(--sage-deep) 55%,
    var(--sage) 100%
  ) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
}

.snap-diagnostic-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 48px rgba(44, 43, 40, 0.22) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   51. STATUS / BADGE SYSTEM — CONSISTENT COLORS
───────────────────────────────────────────────────────────────────────────── */
.garden-status-badge.active {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  border: 1px solid rgba(130, 166, 119, 0.35) !important;
}

.garden-status-badge.expired {
  background: #FEF0EB !important;
  color: var(--terracotta) !important;
  border: 1px solid rgba(166, 99, 72, 0.22) !important;
}

/* Reminder/todo category badges */
.reminder-cat,
.todo-source-badge,
.plant-type-badge {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  border-radius: var(--radius-xs) !important;
  font-size: 0.70rem !important;
  font-weight: 600 !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   52. GARDEN STATS — SERIF NUMBERS
───────────────────────────────────────────────────────────────────────────── */
.garden-stat {
  background: var(--cream) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 20px !important;
  text-align: center !important;
}

.garden-stat-val {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.7rem !important;
  font-weight: 400 !important;
  color: var(--sage) !important;
  display: block !important;
}

.garden-stat-label {
  font-size: 0.70rem !important;
  color: var(--text-light) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  font-weight: 600 !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   53. TOAST NOTIFICATION
───────────────────────────────────────────────────────────────────────────── */
#toast {
  background: var(--soil) !important;
  color: white !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 28px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  box-shadow: var(--shadow-lg) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   54. MODAL OVERLAYS
───────────────────────────────────────────────────────────────────────────── */
.diag-modal {
  background: white !important;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0 !important;
}

@media (min-width: 600px) {
  .diag-modal {
    border-radius: var(--radius-xl) !important;
  }
}

.diag-modal-header {
  background: white !important;
  border-bottom: var(--border-subtle) !important;
  padding: 20px 24px !important;
}

.diag-modal-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.3rem !important;
  color: var(--soil) !important;
}

.diag-result-overall {
  background: var(--cream) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
}

.diag-action-text {
  background: var(--moss-faint) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 14px !important;
  color: var(--sage-deep) !important;
}


/* ─────────────────────────────────────────────────────────────────────────────
   55. DESIGN SYSTEM v3 — PREMIUM POLISH LAYER
   Full component coverage · Warm neutrals everywhere · Planta-quality feel
   Targets class names across all 38 pages, fills coverage gaps
───────────────────────────────────────────────────────────────────────────── */


/* ── Body & Global Warm Tones ──────────────────────────────────────────────── */

/* Force warm cream background everywhere — no stark white or cold gray pages */
html, body {
  background: var(--cream) !important;
  color: var(--soil) !important;
}

/* Warm charcoal for ALL text — no cold dark greens or stark blacks */
body, p, li, td, th, span, div {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Secondary/Muted Text — Warm Neutrals Everywhere ────────────────────── */
/* Override hardcoded #999, #888, #666 throughout inline styles */

.nav-user,
.settings-row-sub,
.profile-email,
.page-sub,
.help-text,
.input-hint,
.form-hint,
.meta-text,
.caption,
.sub-label,
.empty-text,
.helper-text {
  color: var(--text-muted) !important;
}

/* Very muted text — placeholders, tertiary labels */
.placeholder-text,
.count-label,
.item-meta,
.date-label {
  color: var(--text-light) !important;
}

/* ── TOP NAV (my-garden.html and iframe-based pages) ─────────────────────── */

.top-nav,
nav.top-nav {
  background: rgba(253, 250, 246, 0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: var(--border-subtle) !important;
  height: 64px !important;
  box-shadow: none !important;
}

/* ── HUB TABS (my-garden.html tab bar) ───────────────────────────────────── */

.hub-tabs {
  background: rgba(253, 250, 246, 0.97) !important;
  border-bottom: var(--border-subtle) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 0 16px !important;
  gap: 2px !important;
}

.hub-tab {
  color: var(--text-muted) !important;
  background: transparent !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 16px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  border: none !important;
}

.hub-tab:hover {
  background: var(--cream-dark) !important;
  color: var(--soil) !important;
}

.hub-tab.active {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
}


/* ── SETTINGS CARDS (settings.html) ─────────────────────────────────────── */

/* settings.html uses .settings-card, style.css had .settings-section */
.settings-card {
  background: white !important;
  border-radius: var(--radius-xl) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease !important;
}

.settings-card:hover {
  box-shadow: var(--shadow-sm) !important;
}

.settings-card-title {
  font-size: 0.71rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.10em !important;
  color: var(--text-light) !important;
  padding: 18px 22px 10px !important;
  border-bottom: var(--border-subtle) !important;
  background: var(--cream) !important;
}

.settings-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 22px !important;
  gap: 14px !important;
  border-bottom: var(--border-subtle) !important;
  transition: background 0.18s ease !important;
}

.settings-row:last-child {
  border-bottom: none !important;
}

.settings-row:hover {
  background: var(--cream) !important;
}

.settings-row-label {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--soil) !important;
}

.settings-row-sub {
  font-size: 0.79rem !important;
  color: var(--text-muted) !important;
  margin-top: 2px !important;
  line-height: 1.45 !important;
}

.settings-row-value {
  font-size: 0.86rem !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  text-align: right !important;
  flex-shrink: 0 !important;
}


/* ── PAGE HEADERS (shared pattern across inner pages) ────────────────────── */

.page-header {
  margin-bottom: 28px !important;
  padding-bottom: 0 !important;
}

.page-title,
h1.page-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 2rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: var(--sage-deep) !important;
  margin-bottom: 6px !important;
}

.page-sub,
.page-subtitle {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
}

@media (max-width: 520px) {
  .page-title, h1.page-title { font-size: 1.7rem !important; }
}


/* ── PROFILE / AVATAR SECTION ────────────────────────────────────────────── */

.profile-section {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 22px 22px !important;
  border-bottom: var(--border-subtle) !important;
  background: var(--cream) !important;
}

.avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: 2px solid rgba(130, 166, 119, 0.20) !important;
}

.avatar-lg {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.8rem !important;
}

.profile-name {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--soil) !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 3px !important;
}

.profile-email {
  font-size: 0.83rem !important;
  color: var(--text-muted) !important;
}


/* ── TIER BADGES ────────────────────────────────────────────────────────── */

.tier-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 10px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.tier-free {
  background: var(--cream-dark) !important;
  color: var(--text-muted) !important;
}

.tier-lite {
  background: var(--cream-dark) !important;
  color: var(--text-muted) !important;
}

.tier-pro {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  border: 1px solid rgba(130, 166, 119, 0.3) !important;
}

.tier-estate,
.tier-market {
  background: var(--gold-faint) !important;
  color: #7a6000 !important;
  border: 1px solid rgba(196, 153, 34, 0.25) !important;
}


/* ── PLANTA-STYLE BOTTOM NAV — PILL ACTIVE INDICATOR ────────────────────── */

.bottom-nav {
  background: rgba(253, 250, 246, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: var(--border-subtle) !important;
  padding: 6px 8px env(safe-area-inset-bottom, 0px) !important;
}

.bottom-nav-item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.bottom-nav-item:hover {
  color: var(--sage) !important;
  background: var(--moss-faint) !important;
}

/* Planta-style: filled pill background on active nav item */
.bottom-nav-item.active {
  color: var(--sage) !important;
  background: var(--moss-faint) !important;
}

/* Thicker/bolder icon when active */
.bottom-nav-item.active .nav-icon,
.bottom-nav-item.active svg {
  stroke-width: 2.5px;
}

/* Active dot indicator (for text-only nav items) */
.bottom-nav-item.active::after {
  content: '';
  position: absolute !important;
  bottom: 4px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--sage) !important;
}


/* ── PREMIUM SECTION TITLES ──────────────────────────────────────────────── */

/* Section row with botanical flourish */
.section-row {
  margin-top: 40px !important;
  margin-bottom: 18px !important;
}

/* Botanical dot before section titles */
.section-title::before {
  content: '·' !important;
  color: var(--sage) !important;
  font-weight: 900 !important;
  margin-right: 8px !important;
  font-size: 1.2em !important;
}

/* "See all" / section action links */
.section-action,
.section-link,
.view-all {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--sage) !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

.section-action:hover,
.section-link:hover,
.view-all:hover {
  color: var(--sage-deep) !important;
}


/* ── BETTER LIST ITEMS — GENEROUS TOUCH TARGETS ──────────────────────────── */

.reminder-item,
.todo-item,
.checklist-item {
  min-height: 52px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
}

/* Checkbox styling */
.reminder-check,
.todo-check,
.item-checkbox {
  width: 20px !important;
  height: 20px !important;
  border-radius: var(--radius-xs) !important;
  border: 2px solid var(--cream-dark) !important;
  flex-shrink: 0 !important;
  transition: var(--transition) !important;
}

.reminder-check.checked,
.todo-check.checked,
.item-checkbox.checked {
  background: var(--sage) !important;
  border-color: var(--sage) !important;
}


/* ── EMPTY STATES ─────────────────────────────────────────────────────────── */

.empty-state,
.empty-section,
.no-items {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 48px 32px !important;
  text-align: center !important;
  gap: 12px !important;
}

.empty-state-icon,
.empty-icon {
  font-size: 2.8rem !important;
  opacity: 0.45 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.empty-state-title,
.empty-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.2rem !important;
  color: var(--soil) !important;
  letter-spacing: -0.01em !important;
}

.empty-state-sub,
.empty-sub {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  max-width: 260px !important;
}


/* ── MARKET PAGE COMPONENTS ──────────────────────────────────────────────── */

.market-stat-card,
.stat-card {
  background: white !important;
  border-radius: var(--radius-lg) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 20px 18px !important;
  text-align: center !important;
}

.market-stat-val,
.stat-value {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.8rem !important;
  font-weight: 400 !important;
  color: var(--sage) !important;
  letter-spacing: -0.01em !important;
  display: block !important;
}

.market-stat-label,
.stat-label {
  font-size: 0.70rem !important;
  color: var(--text-light) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Revenue positive / negative */
.revenue-positive { color: var(--sage) !important; }
.revenue-negative { color: var(--terracotta) !important; }

/* Market log items */
.log-item,
.sale-item,
.expense-item {
  background: white !important;
  border-radius: var(--radius-md) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 14px 16px !important;
  transition: var(--transition) !important;
}

.log-item:hover,
.sale-item:hover,
.expense-item:hover {
  box-shadow: var(--shadow-sm) !important;
}


/* ── JOURNAL / NOTES PAGE ────────────────────────────────────────────────── */

.journal-entry {
  padding: 22px 20px !important;
  position: relative !important;
}

.journal-date,
.entry-date {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: var(--text-light) !important;
  margin-bottom: 8px !important;
}

.journal-entry-text,
.entry-body {
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  color: var(--soil) !important;
}

/* Photo attached indicator */
.entry-has-photo {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  border-radius: var(--radius-xs) !important;
  font-size: 0.70rem !important;
  font-weight: 600 !important;
  padding: 2px 7px !important;
}


/* ── PLANT DETAIL / LIFECYCLE PAGE ───────────────────────────────────────── */

.plant-detail-header,
.lifecycle-header {
  background: linear-gradient(160deg, var(--cream) 0%, var(--moss-faint) 100%) !important;
  border-radius: var(--radius-xl) !important;
  padding: 28px 24px !important;
  margin-bottom: 20px !important;
}

.plant-detail-name,
.lifecycle-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.6rem !important;
  letter-spacing: -0.01em !important;
  color: var(--sage-deep) !important;
  margin-bottom: 4px !important;
}

.plant-detail-latin,
.plant-latin {
  font-style: italic !important;
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
}

/* Plant care indicator dots */
.care-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.care-dot.easy { background: var(--sage) !important; }
.care-dot.moderate { background: var(--gold) !important; }
.care-dot.hard { background: var(--terracotta) !important; }


/* ── WATERING / CARE REMINDER CARDS ──────────────────────────────────────── */

.watering-card,
.care-card {
  background: white !important;
  border-radius: var(--radius-lg) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  transition: var(--transition) !important;
}

.watering-card:hover,
.care-card:hover {
  box-shadow: var(--shadow-sm) !important;
  transform: translateY(-1px) !important;
}

/* Water drop icon container */
.care-icon-wrap {
  width: 42px !important;
  height: 42px !important;
  border-radius: var(--radius-md) !important;
  background: var(--moss-faint) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 1.3rem !important;
}

/* Overdue care */
.care-overdue .care-icon-wrap {
  background: #FEF0EB !important;
}


/* ── PROGRESS / LEVEL PAGE ───────────────────────────────────────────────── */

.level-card {
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--sage) 100%) !important;
  border-radius: var(--radius-xl) !important;
  padding: 28px 24px !important;
  color: white !important;
  box-shadow: var(--shadow-lg) !important;
  margin-bottom: 24px !important;
}

.level-number {
  font-family: 'DM Serif Display', serif !important;
  font-size: 3.5rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  color: white !important;
}

.level-label {
  font-size: 0.80rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,0.72) !important;
}


/* ── ONBOARDING CHOICE CARDS (premium selection UX) ─────────────────────── */

/* Visual tick when selected */
.choice.selected::after {
  content: '✓' !important;
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  font-size: 0.9rem !important;
  color: var(--sage) !important;
  font-weight: 700 !important;
}

.choice {
  position: relative !important;
}

/* Card number badge */
.choice-num {
  background: var(--cream-dark) !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
}


/* ── INPUT SIZING — 48px MIN HEIGHT FOR TOUCH ────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
select {
  min-height: 48px !important;
  padding: 12px 16px !important;
}

textarea {
  padding: 14px 16px !important;
  min-height: 100px !important;
  resize: vertical !important;
}

/* Label spacing */
label {
  display: block !important;
  margin-bottom: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--soil) !important;
  letter-spacing: 0.005em !important;
}

/* Form group spacing */
.form-group,
.input-group {
  margin-bottom: 20px !important;
}


/* ── SNACKBAR / INFO BANNERS ──────────────────────────────────────────────── */

.info-banner,
.alert-banner {
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.info-banner {
  background: var(--moss-faint) !important;
  border: 1px solid rgba(130, 166, 119, 0.30) !important;
  color: var(--sage-deep) !important;
}

.alert-banner {
  background: #FEF0EB !important;
  border: 1px solid rgba(166, 99, 72, 0.22) !important;
  color: var(--terracotta) !important;
}

.warn-banner {
  background: var(--gold-faint) !important;
  border: 1px solid rgba(196, 153, 34, 0.25) !important;
  color: #7a6000 !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
  font-size: 0.88rem !important;
}


/* ── DISCOVERY / PLANT FINDER CARDS ──────────────────────────────────────── */

.discover-card,
.finder-card {
  background: white !important;
  border-radius: var(--radius-lg) !important;
  border: var(--border-subtle) !important;
  box-shadow: var(--shadow-xs) !important;
  overflow: hidden !important;
  transition: var(--transition) !important;
}

.discover-card:hover,
.finder-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}

.discover-card-img,
.plant-img {
  width: 100% !important;
  aspect-ratio: 4/3 !important;
  object-fit: cover !important;
  background: var(--cream-dark) !important;
  display: block !important;
}

.discover-card-body,
.card-body {
  padding: 16px 14px !important;
}


/* ── SEASONAL PAGE UPGRADES ───────────────────────────────────────────────── */

.season-card {
  overflow: hidden !important;
}

/* Season header with gradient */
.season-header-spring { background: linear-gradient(135deg, #d4e8c2, #c8ddb5) !important; }
.season-header-summer { background: linear-gradient(135deg, #d6e9c0, #b5d4a4) !important; }
.season-header-fall   { background: linear-gradient(135deg, #e8d5b0, #d4b87a) !important; }
.season-header-winter { background: linear-gradient(135deg, #d0dde8, #b8ccdd) !important; }

.season-body {
  padding: 18px 18px !important;
}


/* ── TIMELINE CARD UPGRADES ───────────────────────────────────────────────── */

.timeline-item-card {
  position: relative !important;
}

/* Timeline connector line */
.timeline-connector {
  width: 2px !important;
  background: var(--cream-dark) !important;
  flex-shrink: 0 !important;
  border-radius: var(--radius-pill) !important;
}

.timeline-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background: var(--sage) !important;
  border: 2px solid white !important;
  box-shadow: 0 0 0 2px var(--sage) !important;
  flex-shrink: 0 !important;
}


/* ── LANDING PAGE — ADDITIONAL POLISH ───────────────────────────────────── */

/* Hero badge */
.hero-badge {
  background: rgba(88, 122, 82, 0.10) !important;
  border: 1px solid rgba(88, 122, 82, 0.20) !important;
  color: var(--sage) !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 5px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Step/numbered features */
.lp-step {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 20px 0 !important;
}

.lp-step-num {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
  font-family: 'DM Serif Display', serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Zone selector on landing */
.zone-select-wrap {
  background: white !important;
  border-radius: var(--radius-md) !important;
  border: 1.5px solid var(--cream-dark) !important;
  padding: 14px 16px !important;
  transition: border-color 0.2s !important;
}

.zone-select-wrap:focus-within {
  border-color: var(--sage) !important;
}


/* ── MODAL IMPROVEMENTS — SMOOTH BACKDROP BLUR ───────────────────────────── */

.modal-overlay,
.modal-backdrop,
[id$="-modal-wrap"],
[id$="-overlay"] {
  background: rgba(44, 43, 40, 0.50) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.modal-card,
.modal-inner,
.modal-sheet {
  background: white !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden !important;
}

.modal-header {
  padding: 20px 24px 16px !important;
  border-bottom: var(--border-subtle) !important;
}

.modal-title,
h2.modal-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.2rem !important;
  color: var(--soil) !important;
  letter-spacing: -0.01em !important;
}

.modal-body {
  padding: 20px 24px !important;
}

.modal-footer {
  padding: 16px 24px 20px !important;
  border-top: var(--border-subtle) !important;
  background: var(--cream) !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
}


/* ── PILL / CHIP / BADGE SYSTEM ──────────────────────────────────────────── */

/* Base chip */
.chip,
.tag,
.pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.chip-sage,
.tag-sage {
  background: var(--moss-faint) !important;
  color: var(--sage-deep) !important;
}

.chip-terracotta,
.tag-terracotta {
  background: #FEF0EB !important;
  color: var(--terracotta) !important;
}

.chip-gold {
  background: var(--gold-faint) !important;
  color: #7a6000 !important;
}

.chip-neutral {
  background: var(--cream-dark) !important;
  color: var(--text-muted) !important;
}

/* Season chips */
.chip-spring { background: #E5F0DC !important; color: #3B6130 !important; }
.chip-summer { background: #DFF0D5 !important; color: #2E5E26 !important; }
.chip-fall   { background: #F0E8D5 !important; color: #8B5E20 !important; }
.chip-winter { background: #DDE8F0 !important; color: #2A4D70 !important; }


/* ── LOADING SPINNER UPGRADE ──────────────────────────────────────────────── */

.spinner,
.spinner-lg,
.spinner-sm {
  border-color: var(--cream-dark) !important;
  border-top-color: var(--sage) !important;
  border-style: solid !important;
  border-radius: 50% !important;
  animation: spin 0.8s linear infinite !important;
}

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

.spinner { width: 28px !important; height: 28px !important; border-width: 3px !important; }
.spinner-lg { width: 40px !important; height: 40px !important; border-width: 3px !important; }
.spinner-sm { width: 18px !important; height: 18px !important; border-width: 2px !important; }


/* ── CARD CONTENT TYPOGRAPHY ──────────────────────────────────────────────── */

/* Card title */
.card-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: 1.1rem !important;
  letter-spacing: -0.01em !important;
  color: var(--sage-deep) !important;
  margin-bottom: 6px !important;
}

/* Card subtitle/description */
.card-sub,
.card-desc {
  font-size: 0.86rem !important;
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
}

/* Card meta row */
.card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  font-size: 0.78rem !important;
  color: var(--text-light) !important;
  margin-top: 10px !important;
}


/* ── DATA TABLE / LIST TABLE ──────────────────────────────────────────────── */

.data-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.data-table th {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: var(--text-light) !important;
  padding: 10px 16px !important;
  border-bottom: var(--border-default) !important;
  text-align: left !important;
  background: var(--cream) !important;
}

.data-table td {
  padding: 12px 16px !important;
  font-size: 0.88rem !important;
  color: var(--soil) !important;
  border-bottom: var(--border-subtle) !important;
  vertical-align: middle !important;
}

.data-table tr:last-child td {
  border-bottom: none !important;
}

.data-table tr:hover td {
  background: var(--cream) !important;
}


/* ── PROGRESS BARS — BOTANICAL ────────────────────────────────────────────── */

.progress-track {
  background: var(--cream-dark) !important;
  border-radius: var(--radius-pill) !important;
  height: 6px !important;
  overflow: hidden !important;
}

.progress-bar,
.xp-bar-track {
  background: var(--cream-dark) !important;
  border-radius: var(--radius-pill) !important;
}

.progress-fill,
.xp-bar-fill {
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-light) 100%) !important;
  border-radius: var(--radius-pill) !important;
  transition: width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}


/* ── TOGGLE / SWITCH ─────────────────────────────────────────────────────── */

.toggle-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 22px !important;
  cursor: pointer !important;
  transition: background 0.18s !important;
}

.toggle-wrap:hover {
  background: var(--cream) !important;
}

/* Toggle track */
.toggle-track {
  width: 44px !important;
  height: 24px !important;
  border-radius: var(--radius-pill) !important;
  background: var(--cream-dark) !important;
  transition: background 0.2s !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.toggle-track.on {
  background: var(--sage) !important;
}

/* Toggle thumb */
.toggle-thumb {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: white !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}

.toggle-track.on .toggle-thumb {
  transform: translateX(20px) !important;
}


/* ── SEARCH / FILTER BAR ──────────────────────────────────────────────────── */

.search-bar,
.search-wrap {
  position: relative !important;
}

.search-bar input,
.search-wrap input {
  padding-left: 40px !important;
}

.search-icon {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--text-light) !important;
  font-size: 1rem !important;
  pointer-events: none !important;
}


/* ── FLOATING ACTION BUTTON ───────────────────────────────────────────────── */

.fab,
.btn-fab {
  position: fixed !important;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  right: 20px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: var(--sage) !important;
  color: white !important;
  box-shadow: 0 4px 20px rgba(88, 122, 82, 0.35), 0 2px 8px rgba(44, 43, 40, 0.12) !important;
  border: none !important;
  font-size: 1.4rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.34, 1.3, 0.64, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100 !important;
}

.fab:hover,
.btn-fab:hover {
  background: var(--sage-deep) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 28px rgba(88, 122, 82, 0.40) !important;
}

.fab:active,
.btn-fab:active {
  transform: scale(0.95) !important;
  transition-duration: 0.08s !important;
}


/* ── LINK STYLES ──────────────────────────────────────────────────────────── */

a.link-sage,
.text-link {
  color: var(--sage) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.18s !important;
}

a.link-sage:hover,
.text-link:hover {
  color: var(--sage-deep) !important;
  text-decoration: underline !important;
}


/* ── CARD HEADER ACCENT STRIPES ───────────────────────────────────────────── */

/* Premium card with top accent border */
.card-accent-top {
  border-top: 3px solid var(--sage) !important;
}

.card-accent-terracotta {
  border-top: 3px solid var(--terracotta) !important;
}

.card-accent-gold {
  border-top: 3px solid var(--gold) !important;
}


/* ── DIVIDERS WITH ORGANIC FEEL ──────────────────────────────────────────── */

hr, .divider {
  border: none !important;
  border-top: var(--border-subtle) !important;
  margin: 20px 0 !important;
}

.divider-label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 20px 0 !important;
  color: var(--text-light) !important;
  font-size: 0.80rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
}

.divider-label::before,
.divider-label::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: var(--cream-dark) !important;
}


/* ── RESPONSIVE UPGRADES ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .page-title, h1.page-title { font-size: 1.75rem !important; }
  .settings-card { border-radius: var(--radius-lg) !important; }
  .profile-section { padding: 18px 18px !important; }
}

@media (max-width: 520px) {
  .page-title, h1.page-title { font-size: 1.5rem !important; }
  .settings-row { padding: 14px 18px !important; }
  .fab, .btn-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
}

@media (max-width: 375px) {
  .hub-tab { padding: 7px 12px !important; font-size: 0.80rem !important; }
  .bottom-nav-item { padding: 6px 10px !important; }
}


/* ── SAFE AREA INSET SUPPORT (iOS PWA) ───────────────────────────────────── */

.bottom-safe-pad {
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.bottom-nav,
.chat-input-area {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
}


/* ── SMOOTH SCROLL & INTERACTION ──────────────────────────────────────────── */

html {
  scroll-behavior: smooth !important;
}

/* Remove iOS tap highlight on all interactive elements */
button, a, [role="button"], input, select, textarea {
  -webkit-tap-highlight-color: transparent !important;
}


/* ── WARM NEUTRALS UNIVERSAL FIX ─────────────────────────────────────────── */

/* Force warm charcoal on all heading elements throughout inline-styled pages */
h1, h2, h3, h4, h5, h6 {
  color: var(--soil) !important;
  font-family: inherit;
}

/* Headings that use the DM Serif font get the serif treatment */
h1 { font-family: 'DM Serif Display', serif !important; letter-spacing: -0.02em !important; }
h2 { font-family: 'DM Serif Display', serif !important; letter-spacing: -0.01em !important; }

/* Override the old dark green soil color with warm charcoal everywhere it's used via var */
/* CSS custom properties do NOT support !important — cascade order wins instead */
/* style.css loads AFTER inline <style> blocks so these :root values WIN automatically */
:root {
  --soil: #2C2B28;
  --cream: #F4EFE6;
  --cream-dark: #E5DDD0;
  --sage-deep: #3B5535;
  --terracotta: #A66348;
  --text-muted: #6B6560;
  --text-light: #9A9490;
  --warm-white: #FDFAF6;
  --moss: #82A677;
  --moss-faint: #D8E8D1;
}


/* ── PERMANENT REGRESSION GUARD: GREETING BANNER (#576501, #577970, #578361, #579000) ──
   The greeting banner has regressed 3x due to the desktop nav (sticky, z-index:10)
   overlapping and clipping it. The hide rule is in dashboard.html inline CSS and
   bottom-nav.js, but stale service worker caches can serve old versions of those files.
   This rule in style.css provides a 3rd layer of defense — it's version-controlled via
   sw.js CACHE_VERSION. DO NOT REMOVE OR MODIFY without owner approval. */
@media (max-width: 767px) {
  body > nav:first-of-type {
    display: none !important;
  }
}

/* PERMANENT: Greeting bar must never be clipped on mobile.
   overflow:visible ensures no content is hidden; min-height is a canary — if you see
   only a thin sliver of green at the top, the desktop nav is overlapping again. */
.greeting-bar {
  overflow: visible !important;
  min-height: 60px;
}

/* end of design system v3 */
