/* ==========================================================================
   Meal Discipline Tracker ❤️ - Design System & Modern Stylesheet
   Theme: Healthy & Couple Lifestyle (Emerald Mint + Soft Rose/Pink + Sleek Dark/Light)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f6f8fb;
  --bg-secondary: #eef2f7;
  --bg-card: rgba(255, 255, 255, 0.90);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.82);
  
  --text-main: #0c1222;
  --text-muted: #526077;
  --text-light: #8896ab;
  
  --border-subtle: rgba(203, 213, 225, 0.7);
  --border-focus: #10b981;
  --card-specular: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  
  /* Primary & Brand Accents */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  
  /* Couple Themes */
  --shubham-primary: #0284c7;
  --shubham-secondary: #0d9488;
  --shubham-light: #f0fdfa;
  --shubham-border: #7dd3fc;
  --shubham-glow: rgba(2, 132, 199, 0.28);
  
  --yogita-primary: #f43f5e;
  --yogita-secondary: #e11d48;
  --yogita-light: #fff1f2;
  --yogita-border: #fda4af;
  --yogita-glow: rgba(244, 63, 94, 0.28);
  
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);

  /* Status Colors */
  --status-complete: #10b981;
  --status-complete-bg: #ecfdf5;
  --status-pending: #f59e0b;
  --status-pending-bg: #fffbeb;
  --status-missed: #ef4444;
  --status-missed-bg: #fef2f2;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 36px -8px rgba(15, 23, 42, 0.09), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 18px 40px -12px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.28);
  --shadow-glow-rose: 0 0 30px rgba(244, 63, 94, 0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Tokens - Luxury Obsidian Aesthetic */
[data-theme="dark"] {
  --bg-primary: #070a13;
  --bg-secondary: #0d1322;
  --bg-card: rgba(15, 22, 38, 0.78);
  --bg-card-hover: rgba(21, 30, 52, 0.90);
  --bg-glass: rgba(13, 19, 34, 0.85);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: #34d399;
  --card-specular: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  
  --shubham-primary: #38bdf8;
  --shubham-secondary: #2dd4bf;
  --shubham-light: rgba(56, 189, 248, 0.14);
  --shubham-border: rgba(56, 189, 248, 0.35);
  --shubham-glow: rgba(56, 189, 248, 0.35);
  
  --yogita-primary: #fb7185;
  --yogita-secondary: #f43f5e;
  --yogita-light: rgba(251, 113, 133, 0.14);
  --yogita-border: rgba(251, 113, 133, 0.35);
  --yogita-glow: rgba(251, 113, 133, 0.35);
  
  --status-complete-bg: rgba(16, 185, 129, 0.18);
  --status-pending-bg: rgba(245, 158, 11, 0.18);
  --status-missed-bg: rgba(239, 68, 68, 0.18);
  
  --shadow-card: 0 20px 48px -12px rgba(0, 0, 0, 0.65), 0 4px 16px -2px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(16, 185, 129, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 25%, rgba(244, 63, 94, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 0% 55%, rgba(14, 165, 233, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(245, 158, 11, 0.08), transparent 70%);
  background-attachment: fixed;
  padding-bottom: 90px;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 30px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  max-width: 1200px;
  width: calc(100% - 24px);
  margin: 12px auto;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.12), var(--card-specular);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-container {
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-500) 0%, var(--yogita-primary) 100%);
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35);
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-badge {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--emerald-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.3rem;
  background: rgba(100, 116, 139, 0.06);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
  color: white !important;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600)) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.live-clock-pill {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .live-clock-pill {
    display: inline-flex;
  }
}

.live-clock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-complete);
  box-shadow: 0 0 8px var(--status-complete);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  transform: rotate(18deg) scale(1.08);
  background: var(--border-subtle);
}

.btn-upload-quick {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
}

.btn-upload-quick:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Mobile Bottom Navigation Bar */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.4rem 0.5rem;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
}

.mobile-nav-item span.icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.mobile-nav-item.active {
  color: var(--emerald-600);
}

[data-theme="dark"] .mobile-nav-item.active {
  color: var(--emerald-400);
}

.mobile-nav-item.add-btn {
  transform: translateY(-14px);
  background: linear-gradient(135deg, var(--emerald-500), var(--yogita-primary));
  color: white;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.4);
}

.mobile-nav-item.add-btn span.icon {
  font-size: 1.5rem;
  margin: 0;
}

