/* ==========================================================================
   JYLTOW Pro Mechanic Mobile App Stylesheet
   Pixel-Accurate Parity with Production Mobile Screenshots:
   - mechanic-app-map.png
   - mechanic-app-menu.png
   - regular-request.png
   - urgent-request.png
   ========================================================================== */

/* Main App Viewport */
.mobile-app-root {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

/* Floating Status Toast */
.mobile-toast {
  position: absolute;
  top: 56px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2500;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.mobile-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  background: #10b981;
}

.toast-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 16px;
}

/* Screen Views Container */
.mobile-view-container {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.app-view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  flex-direction: column;
  background: #f8fafc;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 72px; /* Height for 5-icon bottom bar */
}

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

/* ==========================================================================
   VIEW 1: MAP DASHBOARD (EXACT CLONE OF mechanic-app-map.png)
   ========================================================================== */
#view-dashboard {
  padding-bottom: 0;
  overflow: hidden;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 1;
  background: #f1f5f9;
  overflow: hidden;
}

.map-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Real Mechanic Location Pin (from mechanic-app-map.png: dark slate circle with white ring & central blue/white pip) */
.real-mechanic-pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-mechanic-pin::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.real-mechanic-pin::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.25);
  animation: pulseMechanic 2s infinite;
}

.map-pin-mechanic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.map-pin-mechanic.locate-pulse::before {
  animation: locateRadar 1s ease-out 3;
}

@keyframes locateRadar {
  0% { transform: scale(1); opacity: 1; background: rgba(56, 189, 248, 0.6); }
  100% { transform: scale(4); opacity: 0; background: rgba(56, 189, 248, 0); }
}

/* Customer Urgent Request Pin */
.customer-urgent-pin {
  position: absolute;
  top: 36%;
  left: 64%;
  transform: translate(-50%, -50%);
  z-index: 6;
  cursor: pointer;
  padding: 8px;
}

.urgent-pin-inner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dc2626;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.55);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.urgent-pin-inner::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.urgent-pin-inner::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.35);
  animation: pulseUrgentPin 1.5s infinite;
}

