/* ============================================
   Pitbay — screens.css
   Screen-specific layout styles
   ============================================ */

/* ── HOME ── */
#sc-home .promo-banner {
  margin: 0 13px 8px;
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: .5px solid #ffe082;
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
#sc-home .mini-map {
  margin: 0 13px 8px;
  background: #dbeafe;
  border-radius: 12px;
  height: 74px;
  position: relative;
  overflow: hidden;
}
#sc-home .map-pin {
  width: 12px; height: 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
  cursor: pointer;
}
#sc-home .map-user-dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(26,115,232,.2);
}
#sc-home .results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 13px;
  margin-bottom: 7px;
}

/* ── DETAIL ── */
#sc-detail .photo-strip {
  display: flex;
  gap: 6px;
  padding: 9px 13px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
#sc-detail .photo-strip::-webkit-scrollbar { display: none; }
#sc-detail .photo-thumb {
  width: 74px; height: 52px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
#sc-detail .slot-section {
  padding: 10px 13px;
  background: var(--bg-secondary);
  border-top: 3px solid var(--blue);
  display: none;
  flex-shrink: 0;
}
#sc-detail .slot-section.show { display: block; }
#sc-detail .slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 5px 0 6px;
}
#sc-detail .slot-time-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
#sc-detail .date-row {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 4px;
}
#sc-detail .date-row::-webkit-scrollbar { display: none; }

/* ── SUMMARY ── */
#sc-summary .section-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
#sc-summary .promo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 90; display: none; align-items: flex-end;
}
#sc-summary .promo-overlay.show { display: flex; }
#sc-summary .promo-sheet {
  background: var(--bg-primary);
  border-radius: 20px 20px 0 0;
  width: 100%; max-height: 80%; overflow-y: auto;
}
#sc-summary .promo-input-row {
  display: flex; gap: 6px;
  padding: 10px 13px 7px;
}
#sc-summary .promo-text-input {
  flex: 1;
  padding: 8px 11px;
  border: 1px solid var(--border-medium);
  border-radius: 9px; font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-transform: uppercase;
}
#sc-summary .promo-text-input::placeholder { text-transform: none; color: var(--text-tertiary); }
#sc-summary .promo-text-input:focus { outline: none; border-color: var(--blue); }
#sc-summary .promo-apply-btn {
  padding: 8px 12px; background: var(--blue);
  color: #fff; border: none;
  border-radius: 9px; font-size: 14px;
  font-weight: 700; cursor: pointer;
}
#sc-summary .cg {
  font-size: 12px; font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}

/* ── CONFIRMED ── */
#sc-confirmed {
  background: var(--bg-primary);
}

/* ── MANAGE ── */
#sc-manage .manage-map-wrap {
  margin: 0 13px 9px;
  border-radius: 12px; overflow: hidden;
  border: .5px solid var(--border-light);
}
#sc-manage .manage-map {
  height: 82px;
  background: #dbeafe;
  position: relative; cursor: pointer;
}
#sc-manage .manage-map-nav-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,115,232,.9);
  color: #fff; font-size: 12px;
  font-weight: 700; padding: 4px; text-align: center;
}
#sc-manage .manage-info-card {
  padding: 8px 11px;
  background: var(--bg-secondary);
  display: flex; justify-content: space-between; align-items: center;
}
#sc-manage .booking-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
#sc-manage .booking-meta-label { font-size: 12px; color: var(--text-secondary); }
#sc-manage .booking-meta-value { font-size: 12px; font-weight: 700; color: var(--text-primary); }

/* ── BOOKINGS LIST ── */
#sc-bookings .booking-section-label {
  margin: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ── PROFILE ── */
#sc-profile .profile-divider {
  height: 8px; background: var(--bg-secondary);
}

/* ── AT BANNER (location selected toast — top-right corner) ── */
.at-banner {
  position: absolute;
  top: 56px; right: 12px;
  background: var(--navy);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap; pointer-events: none;
}
.at-banner.on { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   LOCATION MODAL — Zepto-style bottom sheet
   ══════════════════════════════════════════════ */

/* Overlay backdrop */
.loc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 99;
  display: none;
  align-items: flex-end;
  transition: background .28s ease;
}
.loc-overlay.open { background: rgba(0,0,0,.52); }

/* Sheet */
.loc-sheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,1.1,.23,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,.18);
  overflow: hidden;
}
.loc-overlay.open .loc-sheet { transform: translateY(0); }

/* Handle */
.loc-handle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
  flex-shrink: 0;
}
.loc-handle {
  width: 36px; height: 4px;
  border-radius: 2px;
  background: #d1d5db;
}

