/* AushadhVani (औषधवाणी) — Tata 1mg Style Healthcare Design System */

:root {
  --primary-deep: #10847e;           /* 1mg Medical Teal */
  --primary-emerald: #10847e;
  --primary-light: #ff6f61;         /* 1mg Signature Coral / Red */
  --primary-mint: #20c997;
  --accent-gold: #ff6f61;
  --accent-coral: #ff6f61;
  --accent-amber: #d97706;
  --accent-orange: #ff6f61;
  
  --bg-sand: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --border-light: #e2e8f0;
  --border-gold: rgba(255, 111, 97, 0.35);
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(16, 132, 126, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-devanagari: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-devanagari);
  background-color: #eaeff4;
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Mobile Frame Container (Tata 1mg Clean Aesthetic) */
.mobile-container {
  width: 100%;
  max-width: 480px;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding-bottom: 85px; /* Space for bottom nav */
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 0: SPLASH SCREEN (स्प्लैश स्क्रीन)
   ══════════════════════════════════════════════════════════════════════════ */
.splash-screen {
  min-height: 100vh;
  background: linear-gradient(150deg, #10847e 0%, #0d6d68 60%, #084c47 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 999;
}

.splash-glow-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 111, 97, 0.25) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: splashPulse 3s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes splashPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

.splash-center-content {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-logo-wrap {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #ff6f61 0%, #e8584a 100%);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 111, 97, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  animation: logoFloat 2.5s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.splash-app-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--font-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.splash-title-badge {
  font-size: 1.05rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.splash-motto {
  font-size: 1.1rem;
  color: #fef08a;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

.splash-shloka {
  margin-top: 18px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #fde68a;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

.splash-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.splash-loader-bar {
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.splash-loader-progress {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), #fef08a);
  border-radius: var(--radius-full);
  position: absolute;
  animation: splashLoadAnim 1.8s infinite ease-in-out;
}

@keyframes splashLoadAnim {
  0% { left: -50%; width: 30%; }
  50% { left: 25%; width: 60%; }
  100% { left: 100%; width: 40%; }
}

.splash-ayush-pledge {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 1: LANGUAGE SELECTION SCREEN (भाषा चयन स्क्रीन)
   ══════════════════════════════════════════════════════════════════════════ */
.language-screen {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--text-dark);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lang-screen-header {
  text-align: center;
  margin-bottom: 20px;
}

.lang-screen-icon {
  width: 52px;
  height: 52px;
  background: rgba(16, 132, 126, 0.1);
  border: 1.5px solid rgba(16, 132, 126, 0.25);
  border-radius: var(--radius-md);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-deep);
}

.lang-screen-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.lang-screen-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
}

.lang-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.lang-card-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.lang-card-item:hover {
  background: #f8fafc;
  border-color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 132, 126, 0.1);
}

.lang-card-item.active {
  background: #f0fdf9;
  border: 2px solid var(--primary-deep);
  box-shadow: 0 4px 14px rgba(16, 132, 126, 0.18);
}

.lang-card-left {
  display: flex;
  flex-direction: column;
}

.lang-native-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.lang-card-item.active .lang-native-name {
  color: var(--primary-deep);
}

.lang-english-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.lang-speaker-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(16, 132, 126, 0.08);
  border: none;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-speaker-btn:hover {
  background: var(--primary-deep);
  color: white;
  transform: scale(1.1);
}

.lang-screen-footer {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCREEN 2: DEDICATED PRODUCTION LOGIN SCREEN (लॉगिन स्क्रीन)
   ══════════════════════════════════════════════════════════════════════════ */
.auth-screen {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--text-dark);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.btn-back-link {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s;
}

.btn-back-link:hover {
  background: #f1f5f9;
  color: var(--primary-deep);
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.auth-brand-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6f61, #e8584a);
  border-radius: var(--radius-lg);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.3);
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-main);
  letter-spacing: -0.5px;
  color: var(--primary-deep);
}

.auth-sub {
  font-size: 0.92rem;
  color: #ff6f61;
  font-weight: 600;
  margin-top: 4px;
}

.auth-card {
  background: white;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.auth-form-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 8px;
  line-height: 1.4;
}

.auth-form-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;

  margin-bottom: 18px;
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}

.country-code {
  background: #f1f5f9;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
  border-right: 1px solid #cbd5e1;
}

.phone-input {
  flex: 1;
  border: none;
  padding: 11px 14px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  outline: none;
}

.otp-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #166534;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.otp-inputs-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.otp-digit {
  width: 48px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 2px solid #cbd5e1;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  outline: none;
  background: #f8fafc;
}

.otp-digit:focus {
  border-color: var(--primary-emerald);
  background: white;
}

.auth-trust-footer {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   APP HEADER
/* ══════════════════════════════════════════════════════════════════════════
   APP HEADER (Tata 1mg Style Medical White)
   ══════════════════════════════════════════════════════════════════════════ */
.app-header {
  background: #ffffff;
  color: var(--text-dark);
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.header-left-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.header-right-col {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-hamburger {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-hamburger:hover {
  background: #f1f5f9;
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, #0d6e69 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(16, 132, 126, 0.25);
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-main);
  margin: 0;
  white-space: nowrap;
}

.brand-title .hindi-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  background: #fff3f2;
  border: 1px solid #ffd8d6;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.language-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-select {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  padding: 5px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  min-width: 96px;
  max-width: 110px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.lang-select:hover {
  border-color: var(--primary-deep, #10847e);
}

.lang-select option {
  background: #ffffff;
  color: var(--text-dark);
}

/* Upload Previews Thumbnails Grid (Multiple pages / bottles) */
.upload-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
  width: 100%;
}
.upload-thumb-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #10b981;
  aspect-ratio: 1;
  background: #f8fafc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.upload-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-thumb-card .thumb-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  font-size: 0.62rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}
.upload-thumb-card .thumb-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: white;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-title .hindi-sub {
    display: none;
  }
  .brand-tagline {
    display: none;
  }
  .header-chip-name {
    display: none;
  }
  .btn-profile-chip {
    padding: 3px 5px;
    gap: 0;
  }
  .lang-select {
    padding: 4px 6px;
    font-size: 0.74rem;
    max-width: 88px;
  }
}

.btn-icon-header {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.btn-icon-header:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: scale(1.05);
}

/* Followup Alert Banner (1mg Warm Alert) */
.followup-alert-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.followup-alert-banner .alert-icon {
  width: 28px;
  height: 28px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #d97706;
}

.followup-alert-banner .alert-text {
  font-size: 0.78rem;
  color: #92400e;
  line-height: 1.35;
}

/* Family Profile Switcher */
.family-section {
  margin-bottom: 8px;
}

.family-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.family-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-text-link {
  background: transparent;
  border: none;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.family-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.family-carousel::-webkit-scrollbar {
  display: none;
}

.family-pill {
  flex: 0 0 auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  font-weight: 600;
}

.family-pill:hover {
  background: #f1f5f9;
}

.family-pill.active {
  background: var(--primary-light);
  color: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(255, 111, 97, 0.35);
}

/* Audio Voice Bar */
.audio-quick-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.btn-audio-play {
  background: transparent;
  border: none;
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.audio-waveform span {
  width: 3px;
  background: #86efac;
  border-radius: 3px;
  height: 6px;
  transition: all 0.2s ease;
}

.audio-waveform.playing span {
  animation: wave 0.8s infinite ease-in-out alternate;
}

.audio-waveform.playing span:nth-child(2) { animation-delay: 0.15s; }
.audio-waveform.playing span:nth-child(3) { animation-delay: 0.3s; }
.audio-waveform.playing span:nth-child(4) { animation-delay: 0.45s; }
.audio-waveform.playing span:nth-child(5) { animation-delay: 0.6s; }

/* MAIN CONTENT */
.main-content {
  padding: 16px;
  flex: 1;
}

.app-view {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.app-view.active-view {
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   NEW PATIENT WELCOME CARD (HUMAN-TOUCH ONBOARDING EMPTY STATE)
   ══════════════════════════════════════════════════════════════════════════ */
.new-patient-welcome-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  border: 1px solid #f1e9db;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-top: 6px;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.welcome-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.welcome-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 22px;
}

.welcome-steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.welcome-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border: 2px solid var(--primary-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-deep);
}

.step-arrow {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.btn-primary-large {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(15, 81, 50, 0.35);
  transition: all 0.2s ease;
}

.btn-primary-large:active {
  transform: scale(0.98);
}

.app-view {
  display: none;
}

.app-view.active-view {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* SECTION TITLE */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.view-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-primary-mini {
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* TIME SLOT TABS */
.slot-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.slot-tab {
  background: transparent;
  border: none;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.slot-tab small {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.slot-tab.active {
  background: white;
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

.slot-tab.active small {
  color: var(--primary-light);
}

/* MEDICINE CARDS LIST */
.medicine-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.med-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.med-card.taken-card {
  border-color: #86efac;
  background: #f0fdf4;
}

.med-card.lep-card {
  border-color: #fde68a;
  background: #fffbeb;
}

.med-card-img-wrap {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.med-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.med-card-details {
  flex: 1;
}

.med-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.med-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.med-dosage-pill {
  background: #ecfdf5;
  color: var(--primary-emerald);
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.med-timing-rule {
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.med-anupana-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.med-status-check {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  color: #16a34a;
}

/* TRAY ACTION CARD */
.tray-action-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.streak-badge {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin-bottom: 10px;
}

.btn-take-all {
  width: 100%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

/* CHAT VIEW */
.chat-header-bar {
  background: white;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.vaidya-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vaidya-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.vaidya-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.vaidya-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.dot-online {
  width: 7px;
  height: 7px;
  background: #16a34a;
  border-radius: 50%;
  display: inline-block;
}

.quick-symptoms-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.quick-symptoms-scroll::-webkit-scrollbar {
  display: none;
}

.symptom-chip {
  flex: 0 0 auto;
  background: white;
  border: 1px solid #cbd5e1;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.chat-feed {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  height: 380px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
}

.chat-bubble-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.chat-bubble-text {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-speaker-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  line-height: 1;
}

.chat-bubble.bot .chat-speaker-btn {
  color: #64748b;
  background: #f1f5f9;
}

.chat-bubble.bot .chat-speaker-btn:hover {
  color: var(--primary-deep, #0f766e);
  background: #e2e8f0;
  transform: scale(1.1);
}

.chat-bubble.bot .chat-speaker-btn.speaking {
  color: #ef4444;
  background: #fee2e2;
  animation: pulse-speaker 0.8s infinite alternate ease-in-out;
}

.chat-bubble.user .chat-speaker-btn {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.16);
}

.chat-bubble.user .chat-speaker-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.chat-bubble.user .chat-speaker-btn.speaking {
  color: #ffffff;
  background: #ef4444;
  animation: pulse-speaker 0.8s infinite alternate ease-in-out;
}

@keyframes pulse-speaker {
  0% { transform: scale(1); }
  100% { transform: scale(1.18); }
}

.chat-bubble.bot {
  background: white;
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.chat-bubble.user {
  background: var(--primary-deep);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-mic-pulse {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-orange), #c2410c);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-mic-pulse.listening {
  animation: pulse-mic 1s infinite alternate ease-in-out;
}

.chat-input {
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #cbd5e1;
  background: white;
  font-size: 0.88rem;
  outline: none;
}

.btn-send {
  width: 44px;
  height: 44px;
  background: var(--primary-emerald);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

/* DIET CARDS VIEW */
.diet-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.diet-empty-state i {
  font-size: 3rem;
  margin-bottom: 12px;
  color: #94a3b8;
}

.diet-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.diet-box-allowed { border-top: 5px solid #16a34a; }
.diet-box-prohibited { border-top: 5px solid #dc2626; }

.diet-box-header {
  margin-bottom: 12px;
}

.diet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.diet-badge.green { background: #dcfce7; color: #15803d; }
.diet-badge.red { background: #fee2e2; color: #b91c1c; }

.diet-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diet-item-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.diet-item-pill.allowed {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.diet-item-pill.prohibited {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* STORE VIEW */
.store-products-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  padding: 12px;
}

.product-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
}

.product-cat {
  font-size: 0.7rem;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
}

.product-mrp {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: #94a3b8;
}

.btn-buy-product {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 4px 10px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
  z-index: 100;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-item i {
  font-size: 1.2rem;
}

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

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  background: white;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #94a3b8;
  cursor: pointer;
}

.scanner-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
}

.btn-mode-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-mode-tab.active {
  background: #ffffff;
  color: #10847e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.manual-med-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.manual-med-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 6px;
}

.form-label-mini {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-bottom: 3px;
}

.btn-slot-preset {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-slot-preset:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.slot-checkboxes-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.slot-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  flex: 1;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.slot-checkbox-label:hover {
  border-color: #10847e;
  background: #f0fdf4;
}
.slot-checkbox-label input[type="checkbox"] {
  accent-color: #10847e;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.slot-pill-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.slot-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.slot-time {
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.btn-remove-med-row {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-add-more-med {
  background: #f0fdf4;
  border: 1.5px dashed #10847e;
  color: #10847e;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-add-more-med:hover {
  background: #dcfce7;
}

.scan-upload-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.scan-step-number {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-deep);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.scan-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.btn-outline-upload {
  background: white;
  border: 1px solid var(--primary-emerald);
  color: var(--primary-emerald);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.file-input-hidden {
  display: none;
}

.file-picked-label {
  display: block;
  font-size: 0.72rem;
  color: #16a34a;
  margin-top: 4px;
  font-weight: 600;
}

.btn-start-scan {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.rel-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rel-btn.active {
  background: var(--primary-deep);
  color: white;
  border-color: var(--primary-deep);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  outline: none;
}

.btn-save-member, .btn-confirm-order {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes wave {
  from { height: 4px; }
  to { height: 16px; }
}

@keyframes pulse-mic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); }
  100% { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(234, 88, 12, 0); }
}

/* Helper Utilities */
.text-emerald { color: #16a34a; }
.text-gold { color: #d4af37; }
.text-amber { color: #f59e0b; }
.text-orange { color: #ea580c; }
.text-indigo { color: #6366f1; }
.mt-3 { margin-top: 12px; }
.mb-3 { margin-bottom: 12px; }

/* ── RETURNING USER RECOGNITION ── */
.returning-user-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

/* ── HEADER PROFILE BUTTON ── */
.btn-profile-header {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-profile-header:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-profile-header i {
  font-size: 1rem;
  color: #fde68a;
}

/* ── USER PROFILE MODAL ── */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.profile-big-avatar {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: #fef08a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25);
}

.profile-user-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-verified-badge {
  font-size: 0.75rem;
  color: #166534;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.profile-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.profile-label {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-val {
  color: var(--text-dark);
  font-weight: 700;
}

/* ── FAMILY PROFILES MODAL ── */
.family-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.family-profile-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.family-profile-card.active-member {
  border-color: var(--primary-emerald);
  background: #f0fdf4;
}

.fpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fpc-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fpc-avatar {
  width: 34px;
  height: 34px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  font-size: 0.95rem;
}

.fpc-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.fpc-relation-tag {
  font-size: 0.72rem;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.fpc-clinical-info {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
  padding: 6px 10px;
  background: rgba(0,0,0,0.02);
  border-radius: var(--radius-sm);
}

.fpc-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-fpc-switch {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-fpc-add-rx {
  background: white;
  border: 1px solid var(--primary-emerald);
  color: var(--primary-emerald);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

/* ── ENHANCED MEDICINE CARDS: KISKE SATH KAISE LENI HAI ── */
.med-rule-box {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.med-rule-box.timing {
  background: #f1f5f9;
  color: #334155;
}

.med-rule-box.anupana {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.med-rule-box.anupana strong {
  color: #78350f;
}

.med-rule-box.lep {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.med-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  gap: 8px;
}

.btn-med-voice {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.btn-med-voice:hover {
  background: #f1f5f9;
  color: var(--primary-deep);
}

.btn-med-take {
  background: white;
  border: 1px solid var(--primary-emerald);
  color: var(--primary-deep);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-med-take.is-taken {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.med-card.taken-card {
  border-color: #86efac;
  background: #f0fdf4;
}

.med-card.taken-card .med-name {
  color: #166534;
}

/* ══════════════════════════════════════════════════════════════════
   HEADER HAMBURGER & MODERN SLIDING SIDEBAR DRAWER (3-LINE MENU)
   ══════════════════════════════════════════════════════════════════ */
.btn-hamburger {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.btn-hamburger:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: var(--primary-deep, #0f766e);
  transform: scale(1.04);
}

.btn-profile-chip {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  padding: 3px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-profile-chip:hover {
  background: #f1f5f9;
  border-color: var(--primary-deep, #10847e);
  transform: scale(1.05);
}
.header-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-orange, #ff6f61), #ea580c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.header-chip-name {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 22, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #ffffff;
  color: var(--text-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.app-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  background: linear-gradient(145deg, #10847e 0%, #0d6d68 100%);
  color: white;
  padding: 24px 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sidebar-user-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.sidebar-user-phone {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 2px;
}
.sidebar-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.btn-close-sidebar {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-close-sidebar:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sidebar-nav-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin: 14px 10px 6px;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
.sidebar-nav-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.sidebar-nav-item.active {
  background: #f0fdfa;
  border-color: #a7f3d0;
  box-shadow: 0 2px 6px rgba(16, 132, 126, 0.08);
}
.sidebar-nav-item.active .s-text strong {
  color: #0f766e;
}
.s-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.icon-tray { background: #dcfce7; color: #166534; }
.icon-profile { background: #e0e7ff; color: #3730a3; }
.icon-family { background: #fef3c7; color: #92400e; }
.icon-scan { background: #fee2e2; color: #991b1b; }
.icon-diet { background: #ecfdf5; color: #047857; }
.icon-vaidya { background: #f0fdf4; color: #15803d; }
.icon-store { background: #fefce8; color: #854d0e; }

.s-text {
  flex: 1;
  min-width: 0;
}
.s-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}
.s-text small {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.45;
  overflow: visible;
}
.s-arrow {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.sidebar-bottom-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-logout-btn:hover {
  background: #fee2e2;
}
.sidebar-app-tag {
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* ══════════════════════════════════════════════════════════════════
   DEDICATED PROFILE & FAMILY HEALTH PAGE STYLING
   ══════════════════════════════════════════════════════════════════ */
.profile-page-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-profile-back {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-profile-back:hover {
  background: #e2e8f0;
}
.profile-page-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.profile-segment-tabs {
  display: flex;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  gap: 4px;
}
.profile-seg-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-seg-btn.active {
  background: #ffffff;
  color: var(--primary-deep);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.patient-id-hero-card {
  background: linear-gradient(135deg, #10847e 0%, #0d6d68 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(16, 132, 126, 0.22);
  position: relative;
  overflow: hidden;
}
.patient-id-hero-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 111, 97, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.id-card-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.patient-hero-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.patient-hero-meta {
  flex: 1;
}
.patient-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.patient-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.btn-icon-tiny {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
}
.patient-hero-phone {
  font-size: 0.88rem;
  color: #e2e8f0;
  margin: 3px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.abha-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.self-name-edit-form {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-label-small {
  display: block;
  font-size: 0.75rem;
  color: #fde68a;
  font-weight: 700;
  margin-bottom: 4px;
}
.form-input-sm {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.85rem;
}
.btn-cancel-mini {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  cursor: pointer;
}

.health-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.metric-card {
  background: #ffffff;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.metric-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.metric-card .metric-number.text-emerald { color: #059669 !important; }
.metric-card .metric-number.text-orange { color: #ea580c !important; }
.metric-card .metric-number.text-indigo { color: #4338ca !important; }
.metric-card .metric-number.text-amber { color: #d97706 !important; }
.metric-label {
  display: block;
  font-size: 0.72rem;
  color: #334155;
  font-weight: 700;
  margin-top: 4px;
}

.profile-section-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.profile-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pref-row:last-child {
  border-bottom: none;
}
.pref-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-dark);
}
.pref-info small {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
}
.form-select-sm {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f8fafc;
}
.badge-status-on {
  font-size: 0.72rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: 4px 8px;
  border-radius: var(--radius-full);
}

.ayush-compliance-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: var(--radius-md);
}
.compliance-item i {
  font-size: 1.1rem;
  margin-top: 2px;
}
.compliance-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dark);
}
.compliance-item p {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

.btn-danger-outline {
  width: 100%;
  background: #fff;
  border: 1px solid #ef4444;
  color: #dc2626;
  padding: 11px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger-outline:hover {
  background: #fef2f2;
}

/* ── FAMILY CLINICAL DIRECTORY TAB ── */
.family-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.family-dir-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.family-dir-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.family-clinical-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clinical-member-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.clinical-member-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.cm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: white;
  flex-shrink: 0;
}
.cm-meta {
  flex: 1;
}
.cm-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}
.cm-relation-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.cm-sub {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 2px;
}

.cm-body {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #f1f5f9;
}
.cm-diagnosis-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 6px;
}
.cm-diagnosis-row i {
  color: var(--primary-emerald);
  margin-top: 3px;
}
.cm-doctor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 4px;
}
.cm-visit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #b45309;
  font-weight: 600;
}

.cm-actions {
  display: flex;
  gap: 8px;
}
.btn-cm-tray {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-emerald), var(--primary-deep));
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cm-tray:hover {
  filter: brightness(1.1);
}
.btn-cm-add-rx {
  background: white;
  border: 1px solid var(--primary-emerald);
  color: var(--primary-emerald);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cm-add-rx:hover {
  background: #f0fdf4;
}

/* iOS-style toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--primary-emerald);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* ══════════════════════════════════════════════════════════════════════════
   DEDICATED SIDEBAR MODAL SHEETS STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.doctor-sheet-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 16px;
}
.doctor-badge-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0284c7;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}
.doctor-sheet-meta h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 3px;
}
.doctor-sheet-meta p {
  font-size: 0.78rem;
  color: #0369a1;
  margin-bottom: 6px;
}
.pill-verified-doc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.visit-schedule-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.visit-highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.visit-highlight-text {
  display: flex;
  flex-direction: column;
}
.visit-highlight-text strong {
  font-size: 1rem;
  color: var(--primary-deep);
}
.clinical-instructions-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px;
}
.clinical-instructions-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}
.visit-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.visit-checklist li {
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.4;
}

/* Alarm Modal Slots */
.alarm-slot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}
.alarm-slot-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.alarm-slot-icon.morning {
  background: rgba(245, 158, 11, 0.15);
}
.alarm-slot-icon.afternoon {
  background: rgba(249, 115, 22, 0.15);
}
.alarm-slot-icon.night {
  background: rgba(99, 102, 241, 0.15);
}
.alarm-slot-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.alarm-slot-details strong {
  font-size: 0.86rem;
  color: #1e293b;
}
.alarm-slot-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

/* Vault Modal Styles */
.vault-card-active {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  border: 1px solid #f0abfc;
  border-radius: var(--radius-lg);
  padding: 16px;
}
.vault-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vault-rx-badge {
  background: #4c1d95;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.vault-meta-info {
  font-size: 0.8rem;
  color: #6b21a8;
}
.vault-stats-row {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #475569;
}
.vault-btn-row {
  display: flex;
  gap: 10px;
}
.security-stamp-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Support Modal Styles */
.support-emergency-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 1px solid #fecdd3;
  border-radius: var(--radius-lg);
  padding: 16px;
}
.support-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e11d48;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}
.support-emergency-details {
  display: flex;
  flex-direction: column;
}
.support-toll-free {
  font-size: 1.4rem;
  font-weight: 800;
  color: #9f1239;
  letter-spacing: 0.5px;
  margin: 2px 0;
}
.support-channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.support-link-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.support-link-item i:first-child {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}
.support-link-item div {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.support-link-item strong {
  font-size: 0.86rem;
  color: #1e293b;
}
.support-link-item small {
  font-size: 0.74rem;
  color: #64748b;
}
.faq-accordion-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
}
.faq-accordion-box h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 6px;
}
.faq-item {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}
.faq-item strong {
  font-size: 0.8rem;
  color: #334155;
  display: block;
}
.faq-item p {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════════════════════
   PHASE 3: ANDROID NATIVE ALARM & BACKGROUND VOICE REMINDER ENGINE STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.active-alarm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 40, 28, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: alarmFadeIn 0.3s ease-out forwards;
}

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

.active-alarm-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.3);
  text-align: center;
  border: 2px solid #86efac;
  animation: alarmCardBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes alarmCardBounce {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.alarm-pulsing-bell-box {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
  animation: alarmBellRipple 1.6s infinite ease-out, bellRingSwing 0.8s infinite ease-in-out alternate;
}

@keyframes alarmBellRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 26px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes bellRingSwing {
  0% { transform: rotate(-14deg); }
  100% { transform: rotate(14deg); }
}

.alarm-sound-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  border: 1px solid #fecaca;
}

.alarm-recipient-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.alarm-slot-subtitle {
  font-size: 0.9rem;
  color: #059669;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.alarm-meds-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
}

.alarm-med-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #e2e8f0;
}
.alarm-med-item:last-child {
  border-bottom: none;
}
.alarm-med-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 7px;
}
.alarm-med-dose {
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 6px;
}

.alarm-anupana-strip {
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.alarm-actions-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-alarm-take-dose {
  width: 100%;
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-alarm-take-dose:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(5, 150, 105, 0.45);
}

.btn-alarm-snooze {
  width: 100%;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-alarm-snooze:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* VIP Health Pass Modal Styles */
.vip-pass-card {
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px 22px;
  position: relative;
  border: 2px solid #fef3c7;
  box-shadow: 0 25px 50px -12px rgba(217, 119, 6, 0.25);
  animation: scaleInVip 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleInVip {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.vip-crown-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #fcd34d;
  margin-bottom: 8px;
}

.vip-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.vip-modal-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 3px;
}

.vip-price-pill {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0;
  text-align: center;
}

.vip-price-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: #b45309;
}

.vip-price-number span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #78350f;
}

.vip-trial-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  margin-top: 4px;
}

.vip-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.vip-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.4;
}

.vip-benefit-item .v-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.vip-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-vip-pay-now {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(180, 83, 9, 0.35);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-vip-pay-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(180, 83, 9, 0.45);
}

.vip-upi-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
}

.upi-brand-tag {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  color: #475569;
}

