/**
 * KaamKaaj Partner v10 - Light Mode Edition
 * Theme: Orange (#FF6B00) + Light Blue (#0284C7 / #E0F2FE) + Clean White
 * Full-screen real app design without fake status bars or external simulation bars
 */

:root {
  /* Brand Core Colors */
  --kk-orange: #FF6B00;
  --kk-orange-hover: #E56000;
  --kk-orange-light: #FFF7ED;
  --kk-orange-glow: rgba(255, 107, 0, 0.25);
  --kk-orange-gradient: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);

  /* Blue & Light Blue Core */
  --kk-blue: #0B63E5;
  --kk-blue-dark: #074BB5;
  --kk-blue-light: #F0F9FF;
  --kk-blue-subtle: #E0F2FE;
  --kk-blue-accent: #0284C7;
  --kk-blue-gradient: linear-gradient(135deg, #0B63E5 0%, #0284C7 100%);

  /* Accents */
  --kk-emerald: #10B981;
  --kk-emerald-light: #ECFDF5;
  --kk-rose: #EF4444;
  --kk-rose-light: #FEF2F2;
  --kk-amber: #F59E0B;
  --kk-amber-light: #FFFBEB;

  /* Surfaces & Canvas (Light Theme) */
  --bg-page: #F1F5F9;
  --bg-app: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F8FAFC;
  --bg-input: #F8FAFC;
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: rgba(255, 107, 0, 0.5);

  /* Typography Colors */
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverted: #FFFFFF;

  /* Elevations & Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 12px 32px rgba(11, 99, 229, 0.15);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   RESET & GLOBAL SETUP
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Smooth Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ==========================================================================
   APP CONTAINER (REAL MOBILE / DESKTOP RESPONSIVE SCREEN)
   No fake phone frame, no fake status bar with clock
   ========================================================================== */
.partner-app-container {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 900px) {
  .partner-app-container {
    margin: 16px auto;
    min-height: calc(100vh - 32px);
    max-height: 94vh;
    border-radius: var(--r-xl);
    border: 1px solid var(--border-light);
  }
}

/* ==========================================================================
   SPLASH INTRO SCREEN
   ========================================================================== */
.partner-splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F9FF 50%, #FFF7ED 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.partner-splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: splashPop 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.splash-logo-wrap {
  width: 100px;
  height: 100px;
  border-radius: var(--r-xl);
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.splash-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-logo-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.25) 0%, transparent 70%);
  z-index: -1;
  animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.splash-brand-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}
.splash-brand-title span {
  color: var(--kk-orange);
}

.splash-badge {
  background: var(--kk-blue-subtle);
  color: var(--kk-blue);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
  border: 1px solid rgba(11, 99, 229, 0.2);
}

.splash-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 260px;
  line-height: 1.4;
}

.splash-loader-bar {
  width: 140px;
  height: 5px;
  background: #E2E8F0;
  border-radius: var(--r-full);
  margin-top: 18px;
  overflow: hidden;
  position: relative;
}

.splash-loader-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--kk-orange-gradient);
  border-radius: var(--r-full);
  animation: splashLoad 1.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashLoad {
  0% { width: 0%; }
  50% { width: 65%; }
  100% { width: 100%; }
}

/* ==========================================================================
   APP HEADER & MASTER DUTY SWITCH
   ========================================================================== */
.partner-top-nav {
  padding: 14px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 70;
  box-shadow: var(--shadow-xs);
}

.partner-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.partner-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.partner-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--kk-blue-subtle);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--kk-emerald);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.partner-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-name-row h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--kk-amber-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #D97706;
  padding: 1px 7px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
}

.partner-category-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Duty Switcher (Online / Offline) */
.duty-toggle-container {
  display: flex;
  align-items: center;
}

.duty-switch {
  position: relative;
  display: inline-block;
  width: 104px;
  height: 38px;
  cursor: pointer;
}

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

.duty-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E2E8F0;
  border: 1px solid #CBD5E1;
  border-radius: var(--r-full);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  overflow: hidden;
}

.duty-slider::before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.duty-switch input:checked + .duty-slider {
  background: #ECFDF5;
  border-color: #10B981;
}

