/* ==========================================================================
   MamaCare — Premium "Calm Sanctuary" UI/UX
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════
   SPLASH SCREEN
   ══════════════════════════════════════════════════════════════ */
#splashScreen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #F9A8C9 0%, #E879A0 30%, #A855C8 65%, #7C3AED 100%);
}
#splashScreen.hidden { display: none; }

/* Animated background blobs */
.splash-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none;
}
.splash-blob-1 {
  width: 70vw; height: 70vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(255,180,210,0.5), transparent 70%);
  top: -15%; left: -15%;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.splash-blob-2 {
  width: 60vw; height: 60vw; max-width: 420px; max-height: 420px;
  background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 70%);
  bottom: -10%; right: -10%;
  animation: blobFloat 15s ease-in-out infinite alternate-reverse;
}
.splash-blob-3 {
  width: 40vw; height: 40vw; max-width: 300px; max-height: 300px;
  background: radial-gradient(circle, rgba(232,121,160,0.35), transparent 70%);
  top: 40%; left: 30%;
  animation: blobFloat 18s ease-in-out infinite alternate;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, 6vh) scale(1.12); }
}

/* Glass wave shape (decorative, bottom-right) */
.splash-wave {
  position: absolute; bottom: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.15);
  pointer-events: none;
}
.splash-wave::before {
  content: '';
  position: absolute; top: 40px; left: 40px; right: 40px; bottom: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Content container */
.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 32px;
  text-align: center;
  animation: splashFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo SVG */
.splash-logo-wrap {
  margin-bottom: 32px;
  filter: drop-shadow(0 20px 60px rgba(168,85,247,0.4)) drop-shadow(0 8px 24px rgba(0,0,0,0.2));
  animation: logoFloat 4s ease-in-out infinite alternate;
}
@keyframes logoFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
/* Logo — mix-blend-mode:multiply makes white background invisible on gradient */
.splash-logo-img {
  width: 260px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 8px 32px rgba(168,85,247,0.3));
}

/* Auth logo */
.auth-logo-img {
  width: 160px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* App name */
.splash-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Tagline */
.splash-tagline {
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 52px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Get Started CTA */
.splash-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #F472B6, #EC4899, #A855C8);
  background-size: 200% 200%;
  color: white;
  border: none; cursor: pointer;
  border-radius: 100px;
  padding: 18px 36px;
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(168,85,247,0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: ctaGradient 3s ease infinite;
  min-width: 220px; justify-content: center;
}
@keyframes ctaGradient {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
.splash-cta:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 48px rgba(168,85,247,0.55), 0 4px 12px rgba(0,0,0,0.2);
}
.splash-cta:active { transform: scale(0.97); }
.splash-cta svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   AUTH SCREEN (shown after Get Started)
   ══════════════════════════════════════════════════════════════ */
#authScreen {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #F9A8C9 0%, #E879A0 30%, #A855C8 65%, #7C3AED 100%);
  animation: splashFadeIn 0.4s ease forwards;
}

/* Auth card — glass morphism */
.auth-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  padding: 36px 32px;
  width: 100%; max-width: 400px;
  margin: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: splashFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Back button */
.auth-back-btn {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white;
  transition: all 0.3s ease;
}
.auth-back-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* Auth logo */
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-logo-icon {
  font-size: 2.4rem; margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.auth-logo h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem; font-weight: 400;
  color: white; letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.auth-logo p {
  font-size: 13px; color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* Auth steps */
.auth-step h3 {
  font-size: 1.2rem; font-weight: 600;
  color: white; margin-bottom: 8px;
}
.auth-step > p {
  font-size: 13.5px; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 20px;
}

/* Auth input */
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.15) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  color: white !important;
  font-size: 15px !important;
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}
.auth-input::placeholder { color: rgba(255,255,255,0.5) !important; }
.auth-input:focus {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.6) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.1) !important;
  transform: none !important;
}

/* Auth primary button */
.auth-btn-primary {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #F472B6, #EC4899, #A855C8);
  background-size: 200% 200%;
  color: white; border: none; cursor: pointer;
  border-radius: 16px; padding: 16px 24px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: ctaGradient 3s ease infinite;
  font-family: 'DM Sans', sans-serif;
}
.auth-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.auth-btn-primary:active { transform: scale(0.97); }

/* Auth message */
.auth-msg {
  margin-top: 12px; font-size: 13px;
  text-align: center; color: rgba(255,255,255,0.8);
  min-height: 20px;
}