/* Header row */
.loc-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px 10px;
  flex-shrink: 0;
}
.loc-sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.loc-close-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.loc-close-btn:active { background: var(--border-medium); }

/* Map preview */
.loc-map-preview {
  position: relative;
  height: 140px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e8f0fe;
}
.loc-map-pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pin-drop .45s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes pin-drop {
  0%   { transform: translate(-50%,-150%) scale(1.3); opacity: 0; }
  60%  { transform: translate(-50%,-100%) scale(1.05); opacity: 1; }
  100% { transform: translate(-50%,-100%) scale(1); opacity: 1; }
}
.loc-pin-icon  { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.loc-pin-pulse {
  width: 12px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  animation: pulse-shadow .8s ease-in-out infinite alternate;
}
@keyframes pulse-shadow {
  from { transform: scaleX(1);   opacity: .4; }
  to   { transform: scaleX(.6);  opacity: .15; }
}
.loc-map-label {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  background: rgba(255,255,255,.88);
  padding: 3px 10px;
  backdrop-filter: blur(4px);
}

/* Scrollable area inside sheet */
.loc-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.loc-scroll::-webkit-scrollbar { display: none; }

/* Search row */
.loc-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-medium);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.loc-search-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,.1);
  background: #fff;
}
.loc-search-ico { font-size: 16px; flex-shrink: 0; }
.loc-search-input {
  flex: 1; border: none; background: transparent;
  font-size: 15px; color: var(--text-primary);
  outline: none; font-family: inherit;
}
.loc-search-input::placeholder { color: var(--text-tertiary); }
.loc-search-clear {
  font-size: 14px; color: var(--text-tertiary);
  cursor: pointer; flex-shrink: 0; padding: 2px;
}

/* Suggestions dropdown */
.loc-suggestions {
  border: .5px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  display: none;
  box-shadow: var(--shadow-sm);
}
.loc-sug-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: .5px solid var(--border-light);
  transition: background .1s;
}
.loc-sug-item:last-child { border-bottom: none; }
.loc-sug-item:active { background: var(--bg-secondary); }
.loc-sug-area { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* GPS row */
.loc-gps-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all .15s;
  background: #f0f7ff;
}
.loc-gps-row:active { background: #dbeafe; border-color: var(--blue); }
.loc-gps-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  color: #fff;
}
.loc-gps-dot::after { content: '📡'; font-size: 17px; }
.loc-gps-label { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.loc-gps-sub   { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.loc-gps-arrow { font-size: 20px; color: var(--text-tertiary); margin-left: auto; }

/* Section headings */
.loc-section-hd {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: .09em;
  margin-bottom: 8px;
  margin-top: 4px;
}

/* Address list */
.loc-addr-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

/* Address card */
.loc-addr-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: all .18s;
  position: relative;
}
.loc-addr-card:active { background: #f8fbff; }

/* Selected state */
.loc-addr-card.selected {
  border-color: var(--blue);
  background: #f0f7ff;
  box-shadow: 0 2px 12px rgba(26,115,232,.12);
}

.lac-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.lac-body  { flex: 1; min-width: 0; }
.lac-label {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
}
.loc-addr-card.selected .lac-label { color: var(--blue); }
.lac-line {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lac-dist  { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

/* Radio button */
.lac-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s;
}
.loc-addr-card.selected .lac-radio {
  border-color: var(--blue);
  background: var(--blue);
}
.lac-radio-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .15s cubic-bezier(.34,1.56,.64,1);
}
.loc-addr-card.selected .lac-radio-dot { transform: scale(1); }

/* Add new */
.loc-addr-add {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1.5px dashed var(--border-medium);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.loc-addr-add:hover,
.loc-addr-add:active { border-color: var(--blue); background: #f0f7ff; }
.lac-icon-add {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--blue); flex-shrink: 0;
  font-weight: 300;
}

/* Recent chips */
.loc-recent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loc-recent-chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .12s;
}
.loc-recent-chip:active,
.loc-recent-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── MODIFY BOOKING SHEET ── */
.modify-sheet-content {
  padding: 14px;
}
.modify-section-label {
  font-size: 12px; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 5px;
}
.modify-slot-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 4px; margin-bottom: 9px;
}
.modify-slot {
  font-size: 12px; padding: 6px 3px;
  border-radius: 7px; text-align: center;
  border: .5px solid var(--border-light);
  cursor: pointer; color: var(--text-secondary);
  transition: all .12s;
}
.modify-slot.active { background: var(--navy); color: #fff; font-weight: 700; border-color: var(--navy); }
.modify-slot.full   { background: var(--bg-secondary); color: var(--text-tertiary); cursor: not-allowed; text-decoration: line-through; }

/* ── HELP SCREEN ── */
#sc-help .help-contact-card {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px;
  border: .5px solid var(--border-light);
  border-radius: 12px; margin-bottom: 8px;
  background: var(--bg-primary); cursor: pointer;
}

/* ══════════════════════════════════════════════
   AUTH SCREENS (Login & Signup)
   ══════════════════════════════════════════════ */

#sc-login,
#sc-signup {
  background: #f0f6ff;
}