.duty-switch input:checked + .duty-slider::before {
  transform: translateX(66px);
  background-color: #10B981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

.duty-label-online,
.duty-label-offline {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 1;
}

.duty-label-online {
  color: #059669;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.duty-label-offline {
  color: #64748B;
  display: none;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}

.duty-switch input:not(:checked) + .duty-slider .duty-label-online {
  display: none;
}
.duty-switch input:not(:checked) + .duty-slider .duty-label-offline {
  display: flex;
}

/* ==========================================================================
   SCREENS CONTAINER
   ========================================================================== */
.partner-screens-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #F8FAFC;
}

.partner-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.partner-screen.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.screen-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 96px; /* Space for bottom dock */
}

/* Sub-screen header */
.sub-screen-header {
  padding: 14px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sub-screen-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.sub-header-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--kk-blue-subtle);
  border: 1px solid rgba(11, 99, 229, 0.15);
  border-radius: var(--r-full);
  color: var(--kk-blue);
}

/* ==========================================================================
   DASHBOARD SCREEN
   ========================================================================== */

/* Duty Status Radar Banner */
.duty-status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all 0.3s;
}

.duty-status-banner.online {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0F9FF 100%);
  border-color: #A7F3D0;
}

.duty-status-banner.offline {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.duty-pulse-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D1FAE5;
  color: #059669;
  font-size: 16px;
  flex-shrink: 0;
}
.duty-status-banner.offline .duty-pulse-icon {
  background: #E2E8F0;
  color: #64748B;
}

.pulse-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0.8;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.duty-status-banner.offline .pulse-wave {
  display: none;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.duty-banner-text {
  display: flex;
  flex-direction: column;
}
.duty-banner-text strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.duty-banner-text small {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Daily Target Widget */
.daily-goal-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.goal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.goal-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--kk-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}
.goal-percent-pill {
  font-size: 11px;
  font-weight: 800;
  background: var(--kk-orange);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--r-full);
}

.goal-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #FED7AA;
  border-radius: var(--r-full);
  overflow: hidden;
}
.goal-progress-fill {
  height: 100%;
  width: 82%;
  background: var(--kk-orange-gradient);
  border-radius: var(--r-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.goal-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Active Dispatch Alert Card */
.active-job-alert-card {
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
  border: 1.5px solid var(--kk-blue);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  animation: glow-pulse 2.5s infinite alternate ease-in-out;
}
@keyframes glow-pulse {
  0% { border-color: var(--kk-blue); box-shadow: 0 4px 14px rgba(11, 99, 229, 0.15); }
  100% { border-color: var(--kk-blue-accent); box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25); }
}

.active-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.active-job-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--kk-blue);
  display: flex;
  align-items: center;
  gap: 5px;
}
.active-job-eta {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--kk-blue-dark);
  background: rgba(11, 99, 229, 0.1);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.active-job-content h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}
.active-job-content p {
  font-size: 12px;
  color: var(--text-secondary);
}
.active-job-loc {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.active-job-footer {
  font-size: 12px;
  font-weight: 700;
  color: var(--kk-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card.primary-gradient {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border-color: rgba(255, 107, 0, 0.3);
}

.metric-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--kk-orange-light);
  color: var(--kk-orange);
}
.metric-icon-wrap.icon-cyan {
  background: var(--kk-blue-subtle);
  color: var(--kk-blue);
}
.metric-icon-wrap.icon-orange {
  background: var(--kk-amber-light);
  color: var(--kk-amber);
}
.metric-icon-wrap.icon-emerald {
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
}

.metric-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.metric-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.metric-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0;
}
.metric-note {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Quick Partner Controls */
.quick-actions-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title-row h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-title-row small,
.section-title-row .see-more-link {
  font-size: 12px;
  color: var(--text-muted);
}
.see-more-link {
  color: var(--kk-orange);
  text-decoration: none;
  font-weight: 700;
}

.quick-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.quick-chip-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}
.quick-chip-btn:hover {
  border-color: var(--kk-blue);
  color: var(--kk-blue);
}
.quick-chip-btn.active {
  background: var(--kk-blue-subtle);
  border-color: rgba(11, 99, 229, 0.3);
  color: var(--kk-blue);
  font-weight: 700;
}

