/* ============================================
   Acne & Gut Reset Protocol - Green Cute Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green-primary: #4CAF50;
  --green-light: #E8F5E9;
  --green-accent: #81C784;
  --green-dark: #2E7D32;
  --green-deeper: #1B5E20;
  --bg-warm: #F5FFF0;
  --bg-card: #FFFFFF;
  --text-main: #333333;
  --text-light: #666666;
  --text-emphasis: #1B5E20;
  --border-soft: #C8E6C9;
  --shadow-soft: 0 4px 20px rgba(76, 175, 80, 0.12);
  --shadow-hover: 0 8px 30px rgba(76, 175, 80, 0.2);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-warm);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--green-deeper);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* --- Navigation --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green-dark);
}

.nav-logo .logo-icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-links a.active {
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  color: var(--green-dark);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--green-deeper);
}

.hero .subtitle {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .leaf-decoration {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--green-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: white;
  color: var(--green-dark);
  border: 2px solid var(--green-primary);
}

.btn-secondary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Section --- */
.section {
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  transition: var(--transition);
}

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

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Feature Cards --- */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.feature-card h3 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

/* --- Protocol Cards --- */
.protocol-card {
  border-left: 4px solid var(--green-primary);
}

.protocol-card .phase-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--green-accent), var(--green-primary), var(--green-dark));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: 800;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.timeline-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  flex: 1;
}

/* --- Food Lists --- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.food-category {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
}

.food-category h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.food-list {
  list-style: none;
}

.food-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.food-list li:last-child {
  border-bottom: none;
}

.food-list li .check {
  color: var(--green-primary);
  font-weight: bold;
}

/* --- Avoid Foods --- */
.avoid-card {
  border-left: 4px solid #ef5350;
}

.avoid-card h4 {
  color: #c62828;
}

.avoid-list li .cross {
  color: #ef5350;
}

/* --- Fasting Timer --- */
.timer-section {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--green-light), #C8E6C9);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 2rem auto;
}

.timer-display {
  font-size: 4rem;
  font-weight: 800;
  color: var(--green-deeper);
  font-variant-numeric: tabular-nums;
  margin: 1.5rem 0;
  letter-spacing: 2px;
}

.timer-label {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.timer-progress {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
}

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

.timer-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.protocol-selector {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.protocol-btn {
  padding: 10px 20px;
  border: 2px solid var(--green-primary);
  background: white;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  color: var(--green-dark);
  transition: var(--transition);
}

.protocol-btn:hover,
.protocol-btn.active {
  background: var(--green-primary);
  color: white;
}

/* --- Tracker --- */
.tracker-container {
  max-width: 900px;
  margin: 0 auto;
}

.tracker-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tracker-date h3 {
  min-width: 200px;
  text-align: center;
}

.date-nav-btn {
  background: var(--green-primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-nav-btn:hover {
  background: var(--green-dark);
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.tracker-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.tracker-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green-light);
}

/* Water Tracker */
.water-cups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.water-cup {
  width: 45px;
  height: 55px;
  border: 2px solid var(--border-soft);
  border-radius: 4px 4px 8px 8px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: white;
}

.water-cup.filled {
  background: linear-gradient(to top, #64B5F6, #90CAF9);
  border-color: #42A5F5;
}

.water-cup:hover {
  transform: scale(1.1);
}

/* Food Log */
.food-log-input {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.food-log-input input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition);
}

.food-log-input input:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.food-log-input button {
  padding: 10px 20px;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.food-log-input button:hover {
  background: var(--green-dark);
}

.food-log-list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
}

.food-log-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  background: var(--green-light);
  font-size: 0.9rem;
}

.food-log-list li .remove-btn {
  background: none;
  border: none;
  color: #ef5350;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
}

/* Symptom Tracker */
.symptom-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.symptom-chip {
  padding: 8px 16px;
  border: 2px solid var(--border-soft);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  background: white;
  user-select: none;
}

.symptom-chip:hover {
  border-color: var(--green-primary);
}

.symptom-chip.selected {
  background: var(--green-primary);
  color: white;
  border-color: var(--green-primary);
}

/* Skin Rating */
.skin-rating {
  display: flex;
  gap: 8px;
  margin: 1rem 0;
}

.skin-rating-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.5rem;
  background: white;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skin-rating-btn:hover {
  transform: scale(1.1);
}

.skin-rating-btn.selected {
  border-color: var(--green-primary);
  background: var(--green-light);
  transform: scale(1.15);
}

/* Notes */
.notes-area {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  resize: vertical;
  transition: var(--transition);
}

.notes-area:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Plant Counter */
.plant-counter {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--green-light), #C8E6C9);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.plant-count {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--green-deeper);
}

.plant-goal {
  color: var(--green-dark);
  font-size: 1.1rem;
}

.plant-progress-bar {
  width: 100%;
  height: 16px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
}

.plant-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-accent), var(--green-primary), var(--green-dark));
  border-radius: 8px;
  transition: width 0.5s ease;
}

