/* ============================================================
   BHARATIEA Expert Portal — Mobile-first operational UI
   ============================================================ */

:root {
  --orange:    #C2185B;
  --saffron:   #E64A19;
  --gradient:  linear-gradient(135deg, #C2185B 0%, #E64A19 100%);
  --green:     #16a34a;
  --green-bg:  #dcfce7;
  --red:       #dc2626;
  --red-bg:    #fee2e2;
  --amber:     #d97706;
  --amber-bg:  #fef3c7;
  --dark:      #111827;
  --dark-2:    #1f2937;
  --text:      #111827;
  --text-muted:#6b7280;
  --border:    #e5e7eb;
  --bg:        #f9fafb;
  --bg-card:   #ffffff;
  --font:      'Inter', -apple-system, sans-serif;
  --font-d:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius:    12px;
  --radius-sm: 8px;
  --nav-h:     64px;
  --bottom-nav:68px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── Login Screen ─────────────────────────────────────────── */
.expert-login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #fff5f8 0%, #fff9f5 100%);
}
.expert-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}
.expert-login-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 500;
}
.expert-login-card {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  text-align: center;
}
.expert-login-card h2 {
  font-family: var(--font-d);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}
.expert-login-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.expert-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.expert-google-btn:hover {
  border-color: #4285F4;
  box-shadow: 0 2px 12px rgba(66,133,244,0.2);
}
.expert-login-note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.expert-login-note a { color: var(--orange); text-decoration: none; }
.expert-login-pending {
  background: var(--amber-bg);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #92400e;
  margin-top: 16px;
  text-align: left;
  display: none;
}
.expert-login-pending.visible { display: block; }

/* ── App shell ────────────────────────────────────────────── */
.expert-app {
  display: none;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
}
.expert-app.active { display: block; }

/* ── Top bar ──────────────────────────────────────────────── */
.expert-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.expert-topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-d);
  font-size: 1.125rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
}
.expert-topbar-logo .logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.expert-topbar-info {
  text-align: right;
}
.expert-topbar-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
}
.expert-topbar-tier {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
}

/* ── Online / Offline toggle ──────────────────────────────── */
.online-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: white;
  border-bottom: 1px solid var(--border);
}
.online-toggle-label {
  flex: 1;
  font-weight: 600;
  color: var(--dark);
}
.online-toggle-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.online-pill {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none;
}
.online-pill.on { background: #16a34a; }
.online-pill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.online-pill.on::after { transform: translateX(24px); }
.online-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}
.online-status-dot.on { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }

/* ── Earnings strip ───────────────────────────────────────── */
.earnings-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  gap: 0;
}
.earnings-strip-item {
  flex: 1;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid var(--border);
}
.earnings-strip-item:last-child { border-right: none; }
.earnings-strip-val {
  font-size: 1.125rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.earnings-strip-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Payout countdown banner */
.payout-banner {
  background: var(--green-bg);
  border-bottom: 1px solid #bbf7d0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: #15803d;
  font-weight: 500;
}
.payout-banner svg { flex-shrink: 0; }

/* ── Tab content ──────────────────────────────────────────── */
.expert-tab { display: none; padding: 0 0 16px; }
.expert-tab.active { display: block; }

/* ── Section heading ──────────────────────────────────────── */
.exp-section-head {
  padding: 16px 16px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Schedule timeline ────────────────────────────────────── */
.schedule-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }

.booking-slot {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.slot-time {
  width: 52px;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 16px;
  text-align: right;
}
.slot-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.slot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid white;
  outline: 2px solid var(--border);
  margin-top: 18px;
  flex-shrink: 0;
}
.slot-dot.active { background: var(--orange); outline-color: var(--orange); }
.slot-dot.done   { background: var(--green);  outline-color: var(--green); }
.slot-line-bar {
  width: 2px;
  background: var(--border);
  flex: 1;
  min-height: 20px;
  margin-top: 4px;
}
.booking-card-e {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.booking-card-e:hover { border-color: var(--orange); }
.booking-card-e.active { border-color: var(--orange); background: #fff5f8; }
.booking-card-e.done   { background: #f9fafb; opacity: 0.75; }

.booking-card-e .bce-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.booking-card-e .bce-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.booking-card-e .bce-earn {
  font-weight: 800;
  color: var(--orange);
  font-size: 0.9375rem;
  white-space: nowrap;
  margin-left: 12px;
}
.booking-card-e .bce-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.booking-card-e .bce-meta svg { color: var(--text-muted); }

/* Stage badge */
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}
.stage-badge.scheduled { background: #e0f2fe; color: #0369a1; }
.stage-badge.enroute   { background: #fef3c7; color: #92400e; }
.stage-badge.arrived   { background: #fce7f3; color: #9d174d; }
.stage-badge.started   { background: #fef3c7; color: #92400e; }
.stage-badge.done      { background: var(--green-bg); color: #15803d; }
.stage-badge.noshow    { background: var(--red-bg); color: var(--red); }

/* Action buttons on active booking */
.bce-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.bce-action-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
  white-space: nowrap;
}
.bce-action-btn.primary { background: var(--gradient); color: white; }
.bce-action-btn.primary:hover { opacity: 0.88; }
.bce-action-btn.secondary {
  background: none; border: 1.5px solid var(--border);
  color: var(--dark);
}
.bce-action-btn.secondary:hover { border-color: var(--orange); color: var(--orange); }
.bce-action-btn.danger {
  background: none; border: 1.5px solid transparent;
  color: var(--red);
}
.bce-action-btn.nav-btn {
  display: flex; align-items: center; gap: 6px;
  background: #1d4ed8; color: white;
}

/* Rating received badge */
.bce-rating { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: #d97706; font-weight: 700; margin-top: 6px; }

/* ── Request card ─────────────────────────────────────────── */
.request-card {
  margin: 16px;
  background: white;
  border: 2px solid var(--orange);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(194,24,91,0.15);
}
.request-card-header {
  background: var(--gradient);
  padding: 10px 16px;
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.request-card-body { padding: 18px 16px; }
.request-service-title { font-size: 1.125rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.request-meta { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 16px; }
.request-meta span { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; }
.request-earn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff5f8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.request-earn-label { font-size: 0.8125rem; color: var(--text-muted); }
.request-earn-val { font-size: 1.375rem; font-weight: 800; color: var(--orange); }
.request-timer {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--orange);
  margin: 8px 0 16px;
  font-variant-numeric: tabular-nums;
}
.request-timer.urgent { color: var(--red); animation: pulse 0.5s infinite; }
.request-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-accept {
  padding: 15px; background: #16a34a; color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.request-decline {
  padding: 15px; background: none; color: var(--red);
  border: 2px solid var(--red); border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; font-family: var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.no-requests-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.no-requests-state h3 { color: var(--dark); margin-bottom: 8px; }

/* ── Earnings tab ─────────────────────────────────────────── */
.earnings-period-tabs {
  display: flex;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}
.ep-tab {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
  transition: color 0.15s;
}
.ep-tab.active { color: var(--orange); border-bottom-color: var(--orange); }

.earnings-hero {
  background: white;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.earnings-hero-val {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}
.earnings-hero-sub { font-size: 0.875rem; color: var(--text-muted); }

.payout-status-card {
  margin: 12px 16px 0;
  background: var(--green-bg);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: #15803d;
}
.payout-status-card.processing { background: var(--amber-bg); border-color: #fcd34d; color: #92400e; }
.payout-status-card.failed { background: var(--red-bg); border-color: #fca5a5; color: var(--red); }
.payout-status-card strong { display: block; font-size: 0.875rem; margin-bottom: 2px; }

.earnings-breakdown {
  padding: 0 16px;
}
.earnings-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.earnings-row:last-child { border-bottom: none; }
.earnings-row-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 44px;
  flex-shrink: 0;
}
.earnings-row-info { flex: 1; }
.earnings-row-service { font-size: 0.875rem; font-weight: 600; color: var(--dark); }
.earnings-row-area { font-size: 0.75rem; color: var(--text-muted); }
.earnings-row-amount {
  font-weight: 700;
  color: var(--green);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.earnings-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.earnings-summary-row:nth-child(even) { background: var(--bg); }
.earnings-summary-row strong { font-weight: 700; color: var(--dark); }
.earnings-summary-row span { color: var(--text-muted); }

.tier-progress-card {
  margin: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.tier-progress-card h4 { font-weight: 700; margin-bottom: 4px; }
.tier-progress-card p  { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 12px; }
.tier-bar-bg { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.tier-bar-fill { height: 100%; background: var(--gradient); border-radius: 4px; transition: width 0.6s; }
.tier-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── History tab ──────────────────────────────────────────── */
.history-list { padding: 0 16px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.history-item:last-child { border-bottom: none; }
.history-date {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}
.history-date-day { font-size: 1.125rem; font-weight: 800; color: var(--dark); line-height: 1; }
.history-date-mon { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; }
.history-info { flex: 1; }
.history-service { font-size: 0.875rem; font-weight: 600; color: var(--dark); }
.history-area { font-size: 0.75rem; color: var(--text-muted); }
.history-right { text-align: right; }
.history-earn { font-weight: 700; color: var(--green); font-size: 0.9375rem; }
.history-stars { font-size: 0.75rem; color: #f59e0b; margin-top: 2px; }

/* ── Profile tab ──────────────────────────────────────────── */
.profile-hero {
  background: white;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.profile-avatar-e {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--orange);
  object-fit: cover; background: var(--gradient);
  flex-shrink: 0;
}
.profile-avatar-initial-e {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; flex-shrink: 0;
}
.profile-stats { flex: 1; }
.profile-name-e { font-weight: 700; font-size: 1.0625rem; color: var(--dark); }
.profile-tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(194,24,91,0.12), rgba(230,74,25,0.12));
  color: var(--orange); margin: 3px 0 6px;
}
.profile-rating-row { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; }
.profile-rating-val { font-weight: 800; color: var(--dark); }
.profile-rating-stars { color: #f59e0b; }
.profile-rating-count { color: var(--text-muted); }

.profile-section {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px;
}
.profile-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Skills checklist */
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 0.8125rem; font-weight: 500;
  border: 1.5px solid var(--border); background: none; color: var(--text-light);
  cursor: pointer; font-family: var(--font); transition: all 0.15s;
}
.skill-chip.selected {
  background: linear-gradient(135deg, rgba(194,24,91,0.1), rgba(230,74,25,0.1));
  border-color: var(--orange); color: var(--orange); font-weight: 600;
}

/* Availability grid */
.avail-grid { display: flex; flex-direction: column; gap: 8px; }
.avail-row {
  display: flex; align-items: center; gap: 8px;
}
.avail-day { width: 36px; font-size: 0.8125rem; font-weight: 600; color: var(--dark); flex-shrink: 0; }
.avail-slots { display: flex; gap: 6px; flex: 1; }
.avail-slot {
  flex: 1; padding: 6px 0; border-radius: 6px; font-size: 0.75rem; font-weight: 500;
  border: 1.5px solid var(--border); background: none; color: var(--text-muted);
  cursor: pointer; font-family: var(--font); text-align: center; transition: all 0.15s;
}
.avail-slot.on { background: var(--gradient); border-color: transparent; color: white; }

/* Zone toggle */
.zone-toggle { display: flex; gap: 8px; }
.zone-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 600; border: 1.5px solid var(--border); background: none;
  color: var(--text-muted); cursor: pointer; font-family: var(--font); transition: all 0.15s;
}
.zone-btn.selected { border-color: var(--orange); color: var(--orange); background: #fff5f8; }

/* UPI field */
.upi-field-wrap { display: flex; gap: 8px; }
.upi-field {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: var(--font);
  color: var(--dark); background: var(--bg); transition: border-color 0.15s;
}
.upi-field:focus { outline: none; border-color: var(--orange); }
.upi-save-btn {
  padding: 10px 18px; background: var(--gradient); color: white;
  border: none; border-radius: var(--radius-sm); font-size: 0.875rem;
  font-weight: 600; cursor: pointer; font-family: var(--font); white-space: nowrap;
}

/* ── Booking detail modal ─────────────────────────────────── */
.booking-detail-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  align-items: flex-end;
}
.booking-detail-overlay.open { display: flex; }
.booking-detail-sheet {
  background: white;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.bds-handle {
  width: 36px; height: 4px; background: var(--border); border-radius: 2px;
  margin: 12px auto 8px;
}
.bds-header {
  padding: 8px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.bds-service-title { font-size: 1.125rem; font-weight: 700; color: var(--dark); }
.bds-time { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }
.bds-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.bds-section-label {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px;
}
.bds-address-row { display: flex; gap: 8px; align-items: flex-start; }
.bds-address-text { flex: 1; font-size: 0.9rem; color: var(--dark); line-height: 1.5; }
.bds-map-btn {
  padding: 8px 14px; background: #1d4ed8; color: white; border: none;
  border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
}
.bds-phone-row {
  display: flex; align-items: center; justify-content: space-between;
}
.bds-phone-val { font-size: 1rem; font-weight: 600; color: var(--dark); }
.bds-call-btn {
  padding: 8px 14px; background: var(--green-bg); color: var(--green); border: none;
  border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); display: flex; align-items: center; gap: 6px;
}
.bds-phone-hidden {
  font-size: 0.8125rem; color: var(--text-muted); font-style: normal;
}

/* Stage progress stepper */
.stage-stepper { display: flex; padding: 16px; gap: 0; overflow-x: auto; }
.stage-step { flex-shrink: 0; text-align: center; width: 64px; }
.stage-step-dot {
  width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 4px;
  border: 2px solid var(--border); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 700; color: var(--text-muted);
  position: relative;
}
.stage-step-dot.done { background: var(--green); border-color: var(--green); color: white; }
.stage-step-dot.active { border-color: var(--orange); background: #fff5f8; color: var(--orange); }
.stage-step-label { font-size: 0.6rem; color: var(--text-muted); line-height: 1.2; }
.stage-step.done .stage-step-label  { color: var(--green); }
.stage-step.active .stage-step-label { color: var(--orange); font-weight: 600; }
.stage-connector {
  flex: 1; height: 2px; background: var(--border);
  margin-top: 11px; flex-shrink: 0; min-width: 12px;
}
.stage-connector.done { background: var(--green); }

/* Photo upload */
.photo-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer; transition: border-color 0.15s;
  margin: 8px 0;
}
.photo-upload-area:hover { border-color: var(--orange); }
.photo-upload-area.has-photo { border-style: solid; border-color: var(--green); }
.photo-upload-area svg { color: var(--text-muted); margin-bottom: 6px; }
.photo-upload-area p { font-size: 0.8125rem; color: var(--text-muted); }
.photo-upload-area.has-photo p { color: var(--green); font-weight: 600; }

/* Upsell section */
.upsell-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.upsell-item:last-child { border-bottom: none; }
.upsell-item-name { flex: 1; font-size: 0.875rem; }
.upsell-item-price { font-size: 0.875rem; color: var(--text-muted); width: 48px; text-align: right; }
.upsell-check { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--border); cursor: pointer; }
.upsell-check.checked { background: var(--orange); border-color: var(--orange); }

/* Wait timer */
.wait-timer-card {
  background: var(--amber-bg); border: 1px solid #fcd34d; border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 8px 0; font-size: 0.875rem;
}
.wait-timer-card strong { display: block; color: #92400e; margin-bottom: 2px; }
.wait-timer-val { font-size: 1.375rem; font-weight: 900; color: #92400e; margin: 4px 0; }
.wait-surcharge-notice { color: var(--red); font-size: 0.8125rem; font-weight: 600; }

/* Damage flag */
.damage-flag-btn {
  width: 100%; padding: 10px; background: none; border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm); color: var(--red); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); display: flex; align-items: center;
  justify-content: center; gap: 8px; transition: background 0.15s;
}
.damage-flag-btn:hover { background: var(--red-bg); }

/* ── Bottom navigation ────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px 6px;
  border: none; background: none; cursor: pointer;
  font-family: var(--font); transition: color 0.15s;
  color: var(--text-muted); position: relative;
}
.bn-item.active { color: var(--orange); }
.bn-item svg { transition: transform 0.15s; }
.bn-item.active svg { transform: scale(1.1); }
.bn-label { font-size: 0.625rem; font-weight: 600; margin-top: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.bn-badge {
  position: absolute; top: 6px; right: 14px;
  background: var(--red); color: white; border-radius: 10px;
  font-size: 0.625rem; font-weight: 700; padding: 1px 5px; min-width: 16px; text-align: center;
}

/* ── Empty states ─────────────────────────────────────────── */
.exp-empty {
  text-align: center; padding: 48px 24px; color: var(--text-muted);
}
.exp-empty svg { opacity: 0.2; margin-bottom: 12px; }
.exp-empty h3 { color: var(--dark); font-size: 1rem; margin-bottom: 6px; }
.exp-empty p  { font-size: 0.875rem; line-height: 1.6; }

/* ── Toast ────────────────────────────────────────────────── */
.exp-toast {
  position: fixed; bottom: calc(var(--bottom-nav) + 12px); left: 16px; right: 16px;
  background: var(--dark-2); color: white; padding: 12px 16px;
  border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500;
  z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}
.exp-toast.success { background: #15803d; }
.exp-toast.error   { background: var(--red); }
.exp-toast.warning { background: var(--amber); }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Rating breakdown card ────────────────────────────────── */
.rating-breakdown {
  display: flex; flex-direction: column; gap: 8px;
}
.rb-row { display: flex; align-items: center; gap: 10px; }
.rb-label { font-size: 0.8125rem; color: var(--text-muted); width: 90px; flex-shrink: 0; }
.rb-bar-bg { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rb-bar-fill { height: 100%; background: var(--gradient); border-radius: 3px; }
.rb-val { font-size: 0.8125rem; font-weight: 700; color: var(--dark); width: 28px; text-align: right; }

/* ── Utilities ────────────────────────────────────────────── */
.exp-divider { height: 8px; background: var(--bg); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.px-16 { padding: 0 16px; }

/* ── Desktop fallback ─────────────────────────────────────────
   This portal is designed mobile-only (390px). Nothing structurally
   prevents an accidental desktop visit, so on wider viewports frame
   the app like a phone instead of stretching it edge-to-edge. */
@media (min-width: 480px) {
  body { background: #e5e7eb; }
  .expert-app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.12);
  }
  .bottom-nav {
    left: 50%;
    right: auto;
    width: 430px;
    max-width: 430px;
    transform: translateX(-50%);
  }
  .exp-toast {
    left: 50%;
    right: auto;
    width: calc(430px - 32px);
    max-width: calc(430px - 32px);
    transform: translateX(-50%);
    animation: none;
  }
  .booking-detail-sheet {
    max-width: 430px;
    margin: 0 auto;
  }
}
