/* ══════════════════════════════════════════
   TABIB+ COLOR SYSTEM — White & Deep Green
   Primary:    #064E3B  (deep forest green)
   Accent/CTA: #059669  (emerald green)
   Light tint: #ECFDF5  (very light green)
   Background: #FFFFFF  (pure white)
   Text/Dark:  #111827  (near black)
   Border:     #E5E7EB  (cool grey)
   60% white · 30% deep green · 10% emerald
══════════════════════════════════════════ */

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

body {
  font-family: 'Inter', sans-serif;
  background: #F9FAFB;
  color: #111827;
  min-height: 100vh;
}

.screen { display: none; min-height: 100vh; padding-bottom: 70px; }
.screen.active { display: block; }
.hidden { display: none !important; }

/* ── ONBOARDING ── */
.onboard-wrap { max-width: 440px; margin: 0 auto; padding: 48px 24px 60px; }
.onboard-wrap.wide { max-width: 600px; }

.onboard-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.logo-text { font-size: 32px; font-weight: 800; color: #111827; }
.logo-plus { color: #059669; }
.logo-sub { font-size: 13px; color: #999; margin-top: 4px; }
.logo-img-onboard { height: 130px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.logo-img-header { height: 48px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.onboard-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; color: #111827; }
.onboard-sub { font-size: 14px; color: #6b7280; text-align: center; margin-bottom: 28px; line-height: 1.6; }

.tab-switch { display: flex; background: #E5E7EB; border-radius: 12px; padding: 4px; margin-bottom: 20px; gap: 4px; }
.tab-btn { flex: 1; padding: 10px; border: none; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; color: #6b7280; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.tab-btn.active { background: white; color: #111827; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.input-group { margin-bottom: 14px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; border: 1.5px solid #D1D5DB; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; outline: none; font-family: 'Inter', sans-serif; background: white;
  color: #111827; transition: border-color 0.2s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: #064E3B; }
.input-group textarea { resize: vertical; }

.phone-row { display: flex; gap: 8px; }
.country-code { width: 130px !important; flex-shrink: 0; border: 1.5px solid #D1D5DB; border-radius: 10px; padding: 12px 8px; font-size: 13px; outline: none; font-family: 'Inter', sans-serif; background: white; }
.country-code:focus { border-color: #064E3B; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BUTTONS ── */
.primary-btn { width: 100%; background: #059669; color: white; border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.2s; margin-top: 8px; }
.primary-btn:hover { background: #047857; }

.outline-btn { width: 100%; background: white; color: #064E3B; border: 2px solid #064E3B; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 10px; transition: all 0.2s; }
.outline-btn:hover { background: #ECFDF5; }

.logout-btn { width: 100%; background: white; color: #E53935; border: 2px solid #E53935; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 10px; }

.back-btn { font-size: 14px; color: #064E3B; cursor: pointer; margin-bottom: 20px; font-weight: 500; display: inline-block; }
.back-btn-inline { font-size: 14px; color: #064E3B; cursor: pointer; font-weight: 500; white-space: nowrap; }
.back-link { background: none; border: none; font-size: 13px; color: #064E3B; cursor: pointer; font-family: 'Inter', sans-serif; margin-bottom: 12px; padding: 0; font-weight: 500; display: block; }

.switch-link { text-align: center; font-size: 13px; color: #6b7280; margin-top: 16px; }
.switch-link a { color: #059669; text-decoration: none; font-weight: 600; }

.lang-switch-small { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.lang-switch-small button { background: none; border: 1.5px solid #D1D5DB; border-radius: 20px; padding: 5px 14px; font-size: 12px; cursor: pointer; color: #6b7280; font-family: 'Inter', sans-serif; }
.lang-switch-small button:hover { border-color: #064E3B; color: #064E3B; }

/* ── VERIFY ── */
.verify-icon { font-size: 56px; text-align: center; margin-bottom: 16px; }
.otp-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.otp-input { width: 48px; height: 56px; border: 2px solid #D1D5DB; border-radius: 12px; text-align: center; font-size: 22px; font-weight: 700; outline: none; font-family: 'Inter', sans-serif; transition: border-color 0.2s; background: white; }
.otp-input:focus { border-color: #064E3B; }
.hint { text-align: center; font-size: 12px; color: #bbb; margin-bottom: 12px; }

/* ── STEP INDICATOR ── */
.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; gap: 4px; }
.step { width: 32px; height: 32px; border-radius: 50%; background: #E5E7EB; color: #aaa; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.step.done { background: #064E3B; color: white; }
.step.active { background: #111827; color: white; }
.step-line { height: 2px; width: 32px; background: #E5E7EB; }
.step-line.done { background: #064E3B; }

/* ── CHOICE CARDS ── */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.choice-card { border: 2px solid #D1D5DB; border-radius: 12px; padding: 14px 8px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; background: white; transition: all 0.18s; color: #374151; line-height: 1.5; }
.choice-card:hover { border-color: #064E3B; color: #064E3B; }
.choice-card.selected { border-color: #064E3B; background: #ECFDF5; color: #064E3B; font-weight: 600; }

/* ── HEADER ── */
.header { background: white; box-shadow: 0 2px 12px rgba(0,0,0,0.07); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; flex-direction: column; }
.header-right { display: flex; align-items: center; gap: 12px; }
.page-title { font-size: 17px; font-weight: 700; color: #111827; }

.notif-bell { font-size: 20px; position: relative; cursor: pointer; }
.notif-dot { width: 8px; height: 8px; background: #E53935; border-radius: 50%; position: absolute; top: 0; right: 0; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #064E3B, #111827); color: white; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }

.lang-switch { display: flex; gap: 6px; }
.lang-btn { padding: 5px 12px; border: 1.5px solid #D1D5DB; border-radius: 20px; background: white; cursor: pointer; font-size: 12px; font-weight: 500; color: #6b7280; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.lang-btn.active, .lang-btn:hover { background: #064E3B; border-color: #064E3B; color: white; }

/* ── BOTTOM NAV ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: white; display: flex; border-top: 1px solid #E5E7EB; z-index: 50; box-shadow: 0 -4px 16px rgba(0,0,0,0.06); }
.nav-item { flex: 1; text-align: center; padding: 10px 0 8px; font-size: 11px; color: #9ca3af; cursor: pointer; transition: color 0.2s; }
.nav-item div:first-child { font-size: 22px; margin-bottom: 2px; }
.nav-item.active { color: #064E3B; }
.nav-item:hover { color: #064E3B; }

/* ══════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════ */
.dash-wrap { max-width: 750px; margin: 0 auto; padding: 20px 16px 80px; }

.welcome-banner { background: linear-gradient(135deg, #064E3B 0%, #059669 100%); border-radius: 20px; padding: 24px 20px; color: white; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.welcome-greeting { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.welcome-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.welcome-sub { font-size: 13px; color: rgba(255,255,255,0.5); }
.welcome-emoji { font-size: 48px; }

.section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #111827; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-link { font-size: 13px; color: #059669; cursor: pointer; font-weight: 600; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.quick-card { background: white; border-radius: 16px; padding: 16px 8px; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.18s, box-shadow 0.18s; border: 1px solid #E5E7EB; }
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(6,78,59,0.12); }
.quick-icon { font-size: 28px; margin-bottom: 6px; }
.quick-label { font-size: 11px; font-weight: 600; color: #4b5563; }

.upcoming-card { background: white; border-radius: 14px; padding: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 4px solid #064E3B; cursor: pointer; border: 1px solid #E5E7EB; border-left: 4px solid #064E3B; transition: box-shadow 0.2s; }
.upcoming-card:hover { box-shadow: 0 4px 16px rgba(6,78,59,0.12); }
.upcoming-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #10B981; flex-shrink: 0; }
.upcoming-info { flex: 1; }
.upcoming-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #111827; }
.upcoming-specialty { font-size: 12px; color: #064E3B; font-weight: 500; margin-bottom: 4px; }
.upcoming-date { font-size: 12px; color: #6b7280; }
.upcoming-status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: #ECFDF5; color: #064E3B; white-space: nowrap; }

.empty-state { text-align: center; padding: 32px 20px; color: #9ca3af; font-size: 14px; background: white; border-radius: 14px; margin-bottom: 10px; border: 1px solid #E5E7EB; }
.empty-state .empty-icon { font-size: 40px; margin-bottom: 10px; }

.specialty-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; scrollbar-width: none; }
.specialty-scroll::-webkit-scrollbar { display: none; }
.spec-card { background: white; border-radius: 14px; padding: 16px 14px; text-align: center; min-width: 80px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 12px; font-weight: 600; color: #4b5563; transition: all 0.2s; flex-shrink: 0; border: 1px solid #E5E7EB; }
.spec-card:hover { background: #064E3B; color: white; border-color: #064E3B; transform: translateY(-2px); }
.spec-icon { font-size: 24px; margin-bottom: 6px; }

.tips-carousel { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; scrollbar-width: none; }
.tips-carousel::-webkit-scrollbar { display: none; }
.tip-card { min-width: 220px; border-radius: 16px; padding: 18px; color: white; flex-shrink: 0; }
.tip-card:nth-child(1) { background: linear-gradient(135deg, #064E3B, #059669); }
.tip-card:nth-child(2) { background: linear-gradient(135deg, #065F46, #10B981); }
.tip-card:nth-child(3) { background: linear-gradient(135deg, #111827, #064E3B); }
.tip-card:nth-child(4) { background: linear-gradient(135deg, #047857, #064E3B); }
.tip-card:nth-child(5) { background: linear-gradient(135deg, #059669, #111827); }
.tip-emoji { font-size: 28px; margin-bottom: 8px; }
.tip-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.tip-text { font-size: 12px; opacity: 0.85; line-height: 1.5; }

.top-doctors-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: none; }
.top-doctors-scroll::-webkit-scrollbar { display: none; }
.top-doc-card { min-width: 150px; background: white; border-radius: 16px; padding: 18px 14px; text-align: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.2s; border: 1px solid #E5E7EB; }
.top-doc-card:hover { transform: translateY(-3px); }
.top-doc-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #10B981; margin: 0 auto 10px; display: block; }
.top-doc-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; color: #111827; }
.top-doc-spec { font-size: 11px; color: #064E3B; font-weight: 500; margin-bottom: 6px; }
.top-doc-rating { font-size: 12px; color: #6b7280; }

/* ══════════════════════════════════════════
   RESULTS — ZOCDOC STYLE (list + map)
══════════════════════════════════════════ */

.results-layout { display: flex; height: calc(100vh - 120px); overflow: hidden; }

/* Left: scrollable list */
.results-list { flex: 1; overflow-y: auto; padding: 16px; max-width: 680px; }
.results-list::-webkit-scrollbar { width: 4px; }
.results-list::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }

/* Right: sticky map */
.results-map { width: 420px; flex-shrink: 0; position: sticky; top: 0; height: calc(100vh - 120px); overflow: hidden; }
.results-map iframe { width: 100%; height: 100%; border: none; }
.map-placeholder { width: 100%; height: 100%; background: #ECFDF5; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #064E3B; font-size: 15px; font-weight: 500; gap: 8px; }
.map-placeholder .map-icon { font-size: 40px; }

.results-count { font-size: 14px; color: #6b7280; margin-bottom: 12px; font-weight: 500; }

/* ── SEARCH BAR ── */
.search-bar-sticky { background: #064E3B; padding: 12px 20px; position: sticky; top: 57px; z-index: 40; }
.search-box { max-width: 700px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px; }
.search-field input, .search-field select { border: none; background: transparent; outline: none; font-size: 14px; color: white; width: 100%; font-family: 'Inter', sans-serif; }
.search-field select option { color: #111827; background: white; }
.search-field input::placeholder { color: rgba(255,255,255,0.5); }
.specialty-pills { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; max-width: 700px; margin: 10px auto 0; scrollbar-width: none; }
.specialty-pills::-webkit-scrollbar { display: none; }
.pill { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 6px 14px; font-size: 12px; cursor: pointer; white-space: nowrap; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.pill:hover, .pill.active { background: #10B981; border-color: #10B981; color: white; }

/* ── ZOCDOC DOCTOR CARD ── */
.doctor-card-z {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.doctor-card-z:hover { box-shadow: 0 4px 20px rgba(6,78,59,0.1); border-color: #10B981; }

.doc-left { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 90px; }
.doc-avatar-z { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #10B981; }
.doc-verified { font-size: 11px; font-weight: 600; color: #064E3B; background: #ECFDF5; padding: 3px 8px; border-radius: 6px; text-align: center; }

.doc-center { flex: 1; min-width: 0; }
.doc-name-z { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.doc-title-z { font-size: 14px; color: #6b7280; margin-bottom: 8px; }
.doc-rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.doc-stars { color: #F59E0B; font-size: 14px; }
.doc-rating-num { font-weight: 700; color: #111827; font-size: 14px; }
.doc-reviews-count { font-size: 13px; color: #6b7280; }
.patient-choice { background: #ECFDF5; color: #064E3B; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: 4px; }
.doc-meta { font-size: 13px; color: #6b7280; line-height: 1.8; }
.doc-meta span { margin-right: 12px; }
.doc-ins-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ins-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #ECFDF5; color: #064E3B; }
.lang-badge-z { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: #F0FDF4; color: #059669; }
.new-patient-tag { font-size: 12px; color: #064E3B; font-weight: 500; margin-top: 8px; }

/* ── CALENDAR SLOTS (Zocdoc style) ── */
.doc-right { min-width: 200px; max-width: 240px; }
.slot-week-label { font-size: 12px; color: #6b7280; margin-bottom: 8px; text-align: center; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.slot-day { border-radius: 8px; padding: 6px 2px; text-align: center; font-size: 11px; cursor: pointer; transition: all 0.18s; border: 1px solid transparent; }
.slot-day.has-slots { background: #ECFDF5; border-color: #10B981; color: #111827; }
.slot-day.has-slots:hover { background: #064E3B; color: white; border-color: #064E3B; }
.slot-day.no-slots { background: #F9FAFB; color: #bbb; cursor: default; }
.slot-day.today-slot { background: #059669; color: white; border-color: #059669; }
.slot-day.today-slot:hover { background: #047857; }
.slot-day-name { font-weight: 600; font-size: 10px; display: block; }
.slot-day-num { font-size: 10px; display: block; margin-bottom: 2px; }
.slot-count { font-weight: 700; font-size: 12px; display: block; }
.slot-label { font-size: 9px; display: block; color: inherit; opacity: 0.8; }
.more-slots-btn { width: 100%; background: transparent; border: 1.5px solid #D1D5DB; border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600; color: #064E3B; cursor: pointer; margin-top: 4px; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.more-slots-btn:hover { background: #ECFDF5; border-color: #064E3B; }

.no-results { text-align: center; color: #9ca3af; font-size: 15px; padding: 60px; }

/* ══════════════════════════════════════════
   DOCTOR PROFILE PAGE (Zocdoc style)
══════════════════════════════════════════ */
.profile-page-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 80px; display: flex; gap: 28px; align-items: flex-start; }

/* Left column */
.profile-page-left { flex: 1; min-width: 0; }

.profile-page-hero { background: white; border-radius: 16px; padding: 24px; margin-bottom: 16px; border: 1px solid #E5E7EB; display: flex; gap: 20px; align-items: flex-start; }
.profile-big-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #10B981; flex-shrink: 0; }
.profile-hero-info { flex: 1; }
.profile-hero-name { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.profile-hero-title { font-size: 15px; color: #6b7280; margin-bottom: 8px; }
.profile-hero-addr { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.profile-hero-rating { display: flex; align-items: center; gap: 8px; }
.big-rating { font-size: 28px; font-weight: 800; color: #111827; }
.hero-stars { color: #F59E0B; font-size: 18px; }
.hero-review-quote { background: #F0FDF4; border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 13px; color: #4b5563; line-height: 1.6; font-style: italic; }
.hero-review-author { font-size: 12px; color: #9ca3af; margin-top: 6px; font-style: normal; }

/* Profile tabs */
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid #E5E7EB; margin-bottom: 20px; overflow-x: auto; background: white; border-radius: 12px 12px 0 0; }
.profile-tab { padding: 14px 20px; font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all 0.2s; }
.profile-tab:hover { color: #064E3B; }
.profile-tab.active { color: #064E3B; border-bottom-color: #064E3B; font-weight: 600; }

.profile-tab-content { background: white; border-radius: 0 0 16px 16px; padding: 20px; border: 1px solid #E5E7EB; border-top: none; margin-bottom: 16px; }

.highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.highlight-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #F0FDF4; border-radius: 12px; }
.highlight-icon { font-size: 24px; flex-shrink: 0; }
.highlight-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 3px; }
.highlight-sub { font-size: 12px; color: #6b7280; line-height: 1.4; }

.about-text { font-size: 14px; color: #4b5563; line-height: 1.8; }

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { border-bottom: 1px solid #E5E7EB; padding-bottom: 14px; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.reviewer-name { font-size: 14px; font-weight: 600; color: #111827; }
.review-date { font-size: 12px; color: #9ca3af; }
.review-stars { color: #F59E0B; font-size: 13px; margin-bottom: 6px; }
.review-text { font-size: 13px; color: #4b5563; line-height: 1.6; }

/* Right column: booking widget */
.profile-page-right { width: 320px; flex-shrink: 0; position: sticky; top: 80px; }

.booking-widget { background: white; border-radius: 16px; border: 1px solid #E5E7EB; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.widget-title { font-size: 17px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.widget-sub { font-size: 12px; color: #6b7280; margin-bottom: 16px; }

.patient-type-btns { display: flex; gap: 0; border: 1.5px solid #D1D5DB; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.pt-btn { flex: 1; padding: 10px; border: none; background: white; font-size: 13px; font-weight: 500; cursor: pointer; font-family: 'Inter', sans-serif; color: #6b7280; transition: all 0.2s; }
.pt-btn.active { background: #064E3B; color: white; font-weight: 600; }

.widget-calendar-label { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.cal-nav { background: none; border: 1px solid #D1D5DB; border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 12px; color: #064E3B; font-family: 'Inter', sans-serif; }
.widget-slot-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 16px; }
.w-slot-day { border-radius: 8px; padding: 8px 2px; text-align: center; font-size: 10px; cursor: pointer; transition: all 0.18s; }
.w-slot-day.has { background: #ECFDF5; border: 1px solid #10B981; }
.w-slot-day.has:hover, .w-slot-day.selected { background: #059669; color: white; border-color: #059669; }
.w-slot-day.none { background: #F9FAFB; color: #ccc; cursor: default; }
.w-slot-day.today { background: #064E3B; color: white; border-color: #064E3B; }
.w-day-name { font-weight: 600; display: block; font-size: 9px; }
.w-day-num { display: block; font-size: 11px; margin-bottom: 1px; }
.w-slot-num { font-weight: 700; display: block; font-size: 11px; }

.time-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.time-slot-btn { border: 1.5px solid #D1D5DB; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 500; cursor: pointer; background: white; font-family: 'Inter', sans-serif; color: #111827; transition: all 0.2s; }
.time-slot-btn:hover, .time-slot-btn.selected { background: #059669; color: white; border-color: #059669; }

.book-now-btn { width: 100%; background: #059669; color: white; border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.2s; }
.book-now-btn:hover { background: #047857; }

/* ── APPOINTMENTS ── */
.appt-wrap { max-width: 600px; margin: 0 auto; padding: 20px 16px 80px; }
.appt-tabs { display: flex; background: #E5E7EB; border-radius: 12px; padding: 4px; margin-bottom: 20px; gap: 4px; }
.appt-tab { flex: 1; padding: 10px; border: none; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; color: #6b7280; font-family: 'Inter', sans-serif; transition: all 0.2s; }
.appt-tab.active { background: white; color: #111827; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.appt-card { background: white; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; gap: 14px; align-items: flex-start; border: 1px solid #E5E7EB; }
.appt-card.past { border-left: 4px solid #D1D5DB; }
.appt-card.upcoming { border-left: 4px solid #064E3B; }
.appt-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.appt-info { flex: 1; }
.appt-doctor { font-size: 15px; font-weight: 600; margin-bottom: 2px; color: #111827; }
.appt-specialty { font-size: 12px; color: #064E3B; font-weight: 500; margin-bottom: 6px; }
.appt-meta { font-size: 12px; color: #6b7280; line-height: 1.6; }
.appt-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-top: 8px; display: inline-block; }
.appt-badge.upcoming { background: #ECFDF5; color: #064E3B; }
.appt-badge.completed { background: #f0f0f0; color: #6b7280; }
.appt-badge.cancelled { background: #fff5f5; color: #E53935; }
.rate-btn { background: none; border: 1.5px solid #059669; border-radius: 8px; padding: 6px 12px; font-size: 12px; color: #059669; cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 8px; font-weight: 600; }

/* ── MY PROFILE ── */
.profile-wrap { max-width: 500px; margin: 0 auto; padding: 28px 20px 90px; text-align: center; }
.profile-avatar-big { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, #064E3B, #059669); color: white; font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.profile-fullname { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #111827; }
.profile-city-tag { display: inline-block; background: #ECFDF5; color: #064E3B; font-size: 13px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 20px; }
.profile-stats { display: flex; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 24px; border: 1px solid #E5E7EB; }
.pstat { flex: 1; padding: 18px 10px; text-align: center; border-right: 1px solid #E5E7EB; }
.pstat:last-child { border-right: none; }
.pstat-num { font-size: 24px; font-weight: 800; color: #064E3B; }
.pstat-label { font-size: 11px; color: #6b7280; margin-top: 2px; }
.profile-section { background: white; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 16px; text-align: left; border: 1px solid #E5E7EB; }
.profile-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #F3F4F6; }
.profile-row:last-child { border-bottom: none; }
.prow-icon { font-size: 20px; flex-shrink: 0; }
.prow-label { font-size: 11px; color: #9ca3af; font-weight: 500; }
.prow-val { font-size: 14px; color: #111827; font-weight: 500; margin-top: 1px; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: white; border-radius: 20px; padding: 26px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; background: #F3F4F6; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 13px; color: #6b7280; font-family: 'Inter', sans-serif; }
.modal-title { font-size: 19px; font-weight: 700; margin-bottom: 14px; color: #111827; padding-right: 30px; }
.modal-doctor { background: #F0FDF4; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 13px; color: #6b7280; }
.modal-doctor strong { display: block; font-size: 15px; color: #111827; margin-bottom: 3px; }
.who-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.who-card { border: 2px solid #D1D5DB; border-radius: 14px; padding: 20px 12px; text-align: center; cursor: pointer; transition: all 0.2s; }
.who-card:hover { border-color: #064E3B; background: #ECFDF5; }
.who-icon { font-size: 32px; margin-bottom: 8px; }
.who-label { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.who-sub { font-size: 12px; color: #9ca3af; }
.self-info { background: #ECFDF5; border: 1.5px solid #064E3B; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; color: #374151; line-height: 1.7; }
.self-info strong { font-size: 15px; color: #111827; display: block; margin-bottom: 2px; }
.modal-form { display: flex; flex-direction: column; gap: 0; }

/* ══════════════════════════════════════════
   DATA IMPORT SCREEN
══════════════════════════════════════════ */
.import-wrap { max-width: 680px; margin: 0 auto; padding: 24px 20px 90px; }

.import-step { display: flex; gap: 16px; margin-bottom: 28px; }
.import-step-num { width: 36px; height: 36px; border-radius: 50%; background: #064E3B; color: white; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.import-step-body { flex: 1; background: white; border-radius: 16px; padding: 20px; border: 1px solid #E5E7EB; }
.import-step-title { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.import-step-sub { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 14px; }

.import-btn-outline { background: white; border: 2px solid #064E3B; color: #064E3B; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.2s; margin-bottom: 14px; display: inline-block; }
.import-btn-outline:hover { background: #ECFDF5; }
.import-btn-outline.small { padding: 6px 12px; font-size: 12px; margin-bottom: 0; }
.import-btn-danger { background: white; border: 2px solid #E53935; color: #E53935; border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 12px; width: 100%; }

.import-fields-list { display: flex; flex-wrap: wrap; gap: 6px; }
.field-pill { background: #F0FDF4; border: 1px solid #D1D5DB; border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: #064E3B; font-family: monospace; }

.source-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.source-card { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 12px; padding: 14px; text-align: center; }
.source-icon { font-size: 28px; margin-bottom: 6px; }
.source-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 3px; }
.source-sub { font-size: 12px; color: #6b7280; }

.upload-zone { border: 2px dashed #10B981; border-radius: 14px; padding: 36px 20px; text-align: center; cursor: pointer; background: #F0FDF4; transition: all 0.2s; }
.upload-zone:hover { border-color: #064E3B; background: #ECFDF5; }
.upload-icon { font-size: 40px; margin-bottom: 10px; }
.upload-label { font-size: 15px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.upload-sub { font-size: 13px; color: #9ca3af; }

.preview-header { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; }
#preview-count { font-size: 14px; font-weight: 600; color: #111827; }
.preview-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #E5E7EB; margin-bottom: 14px; max-height: 260px; overflow-y: auto; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.preview-table th { background: #064E3B; color: white; padding: 8px 12px; text-align: left; white-space: nowrap; position: sticky; top: 0; }
.preview-table td { padding: 8px 12px; border-bottom: 1px solid #F3F4F6; color: #374151; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.preview-table tr:hover td { background: #F0FDF4; }

.import-error { background: #fff5f5; border: 1.5px solid #E53935; border-radius: 10px; padding: 12px 16px; color: #E53935; font-size: 13px; margin-top: 12px; }

.data-status-card { display: flex; background: #F0FDF4; border-radius: 12px; overflow: hidden; border: 1px solid #E5E7EB; }
.dstat { flex: 1; padding: 16px 10px; text-align: center; border-right: 1px solid #E5E7EB; }
.dstat:last-child { border-right: none; }
.dstat-num { font-size: 22px; font-weight: 800; color: #064E3B; }
.dstat-label { font-size: 11px; color: #6b7280; margin-top: 2px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #111827; color: white; padding: 13px 24px; border-radius: 12px; font-size: 14px; z-index: 300; box-shadow: 0 4px 20px rgba(0,0,0,0.25); max-width: 90vw; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .results-map { display: none; }
  .results-layout { height: auto; }
  .results-list { max-width: 100%; }
  .profile-page-wrap { flex-direction: column; }
  .profile-page-right { width: 100%; position: static; }
  .doc-right { display: none; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: 1fr; }
  .doctor-card-z { flex-direction: column; }
  .doc-left { flex-direction: row; }
  .otp-input { width: 40px; height: 48px; font-size: 18px; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .quick-label { font-size: 10px; }
}