.mobile-nav-item.add-btn span.label {
  display: none;
}

/* ==========================================================================
   Main Container & Layout
   ========================================================================== */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  width: 100%;
}

@media (max-width: 640px) {
  .main-wrapper {
    padding: 1rem 0.65rem;
  }
}

@media (max-width: 380px) {
  .main-wrapper {
    padding: 0.75rem 0.35rem;
  }
}

/* Notice Banner */
.notice-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-main);
}

.notice-banner .close-btn {
  cursor: pointer;
  opacity: 0.6;
}

/* ==========================================================================
   Hero & Couple Overview Banner (Bento Sanctuary)
   ========================================================================== */
.hero-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yogita-glow) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
}

.hero-banner::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--shubham-glow) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
}

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--emerald-600);
  background: var(--status-complete-bg);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .hero-eyebrow {
  color: var(--emerald-400);
}

.hero-title-group h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--emerald-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-motto {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Couple Bento Command Grid */
.couple-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 860px) {
  .couple-bento-grid {
    grid-template-columns: 1fr 1.65fr 1fr;
  }
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Bento 1: Flame Streak */
.bento-streak {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.bento-flame-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.bento-flame-icon {
  font-size: 2.2rem;
  animation: flameEmberPulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}

@keyframes flameEmberPulse {
  0%, 100% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6)); }
  50% { transform: scale(1.12) rotate(3deg); filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.85)); }
}

.bento-streak-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
}

.bento-streak-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.bento-streak-best {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  width: fit-content;
}

/* Bento 2: Dual 2/2 Progression */
.bento-progress {
  gap: 0.75rem;
}

