/* ===== TIPS ===== */
.tips-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.tips-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
}

.tips-section h2 em { font-style: italic; color: var(--terracotta); }

.tip {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--warm-white);
  border-radius: 12px;
  border: 1px solid rgba(61,50,41,0.04);
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.tip:hover { transform: translateX(4px); }

.tip-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sage-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sage);
}

.tip h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.tip p { font-size: 0.85rem; color: var(--bark-light); line-height: 1.6; }

.tip-critical { border-left: 3px solid var(--terracotta); }
.tip-avoid { border-left: 3px solid #c0392b; }
.tip-avoid .tip-num { background: rgba(192,57,43,0.08); }

.tips-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(61,50,41,0.08);
}

/* Daily schedule */
.daily-schedule {
  background: var(--warm-white);
  border-radius: 14px;
  border: 1px solid rgba(61,50,41,0.05);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(61,50,41,0.04);
  font-size: 0.85rem;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--bark);
  min-width: 42px;
}
.schedule-icon { font-size: 0.9rem; }
.schedule-text { display: flex; flex-direction: column; gap: 0.1rem; }
.schedule-text strong { font-size: 0.82rem; }
.schedule-text span { font-size: 0.75rem; color: var(--bark-light); }
.schedule-medication { background: rgba(192,57,43,0.03); }
.schedule-supplement { background: rgba(122,140,110,0.04); }

/* Supplement cards */
.supplement-card { grid-template-columns: 1fr; }
.supplement-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}
.supplement-type {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bark-light);
}
.supplement-time { color: var(--bark-light); }
.supplement-avoid {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.4rem;
  font-weight: 500;
}
.supplement-danger { border-left: 3px solid #c0392b; }
.supplement-success { border-left: 3px solid var(--sage); }
.supplement-info { border-left: 3px solid #3498db; }

/* Star foods */
.star-foods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.star-food-card {
  background: var(--warm-white);
  border-radius: 12px;
  border: 1px solid rgba(61,50,41,0.05);
  padding: 1rem;
  transition: transform 0.3s;
}
.star-food-card:hover { transform: translateY(-2px); }
.star-food-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.star-food-iron {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.15rem;
}
.star-food-freq {
  font-size: 0.72rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.star-food-note {
  font-size: 0.78rem;
  color: var(--bark-light);
  line-height: 1.5;
}

/* Advice lists */
.advice-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}
.advice-list li {
  padding: 0.75rem 1rem;
  background: var(--warm-white);
  border-radius: 10px;
  border: 1px solid rgba(61,50,41,0.04);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--bark);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer { display: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .now-option { display: none; }
  .day-nav-section { padding: 0.3rem 0.5rem; }
  .day-tab { width: 30px; height: 30px; font-size: 0.7rem; }
  .meal-plan { padding: 0.75rem 0 0.5rem 0; padding-right: 65px; }
  .meal-option.active { flex-direction: column; gap: 1rem; }
  .meal-done { flex-direction: row; }
  .shopping-grid { grid-template-columns: 1fr; }
  .shopping-section { padding: 2rem 1.25rem; }
  .tips-section { padding: 2rem 1.25rem; }
  .meal-macros { gap: 0.75rem; }
  .meal-block {
    border-radius: 0 14px 14px 0;
    border-left: 3px solid var(--sage);
    margin-left: 0;
  }
  .routine-card {
    border-radius: 0 10px 10px 0;
    border-left: 3px solid var(--mist);
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .day-tabs { gap: 0.15rem; }
  .day-tab { width: 28px; height: 28px; font-size: 0.65rem; }
}

/* ===== ONBOARDING OVERLAY ===== */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(61,50,41,0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.onboarding-overlay.hidden { display: none; }

.onboarding-card {
  background: var(--warm-white);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(61,50,41,0.2);
  position: relative;
}

.onboarding-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(61,50,41,0.1);
  background: var(--cream);
  color: var(--bark-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1;
}

.onboarding-close:hover { background: var(--mist); color: var(--bark); }

.ob-step { display: none; flex-direction: column; }
.ob-step.active { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.ob-top {
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
}

.ob-top .ob-emoji { font-size: 2.5rem; margin-bottom: 0.75rem; }

.ob-top h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.ob-top h2 em { font-style: italic; color: var(--terracotta); font-weight: 400; }

.ob-top p {
  font-size: 0.88rem;
  color: var(--bark-light);
  line-height: 1.6;
}

.ob-body { padding: 1.5rem 2rem 1rem; }

.ob-step-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.ob-footer {
  flex-shrink: 0;
  padding: 0.75rem 2rem 1.5rem;
  background: var(--warm-white);
  border-top: 1px solid rgba(61,50,41,0.06);
}

.ob-principles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ob-principle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--cream);
  border-radius: 12px;
}

.ob-principle .ob-p-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }

.ob-principle h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.ob-principle p { font-size: 0.78rem; color: var(--bark-light); line-height: 1.5; }

.ob-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.ob-feature {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--bark-light);
}

.ob-feature .ob-f-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sage-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ob-actions {
  display: flex;
  gap: 0.75rem;
}

.ob-scroll-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ob-scroll-content > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ob-settings-footer {
  display: none;
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1.5px solid rgba(61,50,41,0.08);
  background: var(--warm-white);
  gap: 0.65rem;
}
.ob-settings-footer.active { display: flex; }
.ob-settings-footer button {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.ob-settings-cancel {
  background: transparent;
  border: 1.5px solid var(--mist) !important;
  color: var(--bark-light);
}
.ob-settings-cancel:hover { border-color: var(--bark-light) !important; color: var(--bark); }
.ob-settings-save {
  background: var(--bark);
  color: var(--cream);
}
.ob-settings-save:hover { background: var(--terracotta); }

.ob-btn {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ob-btn.primary {
  background: var(--bark);
  color: var(--cream);
}

.ob-btn.primary:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196,112,75,0.25);
}

.ob-btn.secondary {
  background: transparent;
  color: var(--bark-light);
  border: 1px solid var(--mist);
}

.ob-btn.secondary:hover { border-color: var(--bark-light); color: var(--bark); }

.ob-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mist);
  transition: all 0.3s;
}