/* Inquiries & Callbacks Stream */
.leads-stream-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge-count {
  font-size: 10px;
  font-weight: 800;
  background: var(--kk-orange-light);
  color: var(--kk-orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

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

.inquiry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s;
}
.inquiry-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

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

.inquiry-monogram {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--kk-blue-subtle);
  border: 1px solid rgba(11, 99, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--kk-blue);
  flex-shrink: 0;
}

.inquiry-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.inquiry-name-time {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inquiry-name-time strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inquiry-name-time small {
  font-size: 11px;
  color: var(--text-muted);
}
.inquiry-service {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inquiry-loc {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.inquiry-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.inquiry-call-btn,
.inquiry-wa-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.inquiry-call-btn {
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.inquiry-call-btn:hover {
  background: var(--kk-emerald);
  color: #FFFFFF;
}
.inquiry-wa-btn {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.3);
}
.inquiry-wa-btn:hover {
  background: #16A34A;
  color: #FFFFFF;
}

/* ==========================================================================
   NEED BOARD SCREEN & CARDS
   ========================================================================== */
.need-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.need-tab {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.need-tab:hover {
  border-color: var(--kk-orange);
  color: var(--kk-orange);
}
.need-tab.active {
  background: var(--kk-orange-gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 10px var(--kk-orange-glow);
}

.need-board-cards-list,
.need-cards-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.need-board-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.need-board-card:hover {
  border-color: var(--kk-orange);
  box-shadow: var(--shadow-md);
}
.need-board-card.compact {
  padding: 12px 14px;
}

.need-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.need-lead-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--kk-orange-light);
  color: var(--kk-orange);
  border: 1px solid rgba(255, 107, 0, 0.25);
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.need-posted-time {
  font-size: 11px;
  color: var(--text-muted);
}

.need-job-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.need-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.need-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.need-card-meta strong {
  color: var(--kk-emerald);
  font-weight: 800;
}

.need-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.bid-proposal-btn {
  flex: 1;
  background: var(--kk-blue-gradient);
  border: none;
  border-radius: var(--r-md);
  color: #FFFFFF;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(11, 99, 229, 0.25);
  transition: all 0.2s;
}
.bid-proposal-btn:hover {
  box-shadow: 0 4px 16px rgba(11, 99, 229, 0.35);
  transform: translateY(-1px);
}

.direct-phone-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.direct-phone-btn:hover {
  background: var(--kk-emerald);
  color: #FFFFFF;
}

/* ==========================================================================
   LIVE DISPATCH & GPS MAP SCREEN
   ========================================================================== */
.dispatch-map-view {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.driver-map-canvas {
  width: 100%;
  height: 100%;
  background: #E2E8F0;
  z-index: 10;
}

/* Telemetry HUD Pill */
.dispatch-telemetry-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 500;
  box-shadow: var(--shadow-md);
}

.telemetry-speed {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.telemetry-speed strong {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--kk-orange);
}
.telemetry-speed small {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.telemetry-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

.telemetry-eta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.telemetry-eta strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.telemetry-eta small {
  font-size: 10px;
  color: var(--kk-blue);
  font-weight: 600;
}

.telemetry-recenter-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.telemetry-recenter-btn:hover {
  background: var(--kk-blue-subtle);
  color: var(--kk-blue);
}

/* Bottom Driver Action Drawer */
.driver-action-sheet {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 12px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 500;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1);
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: var(--r-full);
  margin: 0 auto 4px;
}

.sheet-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-avatar-box {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}
.customer-monogram {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--kk-blue-subtle);
  border: 2px solid var(--kk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--kk-blue);
}
.cust-verified-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--kk-emerald);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-info-box {
  flex: 1;
  min-width: 0;
}
.customer-info-box h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}
.customer-info-box p {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cust-address {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.customer-call-actions {
  display: flex;
  gap: 8px;
}
.call-action-circle,
.wa-action-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.call-action-circle {
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.call-action-circle:hover {
  background: var(--kk-emerald);
  color: #FFFFFF;
}
.wa-action-circle {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid rgba(22, 163, 74, 0.4);
}
.wa-action-circle:hover {
  background: #16A34A;
  color: #FFFFFF;
}

/* Dispatch Stepper Row */
.dispatch-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 0;
}

.step-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.step-pill.active {
  color: var(--kk-orange);
  font-weight: 800;
}
.step-pill.done {
  color: var(--kk-emerald);
}

.step-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  border-radius: var(--r-full);
}
.step-line.done {
  background: var(--kk-emerald);
}

.dispatch-action-controls {
  margin-top: 4px;
}
.dispatch-step-btn {
  width: 100%;
  padding: 13px;
  border-radius: var(--r-md);
  border: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.dispatch-step-btn.btn-arrived {
  background: var(--kk-blue-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(11, 99, 229, 0.25);
}
.dispatch-step-btn.btn-start {
  background: var(--kk-orange-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--kk-orange-glow);
}
.dispatch-step-btn.btn-complete {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   WALLET & EARNINGS SCREEN
   ========================================================================== */
.payout-instant-btn {
  background: var(--kk-orange-gradient);
  border: none;
  border-radius: var(--r-full);
  color: #FFFFFF;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px var(--kk-orange-glow);
}

.wallet-balance-card {
  background: linear-gradient(135deg, #0B63E5 0%, #0284C7 100%);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.wallet-balance-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.wallet-top-label {
  font-size: 12px;
  font-weight: 600;
  color: #E0F2FE;
}
.wallet-amount {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
.wallet-features-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #E0F2FE;
}

.withdraw-cta-btn {
  background: #FFFFFF;
  border: none;
  border-radius: var(--r-md);
  color: var(--kk-blue);
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
}
.withdraw-cta-btn:hover {
  background: #F8FAFC;
}

.earnings-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}
.earnings-summary-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.weekly-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.stat-col {
  background: var(--bg-page);
  border-radius: var(--r-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-col strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}
.stat-col small {
  font-size: 10px;
  color: var(--text-muted);
}

.wallet-history-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wallet-history-section h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.transaction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tx-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}
.tx-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tx-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.tx-info {
  display: flex;
  flex-direction: column;
}
.tx-info strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}
.tx-info small {
  font-size: 11px;
  color: var(--text-muted);
}
.tx-amount {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--kk-emerald);
}

/* ==========================================================================
   PROFILE & TRADE SETTINGS SCREEN
   ========================================================================== */
.profile-hero-card {
  background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.profile-pic-container {
  position: relative;
  width: 76px;
  height: 76px;
}
.profile-pic-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--kk-orange);
  background: #FFFFFF;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.avatar-edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--kk-orange);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.profile-hero-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}
.profile-hero-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

.verification-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.v-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
}
.v-badge.verified {
  background: var(--kk-emerald-light);
  color: #059669;
  border: 1px solid #A7F3D0;
}

.profile-settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}
.profile-settings-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
}
.settings-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.tags-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trade-chip {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.trade-chip.active {
  background: var(--kk-orange-light);
  border-color: rgba(255, 107, 0, 0.4);
  color: var(--kk-orange);
  font-weight: 700;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.form-input-box {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
}
.form-input-box:focus {
  border-color: var(--kk-orange);
}

.toggle-pill-row {
  display: flex;
  gap: 8px;
}
.toggle-pill-btn {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.toggle-pill-btn.active {
  background: var(--kk-emerald-light);
  border-color: #10B981;
  color: #059669;
}

.rate-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
}
.rate-input-sm {
  width: 80px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 5px 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--kk-blue);
  text-align: right;
  outline: none;
}

.qr-preview-box {
  background: var(--bg-page);
  border: 1px dashed #CBD5E1;
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.qr-code-graphic {
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.qr-text-info {
  display: flex;
  flex-direction: column;
}
.qr-text-info strong {
  font-size: 13px;
  color: var(--text-main);
  font-weight: 700;
}
.qr-text-info small {
  font-size: 11px;
  color: var(--kk-blue);
  font-weight: 600;
}

/* ==========================================================================
   BOTTOM NAVIGATION DOCK
   ========================================================================== */
.partner-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.nav-item i {
  font-size: 18px;
}
.nav-item span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-item:hover {
  color: var(--kk-blue);
}

.nav-item.active {
  color: var(--kk-orange);
}
.nav-item.active i {
  transform: translateY(-2px);
}
.nav-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--kk-orange);
  border-radius: 0 0 4px 4px;
}

.nav-dot-active {
  position: absolute;
  top: 10px;
  right: calc(50% - 14px);
  width: 7px;
  height: 7px;
  background: var(--kk-blue);
  border-radius: 50%;
}

.nav-badge-pill {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--kk-orange);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--r-full);
}

