/* ===== GENERATOR PREMIUM STYLES ===== */

body > header:not(.generator-hero) { display: none !important; }
body {
  background: #f9fafb !important;
  color: #1f2937;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== CINEMATIC HERO ===== */
.generator-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.generator-hero .hero-bg-img {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: ghZoom 25s ease-in-out infinite alternate;
  filter: saturate(1.1) contrast(1.04);
}
@keyframes ghZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.14); }
}
.generator-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(16, 185, 129, 0.32), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(6, 95, 70, 0.4), transparent 55%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.76) 0%, rgba(6, 78, 59, 0.6) 50%, rgba(0, 0, 0, 0.82) 100%);
}
.generator-hero .hero-inner { max-width: 900px; text-align: center; position: relative; z-index: 1; width: 100%; }
.generator-hero .back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff; text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 2rem; transition: all 0.25s;
}
.generator-hero .back-link:hover { background: rgba(255, 255, 255, 0.2); transform: translateX(-3px); }
.generator-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}
.generator-hero h1 .accent {
  background: linear-gradient(120deg, #34d399 0%, #10b981 40%, #6ee7b7 70%, #a7f3d0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(52, 211, 153, 0.55));
}
.generator-hero .subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 700px; margin: 0 auto 1.75rem !important;
  line-height: 1.55;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.generator-hero .hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.generator-hero .hero-badges span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem; color: #d1fae5; font-weight: 600;
}

/* ===== TOOL CARD (FORM WRAPPER) ===== */
main.container, main {
  max-width: 1100px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
}
.card, #tool, section.card {
  background: #fff !important;
  border-radius: 24px !important;
  padding: 2.5rem 2rem !important;
  margin-top: -4rem !important;
  margin-bottom: 3rem !important;
  box-shadow: 0 25px 70px rgba(6, 78, 59, 0.15), 0 10px 25px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e5e7eb !important;
  position: relative;
  z-index: 10;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #10b981, #6ee7b7, #34d399);
  border-radius: 24px 24px 0 0;
}
.form-title-block { text-align: center; margin-bottom: 2rem; }
.form-title-block .eyebrow-pill {
  display: inline-block; background: #d1fae5; color: #065f46;
  padding: 0.3rem 0.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.form-title-block h2 { font-size: 1.5rem; font-weight: 800; color: #064e3b; margin-bottom: 0.4rem; letter-spacing: -0.015em; }
.form-title-block p { color: #6b7280; font-size: 0.98rem; }

/* ===== CONSUM-STYLE WIZARD (SLIDER + CHIPS) ===== */
.wizard-chips {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px dashed #6ee7b7;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.wizard-chips::before {
  content: 'PLANIFICADOR';
  position: absolute; top: -10px; left: 20px;
  background: #10b981; color: #fff;
  padding: 0.2rem 0.8rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.wizard-group { margin-bottom: 1.5rem; }
.wizard-group:last-child { margin-bottom: 0; }
.wizard-label {
  display: flex !important;
  align-items: center;
  font-weight: 700 !important;
  color: #064e3b !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.85rem !important;
}
.wizard-label::before { display: none !important; content: none !important; }
.wizard-label .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 0.88rem; font-weight: 800;
  margin-right: 0.6rem; flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Slider for days */
.slider-row {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.25rem;
}
.slider-track-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.days-slider {
  width: 100%;
  display: block;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: transparent;
  outline: none; cursor: pointer;
  margin: 0;
  padding: 0 !important;
  border: none !important;
  --pct: 100%;
  height: 26px; /* enough to contain the thumb */
}
.days-slider:focus { outline: none; }

/* WebKit (Chrome, Safari, Edge) ---------- */
.days-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #059669 var(--pct, 100%), #d1fae5 var(--pct, 100%));
  border: none;
}
.days-slider:focus::-webkit-slider-runnable-track {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.days-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 3px solid #fff;
  cursor: grab;
  margin-top: -9px; /* centers the 26px thumb on the 8px track: (8-26)/2 = -9 */
  transition: transform 0.15s, box-shadow 0.15s;
}
.days-slider::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 6px 18px rgba(16, 185, 129, 0.75); }
.days-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }

/* Firefox ---------- */
.days-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #d1fae5;
  border: none;
}
.days-slider::-moz-range-progress {
  height: 8px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #10b981, #059669);
  border: none;
}
.days-slider:focus::-moz-range-track {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.days-slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 3px solid #fff;
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
.days-slider::-moz-range-thumb:hover { transform: scale(1.15); }
.days-slider::-moz-range-thumb:active { cursor: grabbing; }

.slider-value-box {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 130px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Ticks: align each number with the thumb center at that value. */
/* The thumb center travels from (thumb-radius) to (width - thumb-radius), thumb radius = 13px. */
.slider-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 13px;                /* match thumb radius so first/last numbers sit under thumb extremes */
  font-size: 0.78rem;
  color: #065f46; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slider-ticks span {
  flex: 0 0 0;                    /* collapse width to 0 */
  width: 0;
  text-align: center;
  transform: translateX(-50%);    /* center text on the zero-width anchor point */
  white-space: nowrap;
  line-height: 1;
  user-select: none;
}

/* Chips row (used for meals) */
.chips-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: #fff; color: #064e3b;
  padding: 0.65rem 1.25rem !important;
  border-radius: 999px;
  font-size: 0.92rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1.5px solid #d1fae5 !important;
  position: relative;
  font-family: inherit;
  width: auto !important;
}
.chip:hover {
  background: #ecfdf5;
  border-color: #10b981 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
}
.chip.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.chip.active::after {
  content: '✓'; margin-left: 0.35rem;
  font-size: 0.85rem; font-weight: 900;
}