/* OTP inputs */
.otp-inputs {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 20px;
}
.otp-input {
  width: 48px !important; height: 56px !important;
  text-align: center;
  background: rgba(255,255,255,0.15) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  border-radius: 14px !important;
  color: white !important;
  font-size: 1.4rem !important; font-weight: 700 !important;
  padding: 0 !important;
  transition: all 0.3s ease;
}
.otp-input:focus {
  background: rgba(255,255,255,0.25) !important;
  border-color: white !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15) !important;
  transform: scale(1.05) !important;
}



:root {
  /* Warm, Soothing Palette */
  --rose: #D88C9A;
  --rose-light: #F3D9DD;
  --peach: #F6C8B5;
  --cream: #FCF8F5; /* Warmer, softer off-white */
  --card-bg: rgba(255, 255, 255, 0.75);
  
  /* Text */
  --text-main: #4A3535;
  --text-muted: #8E7373;
  
  /* Utility */
  --green: #73B59D;
  --blue: #88ADC4;
  --danger: #E06B74;
  
  /* Elevation & Physics */
  --shadow-soft: 0 8px 32px rgba(216, 140, 154, 0.08);
  --shadow-float: 0 16px 48px rgba(216, 140, 154, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── AMBIENT BACKGROUND ── */
.bg-ambient {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--cream);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: float 20s ease-in-out infinite alternate;
}
.orb-1 { width: 60vw; height: 60vw; background: var(--rose-light); top: -10%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: var(--peach); bottom: -10%; right: -10%; animation-delay: -5s; opacity: 0.3; }
@keyframes float { 
  0% { transform: translate(0, 0) scale(1); } 
  100% { transform: translate(5vw, 5vh) scale(1.1); } 
}

/* ── TOP BAR ── */
#topBar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 248, 245, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.top-inner {
  height: 70px; max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.top-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 500; color: var(--text-main);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.top-logo svg { color: var(--rose); width: 22px; }
.top-user { font-size: 13.5px; font-weight: 500; color: var(--text-muted); }

/* ── LAYOUT & PAGES ── */
.app-shell { position: relative; z-index: 1; }
.page {
  display: none; width: 100%; max-width: 800px;
  margin: 0 auto; padding: 16px 16px 90px;
}
.page.active {
  display: block;
  animation: pageEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── GLASS CARDS ── */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px; padding: 18px; margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(216, 140, 154, 0.08);
  transition: var(--transition-smooth);
  position: relative; overflow: visible;
}
.card::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(216, 140, 154, 0.05) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.6s ease;
  z-index: 0; pointer-events: none;
}
.card > * {
  position: relative; z-index: 1;
}
.card:hover::before { opacity: 1; }
.card:hover { 
  box-shadow: 0 16px 48px rgba(216, 140, 154, 0.18); 
  transform: translateY(-4px);
  border-color: rgba(216, 140, 154, 0.3);
}

.sec-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 8px; font-weight: 700;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 500; line-height: 1.2;
  margin-bottom: 14px; 
  background: linear-gradient(135deg, var(--text-main), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
}