.ob-dot.active { background: var(--terracotta); width: 18px; border-radius: 100px; }

/* (info button moved to bottom bar settings tab) */

/* ===== DIET TOGGLES (onboarding) ===== */
.ob-diets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.diet-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--mist);
  background: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bark-light);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.diet-toggle:hover { border-color: var(--bark-light); }

.diet-toggle.selected {
  border-color: var(--sage);
  background: var(--sage-muted);
  color: var(--bark);
}

.diet-toggle .diet-icon { font-size: 1rem; }

.diet-toggle .diet-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.diet-toggle.selected .diet-check {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

/* Diet tags in header */
.header-diets {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.header-diet-tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .header-diets { display: none; }
}

/* Meal unavailable styling */
.meal-block.filtered-out {
  display: none;
}

.ob-note {
  font-size: 0.78rem;
  color: var(--bark-light);
  text-align: center;
  margin-bottom: 1.25rem;
  font-style: italic;
}

/* ===== GAMIFICATION ANIMATIONS ===== */

/* Checkbox bounce on check */
@keyframes checkBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.done-check.bounce {
  animation: checkBounce 0.3s ease;
}

/* Green pulse on checkbox */
@keyframes greenPulse {
  0% { box-shadow: 0 0 0 0 rgba(122,140,110,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(122,140,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,140,110,0); }
}

.done-check.pulse {
  animation: checkBounce 0.3s ease, greenPulse 0.6s ease;
}

/* Meal card green glow flash */
@keyframes mealGlow {
  0% { box-shadow: 0 0 0 0 rgba(122,140,110,0); }
  30% { box-shadow: 0 0 20px 4px rgba(122,140,110,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(122,140,110,0); }
}

.meal-block.glow-flash {
  animation: mealGlow 0.6s ease;
}

/* Floating checkmark text */
@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.8); }
}

.float-check {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage);
  pointer-events: none;
  animation: floatUp 0.7s ease forwards;
  z-index: 10;
}

/* Smooth eaten transition */
.meal-block {
  transition: box-shadow 0.3s, opacity 0.4s ease, background 0.4s ease;
}

.meal-block.eaten .option-swap {
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.meal-block .option-swap {
  transition: opacity 0.4s ease;
}

/* ===== CELEBRATION OVERLAY ===== */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.celebration-msg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 600;
  color: var(--bark);
  background: var(--warm-white);
  padding: 1rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(61,50,41,0.18);
  animation: celebFade 2.2s ease forwards;
}

@keyframes celebFade {
  0% { opacity: 0; transform: scale(0.8); }
  15% { opacity: 1; transform: scale(1.05); }
  25% { transform: scale(1); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95) translateY(-10px); }
}

/* Confetti particles */
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  animation: confettiBurst 1.2s ease forwards;
}

@keyframes confettiBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(0.3);
  }
}

/* Day complete golden progress */
.day-map-progress.all-done strong {
  color: var(--terracotta);
}

.day-map-progress.all-done {
  color: var(--terracotta);
}

@keyframes progressPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.day-map-progress.pop {
  animation: progressPop 0.4s ease;
}

/* Streak display in day map */
.day-map-streak {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-top: 0.25rem;
  text-align: center;
  line-height: 1.2;
}

.day-map-streak .streak-best {
  display: block;
  font-size: 0.45rem;
  font-weight: 500;
  color: var(--bark-light);
  margin-top: 0.1rem;
}

/* ===== WEEKLY MEAL BUILDER ===== */
.meal-builder-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(61,50,41,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s ease;
  padding: 1rem;
}
.meal-builder-overlay.hidden { display: none; }

.meal-builder-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(61,50,41,0.2);
}