.bento-header-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-persons-progress {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.bento-person-name {
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bento-capsules-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meal-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.meal-capsule.done {
  background: var(--status-complete-bg);
  color: var(--status-complete);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.meal-capsule.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.meal-capsule.missed {
  background: var(--status-missed-bg);
  color: var(--status-missed);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Bento 3: Penalty Vault & WhatsApp Dispatch */
.bento-penalty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.bento-penalty-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-whatsapp-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  filter: brightness(1.05);
}

/* ==========================================================================
   Dashboard Today's Meal Status Grid (Shubham vs Yogita)
   ========================================================================== */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.person-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .person-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Person Card */
.person-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.person-card.shubham {
  background-image: radial-gradient(circle at top left, var(--shubham-light) 0%, transparent 60%);
  border-color: var(--shubham-border);
}

.person-card.yogita {
  background-image: radial-gradient(circle at top right, var(--yogita-light) 0%, transparent 60%);
  border-color: var(--yogita-border);
}

.person-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.person-profile {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.person-avatar-wrap {
  position: relative;
  display: inline-block;
}

.person-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.person-card:hover .person-avatar {
  transform: scale(1.05);
}

.person-card.shubham .person-avatar {
  border-color: var(--shubham-primary);
  box-shadow: 0 0 20px var(--shubham-glow);
}

.person-card.yogita .person-avatar {
  border-color: var(--yogita-primary);
  box-shadow: 0 0 20px var(--yogita-glow);
}

.person-active-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--status-complete);
  border: 2px solid white;
  box-shadow: 0 0 8px var(--status-complete);
}

[data-theme="dark"] .person-active-dot {
  border-color: var(--bg-card);
}

.person-role-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.person-meta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
}

.person-meta .streak-tag {
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #f59e0b;
  margin-top: 0.2rem;
}

.completion-badge {
  text-align: right;
  background: var(--bg-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.completion-badge .pct {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.completion-badge .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

/* Meals Container inside Person Card */
.meal-slots-container {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.meal-slot-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 540px) {
  .meal-slot-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.meal-slot-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.meal-slot-left {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.meal-type-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.meal-slot-details {
  display: flex;
  flex-direction: column;
}

.meal-slot-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meal-slot-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meal-desc-pill {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 0.3rem;
  display: inline-block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meal-slot-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill.completed {
  background: var(--status-complete-bg);
  color: var(--status-complete);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.status-pill.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill.missed {
  background: var(--status-missed-bg);
  color: var(--status-missed);
  border: 1px solid rgba(239, 68, 68, 0.35);
  animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.zoomable-photo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.zoomable-photo:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-500);
}

.btn-slot-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-slot-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.btn-whatsapp-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  border: 1px solid rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

[data-theme="dark"] .btn-whatsapp-slot {
  color: #25d366;
}

.btn-whatsapp-slot:hover {
  background: #25d366;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Person Card Footer Stats */
.person-card-footer {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.person-penalty-tag {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.person-penalty-tag.clean {
  color: var(--status-complete);
}

.person-penalty-tag.fined {
  color: var(--status-missed);
}

/* ==========================================================================
   Permanent Meal Rules Card
   ========================================================================== */
.rules-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.rules-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.rules-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rules-penalty-callout {
  background: var(--status-missed-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--status-missed);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rules-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rule-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: var(--transition);
}

.rule-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.rule-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--yogita-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.rule-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.rule-item.penalty-rule {
  background: var(--status-missed-bg);
  border-color: rgba(239, 68, 68, 0.3);
}

.rule-item.penalty-rule .rule-num {
  background: #ef4444;
}

.rule-item.penalty-rule .rule-text {
  color: #ef4444;
}

/* ==========================================================================
   Progress Stats Overview Section
   ========================================================================== */
.stats-grid-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .stats-grid-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-metric-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.stat-metric-card .stat-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-metric-card .stat-metric-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.stat-metric-card .stat-metric-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.45rem;
  opacity: 0.3;
}

/* ==========================================================================
   Meal Upload Modal & Form
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-label span.req {
  color: var(--yogita-primary);
}

/* User Selection Radio Pill Grid */
.user-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.user-radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.user-radio-label:hover {
  border-color: var(--emerald-400);
}

.user-radio-label input[type="radio"] {
  display: none;
}

.user-radio-label.selected {
  border-color: var(--emerald-500);
  background: var(--status-complete-bg);
}

.user-radio-label.yogita-label.selected {
  border-color: var(--yogita-primary);
  background: var(--yogita-light);
}

.user-radio-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.user-radio-name {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Meal Type Selection */
.meal-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.meal-type-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  background: var(--bg-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.meal-type-label input[type="radio"] {
  display: none;
}

.meal-type-label.selected {
  border-color: var(--emerald-500);
  background: var(--status-complete-bg);
  color: var(--emerald-600);
}

/* Image Upload Area */
.upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-secondary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--emerald-500);
  background: var(--status-complete-bg);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  display: block;
}

.upload-prompt {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.upload-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-container {
  display: none;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 240px;
  margin-top: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.preview-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.btn-remove-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Form Inputs */
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: var(--bg-card);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.btn-submit-meal {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
}

.btn-submit-meal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   History Timeline View
   ========================================================================== */
.history-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--emerald-500);
  color: white;
  border-color: var(--emerald-500);
}

.history-date-block {
  margin-bottom: 2rem;
}

.history-date-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.history-date-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.history-date-line {
  flex-grow: 1;
  height: 1px;
  background: var(--border-subtle);
}

.history-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .history-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.history-meal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.history-meal-thumb-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
}

.history-meal-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.history-meal-card:hover .history-meal-thumb {
  transform: scale(1.04);
}

.history-meal-person-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
}

.history-meal-person-tag.shubham {
  background: rgba(13, 148, 136, 0.85);
}

.history-meal-person-tag.yogita {
  background: rgba(244, 63, 94, 0.85);
}

.history-meal-badge-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  backdrop-filter: blur(6px);
}

.history-meal-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.history-meal-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.history-meal-type-row h4 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.history-meal-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.history-meal-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.history-meal-zoom-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.history-meal-card:hover .history-meal-zoom-hint {
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   Today's Live Food Photo Gallery on Dashboard
   ========================================================================== */
.today-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.today-photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.today-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.today-photo-img-wrap {
  position: relative;
  height: 175px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.today-photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.today-photo-card:hover .today-photo-img-wrap img {
  transform: scale(1.05);
}

.today-photo-person {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.today-photo-person.shubham {
  background: rgba(13, 148, 136, 0.9);
}

.today-photo-person.yogita {
  background: rgba(244, 63, 94, 0.9);
}

.today-photo-meal {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  backdrop-filter: blur(6px);
}

.today-photo-zoom-hint {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  backdrop-filter: blur(6px);
}

.today-photo-info {
  padding: 0.85rem 1rem;
}

.today-photo-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.today-photo-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-top: 0.25rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Meal Slot Photo Badge
   ========================================================================== */
.meal-slot-photo-badge {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.meal-slot-photo-badge:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.meal-slot-photo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meal-slot-photo-badge .photo-zoom-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.6rem;
  padding: 1px 3px;
  border-radius: 4px;
  pointer-events: none;
  line-height: 1;
}

/* ==========================================================================
   Day Modal Photo Preview
   ========================================================================== */
.day-modal-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.4rem 0;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  max-height: 160px;
}

.day-modal-photo-wrap img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.day-modal-photo-wrap:hover img {
  transform: scale(1.03);
}

.day-modal-photo-wrap .photo-zoom-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Calendar View
   ========================================================================== */
.calendar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2rem;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.calendar-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.calendar-nav-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}

.cal-nav-btn:hover {
  background: var(--border-subtle);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.complete { background: var(--status-complete); }
.legend-dot.penalty { background: var(--status-missed); }
.legend-dot.pending { background: var(--status-pending); }

.calendar-grid-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  width: 100%;
}

.day-full { display: inline; }
.day-short { display: none; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.cal-day-cell {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  min-width: 0;
  overflow: hidden;
  min-height: 68px;
  box-sizing: border-box;
}

.cal-day-cell:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.cal-day-cell.today {
  border: 2px solid var(--emerald-500);
}

.cal-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cal-day-number {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.cal-today-tag {
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--emerald-500);
  color: white;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cal-day-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto 0;
}

.cal-status-emoji {
  font-size: 0.85rem;
  line-height: 1;
}

.cal-day-footer {
  font-size: 0.68rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.cal-text-complete { color: var(--status-complete); }
.cal-text-missed { color: var(--status-missed); }
.cal-text-pending { color: var(--text-muted); }

.text-long { display: inline; }
.text-short { display: none; }

.cal-day-cell.complete {
  background: var(--status-complete-bg);
  border-color: rgba(16, 185, 129, 0.4);
}

.cal-day-cell.penalty {
  background: var(--status-missed-bg);
  border-color: rgba(239, 68, 68, 0.4);
}

.cal-day-cell.pending {
  background: var(--status-pending-bg);
  border-color: rgba(245, 158, 11, 0.4);
}

.cal-day-cell.empty {
  opacity: 0.25;
  pointer-events: none;
  background: transparent;
  border-color: transparent;
}

/* ==========================================================================
   Responsive Calendar Rules for Tablets and Mobile
   ========================================================================== */
@media (max-width: 640px) {
  .calendar-card {
    padding: 0.85rem 0.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
  }

  .calendar-nav-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

  .calendar-nav-header h2 {
    justify-content: center;
    font-size: 1.15rem;
    text-align: center;
  }

  .calendar-nav-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: 0.4rem;
  }

  .cal-nav-btn {
    padding: 0.45rem 0.2rem;
    font-size: 0.82rem;
  }

  .calendar-legend {
    display: flex;
    justify-content: center;
    gap: 0.4rem 0.75rem;
    font-size: 0.74rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .calendar-weekdays {
    gap: 3px;
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .calendar-grid {
    gap: 3px;
  }

  .cal-day-cell {
    padding: 0.28rem 0.12rem;
    border-radius: var(--radius-sm);
    min-height: 52px;
  }

  .cal-day-number {
    font-size: 0.78rem;
  }

  .cal-day-cell.today .cal-day-header {
    justify-content: center;
  }

  .cal-day-cell.today .cal-day-number {
    background: var(--emerald-500);
    color: white;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  }

  .cal-today-tag {
    display: none;
  }

  .cal-status-emoji {
    font-size: 0.75rem;
  }

  .cal-day-footer {
    font-size: 0.62rem;
  }

  .text-long {
    display: none;
  }

  .text-short {
    display: inline;
  }
}

@media (max-width: 480px) {
  .calendar-card {
    padding: 0.75rem 0.35rem;
  }

  .day-full {
    display: none;
  }

  .day-short {
    display: inline;
  }

  .cal-day-cell {
    padding: 0.22rem 0.08rem;
    min-height: 48px;
  }

  .cal-day-number {
    font-size: 0.74rem;
  }

  .cal-day-header {
    justify-content: center;
  }

  .cal-day-footer {
    font-size: 0.58rem;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 360px) {
  .calendar-card {
    padding: 0.6rem 0.25rem;
  }

  .calendar-grid, .calendar-weekdays {
    gap: 2px;
  }

  .cal-day-cell {
    min-height: 42px;
    padding: 0.18rem 0.05rem;
  }

  .cal-day-footer {
    display: none; /* Hide bottom text on ultra-compact phones, dot clearly conveys status */
  }
}

/* ==========================================================================
   Date Details Modal (Calendar Day Click)
   ========================================================================== */
.day-modal-slots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-person-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.day-person-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.day-meal-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .day-meal-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.day-meal-card-mini {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.day-meal-photo-preview {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Image Lightbox
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast.success {
  border-left: 4px solid var(--emerald-500);
}

.toast.error {
  border-left: 4px solid var(--yogita-primary);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.site-footer .heart {
  color: var(--yogita-primary);
  animation: heartPulse 1.5s infinite;
}

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

/* ==========================================================================
   Weekly Penalty & Settlement System Styles
   ========================================================================== */
.settlement-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(ellipse at top left, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.settlement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #10b981, #f43f5e);
}

.settlement-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

@media (min-width: 640px) {
  .settlement-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.settlement-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.settlement-period-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Visual Comparison Arena */
.settlement-comparison-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
  .settlement-comparison-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.settlement-user-col {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.settlement-user-col.right {
  justify-content: flex-end;
}

.settlement-user-meta {
  display: flex;
  flex-direction: column;
}

.settlement-user-meta.right {
  text-align: right;
}

.settlement-user-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}

.settlement-unpaid-fine {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--status-missed);
  line-height: 1.2;
}

.settlement-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 240px;
  box-shadow: var(--shadow-sm);
}

.verdict-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.verdict-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.verdict-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  margin-top: 0.45rem;
  animation: pulseVerdict 2s infinite ease-in-out;
}

@keyframes pulseVerdict {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.verdict-pill.shubham-pays {
  background: rgba(2, 132, 199, 0.15);
  color: var(--shubham-primary);
  border: 1px solid var(--shubham-border);
}

.verdict-pill.yogita-pays {
  background: rgba(244, 63, 94, 0.15);
  color: var(--yogita-primary);
  border: 1px solid var(--yogita-border);
}

.verdict-pill.even {
  background: var(--status-complete-bg);
  color: var(--status-complete);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Actions */
.settlement-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.btn-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-compare-toggle:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-settle-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--emerald-500) 0%, #047857 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-settle-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-settle-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Weekly Breakdown Drawer */
.weekly-breakdown-drawer {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-subtle);
  animation: fadeIn 0.3s ease;
}

.weekly-breakdown-drawer.open {
  display: block;
}

.weekly-day-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.weekly-day-row:nth-child(even) {
  background: var(--bg-secondary);
}

.weekly-day-row.header {
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
  background: transparent;
}

/* Settlement History List */
.settlement-history-drawer {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-subtle);
}

.settlement-history-drawer.open {
  display: block;
}

.history-settle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-subtle);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Comprehensive Motion & Micro-Animations Engine ❤️
   ========================================================================== */

/* 1. Keyframe Definitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRightCard {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleInPop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flameDance {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  }
  25% {
    transform: scale(1.12) rotate(-4deg);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.65);
  }
  75% {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  }
}

@keyframes shubhamAura {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--shubham-border), 0 4px 14px rgba(13, 148, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.45), 0 8px 24px rgba(13, 148, 136, 0.35);
  }
}

@keyframes yogitaAura {
  0%, 100% {
    box-shadow: 0 0 0 3px var(--yogita-border), 0 4px 14px rgba(244, 63, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.45), 0 8px 24px rgba(244, 63, 94, 0.35);
  }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.28); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); }
  70% { transform: scale(1); }
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmerGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes todayRingPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--emerald-500), 0 2px 8px rgba(16, 185, 129, 0.25);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.45), 0 4px 16px rgba(16, 185, 129, 0.35);
  }
}

@keyframes floatingParticle {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0), -65px) scale(1.4);
  }
}

@keyframes modalSpringIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  65% {
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes brandRotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.08); }
  75% { transform: rotate(8deg) scale(1.08); }
}

@keyframes verdictGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
  }
}

@keyframes pendingTilt {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* 2. Applying Micro-Animations */

/* Staggered page load entries */
.hero-banner {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-banner::before,
.settlement-card::before {
  background-size: 200% 200% !important;
  animation: gradientSlide 6s ease infinite !important;
}

.couple-strip .couple-stat-box:nth-child(1) {
  animation: scaleInPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.couple-strip .couple-stat-box:nth-child(2) {
  animation: scaleInPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}
.couple-strip .couple-stat-box:nth-child(3) {
  animation: scaleInPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.person-card.shubham {
  animation: slideInLeft 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.person-card.yogita {
  animation: slideInRightCard 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.stat-metric-card:nth-child(1) { animation: fadeInUp 0.45s ease 0.1s both; }
.stat-metric-card:nth-child(2) { animation: fadeInUp 0.45s ease 0.18s both; }
.stat-metric-card:nth-child(3) { animation: fadeInUp 0.45s ease 0.26s both; }
.stat-metric-card:nth-child(4) { animation: fadeInUp 0.45s ease 0.34s both; }

.settlement-card {
  animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.rules-card {
  animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Continuous lively elements */
.stat-icon-circle.flame {
  animation: flameDance 2.5s ease-in-out infinite;
}

.person-card.shubham .person-avatar {
  animation: shubhamAura 3.2s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.person-card.yogita .person-avatar {
  animation: yogitaAura 3.2s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.person-avatar:hover {
  transform: scale(1.12) rotate(3deg);
  cursor: pointer;
}

.brand-badge {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-badge {
  animation: brandRotate 0.8s ease infinite;
}

.heartbeat {
  display: inline-block;
  animation: heartBeat 2s infinite ease-in-out;
}

.verdict-pill {
  animation: verdictGlow 2.8s ease-in-out infinite;
}

.status-pill.pending span,
.status-pill.pending {
  animation: pendingTilt 3s ease-in-out infinite;
}

/* Hover Physics for Meal Slots */
.meal-slot-item {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.meal-slot-item:hover {
  transform: translateX(4px);
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-sm);
}

.meal-slot-item:hover .meal-type-icon {
  transform: scale(1.12) rotate(5deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.zoomable-photo {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.25s ease;
}

.zoomable-photo:hover {
  transform: scale(1.18) rotate(1.5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  filter: brightness(1.05);
  z-index: 5;
}

/* Stat Metric Cards Lift */
.stat-metric-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.35);
}

.stat-metric-card:hover .stat-metric-icon {
  transform: scale(1.22) rotate(8deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Interactive CTA Shimmer & Bounces */
.btn-primary,
.btn-settle-action:not(:disabled) {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.btn-primary::after,
.btn-settle-action:not(:disabled)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shimmerGlow 3.5s infinite;
  pointer-events: none;
}

.btn-primary:hover,
.btn-settle-action:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.btn-primary:active,
.btn-settle-action:not(:disabled):active,
.btn-slot-action:active {
  transform: scale(0.96);
}

/* Rules Item interactive hover */
.rule-item {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
}

.rule-item:hover {
  transform: translateX(4px);
  border-color: var(--emerald-400);
}

.rule-item:hover .rule-num {
  transform: scale(1.15) rotate(-4deg);
  background: var(--emerald-500);
  color: white;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

/* Calendar Cell Micro-Interactions */
.cal-day-cell {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .cal-day-cell:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    z-index: 2;
  }
}

.cal-day-cell:active {
  transform: scale(0.96);
}

.cal-day-cell.today {
  animation: todayRingPulse 2.4s infinite ease-in-out;
}

/* Modal Spring In */
.modal-overlay.active .modal-dialog {
  animation: modalSpringIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Floating Particle Container */
.floating-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1.4rem;
  z-index: 9999;
  user-select: none;
  animation: floatingParticle 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Accessibility: Respect Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   WhatsApp Group Reminders & Notifications Styling 💬
   ========================================================================== */
.btn-whatsapp-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #25d366;
  color: white !important;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-whatsapp-slot:hover {
  background: #20bd5a;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.42);
  color: white;
}

.btn-whatsapp-slot:active {
  transform: scale(0.96);
}

.btn-whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-whatsapp-hero:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-hero:active {
  transform: scale(0.97);
}

/* WhatsApp Message Preview Bubble */
.whatsapp-bubble {
  background: #dcf8c6;
  color: #075e54;
  padding: 1rem 1.25rem;
  border-radius: 12px 12px 2px 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  white-space: pre-line;
  margin: 1rem 0;
  border-left: 4px solid #128c7e;
  font-family: inherit;
}

[data-theme="dark"] .whatsapp-bubble {
  background: #054640;
  color: #e9edef;
  border-left-color: #25d366;
}

.whatsapp-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .whatsapp-group-badge {
  color: #25d366;
}