/* ── BUTTONS ── */
.btn {
  border: none; cursor: pointer; border-radius: 100px;
  padding: 12px 22px; font-size: 14px; font-weight: 600;
  transition: var(--transition-bounce);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::before { width: 300px; height: 300px; }
.btn:active { transform: scale(0.95); }
.btn-primary, .btn-p {
  background: linear-gradient(135deg, #D88C9A, #E59FA9, #F3A8B4);
  background-size: 200% 200%;
  color: white; box-shadow: 0 8px 24px rgba(216, 140, 154, 0.35);
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-primary:hover, .btn-p:hover { 
  box-shadow: 0 12px 32px rgba(216, 140, 154, 0.5); 
  transform: translateY(-2px) scale(1.02);
}
.btn-g {
  background: linear-gradient(135deg, rgba(115, 181, 157, 0.15), rgba(115, 181, 157, 0.08));
  color: var(--green); border: 1.5px solid var(--green);
}
.btn-g:hover {
  background: var(--green); color: white;
  box-shadow: 0 8px 24px rgba(115, 181, 157, 0.3);
}
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* ── INPUTS ── */
input, select, textarea {
  width: 100%; border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 16px; padding: 14px 16px; outline: none;
  background: rgba(255, 255, 255, 0.9); color: var(--text-main);
  font-size: 15px; transition: var(--transition-smooth);
}
input:focus, textarea:focus {
  border-color: var(--rose); background: white;
  box-shadow: 0 0 0 4px rgba(216, 140, 154, 0.15);
}
label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ── GRID SYSTEMS ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media(max-width: 600px){ .g3 { grid-template-columns: 1fr 1fr; } }

/* ── DASHBOARD BENTO GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.db-grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
.feature-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 18px; padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; transition: var(--transition-bounce);
  box-shadow: 0 2px 12px rgba(216, 140, 154, 0.07);
  position: relative; overflow: hidden;
  min-height: 80px;
}
.feature-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--rose-light), var(--peach));
  opacity: 0; transition: opacity 0.4s ease;
  z-index: 0;
}
.feature-item:hover::before { opacity: 0.15; }
.feature-item:hover { 
  background: white; 
  transform: translateY(-6px) scale(1.02); 
  box-shadow: 0 12px 32px rgba(216, 140, 154, 0.2);
  border-color: var(--rose);
}
.feature-item:active { transform: translateY(-2px) scale(0.98); }
.mi-icon { position: relative; z-index: 1; }
.mi-label { position: relative; z-index: 1; }
.feature-item svg { 
  width: 28px; height: 28px; color: var(--rose); 
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 6px rgba(216, 140, 154, 0.2));
}
.feature-item:hover svg { 
  transform: scale(1.15) rotate(5deg); 
  color: #C67684;
}
.feature-item span, .mi-label { 
  font-size: 11px; font-weight: 600; color: var(--text-main);
  transition: var(--transition-smooth);
  text-align: center; line-height: 1.3;
}
.feature-item:hover span, .feature-item:hover .mi-label { 
  color: var(--rose); 
  transform: translateY(-2px);
}

/* ── CHAT UI ── */
.chat-box {
  height: 350px; overflow-y: auto; background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 24px;
  padding: 20px; margin-bottom: 16px; display: flex; flex-direction: column;
}
.msg {
  max-width: 85%; padding: 14px 18px; border-radius: 20px;
  margin-bottom: 12px; font-size: 14px; line-height: 1.6;
  animation: msgPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes msgPop { from { opacity: 0; transform: scale(0.9) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.msg.user {
  align-self: flex-end; background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white; border-bottom-right-radius: 4px; box-shadow: 0 4px 12px rgba(216, 140, 154, 0.2);
}
.msg.bot {
  align-self: flex-start; background: white; color: var(--text-main);
  border: 1px solid rgba(216, 140, 154, 0.15); border-bottom-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* ── BOTTOM NAV (Enhanced Mobile-First Design) ── */
#bottomNav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(252, 248, 245, 0.95);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-top: 1.5px solid rgba(216, 140, 154, 0.2);
  padding: 10px 0 calc(10px + var(--safe-bottom));
  box-shadow: 0 -4px 24px rgba(216, 140, 154, 0.12);
}
.bn-inner { 
  display: flex; justify-content: space-around; align-items: center; 
  max-width: 600px; margin: 0 auto; padding: 0 8px;
}
.bn-item {
  border: none; background: none; 
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; color: var(--text-muted); 
  transition: var(--transition-bounce);
  padding: 8px 12px; border-radius: 16px;
  position: relative;
}
.bn-item::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--rose), #E59FA9);
  transition: width 0.3s ease;
}
.bn-item.active::before { width: 60%; }
.bn-item svg { width: 26px; height: 26px; transition: var(--transition-smooth); }
.bn-icon { display: flex; align-items: center; justify-content: center; }
.bn-icon svg { width: 24px; height: 24px; }
.bn-label { 
  font-size: 10.5px; font-weight: 700; 
  opacity: 0.7; transition: var(--transition-smooth);
}
.bn-item.active { 
  color: var(--rose); 
  background: rgba(216, 140, 154, 0.08);
}
.bn-item.active .bn-label { opacity: 1; }
.bn-item:hover {
  background: rgba(216, 140, 154, 0.12);
  transform: translateY(-2px);
}
.bn-item:active { transform: scale(0.95); }
.bn-item:active svg { transform: scale(0.9); }

/* ── BOTTOM NAV: mobile only ── */
#bottomNav { display: none; }
#bottomNav.nav-visible { display: block; }
@media(min-width: 768px) { #bottomNav { display: none !important; } }

/* ── ENHANCED DASHBOARD HERO ── */
#dbHero {
  background: linear-gradient(135deg, rgba(243, 217, 221, 0.4), rgba(246, 200, 181, 0.3)) !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(216, 140, 154, 0.15) !important;
}
#dbHero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 140, 154, 0.15), transparent);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* ── DASHBOARD SECTIONS ── */
.dashboard-section {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out backwards;
}
.dashboard-section:nth-child(1) { animation-delay: 0.1s; }
.dashboard-section:nth-child(2) { animation-delay: 0.2s; }
.dashboard-section:nth-child(3) { animation-delay: 0.3s; }
.dashboard-section:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.section-header .sec-label {
  font-size: 12px; letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* ── EMERGENCY ITEM PULSE ── */
.emergency-item {
  animation: emergencyPulse 2s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(224, 107, 116, 0.08), rgba(224, 107, 116, 0.04)) !important;
  border-color: rgba(224, 107, 116, 0.3) !important;
}
@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(224, 107, 116, 0.15); }
  50% { box-shadow: 0 8px 32px rgba(224, 107, 116, 0.3); }
}
.emergency-item:hover {
  background: rgba(224, 107, 116, 0.12) !important;
  border-color: var(--danger) !important;
}

/* ── MOOD GRID ENHANCEMENTS ── */
.mood-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px; margin-top: 20px;
}
.mood-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 20px; padding: 20px 12px;
  cursor: pointer; transition: var(--transition-bounce);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.08);
}
.mood-btn:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 32px rgba(216, 140, 154, 0.2);
  border-color: var(--rose);
  background: white;
}
.mood-btn:active { transform: translateY(-2px) scale(1); }
.mood-btn.selected {
  background: linear-gradient(135deg, var(--rose-light), rgba(246, 200, 181, 0.5));
  border-color: var(--rose);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.25);
}