.mb-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bark);
  color: var(--cream);
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}
.mb-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  flex: 1;
}
.mb-header h2 em { color: var(--terracotta-light); font-style: italic; }
.mb-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.mb-progress {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(61,50,41,0.06);
  flex-shrink: 0;
}
.mb-progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--mist);
  transition: background 0.3s;
}
.mb-progress-dot.done { background: var(--sage); }
.mb-progress-dot.active { background: var(--terracotta); }
.mb-progress-dot.routine-dot { flex: 0.5; border-radius: 4px; }

.mb-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.mb-day-label {
  text-align: center;
  margin-bottom: 1.25rem;
}
.mb-day-label h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
}
.mb-day-label p {
  font-size: 0.82rem;
  color: var(--bark-light);
  margin-top: 0.25rem;
}

.mb-meal-slot {
  margin-bottom: 1.25rem;
  background: var(--warm-white);
  border-radius: 14px;
  border: 1px solid rgba(61,50,41,0.05);
  overflow: hidden;
}
.mb-slot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(61,50,41,0.05);
  font-size: 0.85rem;
  font-weight: 600;
}
.mb-slot-header .mb-slot-icon { font-size: 1rem; }
.mb-slot-header .mb-slot-time {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--bark-light);
}

.mb-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
}
.mb-option {
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mb-option.selected {
  background: var(--sage-muted);
  border-color: var(--sage);
}
.mb-option .mb-opt-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bark-light);
  margin-bottom: 0.3rem;
}
.mb-option.selected .mb-opt-label { color: var(--sage); }
.mb-option .mb-opt-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.mb-option .mb-opt-cal {
  font-size: 0.7rem;
  color: var(--bark-light);
}
.mb-option .mb-opt-ingredients {
  font-size: 0.68rem;
  color: var(--bark-light);
  opacity: 0.75;
  line-height: 1.4;
  margin-top: 0.3rem;
}
.mb-opt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.mb-tag {
  font-size: 0.58rem;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  background: var(--sage-muted);
  color: var(--sage);
  font-weight: 600;
}
.mb-option .mb-opt-check {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  color: transparent;
  transition: all 0.2s;
}
.mb-option.selected .mb-opt-check {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

@media (max-width: 480px) {
  .mb-options { grid-template-columns: 1fr; }
}

/* Routine templates in meal builder */
.mb-routine-section { margin-bottom: 0.5rem; }
.mb-routine-template, .mb-routine-existing {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--warm-white);
  border-radius: 12px;
  border: 2px solid transparent;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mb-routine-existing { cursor: default; opacity: 0.7; }
.mb-routine-template:hover { border-color: var(--mist); }
.mb-routine-template.selected {
  border-color: var(--sage);
  background: var(--sage-muted);
}
.mb-rt-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mb-routine-template.selected .mb-rt-check {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}
.mb-rt-emoji { font-size: 1.2rem; flex-shrink: 0; }
.mb-rt-info { flex: 1; }
.mb-rt-text { font-size: 0.85rem; font-weight: 500; line-height: 1.3; }
.mb-rt-time { font-size: 0.72rem; color: var(--bark-light); margin-top: 0.15rem; }

.mb-footer {
  display: flex;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: var(--warm-white);
  border-top: 1px solid rgba(61,50,41,0.06);
  flex-shrink: 0;
}
.mb-footer button {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.mb-prev {
  background: transparent;
  border: 1.5px solid var(--mist) !important;
  color: var(--bark-light);
}
.mb-prev:hover { border-color: var(--bark-light) !important; color: var(--bark); }
.mb-next {
  background: var(--bark);
  color: var(--cream);
}
.mb-next:hover { background: var(--terracotta); }

.mb-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-right: -65px;
}
@media (min-width: 900px) {
  .mb-empty-state { margin-right: 0; }
}
.mb-empty-state .mb-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.mb-empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}
.mb-empty-state h3 em { font-style: italic; color: var(--terracotta); }
.mb-empty-state p {
  font-size: 0.88rem;
  color: var(--bark-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.mb-start-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  background: var(--bark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.mb-start-btn:hover { background: var(--terracotta); transform: translateY(-1px); }

/* ===== CHECK-IN MODAL ===== */
.checkin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(61,50,41,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}
.checkin-overlay.hidden { display: none; }

.checkin-card {
  background: var(--warm-white);
  border-radius: 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(61,50,41,0.2);
  overflow: hidden;
  text-align: center;
}
.checkin-top {
  padding: 2rem 1.5rem 1rem;
  background: var(--cream);
}
.checkin-top .checkin-emoji { font-size: 2.5rem; margin-bottom: 0.5rem; }
.checkin-top h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.checkin-top p {
  font-size: 0.82rem;
  color: var(--bark-light);
}
.checkin-actions {
  display: flex;
  gap: 0.65rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.checkin-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.checkin-yes {
  background: var(--sage);
  color: white;
}
.checkin-yes:hover { background: var(--terracotta); }
.checkin-no {
  background: transparent;
  border: 1.5px solid var(--mist) !important;
  color: var(--bark-light);
}
.checkin-no:hover { border-color: var(--bark-light) !important; color: var(--bark); }