/* Stats Summary */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* --- Knowledge Base --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.article-header {
  background: linear-gradient(135deg, var(--green-light), #C8E6C9);
  padding: 2rem;
  text-align: center;
  font-size: 3rem;
}

.article-body {
  padding: 1.5rem;
}

.article-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-body h3 {
  margin-bottom: 0.5rem;
}

.article-body p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Expandable Content */
.expandable {
  cursor: pointer;
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.expandable.open .expandable-content {
  max-height: 2000px;
}

.expand-toggle {
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Info Boxes --- */
.info-box {
  background: var(--green-light);
  border-left: 4px solid var(--green-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box.warning {
  background: #FFF8E1;
  border-left-color: #FFC107;
}

.info-box.tip {
  background: #E3F2FD;
  border-left-color: #2196F3;
}

.info-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Supplement Table --- */
.supplement-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.supplement-table th {
  background: var(--green-primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.supplement-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.supplement-table tr:last-child td {
  border-bottom: none;
}

.supplement-table tr:hover {
  background: var(--green-light);
}

/* --- Footer --- */
.footer {
  background: var(--green-deeper);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--green-accent);
}

.footer .footer-tagline {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .timer-display {
    font-size: 2.5rem;
  }

  .circular-timer-wrapper {
    width: 200px;
    height: 200px;
  }

  .circular-timer-wrapper .timer-display {
    font-size: 1.8rem;
  }

  .schedule-row {
    flex-direction: column;
    align-items: center;
  }

  .schedule-block {
    max-width: 100%;
    width: 100%;
  }

  .prep-grid {
    grid-template-columns: 1fr;
  }

  .fast-milestones {
    gap: 0.4rem;
  }

  .milestone {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tracker-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .food-log-input {
    flex-direction: column;
  }

  .protocol-selector {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Circular Timer --- */
.circular-timer-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 1.5rem auto;
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 10;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--green-primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.timer-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.circular-timer-wrapper .timer-display {
  font-size: 2.2rem;
  margin: 0 0 0.25rem;
}

.timer-phase-label {
  font-size: 0.8rem;
  color: var(--green-dark);
  max-width: 150px;
  margin: 0 auto;
  font-weight: 600;
}

/* --- Schedule Preview --- */
.schedule-preview {
  margin: 1.5rem 0;
}

.schedule-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.schedule-block {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.fasting-block {
  background: rgba(46, 125, 50, 0.12);
  border: 2px solid var(--green-dark);
}

.eating-block {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--green-accent);
}

.schedule-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.schedule-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-dark);
  display: block;
}

.schedule-times {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-deeper);
  display: block;
  margin: 0.5rem 0 0.25rem;
}

.schedule-duration {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
}

/* --- Time Picker --- */
.fast-start-time-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fast-start-time-picker label {
  font-weight: 600;
  color: var(--green-dark);
}

.fast-start-time-picker input[type="time"] {
  padding: 8px 14px;
  border: 2px solid var(--green-primary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--green-deeper);
  background: white;
}

.fast-start-time-picker input[type="time"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.time-picker-hint {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Fast Milestones --- */
.fast-milestones {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem auto;
  max-width: 520px;
}

.milestone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-light);
  border: 1px solid var(--border-soft);
  transition: all 0.4s ease;
  opacity: 0.5;
}

.milestone.achieved {
  opacity: 1;
  background: white;
  border-color: var(--green-primary);
  color: var(--green-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
  transform: scale(1.05);
}

.milestone-icon {
  font-size: 1rem;
}

/* --- Next Phase Countdown --- */
.next-phase-countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: white;
  border-radius: 50px;
  margin: 1rem auto;
  max-width: 350px;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

#nextPhaseLabel {
  color: var(--green-dark);
  font-weight: 600;
}

#nextPhaseTime {
  color: var(--green-primary);
  font-weight: 800;
}

/* --- Preparation Guide --- */
.prep-card {
  border-top: 4px solid var(--green-accent);
}

.prep-card:hover {
  transform: none;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.prep-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
}

.prep-item p {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.prep-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.prep-meals-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.prep-meal-option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.prep-meal-option:hover {
  background: #C8E6C9;
}

.prep-meal-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.prep-meal-option p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

/* --- Fasting Checklist --- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.checklist-item:hover {
  background: #C8E6C9;
}

.checklist-item input[type="checkbox"] {
  accent-color: var(--green-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Fasting Log --- */
.fasting-log-wrapper {
  max-width: 600px;
  margin: 2.5rem auto;
  text-align: center;
}

.fasting-log-wrapper h3 {
  margin-bottom: 1rem;
}

.fasting-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fasting-log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  transition: var(--transition);
}

.fasting-log-entry:hover {
  border-color: var(--green-accent);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.log-entry-left, .log-entry-right {
  display: flex;
  flex-direction: column;
}

.log-entry-right {
  text-align: right;
}

.log-protocol {
  color: var(--green-dark);
}

.log-date {
  color: var(--text-light);
  font-size: 0.8rem;
}

.log-hours {
  color: var(--green-primary);
}

.log-times {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animations for cards */
.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.2s; }
.card-grid .card:nth-child(3) { animation-delay: 0.3s; }
.card-grid .card:nth-child(4) { animation-delay: 0.4s; }

/* --- Print Styles --- */
@media print {
  .navbar, .footer, .timer-controls, .btn {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