@keyframes pulseUrgentPin {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes pulseMechanic {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Floating Map Buttons (Left: Layers, Right: Crosshair / Locate) */
.map-btn-layers {
  position: absolute;
  left: 16px;
  bottom: 175px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.map-btn-locate {
  position: absolute;
  right: 16px;
  bottom: 175px;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.map-btn-layers:hover, .map-btn-locate:hover {
  background: #f8fafc;
  transform: scale(1.05);
}

/* TOP FLOATING CONTROLS: TOP BAR & SECOND ROW PILL */
.map-top-controls {
  position: absolute;
  top: 50px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.top-pills-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hamburger Circle Button (Left) */
.hamburger-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hamburger-circle-btn:active {
  transform: scale(0.92);
}

/* Smart Filtering Center Pill */
.smart-filtering-pill {
  height: 44px;
  padding: 0 20px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

/* Live Toggle Pill (Right) */
.live-toggle-pill {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 2px solid #10b981;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #065f46;
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-toggle-pill.offline {
  border-color: #ef4444;
  color: #991b1b;
}

.live-toggle-switch-icon {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: #10b981;
  position: relative;
  display: flex;
  align-items: center;
}

.live-toggle-pill.offline .live-toggle-switch-icon {
  background: #ef4444;
}

.live-toggle-switch-knob {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: #ffffff;
  position: absolute;
  right: 2px;
  transition: all 0.2s ease;
}

.live-toggle-pill.offline .live-toggle-switch-knob {
  right: auto;
  left: 2px;
}

/* SECOND ROW PILL: SERVICES | GPS | NET */
.status-meta-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.status-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-meta-divider {
  width: 1px;
  height: 12px;
  background: #e2e8f0;
}

/* NOTIFICATION CARD 1: SERVICE REQUESTS (Upper Center) */
.service-request-banner-container {
  position: absolute;
  top: 175px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-request-pill-label {
  background: #ea580c;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: -10px;
  z-index: 21;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.service-request-card {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #ea580c;
  border-radius: 20px;
  padding: 14px 16px 14px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-request-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.15);
}

.service-request-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.service-doc-icon-wrapper {
  position: relative;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unread-red-pip {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1px solid #ffffff;
}

.service-request-text {
  flex: 1;
  min-width: 0;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-title-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.service-new-tag {
  background: #ea580c;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.service-subtitle-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* NOTIFICATION CARD 2: URGENT DISPATCH (Bottom Anchored) */
.urgent-dispatch-banner-container {
  position: absolute;
  bottom: 74px; /* Above 64px bottom tab bar */
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.urgent-dispatch-pill-label {
  color: #ef4444;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.urgent-dispatch-card {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #ef4444;
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.urgent-dispatch-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.urgent-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.urgent-clock-circle {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #fef2f2;
  border: 1.5px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  flex-shrink: 0;
}

.urgent-text-block {
  flex: 1;
  min-width: 0;
}

.urgent-title-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.urgent-sub-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   BOTTOM 5-ICON TAB BAR (EXACT CLONE OF mechanic-app-map.png)
   ========================================================================== */
.mobile-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: 6px;
}

.tab-icon-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}

.tab-icon-btn.active {
  color: #0f172a;
}

.tab-red-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

/* ==========================================================================
   DRAWER MENU (EXACT CLONE OF mechanic-app-menu.png)
   ========================================================================== */
.drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 275px;
  max-width: 72%;
  background: #ffffff;
  z-index: 501;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.open .drawer-sidebar {
  transform: translateX(0);
}

.drawer-top-section {
  padding: 50px 20px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-close-x {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  display: flex;
}

.drawer-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-brand-name {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.drawer-mechanic-pill {
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid #f8fafc;
  color: #1e293b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
  width: 100%;
}

.drawer-nav-item:hover, .drawer-nav-item:active {
  background: #f8fafc;
}

.drawer-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #475569;
}

.drawer-nav-item:hover .drawer-nav-left {
  color: #ea580c;
}

.drawer-footer-section {
  padding: 16px 20px 24px;
  border-top: 1px solid #f1f5f9;
}

.drawer-signout-btn {
  width: 100%;
  padding: 12px;
  background: #fef2f2;
  border: none;
  border-radius: 12px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drawer-signout-btn:hover {
  background: #fee2e2;
}

/* ==========================================================================
   VIEW 4: REGULAR REQUESTS (EXACT CLONE OF regular-request.png)
   ========================================================================== */
.regular-screen-header {
  padding: 50px 16px 0;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.regular-subtabs-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.reg-subtab-btn {
  background: none;
  border: none;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.reg-subtab-btn.active {
  color: #0f172a;
}

.reg-subtab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ea580c;
  border-radius: 2px 2px 0 0;
}

.reg-subtab-badge {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.regular-screen-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Summary Card with Giant 1 */
.regular-count-hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.giant-orange-number {
  font-size: 48px;
  font-weight: 900;
  color: #ea580c;
  line-height: 1;
}

.hero-new-request-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Request Item Card with Red Left Stripe */
.regular-job-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #ef4444;
  display: flex;
  flex-direction: column;
}

.job-card-top-banner {
  background: #fffbeb;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.banner-unread-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-card-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
}

.job-service-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.job-card-footer {
  padding: 12px 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-date-text {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-send-offer-card {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-send-offer-card:hover {
  background: #c2410c;
}

/* ==========================================================================
   VIEW: URGENT REQUEST DETAILS (EXACT CLONE OF urgent-request.png)
   ========================================================================== */
.modal-urgent-details,
.modal-regular-offer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 600;
  display: none;
  flex-direction: column;
  animation: slideUpDetails 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-urgent-details.open,
.modal-regular-offer.open {
  display: flex;
}

.offer-details-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-details-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-customer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.offer-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.offer-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-price-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  transition: border-color 0.15s;
}

.offer-price-input-wrap:focus-within {
  border-color: #ea580c;
}

.offer-currency-tag {
  font-size: 14px;
  font-weight: 800;
  color: #ea580c;
  margin-right: 6px;
}

.offer-price-input {
  flex: 1;
  border: none;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
}

.offer-form-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-offer-decline {
  flex: 1;
  padding: 13px 0;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-offer-decline:hover {
  background: #f8fafc;
}

.btn-offer-submit {
  flex: 2;
  padding: 13px 0;
  border-radius: 12px;
  border: none;
  background: #ea580c;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: all 0.15s;
}

.btn-offer-submit:hover {
  background: #c2410c;
}

.btn-offer-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.offer-simulation-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #1e40af;
}

.btn-simulate-accept {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s;
}

.btn-simulate-accept:hover {
  background: #1d4ed8;
}

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

.urgent-details-topbar {
  padding: 50px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.btn-details-close {
  background: none;
  border: none;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.urgent-details-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.urgent-details-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Distance Information Card */
.distance-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.distance-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.distance-large-value {
  font-size: 38px;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
  margin: 10px 0 4px;
}

.distance-sub-text {
  font-size: 12.5px;
  color: #64748b;
  max-width: 260px;
}

/* URGENT REQUEST Outline Box */
.urgent-request-outline-box {
  background: #ffffff;
  border: 1.5px solid #ef4444;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.urgent-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.urgent-box-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* Platform Base Rate Box */
.platform-rate-box {
  background: #fef2f2;
  border: 1.5px dashed #fca5a5;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-rate-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
}

.platform-rate-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-rate-amount-row span {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.platform-rate-amount-row strong {
  font-size: 20px;
  font-weight: 900;
  color: #ef4444;
}

.platform-rate-footnote {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
  line-height: 1.4;
}

/* ACCEPT NOW Red Button */
.btn-accept-now {
  width: 100%;
  padding: 16px;
  background: #ef4444;
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: all 0.15s ease;
}

.btn-accept-now:hover {
  background: #dc2626;
}

/* ==========================================================================
   VIEW 3: SETTINGS (Service Radius & Roster)
   ========================================================================== */
/* ==========================================================================
   GENERIC SUBVIEW TOPBAR & BACK NAVIGATION
   ========================================================================== */
.subview-topbar {
  padding: 48px 16px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.subview-back-btn {
  background: none;
  border: none;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.subview-title-wrap {
  text-align: center;
  flex: 1;
}

.subview-page-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.subview-page-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.subview-content-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   SCREEN 1: MY PROFILE STYLES
   ========================================================================== */
.profile-avatar-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffedd5;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
  margin-bottom: 4px;
  position: relative;
}

.profile-avatar-camera-pip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #0f172a;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name-text {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.profile-cert-badge {
  background: #ffedd5;
  color: #ea580c;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.profile-info-section-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #f8fafc;
}

.profile-field-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.profile-field-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.account-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d1fae5;
}

.account-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ==========================================================================
   SCREEN 2: AUTO-OFFER SETTINGS STYLES
   ========================================================================== */
.auto-offer-info-banner {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1e40af;
  font-size: 12.5px;
  line-height: 1.45;
}

.auto-offer-service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-offer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auto-offer-service-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.auto-offer-service-type {
  font-size: 11.5px;
  color: #64748b;
}

.auto-offer-expanded-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.price-type-selector-pills {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
}

.price-type-pill {
  flex: 1;
  padding: 6px 0;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.price-type-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.auto-offer-input-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-offer-input-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.auto-offer-input-field {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.auto-offer-textarea {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  color: #0f172a;
  resize: none;
  font-family: inherit;
  outline: none;
}

.btn-save-auto-offer {
  width: 100%;
  padding: 14px;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   SCREEN 3: MY SERVICES STYLES
   ========================================================================== */
.services-group-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.my-service-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  gap: 10px;
}

.my-service-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.my-service-accepted-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.my-service-request-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.my-service-request-btn.pending {
  background: #fff7ed;
  border-color: #ea580c;
  color: #ea580c;
}

/* ==========================================================================
   SCREEN 5: REVIEWS STYLES
   ========================================================================== */
.reviews-hero-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 18px;
}

.reviews-score-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reviews-score-big {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.reviews-stars-row {
  color: #ea580c;
  font-size: 14px;
  margin: 4px 0 2px;
}

.reviews-total-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.reviews-bars-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reviews-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #64748b;
}

.reviews-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #f1f5f9;
  overflow: hidden;
}

.reviews-bar-fill {
  height: 100%;
  background: #ea580c;
  border-radius: 3px;
}

.review-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.review-author-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.review-vehicle-tag {
  font-size: 11.5px;
  color: #64748b;
}

.review-comment-text {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
}

.review-date-foot {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   SCREEN 6: REFERRAL STYLES
   ========================================================================== */
.referral-code-card {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

.referral-box-inner {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.referral-code-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.referral-copy-btn {
  background: #ffffff;
  color: #ea580c;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.referral-copy-btn.copied {
  background: #10b981;
  color: #ffffff;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.referral-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.referral-stat-number {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

.referral-stat-lbl {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  margin-top: 2px;
}

.referral-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
}

.referral-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: #ffedd5;
  color: #ea580c;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   SCREEN 9: HELP CENTER STYLES
   ========================================================================== */
.help-contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.help-contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.help-contact-card:hover {
  border-color: #ea580c;
  transform: translateY(-2px);
}

.help-contact-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #ffedd5;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.faq-question-btn {
  padding: 14px 16px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  gap: 8px;
}

.faq-answer-body {
  padding: 0 16px 14px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  border-top: 1px solid #f8fafc;
  display: none;
}

.faq-accordion-item.open .faq-answer-body {
  display: block;
  padding-top: 10px;
}

.faq-accordion-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ==========================================================================
   AUTHENTIC SETTINGS SCREEN (MechanicServiceSettingsScreen.tsx)
   ========================================================================== */
#view-settings {
  padding-bottom: 0;
  overflow: hidden;
  height: 100%;
}

.settings-compact-header {
  background: #f1f5f9;
  padding: 52px 18px 14px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 10;
}

.settings-header-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.settings-compact-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.2;
}

.settings-compact-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 500;
}

.settings-scroll-content {
  padding: 14px 14px 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  flex: 1;
  min-height: 0;
}

.settings-section-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.settings-card-header {
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f8fafc;
  background: #fcfdff;
}

.settings-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
}

.settings-count-pill {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.settings-guide-container {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.settings-guide-text {
  font-size: 12px;
  color: #64748b;
  line-height: 16px;
  font-weight: 500;
  margin: 0;
}

.services-approved-card {
  padding: 14px 12px;
}

.services-approved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-approved-chip {
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.service-approved-chip:hover {
  border-color: #cbd5e1;
}

.service-approved-chip.active {
  background: #f0fdf4;
  border-color: #bbf7d0;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.1);
}

.service-approved-chip-text {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  margin-right: 6px;
  flex: 1;
}

.service-approved-chip.active .service-approved-chip-text {
  color: #166534;
  font-weight: 700;
}

/* Radius Card */
.radius-card-body {
  padding: 16px;
}

.distance-display-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.current-distance-num {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.distance-unit-display {
  font-size: 15px;
  color: #64748b;
  font-weight: 700;
  margin-left: 6px;
}

.distance-options-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.distance-option-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.distance-option-btn:hover {
  border-color: #e2e8f0;
}

.distance-option-btn.selected {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  color: #b45309;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.distance-footer-label {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin: 12px 0 0;
}

/* System Preferences Rows */
.settings-system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.settings-system-row:last-child {
  border-bottom: none;
}

.settings-system-info {
  flex: 1;
  margin-right: 14px;
}

.settings-system-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.settings-system-subtext {
  font-size: 12px;
  color: #64748b;
  line-height: 16px;
}

.settings-toggle-icon-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.1s ease;
}

.settings-toggle-icon-btn:active {
  transform: scale(0.92);
}

/* iOS Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 26px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .switch-slider {
  background-color: #10b981;
}

input:checked + .switch-slider:before {
  transform: translateX(18px);
}

/* ==========================================================================
   VIEW 5: SCHEDULE / CALENDAR (MechanicCalendarScreen.tsx)
   ========================================================================== */
#view-schedule {
  padding-bottom: 0;
  overflow: hidden;
  height: 100%;
  background: #ffffff;
}

.calendar-header-row {
  display: flex;
  align-items: center;
  padding: 50px 18px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  z-index: 10;
}

.calendar-nav-btn {
  width: 38px;
  height: 38px;
  background: #f9fafb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3f4f6;
  cursor: pointer;
  color: #0f172a;
  transition: all 0.15s ease;
}

.calendar-nav-btn:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.calendar-header-title-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-header-month {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.calendar-header-year {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-top: 1px;
}

.calendar-today-btn {
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
}

.calendar-today-btn:hover {
  opacity: 0.9;
}

.calendar-tabs-container {
  padding: 10px 18px 6px;
  background: #ffffff;
  flex-shrink: 0;
}

.calendar-tabs-pill {
  display: flex;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

.calendar-view-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-view-tab.active {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calendar-scroll-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 10px 18px 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Calendar Card */
.calendar-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 10px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.calendar-week-row {
  display: flex;
  margin-bottom: 10px;
}

.calendar-day-label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.calendar-days-grid {
  display: flex;
  flex-wrap: wrap;
}

.calendar-day-cell {
  width: calc(100% / 7);
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}

.calendar-day-cell:hover:not(.empty):not(.selected) {
  background: #f8fafc;
}

.calendar-day-cell.empty {
  cursor: default;
}

.calendar-day-cell.selected {
  background: #ea580c !important;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.calendar-day-cell.today:not(.selected) {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.calendar-day-number {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

.calendar-day-cell.selected .calendar-day-number {
  color: #ffffff;
  font-weight: 800;
}

.calendar-day-cell.today:not(.selected) .calendar-day-number {
  color: #ea580c;
  font-weight: 800;
}

.calendar-day-indicator-box {
  height: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 2px;
}

.calendar-job-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #ea580c;
}

.calendar-day-cell.selected .calendar-job-dot {
  background: #ffffff;
}

/* Day View Mode */
.calendar-day-view-selector {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.calendar-day-digit-pill {
  display: flex;
  align-items: center;
  background: #f9fafb;
  padding: 12px 24px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
}

.calendar-day-digit-text {
  font-size: 42px;
  font-weight: 900;
  color: #ea580c;
  line-height: 1;
}

.calendar-day-divider {
  width: 2px;
  height: 36px;
  background: #e5e7eb;
  margin: 0 16px;
}

.calendar-day-subtext {
  font-size: 15px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Agenda Section */
.calendar-agenda-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

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

.calendar-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.4px;
}

.calendar-job-count-badge {
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.calendar-empty-container {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 20px;
  border: 2px dashed #e2e8f0;
  gap: 6px;
}

.calendar-empty-text {
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
}

.calendar-job-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-job-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.calendar-job-accent {
  width: 5px;
  align-self: stretch;
  background: #ea580c;
  flex-shrink: 0;
}

.calendar-job-accent.completed {
  background: #22c55e;
}

.calendar-job-content {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.calendar-job-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #000000;
}

.calendar-status-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-status-tag.booked {
  background: #fff7ed;
  color: #ea580c;
}

.calendar-status-tag.done {
  background: #dcfce7;
  color: #166534;
}

.calendar-job-subrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.calendar-job-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ea580c;
  font-weight: 700;
}

.calendar-job-chevron {
  padding-right: 14px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
}

/* Overview Section */
.calendar-overview-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.calendar-overview-title {
  font-size: 17px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.4px;
}

.calendar-summary-grid {
  display: flex;
  gap: 10px;
}

.calendar-summary-item {
  flex: 1;
  padding: 14px 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calendar-summary-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.calendar-summary-val {
  font-size: 22px;
  font-weight: 900;
  color: #000000;
  line-height: 1.1;
}

.calendar-summary-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   VIEW 2: HISTORY (Dispatches History)
   ========================================================================== */
.history-content-wrapper {
  padding: 50px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   DRAWER SCREENS: BILLING & VERIFICATION
   ========================================================================== */
.drawer-subview-wrapper {
  padding: 50px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-hero-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 20px;
  padding: 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.balance-amount {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.btn-instant-payout {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Verification Clean Box */
.verification-approved-box {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.verif-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW: REQUEST DETAILS & SUBMIT OFFER (EXACT REACT NATIVE CLONE)
   Matches src/screens/mechanic/MechanicRequestDetailsScreen.tsx
   ========================================================================== */
#view-request-details {
  padding-bottom: 32px;
}

.request-details-header-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  padding: 44px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.request-details-header-bar .header-back-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.request-details-header-bar .header-back-btn:hover {
  background: #f1f5f9;
}

.request-details-header-bar .header-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  flex: 1;
  letter-spacing: -0.2px;
}

.request-details-scroll-content {
  padding: 14px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header Card (styles.headerCard) */
.rn-header-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.rn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rn-status-badge.pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.rn-status-badge.accepted {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}

.rn-status-badge.completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.rn-status-badge.urgent {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.rn-header-id {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.rn-header-service-title {
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.rn-header-subservice-title {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 600;
  margin: 0;
}

.rn-header-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 4px;
}

.rn-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rn-meta-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rn-meta-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.rn-call-pill-btn {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rn-call-pill-btn:hover {
  background: #d1fae5;
}

/* Section Cards (styles.sectionCard) */
.rn-section-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rn-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f8fafc;
  padding-bottom: 8px;
}

.rn-section-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rn-section-icon-circle.wrench {
  background: #ecfdf5;
  color: #059669;
}

.rn-section-icon-circle.doc {
  background: #f5f3ff;
  color: #7c3aed;
}

.rn-section-icon-circle.car {
  background: #fff7ed;
  color: #ea580c;
}

.rn-section-icon-circle.pin {
  background: #fef2f2;
  color: #dc2626;
}

.rn-section-icon-circle.gauge {
  background: #eff6ff;
  color: #2563eb;
}

.rn-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.2px;
}

.rn-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rn-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.rn-details-label {
  color: #64748b;
  font-weight: 600;
}

.rn-details-value {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.rn-details-value.hidden-text {
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}

.rn-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rn-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.rn-customer-notes-box {
  background: #f8fafc;
  border-left: 3.5px solid #8b5cf6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  font-style: italic;
}

.rn-lock-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px dashed #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
  line-height: 1.4;
}

/* Submit Offer Form Section (styles.offerFormSection) */
.rn-offer-form-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rn-form-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rn-form-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  flex-shrink: 0;
}

.rn-form-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rn-form-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0 0;
}

.rn-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rn-form-label {
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rn-price-type-row {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.rn-price-type-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rn-price-type-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rn-currency-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  pointer-events: none;
}

.currency-suffix {
  position: absolute;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  pointer-events: none;
}

.rn-input-field {
  width: 100%;
  padding: 10px 48px 10px 30px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.rn-input-field:focus {
  border-color: #ea580c;
}

.rn-price-range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rn-duration-selector-row {
  display: flex;
  gap: 10px;
}

.rn-duration-col {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rn-duration-unit-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.rn-duration-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  transition: border-color 0.2s ease;
}

.rn-duration-btn:hover {
  border-color: #ea580c;
}

.rn-duration-summary {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  margin-top: 2px;
}

.rn-char-counter {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.rn-textarea-field {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  resize: none;
  outline: none;
  line-height: 1.45;
  transition: border-color 0.2s ease;
}

.rn-textarea-field:focus {
  border-color: #ea580c;
}

.rn-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.rn-btn-decline {
  flex: 1;
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}

.rn-btn-decline:hover {
  background: #e2e8f0;
}

.rn-btn-submit {
  flex: 2;
  padding: 12px;
  background: #ea580c;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.rn-btn-submit:hover {
  background: #c2410c;
}

.rn-btn-submit:active {
  transform: scale(0.98);
}

/* Distance Container */
.rn-distance-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 4px;
  text-align: center;
}

.rn-distance-large-val {
  font-size: 32px;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: -0.5px;
  line-height: 1;
}

.rn-distance-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* Emergency Accept Section (styles.emergencyAcceptSection) */
.rn-emergency-accept-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1.5px solid #fecaca;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rn-emergency-accept-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-size: 15px;
  font-weight: 800;
}

.rn-emergency-accept-body {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.rn-platform-rate-box {
  background: #fef2f2;
  border: 1.5px dashed #fecaca;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rn-platform-rate-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
}

.rn-platform-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rn-platform-rate-row span {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.rn-platform-rate-row strong {
  font-size: 20px;
  font-weight: 900;
  color: #ef4444;
}

.rn-platform-rate-footnote {
  font-size: 11.5px;
  color: #64748b;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}

.rn-accept-emergency-btn {
  width: 100%;
  padding: 14px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.rn-accept-emergency-btn:hover {
  background: #dc2626;
}

.rn-accept-emergency-btn:active {
  transform: scale(0.98);
}

/* My Offer Card (Post-submission state) */
.rn-my-offer-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rn-my-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rn-my-offer-title {
  font-size: 15px;
  font-weight: 800;
  color: #166534;
}

.rn-my-offer-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rn-my-offer-price {
  font-size: 22px;
  font-weight: 900;
  color: #14532d;
}

.rn-my-offer-duration {
  font-size: 12.5px;
  font-weight: 700;
  color: #15803d;
}

.rn-my-offer-desc {
  font-size: 12.5px;
  color: #166534;
  line-height: 1.45;
  font-style: italic;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.rn-my-offer-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #15803d;
  line-height: 1.4;
}

.rn-simulate-accept-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  transition: background 0.15s ease;
}

.rn-simulate-accept-btn:hover {
  background: #1e293b;
}

.rn-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ea580c;
  display: inline-block;
  animation: rnPulse 1.4s infinite;
}

@keyframes rnPulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Pre-Acceptance Direct Chat Preview */
.rn-chat-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rn-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.rn-chat-header-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.rn-chat-online-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.rn-chat-messages-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.rn-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
}

.rn-chat-msg.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.rn-chat-msg.outgoing .rn-msg-bubble {
  background: #ea580c;
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
}

.rn-chat-msg.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.rn-chat-msg.incoming .rn-msg-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 12px 12px 12px 2px;
}

.rn-msg-bubble {
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.4;
}

.rn-msg-time {
  font-size: 10px;
  color: #94a3b8;
  padding: 0 4px;
}

.rn-chat-input-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.rn-chat-input-field {
  flex: 1;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12.5px;
  outline: none;
  background: #f8fafc;
  transition: border-color 0.2s ease;
}

.rn-chat-input-field:focus {
  border-color: #ea580c;
  background: #ffffff;
}

.rn-chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ea580c;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rn-chat-send-btn:hover {
  background: #c2410c;
}

/* Accepted Progress Timeline */
.rn-timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 12px 0 6px;
}

.rn-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.rn-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
}

.rn-timeline-step.completed .rn-step-dot {
  background: #10b981;
  box-shadow: 0 0 0 1px #10b981;
}

.rn-step-title {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.rn-timeline-step.completed .rn-step-title {
  color: #065f46;
  font-weight: 800;
}

.rn-action-main-btn {
  width: 100%;
  padding: 13px;
  background: #ea580c;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease, transform 0.1s ease;
}

.rn-action-main-btn:active {
  transform: scale(0.98);
}

#modal-duration-picker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: flex-end;
}

#modal-duration-picker.open {
  display: flex;
}

/* Duration Picker Sheet */
.duration-picker-sheet {
  width: 100%;
  max-height: 55%;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.duration-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.duration-sheet-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.duration-options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 240px;
}

.duration-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.15s ease;
}

.duration-option-item:hover {
  background: #f8fafc;
}

.duration-option-item.selected {
  background: #f0f9ff;
  color: #0284c7;
}