/* ── PROGRESS BARS ── */
.timeline-bar {
  height: 12px; background: rgba(216, 140, 154, 0.15);
  border-radius: 100px; overflow: hidden; position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.timeline-fill {
  height: 100%; 
  background: linear-gradient(90deg, var(--rose), #E59FA9, #F3A8B4);
  background-size: 200% 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  animation: shimmer 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(216, 140, 154, 0.4);
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── STAT CARDS ── */
.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 20px; padding: 20px;
  text-align: center; transition: var(--transition-bounce);
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.08);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(216, 140, 154, 0.18);
  border-color: var(--rose);
}
.stat-value {
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── FLOATING ACTION BUTTON ── */
.fab {
  position: fixed; bottom: 90px; right: 24px; z-index: 998;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.4);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-bounce);
  animation: fabBounce 3s ease-in-out infinite;
}
@keyframes fabBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 32px rgba(216, 140, 154, 0.5);
}
.fab:active { transform: scale(0.95); }
.fab svg { width: 28px; height: 28px; color: white; }

/* ── LOADING SPINNER ── */
.spinner {
  width: 40px; height: 40px; margin: 20px auto;
  border: 4px solid rgba(216, 140, 154, 0.2);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── TOOLTIP ── */
.tooltip {
  position: relative; display: inline-block;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute; bottom: 120%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(74, 53, 53, 0.95);
  color: white; padding: 8px 12px;
  border-radius: 12px; font-size: 12px;
  white-space: nowrap; opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.tooltip:hover::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE ENHANCEMENTS ── */
@media(max-width: 600px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .db-grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
  .feature-item { padding: 12px 6px; min-height: 72px; }
  .feature-item svg { width: 22px; height: 22px; }
  .card { padding: 14px; border-radius: 18px; }
  .sec-title { font-size: 1.4rem; }
  .fab { bottom: 80px; right: 16px; width: 52px; height: 52px; }
  .page { padding: 12px 12px 90px; }
}

/* ── BOTTOM NAV: mobile only (no override) ── */

/* ── SMOOTH SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(216, 140, 154, 0.05); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--rose), #E59FA9);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* ── ICON ANIMATIONS ── */
@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

/* ── ENHANCED TOP BAR (kept visible) ── */

/* ── TOP TABS ENHANCEMENT ── */
.top-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.top-tabs::-webkit-scrollbar { display: none; }
.top-tab {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 100px; padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: var(--transition-bounce);
  display: inline-flex; align-items: center; gap: 6px;
}
.top-tab:hover {
  background: white;
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.15);
}
.top-tab.active {
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.3);
}
.top-tab svg { width: 16px; height: 16px; }

/* ── LANGUAGE BAR ENHANCEMENT ── */
#langBar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(216, 140, 154, 0.1);
  overflow-x: auto; scrollbar-width: none;
}
#langBar::-webkit-scrollbar { display: none; }
.lang-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 100px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: var(--transition-bounce);
}
.lang-btn:hover {
  background: white;
  border-color: var(--rose);
  transform: scale(1.05);
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.25);
}