/* ===== FORM INPUTS ===== */
#menu-form .form-group { margin-bottom: 1.25rem; }
#menu-form label {
  display: block;
  font-weight: 700; color: #064e3b !important;
  font-size: 0.92rem; margin-bottom: 0.5rem !important;
}
#menu-form label::before { content: none !important; display: none !important; }
#menu-form select,
#menu-form input[type="text"],
#menu-form input[type="number"] {
  width: 100%;
  padding: 0.95rem 1rem !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9fafb !important;
  color: #1f2937 !important;
  transition: all 0.25s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
#menu-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px !important;
  padding-right: 2.5rem !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
#menu-form select::-ms-expand { display: none !important; }
#menu-form select:focus, #menu-form input:focus {
  outline: none !important;
  border-color: #10b981 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}
#menu-form button[type="submit"], #btn-action {
  width: 100% !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 1.2rem 2rem !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem !important;
}
#menu-form button[type="submit"]::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.7s;
}
#menu-form button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 45px rgba(16, 185, 129, 0.6) !important;
}
#menu-form button[type="submit"]:hover::before { left: 100%; }
#menu-form button:disabled { opacity: 0.65; cursor: not-allowed; }

/* ===== LOADER ===== */
#loader.loader {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.97), rgba(0, 0, 0, 0.95)) !important;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  color: #fff !important;
}
#loader .spinner {
  border: 6px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 6px solid #6ee7b7 !important;
  border-right: 6px solid #10b981 !important;
  width: 95px !important; height: 95px !important;
  animation: spin 1s linear infinite, spinnerPulse 2s ease-in-out infinite !important;
}
@keyframes spinnerPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 60px rgba(16, 185, 129, 0.8), 0 0 100px rgba(52, 211, 153, 0.3); }
}
#loader p { color: #fff !important; }
#loader p:first-of-type {
  background: linear-gradient(120deg, #6ee7b7, #34d399, #a7f3d0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
}