/* ==========================================================================
   INCOMING BOOKING ALERT OVERLAY (LIGHT MODERN)
   ========================================================================== */
.incoming-alert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  animation: fadeIn 0.25s ease;
}
.incoming-alert-overlay.visible {
  display: flex;
}

.incoming-alert-card {
  background: #FFFFFF;
  border: 2px solid var(--kk-orange);
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.25);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-radar-pulse {
  position: absolute;
  top: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
  animation: radar-sweep 2s infinite;
  pointer-events: none;
}
@keyframes radar-sweep {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.incoming-header-badge {
  background: var(--kk-orange-light);
  color: var(--kk-orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 4px 14px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.countdown-timer-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--kk-orange);
  box-shadow: 0 0 12px var(--kk-orange-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFF7ED;
  line-height: 1;
}
.countdown-timer-circle span {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--kk-orange);
}
.countdown-timer-circle small {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-secondary);
}

.incoming-job-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.incoming-service-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--kk-blue);
}
.incoming-customer-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
}
.incoming-urgency-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--kk-rose);
}

.incoming-location-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 10px 14px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.incoming-location-box i {
  color: var(--kk-orange);
  font-size: 18px;
}
.incoming-location-box strong {
  font-size: 12px;
  color: var(--text-main);
  display: block;
}
.incoming-location-box p {
  font-size: 11px;
  color: var(--text-secondary);
}