/* ── ENHANCED INPUTS ── */
input, select, textarea {
  width: 100%; border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 16px; padding: 15px 18px; outline: none;
  background: rgba(255, 255, 255, 0.95); color: var(--text-main);
  font-size: 15px; transition: var(--transition-smooth);
  font-family: 'DM Sans', sans-serif;
}
input:hover, select:hover, textarea:hover {
  border-color: rgba(216, 140, 154, 0.4);
  background: white;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--rose); background: white;
  box-shadow: 0 0 0 4px rgba(216, 140, 154, 0.12);
  transform: translateY(-1px);
}
label { 
  display: block; margin-bottom: 10px; 
  font-size: 13.5px; color: var(--text-main); 
  font-weight: 600; letter-spacing: 0.02em;
}

/* ── CHAT ENHANCEMENTS ── */
.chat-row {
  display: flex; gap: 10px; align-items: center;
}
.chat-row input {
  flex: 1; margin: 0;
}
.chat-row button {
  flex-shrink: 0;
}

/* ── FOOTER ENHANCEMENT ── */
footer {
  text-align: center; padding: 40px 20px 100px;
  color: var(--text-muted); font-size: 13px;
  line-height: 1.8;
}
footer strong {
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ── SIMPLE HEADER (Logo + User) ── */
#topBar {
  display: block !important;
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 248, 245, 0.95);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-bottom: 1.5px solid rgba(216, 140, 154, 0.15);
  box-shadow: 0 2px 16px rgba(216, 140, 154, 0.08);
}
.top-inner {
  height: 60px; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.top-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 500; 
  background: linear-gradient(135deg, var(--text-main), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.top-logo svg { 
  color: var(--rose); width: 20px; height: 20px;
  filter: drop-shadow(0 2px 4px rgba(216, 140, 154, 0.3));
}
.top-user { 
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.top-user button {
  background: rgba(216, 140, 154, 0.1);
  border: 1px solid rgba(216, 140, 154, 0.2);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-smooth);
}
.top-user button:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: scale(1.1);
}
.top-user button:hover svg { color: white; }
.top-user svg { width: 16px; height: 16px; color: var(--rose); }

/* ── HIDE TOP TABS (Navigation only in bottom) ── */
.top-tabs {
  display: none !important;
}

/* ── MORE MENU ENHANCEMENT ── */
#moreMenu {
  display: none;
  position: fixed; bottom: 65px; left: 0; right: 0;
  background: rgba(252, 248, 245, 0.98);
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border-top: 1.5px solid rgba(216, 140, 154, 0.2);
  padding: 16px;
  max-height: 65vh; overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(216, 140, 154, 0.15);
  z-index: 998;
}
.more-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; max-width: 600px; margin: 0 auto;
}
.more-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 16px; padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; transition: var(--transition-bounce);
  box-shadow: 0 2px 10px rgba(216, 140, 154, 0.07);
}
.more-item:hover {
  background: white;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.18);
  border-color: var(--rose);
}
.more-item svg {
  width: 26px; height: 26px; color: var(--rose);
  transition: var(--transition-smooth);
}
.more-item:hover svg {
  transform: scale(1.1) rotate(5deg);
}
.more-item .mi-label { font-size: 11.5px; }

/* ── ENHANCED TAB BUTTONS ── */
.tab-row {
  display: flex; gap: 7px; margin-bottom: 14px;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 100px; padding: 9px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: var(--transition-bounce);
  position: relative; overflow: hidden;
}
.tab-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--rose-light), var(--peach));
  opacity: 0; transition: opacity 0.3s ease;
}
.tab-btn > * { position: relative; z-index: 1; }
.tab-btn:hover {
  background: white;
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.15);
}
.tab-btn:hover::before { opacity: 0.1; }
.tab-btn.active {
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(216, 140, 154, 0.35);
  transform: translateY(-2px);
}

/* ── ENHANCED MEAL PLAN ── */
#mealPlanContent {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
  border-radius: 20px;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
}
#mealPlanContent > div {
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  border-left: 4px solid var(--rose);
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.08);
  transition: var(--transition-smooth);
}
#mealPlanContent > div:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.15);
}
#mealPlanContent strong {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  color: var(--rose);
  margin-bottom: 12px;
}
#mealPlanContent ul {
  list-style: none; padding: 0;
  margin: 8px 0;
}
#mealPlanContent li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}
#mealPlanContent li::before {
  content: '✓';
  position: absolute; left: 0;
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--rose-light), var(--peach));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--rose);
}