/* ===== RESULT ===== */
#result.active { animation: resultReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes resultReveal {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(12px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
#result h2 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #064e3b !important;
  margin-bottom: 1.25rem !important;
  text-align: center;
  letter-spacing: -0.02em;
  padding-top: 0.5rem;
}
#result h2::before {
  content: '';
  display: block;
  width: 60px; height: 60px; margin: 0 auto 1rem;
  background: radial-gradient(circle, #6ee7b7 0%, #10b981 50%, transparent 70%);
  border-radius: 50%;
  animation: sparklePulse 2s ease-in-out infinite;
}
@keyframes sparklePulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 40px rgba(16, 185, 129, 0.6); }
}
.menu-content, #menu-output { background: transparent !important; padding: 0 !important; border: none !important; }
.menu-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.25rem !important;
  margin-top: 1.5rem !important;
}
.day-card {
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 20px !important;
  padding: 1.75rem 1.5rem 1.5rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.day-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #10b981, #6ee7b7, #34d399);
}
.day-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 55px rgba(16, 185, 129, 0.22) !important;
  border-color: #d1fae5 !important;
}
.day-card:hover::before { height: 8px; }
.day-title {
  color: #064e3b !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin-bottom: 1.1rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 2px dashed #d1fae5 !important;
  letter-spacing: -0.01em;
}
.meals-list li {
  padding: 0.6rem 0 !important;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem !important; line-height: 1.45 !important;
  color: #374151 !important;
}
.meals-list li:last-child { border-bottom: none; }
.meals-list strong {
  color: #059669 !important;
  font-weight: 700 !important;
  margin-right: 0.35rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #ecfdf5;
  border-radius: 6px;
}
.shopping-list-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 2px dashed #6ee7b7 !important;
  border-radius: 22px !important;
  padding: 2.25rem !important;
  margin-top: 2.5rem !important;
}
.shopping-list-card .day-title { color: #064e3b !important; border-bottom-color: #6ee7b7 !important; font-size: 1.35rem !important; }
.shopping-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 1rem;
}

/* Action buttons */
.action-buttons { gap: 0.75rem !important; margin-top: 2rem !important; }
.action-buttons button.copy-btn {
  border-radius: 14px !important;
  padding: 1rem 1.75rem !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: none !important;
  transition: transform 0.25s, box-shadow 0.25s !important;
}
.action-buttons button.copy-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
#pdf-btn {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
#share-btn { background: #1f2937 !important; color: #fff !important; }

/* ===== ASIDE / RELATED ===== */
aside {
  max-width: 1100px; margin: 3rem auto; padding: 0 1rem;
  text-align: center;
}
aside h2 {
  font-size: 1.1rem !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  margin-bottom: 1.25rem !important;
}
.related-links {
  display: flex !important; gap: 0.75rem !important;
  flex-wrap: wrap !important; justify-content: center !important;
}
.related-links a {
  padding: 0.65rem 1.3rem !important;
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  color: #064e3b !important;
  font-size: 0.88rem !important; font-weight: 600 !important;
  transition: all 0.25s !important;
  font-size: 0 !important; /* hide text briefly to strip emoji */
}
.related-links a::first-letter {
  font-size: 0 !important; /* fallback */
}
.related-links a { font-size: 0.88rem !important; }
.related-links a:hover {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.15);
}

/* ===== NICHE SEO CONTENT (BELOW FORM) ===== */
.niche-seo-content {
  max-width: 1400px !important;
  padding: 0 1.5rem !important;
  margin: 6rem auto 4rem !important;
}
.niche-seo-content > article {
  margin-bottom: 4rem !important;
}
.niche-seo-content > article:first-child {
  text-align: center !important;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.niche-seo-content > article:first-child h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem !important;
  background: none !important;
  -webkit-text-fill-color: #064e3b !important;
}
.niche-seo-content > article:first-child div {
  font-size: 1.08rem !important;
  color: #4b5563 !important;
  line-height: 1.7 !important;
}
.niche-seo-content > article:first-child strong { color: #064e3b; }

/* 3-card benefits grid — remove emojis, elevate design */
.niche-seo-content .seo-card {
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 20px !important;
  padding: 2.25rem 1.75rem !important;
  text-align: left !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.3s !important;
  position: relative;
  overflow: hidden;
}
.niche-seo-content .seo-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
}
.niche-seo-content .seo-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15) !important;
  border-color: #d1fae5 !important;
}
/* Hide the emoji div at top of seo-card */
.niche-seo-content .seo-card > div:first-child {
  display: none !important;
}
.niche-seo-content .seo-card h3 {
  font-size: 1.35rem !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.01em;
}
.niche-seo-content .seo-card p {
  color: #4b5563 !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
}

