:root {
    --blue-deep:   #0a3d6b;
    --blue-mid:    #1565c0;
    --blue-light:  #e8f1fb;
    --blue-pale:   #f0f6ff;
    --accent:      #2196f3;
    --accent-glow: rgba(33,150,243,0.16);
    --white:       #ffffff;
    --gray-50:     #f8fafc;
    --gray-100:    #eef2f7;
    --gray-300:    #bbc8d8;
    --gray-500:    #6b7c93;
    --gray-700:    #334155;
    --shadow-sm:   0 1px 5px rgba(10,61,107,0.09);
    --radius:      16px;
  }
 
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
  body {
    font-family: 'DM Sans', sans-serif;
    background: #dde8f5;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 16px;
  }
 
  .phone-shell {
    width: 390px; height: 780px;
    background: var(--white); border-radius: 38px;
    box-shadow: 0 32px 90px rgba(10,61,107,0.24), 0 0 0 8px #ccddf0;
    overflow: hidden; display: flex; flex-direction: column; position: relative;
  }
 
  .header {
    background: linear-gradient(150deg, #07294a 0%, #0e4a90 50%, #1870c2 100%);
    padding: 10px 14px 8px;
    position: relative; overflow: hidden; flex-shrink: 0;
  }
  .header::before {
    content: ''; position: absolute; top: -60px; right: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 70%);
  }
  .header::after {
    content: ''; position: absolute; bottom: -30px; left: 30px;
    width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  }
 
  .header-inner {
    display: flex; align-items: center; gap: 13px;
    position: relative; z-index: 1;
  }
 
  .logo-wrap {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px); flex-shrink: 0;
  }
  .logo-wrap svg { width: 26px; height: 26px; }
 
  .header-text { flex: 1; }
  /* app-name overridden below */
  .tagline-wrap { margin-top: 4px; display: flex; flex-direction: column; gap: 1px; }
  .tagline-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 10px; font-weight: 500;
    color: rgba(255,255,255,0.9); letter-spacing: 0.2px;
  }
  .tagline-en {
    font-size: 10.5px; font-weight: 400;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.6px; text-transform: uppercase;
  }
 
  .status-badge {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px; padding: 5px 11px;
    font-size: 11px; color: rgba(255,255,255,0.85); font-weight: 500;
    align-self: flex-start; white-space: nowrap;
  }
  .status-dot {
    width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
    animation: pulse-dot 2.2s ease infinite;
  }
  @keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 2px rgba(74,222,128,0.3); }
    50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0.1); }
  }
 
  .aiims-strip {
    position: relative; z-index: 1; margin-top: 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px; padding: 4px 10px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .aiims-strip-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 9.5px; font-weight: 500;
    color: rgba(255,255,255,0.75); line-height: 1.5;
  }
  .aiims-strip-en {
    font-size: 9px; color: rgba(255,255,255,0.5);
    text-align: right; line-height: 1.5;
  }
 
  .dev-credit {
    position: relative; z-index: 1; margin-top: 4px;
    font-size: 10px; color: rgba(255,255,255,0.32);
    letter-spacing: 0.5px; text-align: right;
  }
 
  .chat-area {
    flex: 1; overflow-y: auto; padding: 10px 12px 6px;
    display: flex; flex-direction: column; gap: 8px;
    background: var(--blue-pale);
    scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent;
  }
 
  .welcome-card {
    background: var(--white); border-radius: 20px;
    border: 1px solid rgba(10,61,107,0.08);
    box-shadow: 0 4px 20px rgba(10,61,107,0.1);
    padding: 10px 12px;
    display: flex; align-items: flex-start; gap: 8px;
    animation: fadeUp 0.5s ease both;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .welcome-avatar {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue-mid), #1a8fd8);
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
  }
  .welcome-body { flex: 1; }
  .welcome-title-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--blue-deep); line-height: 1.3;
  }
  .welcome-title-en { font-size: 10.5px; color: var(--gray-500); margin-top: 1px; }
  .welcome-desc-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 11px; color: var(--gray-700); line-height: 1.5; margin-top: 4px;
  }
  .welcome-desc-en { font-size: 10.5px; color: var(--gray-500); line-height: 1.5; margin-top: 2px; }
 
  .chips-wrap {
    display: flex; flex-wrap: wrap; gap: 7px;
    animation: fadeUp 0.5s ease both; animation-delay: 0.1s;
  }
  .chip-label {
    font-size: 10px; font-weight: 600; color: var(--gray-500);
    letter-spacing: 0.5px; text-transform: uppercase;
    width: 100%; margin-bottom: 2px;
  }
  .chip {
    display: flex; align-items: center; gap: 5px;
    background: var(--white); border: 1.5px solid rgba(21,101,192,0.18);
    border-radius: 30px; padding: 7px 13px;
    font-size: 12.5px; color: var(--blue-deep); font-weight: 500;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(10,61,107,0.07);
  }
  .chip:hover { background: var(--blue-light); border-color: var(--accent); color: var(--blue-mid); transform: translateY(-1px); }
  .chip-hi { font-family: 'Noto Sans Devanagari', sans-serif; font-size: 13px; }
  .chip-en { font-size: 11px; color: var(--gray-500); }
 
  .bot-row {
    display: flex; gap: 9px; align-items: flex-end;
    animation: fadeUp 0.5s ease both; animation-delay: 0.2s;
  }
  .avatar-sm {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue-mid), #1a8fd8);
    box-shadow: 0 2px 8px rgba(21,101,192,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 12px;
  }
  .bot-bubble {
    background: var(--white); border: 1px solid rgba(10,61,107,0.07);
    border-radius: var(--radius); border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm); padding: 8px 11px;
    font-size: 11.5px; line-height: 1.5; color: var(--gray-700); max-width: 82%;
  }
  .bot-bubble .hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    display: block; margin-bottom: 3px; font-weight: 500; color: var(--blue-deep);
    font-size: 12px;
  }
  .bot-bubble .en { display: block; color: var(--gray-500); font-size: 12px; }
 
  .user-row {
    display: flex; justify-content: flex-end;
    animation: fadeUp 0.5s ease both;
  }
  .user-bubble {
    background: linear-gradient(135deg, var(--blue-mid), #1a8fd8);
    border-radius: var(--radius); border-bottom-right-radius: 4px;
    padding: 11px 15px; max-width: 78%;
    font-size: 13px; color: #fff; line-height: 1.6;
    box-shadow: 0 4px 14px rgba(21,101,192,0.35);
  }
 
  .dept-card {
    background: var(--white); border: 1px solid rgba(10,61,107,0.07);
    border-radius: var(--radius); border-bottom-left-radius: 4px;
    box-shadow: 0 4px 16px rgba(10,61,107,0.1); padding: 13px 15px;
    max-width: 82%; font-size: 13px; color: var(--gray-700); line-height: 1.7;
  }
  .dept-card .hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    display: block; font-weight: 600; color: var(--blue-deep); font-size: 12px; margin-bottom: 4px;
  }
  .dept-card .en { display: block; color: var(--gray-600); font-size: 12.5px; margin-bottom: 10px; }
  .dept-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--blue-light); border: 1px solid rgba(21,101,192,0.2);
    border-radius: 10px; padding: 7px 12px; margin-top: 4px;
    font-size: 12.5px; font-weight: 600; color: var(--blue-mid);
  }
 
  .voice-overlay {
    display: none; position: absolute; inset: 0;
    background: rgba(6,28,60,0.96); backdrop-filter: blur(12px);
    z-index: 20; flex-direction: column; align-items: center;
    justify-content: center; gap: 22px; border-radius: 38px;
    animation: overlayIn 0.3s ease;
  }
  @keyframes overlayIn { from{opacity:0;} to{opacity:1;} }
  .voice-overlay.active { display: flex; }
  .voice-wave-wrap {
    position: relative; width: 124px; height: 124px;
    display: flex; align-items: center; justify-content: center;
  }
  .voice-ring {
    position: absolute; border-radius: 50%;
    border: 1.5px solid rgba(33,150,243,0.4);
    width: 124px; height: 124px;
    animation: ring-expand 2.2s ease-out infinite;
  }
  .voice-ring:nth-child(2){animation-delay:0.6s;}
  .voice-ring:nth-child(3){animation-delay:1.2s;}
  @keyframes ring-expand { 0%{transform:scale(0.5);opacity:1;} 100%{transform:scale(2.0);opacity:0;} }
  .voice-mic-circle {
    width: 78px; height: 78px; border-radius: 50%;
    background: linear-gradient(145deg,#1565c0,#42a5f5);
    display: flex; align-items: center; justify-content: center;
    z-index:1; animation: mic-glow 1.5s ease infinite;
  }
  @keyframes mic-glow { 0%,100%{box-shadow:0 0 22px rgba(33,150,243,0.5);} 50%{box-shadow:0 0 55px rgba(33,150,243,1);} }
  .audio-bars { display:flex; gap:5px; align-items:flex-end; height:40px; }
  .bar { width:5px; background:rgba(33,150,243,0.75); border-radius:4px; animation:bar-dance 0.75s ease infinite; }
  .bar:nth-child(1){animation-delay:0s;height:14px;} .bar:nth-child(2){animation-delay:0.1s;height:28px;}
  .bar:nth-child(3){animation-delay:0.2s;height:38px;} .bar:nth-child(4){animation-delay:0.3s;height:22px;}
  .bar:nth-child(5){animation-delay:0.15s;height:32px;} .bar:nth-child(6){animation-delay:0.25s;height:18px;}
  .bar:nth-child(7){animation-delay:0.05s;height:26px;}
  @keyframes bar-dance{0%,100%{transform:scaleY(0.3);opacity:0.5;}50%{transform:scaleY(1);opacity:1;}}
  .voice-text-block { text-align:center; }
  .voice-label-hi { font-family:'Noto Sans Devanagari',sans-serif; font-size:18px; font-weight:600; color:rgba(255,255,255,0.95); display:block; margin-bottom:4px; }
  .voice-label-en { font-size:13px; color:rgba(255,255,255,0.45); display:block; }
  .voice-hint-hi { font-family:'Noto Sans Devanagari',sans-serif; font-size:13px; color:rgba(255,255,255,0.45); display:block; margin-bottom:3px; }
  .voice-hint-en { font-size:12px; color:rgba(255,255,255,0.3); display:block; }
  .voice-cancel-btn {
    border:1.5px solid rgba(255,255,255,0.2); border-radius:30px; padding:10px 34px;
    background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.65);
    font-family:'DM Sans',sans-serif; font-size:13px; cursor:pointer; transition:all .25s;
  }
  .voice-cancel-btn .cancel-hi { font-family:'Noto Sans Devanagari',sans-serif; }
  .voice-cancel-btn:hover { background:rgba(255,255,255,0.13); color:#fff; border-color:rgba(255,255,255,0.45); }
 
  .input-bar { padding:7px 12px 7px; background:var(--white); border-top:1px solid var(--gray-100); flex-shrink:0; }
  .input-row {
    display:flex; align-items:center; gap:8px; background:var(--gray-50);
    border:1.5px solid var(--gray-100); border-radius:50px; padding:6px 6px 6px 15px;
    transition:border-color .2s,box-shadow .2s;
  }
  .input-row:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-glow); }
  .input-row input { flex:1; border:none; background:transparent; font-family:'DM Sans',sans-serif; font-size:13.5px; color:var(--gray-700); outline:none; }
  .input-row input::placeholder { color:var(--gray-300); }
  .voice-btn { width:36px; height:36px; border-radius:50%; border:none; background:linear-gradient(135deg,var(--blue-mid),#1e8fe0); color:white; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 10px rgba(21,101,192,0.38); transition:all .25s; flex-shrink:0; }
  .voice-btn:hover { transform:scale(1.1); box-shadow:0 5px 18px rgba(21,101,192,0.55); }
  .send-btn { width:36px; height:36px; border-radius:50%; border:none; background:var(--blue-deep); color:white; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 10px rgba(10,61,107,0.32); transition:all .25s; flex-shrink:0; }
  .send-btn:hover { transform:scale(1.1); background:var(--blue-mid); }
  .footer-credit { text-align:center; margin-top:4px; font-size:10px; color:var(--gray-300); letter-spacing:0.3px; }
  .footer-credit span { color:var(--blue-mid); font-weight:600; }
  /* ═══════════════════════════════════════════════════════════
   SAHAYAK — DOCTOR CARDS CSS  (Phase 2)
   Paste this entire block at the bottom of style.css
   ═══════════════════════════════════════════════════════════ */
 
/* ── Wrapper animates in below bot message ── */
.doctor-cards-wrapper {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.doctor-cards-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}
 
/* ── Header row ── */
.doctor-cards-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 0 2px;
}
.dch-icon { font-size: 18px; }
.dch-title { font-size: 12px; color: #1a202c; }
.dch-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
 
.badge-total {
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
.badge-today {
  background: #dcfce7;
  color: #166534;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
}
 
/* ── Scrollable row of cards ── */
.doctor-cards-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.doctor-cards-scroll::-webkit-scrollbar { height: 4px; }
.doctor-cards-scroll::-webkit-scrollbar-track { background: #f1f3f5; border-radius: 4px; }
.doctor-cards-scroll::-webkit-scrollbar-thumb { background: #b0c4de; border-radius: 4px; }
 
/* ── Individual card ── */
.doctor-card {
  flex: 0 0 255px;
  scroll-snap-align: start;
  background: #fff;
  border: 1.5px solid #e2e8f6;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.doctor-card:hover {
  box-shadow: 0 6px 18px rgba(26,115,232,0.14);
  transform: translateY(-2px);
}
 
/* ── Today highlight ── */
.card-today {
  border-color: #22c55e;
  box-shadow: 0 2px 12px rgba(34,197,94,0.15);
}
.today-ribbon {
  position: absolute;
  top: 10px; right: -22px;
  background: #22c55e;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 28px;
  transform: rotate(35deg);
  letter-spacing: 0.5px;
}
 
/* ── Card top: avatar + name ── */
.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.doc-avatar {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}
.avatar-today {
  background: linear-gradient(135deg, #22c55e, #15803d);
}
.doc-meta { flex: 1; min-width: 0; }
.doc-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-desig { font-size: 11.5px; color: #5a72a0; margin-top: 2px; }
.doc-unit  { font-size: 10.5px; color: #94a3b8; margin-top: 1px; font-style: italic; }
 
/* ── Schedule block ── */
.card-schedule {
  background: #f7f9ff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}
.cd-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  color: #374151;
  line-height: 1.4;
}
.cd-row span:first-child { flex-shrink: 0; width: 16px; text-align: center; }
.cd-notes { color: #6b7280; font-style: italic; }
 
/* ── Tags ── */
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.tag {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.tag-blue  { background: #dbeafe; color: #1d4ed8; }
.tag-green { background: #dcfce7; color: #166534; }
 
/* ── Condition chips ── */
.card-conditions { display: flex; flex-wrap: wrap; gap: 4px; }
.cond-chip {
  font-size: 10px;
  padding: 2px 7px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-transform: capitalize;
}
 
/* ── Emergency alert block ── */
.emergency-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  animation: pulse-red 1.5s ease-in-out 3;
}
.emergency-icon { font-size: 28px; flex-shrink: 0; }
.emergency-alert strong { color: #b91c1c; font-size: 12px; }
.emergency-alert small  { color: #6b7280; font-size: 11px; }
 
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0.2); }
}
 
/* ── Mobile ── */
@media (max-width: 480px) {
  .doctor-card { flex: 0 0 220px; padding: 12px; }
  .doc-name    { font-size: 12px; }
  .dch-badges  { margin-left: 0; }
}
 
/* ═══════════════════════════════════════════════════════════
   ADDITIONS for Phase 2 v2 — Doctor name search + disambiguation
   ═══════════════════════════════════════════════════════════ */
 
/* ── Department label on card (shown in name-search mode) ── */
.card-dept-label {
  font-size: 10px;
  color: #6366f1;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
 
/* ── Ambiguous header ── */
.ambiguous-header {
  color: #b45309;
}
.ambiguous-header .dch-title {
  color: #92400e;
  font-size: 12.5px;
}
 
/* ── Disambiguation buttons ── */
.disambig-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
 
.disambig-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
  width: 100%;
}
 
.disambig-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateX(4px);
}
 
.disambig-dept {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
 
.disambig-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a202c;
}
 
.disambig-days {
  font-size: 11px;
  color: #64748b;
}
 
/* ── Typing indicator (female text) ── */
.typing-indicator span:first-child {
  color: #6b7280;
  font-size: 13px;
}
 



/* ── DUAL SEARCH: dept group label ─────────────────────────────── */
.dept-group-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 4px 4px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}
.dept-group-label:first-child { border-top: none; margin-top: 0; }

/* ── DUAL SEARCH: sub-specialty filter line ─────────────────────── */
.dch-subspecialty {
  font-size: 12px;
  color: #6b7280;
  padding: 2px 4px 8px;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 6px;
}
.dch-subspecialty strong { color: #1a73e8; }

/* ── App name: Hindi dual-colour + English subscript ── */
.app-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}
.app-name-hindi {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
}
.name-white { color: #ffffff; }
.name-gold  { color: #f5c842; text-shadow: 0 0 8px rgba(245,200,66,0.55); }
.app-name-en {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  vertical-align: sub;
}


.sahayak-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(245,200,66,0.5));
}


.sahayak-char-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  object-position: top;
  filter: drop-shadow(0 3px 10px rgba(245,200,66,0.5));
}


.ai-tagline {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: transparent;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), #f5c842, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
}


/* ── Action Tiles ── */
.action-tiles-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.1s;
}
.action-tiles-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.action-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  width: 100%;
}
.action-tile:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.tile-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
}
.tile-body { flex: 1; }
.tile-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
.tile-sub {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 9.5px;
  margin-top: 1px;
  opacity: 0.75;
}
.tile-sub-en {
  font-size: 9px;
  opacity: 0.55;
  margin-top: 0px;
}
.tile-arrow {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.4;
  flex-shrink: 0;
}

/* Tile colour themes */
.tile-blue  { background: #e8f1fb; border-color: rgba(21,101,192,0.18); }
.tile-blue .tile-title { color: #0a3d6b; }
.tile-blue .tile-sub, .tile-blue .tile-sub-en { color: #1565c0; }
.tile-blue:hover { background: #d6e8f9; border-color: #1565c0; }

.tile-green { background: #e8faf0; border-color: rgba(22,101,52,0.18); }
.tile-green .tile-title { color: #145a32; }
.tile-green .tile-sub, .tile-green .tile-sub-en { color: #1a7a40; }
.tile-green:hover { background: #d4f5e2; border-color: #22c55e; }

.tile-purple { background: #f3eeff; border-color: rgba(99,60,180,0.18); }
.tile-purple .tile-title { color: #3b1fa0; }
.tile-purple .tile-sub, .tile-purple .tile-sub-en { color: #6342c8; }
.tile-purple:hover { background: #e9e0ff; border-color: #7c3aed; }

.tile-red { background: #fff0f0; border-color: rgba(220,38,38,0.18); }
.tile-red .tile-title { color: #991b1b; }
.tile-red .tile-sub, .tile-red .tile-sub-en { color: #dc2626; }
.tile-red:hover { background: #ffe4e4; border-color: #ef4444; }


/* ── Department Picker Modal ── */
.dept-picker-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(6,28,60,0.7);
  backdrop-filter: blur(6px);
  z-index: 30;
  border-radius: 38px;
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.25s ease;
}
.dept-picker-overlay.active { display: flex; }
.dept-picker-modal {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 70%;
  overflow-y: auto;
  padding: 16px 14px 24px;
}
.dept-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0a3d6b;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}
.dept-picker-close {
  background: #eef2f7;
  border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 12px;
  cursor: pointer;
  color: #334155;
}
.dept-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dept-chip-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  background: #f0f6ff;
  border: 1.5px solid rgba(21,101,192,0.15);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #0a3d6b;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.dept-chip-btn:hover {
  background: #dbeafe;
  border-color: #1565c0;
}
.dept-chip-today {
  font-size: 10px;
  background: #dcfce7;
  color: #166534;
  border-radius: 8px;
  padding: 2px 7px;
  font-weight: 600;
  white-space: nowrap;
}


/* ── JPNATC Card Styling ── */
.card-jpnatc {
  border: 1.5px solid #f59e0b !important;
  background: #fffbeb !important;
  opacity: 0.92;
}
.jpnatc-banner {
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  color: #92400e;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 12px 12px 0 0;
  letter-spacing: 0.1px;
}

/* ── Department Picker Loading State ── */
.dept-picker-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  color: var(--gray-500);
  font-family: 'DM Sans', sans-serif;
}

/* ── Extra clinic slot inside merged doctor card ─────────────────────────── */
.cd-extra-slot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(7, 41, 74, 0.2);
}
.cd-clinic-label span:last-child {
  font-weight: 600;
  color: #07294a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


/* ── Age & Gender Chip Row ───────────────────────────────────────────────── */
.age-gender-row {
  background: linear-gradient(135deg, rgba(7,41,74,0.06), rgba(21,101,192,0.08));
  border: 1.5px solid rgba(21,101,192,0.22);
  border-radius: 14px;
  padding: 10px 13px;
  margin: 2px 0 4px;
  animation: fadeSlideIn 0.3s ease;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.age-gender-row.agr-done {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.agr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 8px;
  font-family: 'Noto Sans Devanagari', 'DM Sans', sans-serif;
}
.agr-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.agr-chip {
  padding: 5px 13px;
  border-radius: 22px;
  border: 1.5px solid var(--blue-mid);
  background: var(--white);
  color: var(--blue-mid);
  font-size: 11px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.agr-chip:hover { background: var(--blue-light); }
.agr-chip-active {
  background: var(--blue-mid) !important;
  color: #fff !important;
  border-color: var(--blue-mid) !important;
}
.agr-age {
  width: 80px;
  padding: 5px 10px;
  border-radius: 22px;
  border: 1.5px solid var(--blue-mid);
  background: var(--white);
  font-size: 11px;
  color: var(--gray-700);
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.agr-age:focus { border-color: var(--accent); }
.agr-age::placeholder { color: var(--gray-300); font-size: 10.5px; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}