/* ── ENHANCED FOOD LOG ── */
#foodList > div {
  background: white;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.06);
}
#foodList > div:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(216, 140, 154, 0.12);
  border-color: var(--rose);
}
#foodList strong {
  font-size: 14.5px;
  color: var(--text-main);
  font-weight: 600;
}
#foodList small {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(216, 140, 154, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* ── ENHANCED WATER TRACKER ── */
#waterTrack {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
#waterTrack > div {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(136, 173, 196, 0.15), rgba(136, 173, 196, 0.08));
  border: 2px solid rgba(136, 173, 196, 0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition-bounce);
  font-size: 20px;
}
#waterTrack > div:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(136, 173, 196, 0.25);
}
#waterTrack > div.filled {
  background: linear-gradient(135deg, var(--blue), #A5C4D8);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(136, 173, 196, 0.3);
}

/* ── ENHANCED MEDICINE LIST ── */
#medList > div {
  background: white;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.08);
  position: relative;
  overflow: hidden;
}
#medList > div::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rose), #E59FA9);
}
#medList > div:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.15);
  border-color: var(--rose);
}
#medList strong {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
#medList small {
  font-size: 12.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 6px;
}

/* ── ENHANCED SUPPLEMENT GUIDE ── */
#suppGuide > div {
  background: linear-gradient(135deg, rgba(115, 181, 157, 0.08), rgba(115, 181, 157, 0.04));
  border: 1.5px solid rgba(115, 181, 157, 0.2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(115, 181, 157, 0.08);
}
#suppGuide > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(115, 181, 157, 0.15);
  border-color: var(--green);
}
#suppGuide strong {
  font-size: 14.5px;
  color: var(--green);
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
#suppGuide p {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* ── STATS CARDS ENHANCEMENT ── */
#wtStats > div, #sleepStats > div, #medStats > div {
  background: white;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.08);
}
#wtStats > div:hover, #sleepStats > div:hover, #medStats > div:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.18);
  border-color: var(--rose);
}
#wtStats strong, #sleepStats strong, #medStats strong {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 4px;
}
#wtStats small, #sleepStats small, #medStats small {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ── NUTRITION BARS ── */
#nutriBars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#nutriBars > div {
  background: white;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.06);
}
#nutriBars strong {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
#nutriBars .timeline-bar {
  height: 10px;
  margin: 0;
}

/* ── SWIPEABLE CAROUSEL FOR SLEEP TIPS ── */
.tips-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 32px rgba(216, 140, 154, 0.12);
}
.tips-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
}
.tip-card {
  min-width: 100%;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  position: relative;
}
.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), #E59FA9, var(--peach));
}
.tip-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tip-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  background: white;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 140, 154, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose), #E59FA9);
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.15);
}
.carousel-nav:hover {
  background: white;
  border-color: var(--rose);
  transform: translateY(-50%) scale(1.1);
}
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.carousel-nav svg {
  width: 20px;
  height: 20px;
  color: var(--rose);
}

/* ── LANGUAGE SELECTOR (Subtle) ── */
#langBar {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  background: rgba(252, 248, 245, 0.98);
  backdrop-filter: blur(32px);
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(216, 140, 154, 0.2);
  z-index: 999;
  flex-direction: column;
  gap: 8px;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
#langBar.show {
  display: flex !important;
}
.lang-toggle {
  background: rgba(216, 140, 154, 0.1);
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-toggle:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: scale(1.1);
}
.lang-toggle:hover svg {
  color: white;
}
.lang-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--rose);
}

/* ── PHOTO UPLOAD OPTIONS ── */
.photo-options {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.photo-option-btn {
  flex: 1;
  background: linear-gradient(135deg, rgba(216, 140, 154, 0.1), rgba(246, 200, 181, 0.08));
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.photo-option-btn:hover {
  background: white;
  border-color: var(--rose);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.18);
}
.photo-option-btn svg {
  width: 32px;
  height: 32px;
  color: var(--rose);
}
.photo-option-btn span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* ── ENHANCED BIRTH PLAN ── */
#birthPlanForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-section {
  background: white;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(216, 140, 154, 0.08);
  transition: all 0.3s ease;
}
.bp-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.15);
  border-color: var(--rose);
}
.bp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bp-section-title svg {
  width: 22px;
  height: 22px;
}
.bp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(216, 140, 154, 0.04);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.bp-option:hover {
  background: rgba(216, 140, 154, 0.12);
}
.bp-option input[type="checkbox"],
.bp-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--rose);
}
.bp-option label {
  flex: 1;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  color: var(--text-main);
}