.incoming-price-box {
  background: var(--kk-emerald-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--r-md);
  padding: 8px 16px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-label {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}
.price-amount {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: #059669;
}

.eta-selection-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.eta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.eta-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.eta-chip {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 4px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.eta-chip.active {
  background: var(--kk-orange);
  border-color: var(--kk-orange);
  color: #FFFFFF;
}

.incoming-actions-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.decline-booking-btn {
  background: var(--kk-rose-light);
  border: 1px solid #FCA5A5;
  color: var(--kk-rose);
  padding: 12px;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.accept-booking-btn {
  background: var(--kk-emerald);
  border: none;
  padding: 12px;
  border-radius: var(--r-md);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   CUSTOMER CALLBACK OVERLAY
   ========================================================================== */
.callback-request-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.callback-request-overlay.visible {
  display: flex;
}

.callback-sheet-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.callback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.callback-icon-pulse {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.callback-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}
.callback-header p {
  font-size: 11px;
  color: var(--text-muted);
}
.close-sheet-icon {
  background: var(--bg-page);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-preview-box {
  background: var(--bg-page);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cust-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kk-blue-subtle);
  color: var(--kk-blue);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cust-preview-info h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.cust-preview-info p {
  font-size: 12px;
  color: var(--text-secondary);
}
.cust-preview-info small {
  font-size: 11px;
  color: var(--text-muted);
}

.callback-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cb-primary-call-btn,
.cb-secondary-wa-btn {
  padding: 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cb-primary-call-btn {
  background: var(--kk-emerald);
  color: #FFFFFF;
}
.cb-secondary-wa-btn {
  background: #16A34A;
  color: #FFFFFF;
}

.quote-submission-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote-submission-box label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.quote-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 4px 6px;
}
.rupee-symbol {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--kk-blue);
  padding: 0 8px;
}
.quote-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}
.send-quote-btn {
  background: var(--kk-blue-gradient);
  border: none;
  border-radius: var(--r-sm);
  color: #FFFFFF;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   OTP VERIFICATION MODAL
   ========================================================================== */
.otp-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.otp-modal-overlay.visible {
  display: flex;
}

.otp-modal-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.otp-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kk-orange-light);
  color: var(--kk-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.otp-modal-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.otp-modal-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

.otp-inputs-row {
  display: flex;
  gap: 10px;
  margin: 6px 0;
}
.otp-digit-input {
  width: 52px;
  height: 56px;
  background: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  text-align: center;
  outline: none;
  transition: all 0.2s;
}
.otp-digit-input:focus {
  border-color: var(--kk-orange);
  box-shadow: 0 0 10px var(--kk-orange-glow);
}

.otp-verify-btn {
  width: 100%;
  background: var(--kk-orange-gradient);
  border: none;
  border-radius: var(--r-md);
  color: #FFFFFF;
  padding: 13px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--kk-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   JOB COMPLETION & PAYMENT MODAL
   ========================================================================== */
.payment-completion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.payment-completion-overlay.visible {
  display: flex;
}

.payment-sheet-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-check-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--kk-emerald-light);
  color: var(--kk-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.payment-sheet-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.payment-sheet-card p {
  font-size: 12px;
  color: var(--text-muted);
}

.invoice-summary-box {
  width: 100%;
  background: var(--bg-page);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}
.invoice-row strong {
  color: var(--text-main);
}
.invoice-row.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 4px;
  align-items: center;
}
.invoice-row.total-row h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: var(--kk-emerald);
}

.payment-options-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.payment-options-box label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.dynamic-qr-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  padding: 14px 20px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}
.dynamic-qr-box small {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.payment-buttons-col {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.paid-cash-btn,
.paid-online-btn {
  padding: 12px;
  border-radius: var(--r-md);
  border: none;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.paid-cash-btn {
  background: var(--kk-orange-light);
  color: var(--kk-orange);
  border: 1px solid rgba(255, 107, 0, 0.4);
}
.paid-online-btn {
  background: var(--kk-emerald);
  color: #FFFFFF;
}

/* ==========================================================================
   BID / INSTANT QUOTE MODAL
   ========================================================================== */
.bid-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.bid-modal-overlay.visible {
  display: flex;
}

.bid-modal-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bid-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.bid-modal-tag {
  font-size: 10px;
  font-weight: 800;
  background: var(--kk-orange-light);
  color: var(--kk-orange);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.bid-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}
.bid-modal-close {
  background: var(--bg-page);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  cursor: pointer;
}

.bid-lead-summary {
  background: var(--bg-page);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.bid-lead-cust {
  color: var(--text-muted);
}
.bid-lead-summary p {
  color: var(--text-main);
  font-weight: 700;
}
.bid-lead-budget strong {
  color: var(--kk-emerald);
}

.bid-quote-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bid-quote-form label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.bid-amount-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 6px 12px;
}
.bid-amount-input-row:focus-within {
  border-color: var(--kk-orange);
}
.rupee-prefix {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--kk-orange);
  margin-right: 6px;
}
.bid-amount-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  outline: none;
}

.bid-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.bid-chip {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.bid-chip.active {
  background: var(--kk-orange-light);
  border-color: var(--kk-orange);
  color: var(--kk-orange);
}

.bid-quote-form textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-main);
  outline: none;
  resize: none;
  font-family: var(--font-body);
}

.bid-submit-btn {
  background: var(--kk-orange-gradient);
  border: none;
  border-radius: var(--r-md);
  color: #FFFFFF;
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--kk-orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

/* ==========================================================================
   PARTNER TOAST SYSTEM
   ========================================================================== */
.partner-toast {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.partner-toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.partner-toast.success {
  border-left: 4px solid var(--kk-emerald);
}
.partner-toast.success i {
  color: var(--kk-emerald);
}
.partner-toast.warning {
  border-left: 4px solid var(--kk-amber);
}
.partner-toast.warning i {
  color: var(--kk-amber);
}
.partner-toast.info {
  border-left: 4px solid var(--kk-blue);
}
.partner-toast.info i {
  color: var(--kk-blue);
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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