/* FAQ block inside niche-seo-content — epic reveal */
.niche-seo-content details {
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 16px !important;
  margin-bottom: 0.75rem !important;
  padding: 1.25rem 1.5rem !important;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.niche-seo-content details:hover { border-color: #d1fae5 !important; box-shadow: 0 4px 15px rgba(16,185,129,0.08); }
.niche-seo-content details[open] {
  border-color: #10b981 !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
  animation: faqGlow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes faqGlow {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  30%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18), 0 12px 35px rgba(16, 185, 129, 0.25); }
  100% { box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12); }
}
.niche-seo-content details summary {
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #064e3b !important;
  outline: none;
  list-style: none;
}
.niche-seo-content details summary::-webkit-details-marker { display: none; }
.niche-seo-content details[open] summary {
  color: #10b981 !important;
  animation: faqShine 0.7s cubic-bezier(0.25, 0.8, 0.3, 1) forwards;
}
@keyframes faqShine {
  0% { text-shadow: 0 0 0 rgba(16, 185, 129, 0); }
  50% { text-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
  100% { text-shadow: 0 0 0 rgba(16, 185, 129, 0); }
}
.niche-seo-content details[open] p {
  animation: faqAnswer 0.65s cubic-bezier(0.25, 0.8, 0.3, 1) both;
  transform-origin: top center;
}
@keyframes faqAnswer {
  0% { opacity: 0; transform: translateY(-18px) scale(0.94); filter: blur(10px); }
  50% { opacity: 0.8; transform: translateY(2px) scale(1.01); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.niche-seo-content details p {
  margin-top: 1rem !important;
  color: #4b5563 !important;
  line-height: 1.65 !important;
  font-size: 0.98rem !important;
}
.niche-seo-content > article h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem) !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 2rem !important;
  text-align: center;
}

/* ===== BOTTOM RELATED ARTICLES BLOCK ===== */
section[style*="background:#f0f7ff"],
section[style*="background:#fef9c3"],
section[style*="background:#fef2f2"],
section[style*="background:#f0fdf4"],
section[style*="background:#fdf4ff"] {
  background: linear-gradient(180deg, #f9fafb 0%, #f0fdf4 100%) !important;
  border-top: 1px solid #d1fae5 !important;
  padding: 5rem 1.5rem !important;
  margin-top: 4rem !important;
}
section[style*="background:#f0f7ff"] .container,
section[style*="background:#fef9c3"] .container,
section[style*="background:#fef2f2"] .container,
section[style*="background:#f0fdf4"] .container,
section[style*="background:#fdf4ff"] .container {
  max-width: 1200px !important;
  padding: 0 !important;
}
section[style*="background:#f0f7ff"] h2,
section[style*="background:#fef9c3"] h2,
section[style*="background:#fef2f2"] h2,
section[style*="background:#f0fdf4"] h2,
section[style*="background:#fdf4ff"] h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem) !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  margin-bottom: 0.5rem !important;
  letter-spacing: -0.02em !important;
  text-align: center;
}
section[style*="background:#f0f7ff"] > .container > p,
section[style*="background:#fef9c3"] > .container > p,
section[style*="background:#fef2f2"] > .container > p,
section[style*="background:#f0fdf4"] > .container > p,
section[style*="background:#fdf4ff"] > .container > p {
  text-align: center !important;
  max-width: 700px;
  margin: 0 auto 2.5rem !important;
  color: #6b7280 !important;
  font-size: 1rem !important;
}
section[style*="background:#f0f7ff"] > .container > div,
section[style*="background:#fef9c3"] > .container > div,
section[style*="background:#fef2f2"] > .container > div,
section[style*="background:#f0fdf4"] > .container > div,
section[style*="background:#fdf4ff"] > .container > div {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 1.25rem !important;
}
section[style*="background:#f0f7ff"] .container a,
section[style*="background:#fef9c3"] .container a,
section[style*="background:#fef2f2"] .container a,
section[style*="background:#f0fdf4"] .container a,
section[style*="background:#fdf4ff"] .container a {
  background: #fff !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 18px !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.3s !important;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
section[style*="background:#f0f7ff"] .container a::before,
section[style*="background:#fef9c3"] .container a::before,
section[style*="background:#fef2f2"] .container a::before,
section[style*="background:#f0fdf4"] .container a::before,
section[style*="background:#fdf4ff"] .container a::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
}
section[style*="background:#f0f7ff"] .container a:hover,
section[style*="background:#fef9c3"] .container a:hover,
section[style*="background:#fef2f2"] .container a:hover,
section[style*="background:#f0fdf4"] .container a:hover,
section[style*="background:#fdf4ff"] .container a:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(16, 185, 129, 0.18) !important;
  border-color: #d1fae5 !important;
}
/* Hide the emoji span on related article cards */
section[style*="background:#f0f7ff"] .container a > span:first-child,
section[style*="background:#fef9c3"] .container a > span:first-child,
section[style*="background:#fef2f2"] .container a > span:first-child,
section[style*="background:#f0fdf4"] .container a > span:first-child,
section[style*="background:#fdf4ff"] .container a > span:first-child {
  display: none !important;
}
section[style*="background:#f0f7ff"] .container a h3,
section[style*="background:#fef9c3"] .container a h3,
section[style*="background:#fef2f2"] .container a h3,
section[style*="background:#f0fdf4"] .container a h3,
section[style*="background:#fdf4ff"] .container a h3 {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #064e3b !important;
  margin: 0 0 0.5rem 0 !important;
  letter-spacing: -0.01em;
}
section[style*="background:#f0f7ff"] .container a p,
section[style*="background:#fef9c3"] .container a p,
section[style*="background:#fef2f2"] .container a p,
section[style*="background:#f0fdf4"] .container a p,
section[style*="background:#fdf4ff"] .container a p {
  font-size: 0.9rem !important;
  color: #6b7280 !important;
  line-height: 1.5;
  margin: 0 !important;
}