/* ── MOOD SECTION ENHANCEMENT ── */
.mood-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}
.mood-detail-content {
  background: white;
  border-radius: 28px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.mood-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mood-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mood-close-btn {
  background: rgba(216, 140, 154, 0.1);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mood-close-btn:hover {
  background: var(--rose);
  transform: rotate(90deg);
}
.mood-close-btn:hover svg {
  color: white;
}
.mood-detail-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}
.mood-share-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px solid rgba(216, 140, 154, 0.15);
}
.mood-share-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.mood-share-input {
  width: 100%;
  min-height: 100px;
  padding: 16px;
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  resize: vertical;
}
.mood-share-btn {
  margin-top: 12px;
  width: 100%;
}

/* ── ENHANCED GOVERNMENT SCHEMES SECTION ── */
.scheme-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(216, 140, 154, 0.1);
  transition: all 0.3s ease;
  border: 1.5px solid rgba(216, 140, 154, 0.15);
}
.scheme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(216, 140, 154, 0.18);
}
.scheme-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.scheme-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scheme-icon svg {
  width: 28px;
  height: 28px;
}
.scheme-title-section {
  flex: 1;
}
.scheme-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.scheme-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.scheme-benefit {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0 0 20px 0;
  font-weight: 500;
}
.scheme-section {
  margin-bottom: 20px;
}
.scheme-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scheme-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0;
}
.scheme-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
}
.scheme-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
}
.scheme-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.scheme-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-tag {
  background: rgba(216, 140, 154, 0.1);
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s ease;
}
.doc-tag:hover {
  background: rgba(216, 140, 154, 0.2);
  border-color: var(--rose);
}
.scheme-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(216, 140, 154, 0.1), rgba(246, 200, 181, 0.08));
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 100px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 16px;
}
.scheme-link:hover {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
  transform: translateX(4px);
}

/* ── REMOVE EMOJI STYLING, USE ICONS ── */
.app-icon-inline {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin: 0 4px;
}

/* ── DASHBOARD HERO ICONS ── */
#dbHero .hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(216, 140, 154, 0.15), rgba(246, 200, 181, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
#dbHero .hero-icon svg {
  width: 32px;
  height: 32px;
  color: var(--rose);
}

/* ── FEATURE GRID ICONS (No Emojis) ── */
.feature-item .mi-icon svg,
.more-item svg {
  width: 36px;
  height: 36px;
}

/* ── MILESTONE ICONS ── */
.milestone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.3);
}
.milestone-icon svg {
  width: 22px;
  height: 22px;
  color: white;
}

/* ── SECTION HEADERS WITH ICONS ── */
.sec-label-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sec-label-icon svg {
  width: 16px;
  height: 16px;
  color: var(--rose);
}


/* ══════════════════════════════════════════════════════════════
   ENHANCED YOGA SECTION - INTERACTIVE & VISUAL
   ══════════════════════════════════════════════════════════════ */

/* ── YOGA CARD ENHANCED ── */
.yoga-card-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  border: 1.5px solid rgba(216, 140, 154, 0.2);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.1);
  position: relative;
  overflow: hidden;
}

.yoga-card-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(216, 140, 154, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
}

.yoga-card-enhanced:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 48px rgba(216, 140, 154, 0.2);
  border-color: var(--rose);
}

.yoga-card-enhanced:hover::before {
  opacity: 1;
}

.yoga-card-enhanced > * {
  position: relative;
  z-index: 1;
}

/* ── YOGA CARD HEADER ── */
.yoga-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid rgba(216, 140, 154, 0.1);
}

.yoga-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(216, 140, 154, 0.15), rgba(246, 200, 181, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  animation: yogaIconBounce 3s ease-in-out infinite;
}

@keyframes yogaIconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

.yoga-card-meta {
  flex: 1;
}

/* ── YOGA PILLS ── */
.yoga-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yoga-pill-time {
  background: linear-gradient(135deg, rgba(136, 173, 196, 0.15), rgba(136, 173, 196, 0.08));
  color: var(--blue);
  border: 1px solid rgba(136, 173, 196, 0.3);
}

.yoga-pill-level {
  background: linear-gradient(135deg, rgba(115, 181, 157, 0.15), rgba(115, 181, 157, 0.08));
  color: var(--green);
  border: 1px solid rgba(115, 181, 157, 0.3);
}