.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  overflow-y: auto;
  height: 100%;
  gap: 0;
}

@media (max-width: 480px) {
  .auth-screen {
    justify-content: center;
  }
}

/* Brand block */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}
.auth-brand-logo {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(26,115,232,.25));
}
.auth-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.5px;
}
.auth-brand-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Card */
.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 22px 18px 18px;
  box-shadow: 0 4px 24px rgba(26,115,232,.10);
  flex-direction: column;
  gap: 0;
}

.auth-card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.auth-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}
.auth-card-sub strong {
  color: var(--blue);
  font-weight: 700;
}

/* Field */
.auth-field-wrap {
  margin-bottom: 13px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.auth-required {
  color: var(--red);
}
.auth-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.auth-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.auth-input::placeholder {
  color: var(--text-tertiary);
}

/* Phone prefix */
.auth-phone-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-medium);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.auth-phone-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.auth-phone-prefix {
  padding: 11px 10px 11px 13px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-right: 1.5px solid var(--border-medium);
  white-space: nowrap;
}
.auth-input-phone {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  padding: 11px 13px;
}

/* Error */
.auth-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  padding: 5px 9px;
  background: #fff5f5;
  border-radius: 7px;
  border: .5px solid #fca5a5;
}

/* Buttons */
.auth-btn {
  margin-top: 14px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* OTP boxes */
.auth-otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 4px;
}
.auth-otp-box {
  width: 40px;
  height: 48px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid var(--border-medium);
  border-radius: 10px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  caret-color: transparent;
}
.auth-otp-box:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

/* Resend row */
.auth-resend-row {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  min-height: 20px;
}
.auth-resend-timer {
  color: var(--text-tertiary);
}
.auth-link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Dev OTP hint */
.auth-dev-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #7c3aed;
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  font-weight: 600;
}
.auth-dev-fill-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
/* Demo accounts box */
.auth-demo-box {
  margin-top: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
}
.auth-demo-label {
  font-size: 13px;
  color: #166534;
  font-weight: 600;
  margin-bottom: 8px;
}
.auth-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.auth-demo-chip {
  background: #fff;
  border: 1px solid #86efac;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 13px;
  color: #166534;
  font-weight: 600;
  cursor: pointer;
}
.auth-demo-chip:active { background: #dcfce7; }
#sc-help .help-contact-card:active { background: var(--bg-secondary); }

/* ── VEHICLE PICKER SHEET ── */
.veh-overlay {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(0,0,0,.52);
  display: none; align-items: flex-end;
}
.veh-overlay.show { display: flex; }
.veh-overlay.show .veh-sheet { transform: translateY(0); }
.veh-sheet {
  width: 100%; background: #ffffff;
  border-radius: 18px 18px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 12px);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,1.01,.46,.98);
  max-height: 80%;
  display: flex; flex-direction: column;
}
.veh-sheet-handle-bar { padding: 9px 0 3px; text-align: center; flex-shrink: 0; }
.veh-sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border-medium); display: inline-block; }
.veh-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 15px 10px; flex-shrink: 0;
}
.veh-sheet-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.veh-sheet-close {
  background: var(--bg-secondary); border: none; border-radius: 50%;
  width: 26px; height: 26px; font-size: 13px; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.veh-list { overflow-y: auto; padding: 0 13px; flex: 1; }

/* Individual card in picker */
.veh-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 12px;
  border: 1.5px solid var(--border-light);
  margin-bottom: 8px; cursor: pointer;
  background: #ffffff; transition: border-color .15s, background .15s;
}
.veh-card.selected { border-color: var(--blue); background: #eff6ff; }
.veh-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.veh-card-body { flex: 1; min-width: 0; }
.veh-card-plate { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.veh-card-model { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* Radio button in picker */
.veh-card-radio { flex-shrink: 0; }
.veh-radio-outer {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-medium);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.veh-card.selected .veh-radio-outer { border-color: var(--blue); }
.veh-radio-inner {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue);
  animation: veh-radio-pop .18s ease;
}
@keyframes veh-radio-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Add vehicle row in picker */
.veh-add-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px 14px; cursor: pointer;
}
.veh-add-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1.5px dashed var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--blue); flex-shrink: 0;
}
.veh-add-label { font-size: 15px; font-weight: 600; color: var(--blue); }
.veh-add-sub { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }

/* Primary badge (used in picker + selected card) */
.veh-primary-badge {
  font-size: 11px; font-weight: 700; color: #15803d;
  background: #dcfce7; border-radius: 6px;
  padding: 1px 6px; display: inline-block; margin-top: 3px;
}

/* Selected vehicle card displayed in summary */
.veh-selected-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #ffffff; cursor: pointer;
  transition: border-color .15s;
}
.veh-selected-card:active { border-color: var(--blue); }
.veh-sel-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0;
}
.veh-sel-body { flex: 1; min-width: 0; }
.veh-sel-plate { font-size: 15px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 7px; }
.veh-size-pill { display: inline-block; font-size: 11px; font-weight: 800; color: var(--blue); background: #eaf1fc; border-radius: 999px; padding: 2px 9px; letter-spacing: .02em; }
.veh-sel-model { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.veh-change-link {
  font-size: 14px; font-weight: 700; color: var(--blue); flex-shrink: 0;
}

/* Empty state when no vehicles */
.veh-empty-card {
  display: flex; align-items: center; gap: 10px;
  padding: 13px; border-radius: 12px;
  border: 1.5px dashed var(--border-medium);
  background: var(--bg-secondary); cursor: pointer;
}
.veh-empty-icon { font-size: 26px; flex-shrink: 0; }
.veh-empty-body { flex: 1; }
.veh-empty-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.veh-empty-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ── NOTIFICATIONS SCREEN ── */
.notif-header-action {
  background: rgba(255,255,255,.15); border: none; border-radius: 8px;
  padding: 5px 9px; font-size: 12px; font-weight: 700; color: #fff;
  cursor: pointer; white-space: nowrap;
}

/* Tabs */
.notif-tabs {
  display: flex; border-bottom: 1.5px solid var(--border-light);
  background: #fff; flex-shrink: 0;
}
.notif-tab {
  flex: 1; text-align: center; padding: 11px 0 9px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; position: relative; border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.notif-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.notif-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  margin-left: 4px; vertical-align: middle;
}

/* Inbox */
.notif-date-label {
  font-size: 12px; font-weight: 700; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 13px 5px;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; cursor: pointer;
  border-bottom: .5px solid var(--border-light);
  transition: background .12s;
}
.notif-item:active { background: var(--bg-secondary); }
.notif-item.unread { background: #f0f7ff; }
.notif-item-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 2px;
}
.notif-item-text {
  font-size: 13px; color: var(--text-secondary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item-time { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.notif-unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 5px;
}
.notif-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
}
.notif-empty-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.notif-empty-sub   { font-size: 13px; color: var(--text-secondary); }

/* Floating "Clear all" button — bottom-right of the notifications screen. */
.notif-clear-fab {
  position: absolute;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;                 /* shown only on the inbox tab with items */
  align-items: center; gap: 6px;
  padding: 11px 16px;
  border: none; border-radius: 24px;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 95, 191, .4);
  cursor: pointer;
}
.notif-clear-fab:active { transform: scale(.96); }

/* Settings */
.notif-ch-group {
  background: var(--bg-secondary); border-radius: 12px;
  padding: 0 13px; margin-bottom: 4px;
}
.notif-ch-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.notif-push-row { display: flex; align-items: center; gap: 10px; }
.notif-perm {
  font-size: 12px; font-weight: 600; border-radius: 5px;
  padding: 1px 6px; display: inline-block;
}
.notif-perm.granted { background: #dcfce7; color: #15803d; }
.notif-perm.denied  { background: #fee2e2; color: #b91c1c; }
.notif-perm.default { background: #fef3c7; color: #92400e; }
.notif-time-chip {
  font-size: 13px; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 8px; padding: 5px 10px;
}

/* ── HELP SCREEN ── */
.help-banner {
  display: flex; align-items: center; gap: 10px;
  background: #eff6ff; border-radius: 12px; padding: 11px 13px;
  margin-bottom: 12px;
}
.help-banner-icon { font-size: 26px; }
.help-icon-wrap {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.help-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.help-card-sub   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.help-card-arrow { font-size: 16px; color: var(--text-tertiary); }

/* FAQ accordion */
.help-faq-group { background: var(--bg-secondary); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.help-faq-item { border-bottom: .5px solid var(--border-light); cursor: pointer; }
.help-faq-item:last-child { border-bottom: none; }
.help-faq-q {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 13px; font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.help-faq-q span { font-size: 18px; flex-shrink: 0; }
.help-faq-a {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  padding: 0 13px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.help-faq-item.open .help-faq-a { padding-bottom: 12px; }

/* ── CALL SHEET ── */
.call-sheet-overlay {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(0,0,0,.52);
  display: none; align-items: flex-end;
}
.call-sheet-overlay.show { display: flex; }
.call-sheet-overlay.show .call-sheet { transform: translateY(0); }
.call-sheet {
  width: 100%; background: #ffffff; border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1.01,.46,.98);
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
.call-sheet-handle-bar { padding: 9px 0 2px; text-align: center; }
.call-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 15px 12px;
}
.call-sheet-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.call-sheet-sub   { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.call-numbers-list { padding: 0 13px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.call-number-card {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px; border-radius: 13px;
  border: 1.5px solid var(--border-light); background: #fff;
}
.call-num-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.call-num-body { flex: 1; min-width: 0; }
.call-num-label   { font-size: 12px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; }
.call-num-display { font-size: 17px; font-weight: 800; color: var(--text-primary); margin: 2px 0; letter-spacing: .02em; }
.call-num-sub     { font-size: 12px; color: var(--text-secondary); }
.call-dial-btn {
  padding: 7px 14px; border: none; border-radius: 9px;
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity .15s;
}
.call-dial-btn:active { opacity: .8; }
.call-dial-btn.wa { background: #16a34a; }

/* ── CHAT SCREEN ── */
#sc-chat {
  display: flex; flex-direction: column;
  background: #eef2f7;
}
.chat-header {
  display: flex; align-items: center; gap: 9px;
  background: var(--blue); padding: 11px 12px;
  flex-shrink: 0;
}
.chat-back-btn {
  background: rgba(255,255,255,.15); border: none; border-radius: 8px;
  color: #fff; font-size: 17px; font-weight: 700;
  width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 9px; flex: 1; }
.chat-header-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.2); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.4);
}
.chat-header-name   { font-size: 15px; font-weight: 700; color: #fff; }
.chat-header-status { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.chat-online-dot    { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-call-icon-btn {
  background: rgba(255,255,255,.15); border: none; border-radius: 8px;
  width: 32px; height: 32px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Messages area */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.chat-row { display: flex; align-items: flex-end; gap: 7px; }
.chat-row-user  { flex-direction: row-reverse; }
.chat-row-admin { flex-direction: row; }
.chat-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.chat-bubble {
  max-width: 72%; padding: 8px 11px; border-radius: 16px;
  word-break: break-word;
}
.chat-bubble-user  {
  background: var(--blue); color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble-admin {
  background: #ffffff; color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.chat-bubble-text { font-size: 14px; line-height: 1.45; }
.chat-bubble-meta {
  font-size: 11px; margin-top: 3px; text-align: right;
  color: rgba(255,255,255,.65);
}
.chat-bubble-admin .chat-bubble-meta { color: var(--text-tertiary); }
.chat-ticks { color: #93c5fd; }

/* Typing indicator */
.chat-typing {
  display: flex; align-items: center; gap: 4px;
  padding: 11px 14px; min-width: 52px;
}
.chat-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #9ca3af;
  animation: chat-dot-bounce .9s infinite ease-in-out;
  display: inline-block;
}
.chat-dot:nth-child(2) { animation-delay: .18s; }
.chat-dot:nth-child(3) { animation-delay: .36s; }
@keyframes chat-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* Quick reply chips */
.chat-quick-wrap {
  display: flex; gap: 7px; padding: 8px 10px; flex-wrap: wrap;
  flex-shrink: 0; background: #eef2f7;
}
.chat-quick {
  font-size: 13px; font-weight: 600; color: var(--blue);
  background: #fff; border: 1.5px solid #bfdbfe;
  border-radius: 20px; padding: 5px 11px; cursor: pointer;
  white-space: nowrap; transition: background .12s;
}
.chat-quick:active { background: #eff6ff; }

/* Input bar */
.chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #fff;
  border-top: .5px solid var(--border-light); flex-shrink: 0;
}
.chat-input {
  flex: 1; border: 1.5px solid var(--border-light); border-radius: 22px;
  padding: 8px 14px; font-size: 14px; outline: none;
  background: #f8f9fa; color: var(--text-primary);
  transition: border-color .15s;
}
.chat-input:focus { border-color: var(--blue); background: #fff; }
.chat-send-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: opacity .15s;
}
.chat-send-btn:active { opacity: .8; }