/* ===== EXTENDED SEO SECTIONS (per-niche) ===== */
.seo-extended {
  background: linear-gradient(180deg, #f9fafb 0%, #f0fdf4 100%);
  padding: 5rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid #d1fae5;
}
.seo-extended-inner, .rel-articles-inner {
  max-width: 1200px; margin: 0 auto;
}
.seo-eyebrow {
  display: inline-block;
  background: #d1fae5; color: #065f46;
  padding: 0.3rem 0.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.seo-bigh2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #064e3b; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 1.5rem;
  text-align: center;
}
.seo-lead {
  font-size: 1.08rem; line-height: 1.75;
  color: #374151;
  max-width: 820px; margin: 0 auto 1.5rem;
}
.seo-lead strong { color: #064e3b; font-weight: 700; }
.seo-subh {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #064e3b; font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 3rem 0 2rem;
}

.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: #fff; border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
  border-color: #d1fae5;
}
.why-card h3 {
  font-size: 1.25rem; color: #064e3b; font-weight: 800;
  margin-bottom: 0.75rem; letter-spacing: -0.01em;
}
.why-card p {
  color: #4b5563; font-size: 0.98rem; line-height: 1.65;
}

/* ===== RELATED BLOG ARTICLES ===== */
.rel-articles {
  padding: 5rem 1.5rem; background: #fff;
  border-top: 1px solid #d1fae5;
}
.rel-articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 900px) { .rel-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rel-articles-grid { grid-template-columns: 1fr; } }
.rel-article-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  text-decoration: none; color: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.3s;
}
.rel-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.18);
  border-color: #d1fae5;
}
.rel-article-card .rel-img {
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  position: relative;
}
.rel-article-card .rel-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.rel-article-card:hover .rel-img::after { opacity: 1; }
.rel-article-card .rel-body {
  padding: 1.35rem 1.5rem 1.6rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.rel-article-card .rel-tag {
  display: inline-block; align-self: flex-start;
  background: #ecfdf5; color: #065f46;
  padding: 0.25rem 0.7rem; border-radius: 6px;
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.rel-article-card h3 {
  font-size: 1.1rem; font-weight: 800;
  color: #064e3b; line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.rel-article-card p {
  color: #6b7280; font-size: 0.9rem;
  line-height: 1.5; flex: 1;
  margin-bottom: 1rem;
}
.rel-article-card .rel-link {
  color: #10b981; font-weight: 700; font-size: 0.88rem;
  transition: letter-spacing 0.25s;
}
.rel-article-card:hover .rel-link { letter-spacing: 0.02em; }

/* ===== FOOTER ===== */
footer {
  background: #064e3b !important;
  color: #d1fae5 !important;
  border-top: none !important;
  padding: 2.5rem 0 !important;
}
footer a { color: #6ee7b7 !important; }

/* ===== PRINT ===== */
@media print {
  .generator-hero, .card form, #loader, .action-buttons, aside, footer,
  .form-title-block, .niche-seo-content, ins, .wizard-chips {
    display: none !important;
  }
  .card { margin-top: 0 !important; box-shadow: none !important; border: none !important; padding: 0 !important; }
  .day-card { page-break-inside: avoid !important; break-inside: avoid !important; }
  #result h2::before { display: none; }
}