/* ── YOGA DEMO PLACEHOLDER ── */
.yoga-card-preview {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(243, 217, 221, 0.3), rgba(246, 200, 181, 0.2));
  border: 2px dashed rgba(216, 140, 154, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.yoga-card-preview:hover {
  background: linear-gradient(135deg, rgba(243, 217, 221, 0.5), rgba(246, 200, 181, 0.4));
  border-color: var(--rose);
  transform: scale(1.02);
}

.yoga-demo-placeholder {
  text-align: center;
  animation: demoFloat 2s ease-in-out infinite;
}

@keyframes demoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── YOGA CARD ACTIONS ── */
.yoga-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.yoga-btn-start,
.yoga-btn-info {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.yoga-btn-start::before,
.yoga-btn-info::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.yoga-btn-start:hover::before,
.yoga-btn-info:hover::before {
  width: 300px;
  height: 300px;
}

.yoga-btn-start {
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  box-shadow: 0 6px 16px rgba(216, 140, 154, 0.3);
}

.yoga-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(216, 140, 154, 0.4);
}

.yoga-btn-info {
  background: rgba(216, 140, 154, 0.1);
  color: var(--rose);
  border: 1.5px solid rgba(216, 140, 154, 0.3);
}

.yoga-btn-info:hover {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
  transform: translateY(-2px);
}

/* ── YOGA DETAIL EXPANDED ── */
.yoga-detail-expanded {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px solid rgba(216, 140, 154, 0.1);
  animation: expandDown 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes expandDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
  }
}

.yoga-detail-section {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(216, 140, 154, 0.05);
  border-radius: 12px;
  border-left: 3px solid rgba(216, 140, 154, 0.3);
}

.yoga-avoid-section {
  background: rgba(224, 107, 116, 0.08);
  border-left-color: rgba(224, 107, 116, 0.4);
}

/* ── YOGA STEPS ── */
.yoga-step-enhanced {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(216, 140, 154, 0.1);
}

.yoga-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── YOGA MODAL ── */
.yoga-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.yoga-modal-content {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  border-radius: 32px 32px 0 0;
  padding: 28px 24px 40px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 -8px 32px rgba(216, 140, 154, 0.2);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.yoga-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(216, 140, 154, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.yoga-modal-close:hover {
  background: var(--rose);
  transform: rotate(90deg) scale(1.1);
}

.yoga-modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--rose);
}

.yoga-modal-close:hover svg {
  color: white;
}

.yoga-modal-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(216, 140, 154, 0.15);
}

/* ── YOGA DEMO LARGE ── */
.yoga-demo-large {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, rgba(243, 217, 221, 0.4), rgba(246, 200, 181, 0.3));
  border: 2px dashed rgba(216, 140, 154, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.yoga-demo-large::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(216, 140, 154, 0.1) 50%, transparent 70%);
  animation: shimmerWave 3s infinite;
}

@keyframes shimmerWave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── YOGA TIMER SECTION ── */
.yoga-timer-section {
  background: linear-gradient(135deg, rgba(136, 173, 196, 0.1), rgba(136, 173, 196, 0.05));
  border: 1.5px solid rgba(136, 173, 196, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.yoga-timer-display {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  font-family: 'Courier New', monospace;
  margin: 16px 0;
  letter-spacing: 2px;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.yoga-timer-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.yoga-timer-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--blue);
  background: rgba(136, 173, 196, 0.1);
  color: var(--blue);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yoga-timer-btn:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(136, 173, 196, 0.3);
}

/* ── YOGA STEPS MODAL ── */
.yoga-steps-modal {
  margin: 20px 0;
  padding: 16px;
  background: rgba(216, 140, 154, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--rose);
}

.yoga-step-modal {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(216, 140, 154, 0.1);
}

.yoga-step-modal:last-child {
  margin-bottom: 0;
}

.yoga-step-num-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── YOGA BENEFITS MODAL ── */
.yoga-benefits-modal {
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(115, 181, 157, 0.1), rgba(115, 181, 157, 0.05));
  border-radius: 12px;
  border-left: 4px solid var(--green);
}

/* ── YOGA DONE BUTTON ── */
.yoga-btn-done {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--rose), #E59FA9);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(216, 140, 154, 0.3);
}

.yoga-btn-done:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(216, 140, 154, 0.4);
}

.yoga-btn-done:active {
  transform: scale(0.98);
}

/* ── YOGA GRID LAYOUT ── */
#yogaGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  #yogaGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── YOGA FILTER ROW ── */
#yogaFilterRow {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#yogaFilterRow::-webkit-scrollbar {
  display: none;
}

/* ── AVOID LIST ── */
#avoidList {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 600px) {
  #avoidList {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── RESPONSIVE YOGA ── */
@media (max-width: 600px) {
  .yoga-card-enhanced {
    padding: 16px;
  }

  .yoga-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .yoga-icon-large {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .yoga-card-actions {
    flex-direction: column;
  }

  .yoga-modal-content {
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 32px;
  }

  .yoga-timer-display {
    font-size: 40px;
  }

  .yoga-demo-large {
    height: 200px;
  }
}
