html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-color: var(--bitaksi-dark, #121418);
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
}

.driver-app {
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bitaksi-dark, #121418);
  display: flex;
  flex-direction: column;
}

#driverMap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 1 !important;
}

/* Sürücü Üst Barı - Sade, Şık ve Odaklı (Sadece ☰ Menü ve Bugün Kazanılan Para) */
.driver-top-bar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  z-index: 3000 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

/* Sol Üst 3 Çizgili Hamburger Butonu (Royal KSA Emerald & Deep Obsidian) */
.btn-driver-menu {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(11, 17, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-driver-menu:hover {
  transform: scale(1.06);
  background: rgba(16, 24, 41, 0.96);
  border-color: #00E599;
}

.btn-driver-menu:active {
  transform: scale(0.96);
}

.hamburger-icon {
  stroke: #10B981;
  transition: transform 0.2s ease;
}

/* Bugün Kazanılan Para Detayı */
.driver-pill {
  pointer-events: auto;
  background: rgba(11, 17, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}

.driver-earnings-pill {
  font-weight: 800;
  font-size: 13.5px;
}

.earnings-pill {
  color: #00E599;
  font-weight: 900;
  font-family: var(--font-mono);
  font-size: 15px;
}

/* Canlı Çevrimiçi Durum Rozeti */
.top-bar-live-status {
  pointer-events: auto;
  background: rgba(11, 17, 30, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-full);
  padding: 6px 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.top-bar-status-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #00E599;
}

/* ==========================================================================
   KAPTAN YAN AÇILIR MENÜSÜ (HAMBURGER DRAWER)
   ========================================================================== */
.driver-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.driver-drawer-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  width: min(340px, 86vw);
  z-index: 99999;
  background: #1B1E26;
  border-right: 1.5px solid #2D3342;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.driver-drawer-menu.active {
  transform: translateX(0) !important;
}

.drawer-header {
  padding: 22px 18px 16px;
  background: rgba(254, 208, 0, 0.04);
  border-bottom: 1.5px solid #2D3342;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(254, 208, 0, 0.15);
  border: 1.5px solid var(--bitaksi-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.drawer-driver-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.drawer-driver-plate {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--bitaksi-yellow);
  margin-top: 2px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #CBD5E1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(255, 69, 58, 0.2);
  color: #FF453A;
  border-color: #FF453A;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-row-card {
  background: rgba(18, 20, 24, 0.85);
  border: 1.5px solid #2D3342;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-row-icon {
  font-size: 20px;
}

.drawer-row-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.drawer-row-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.btn-drawer-theme-toggle {
  background: #121418;
  border: 1.5px solid var(--bitaksi-border);
  border-radius: 20px;
  width: 50px;
  height: 28px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  transition: all 0.2s;
}

.theme-toggle-ball {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bitaksi-yellow);
  transition: transform 0.2s ease;
  display: block;
}

:root[data-theme="light"] .theme-toggle-ball {
  transform: translateX(-22px);
  background: #F59E0B;
}

.drawer-lang-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.drawer-lang-switch {
  display: flex;
  gap: 6px;
  width: 100%;
}

.drawer-lang-switch .btn-lang-item {
  flex: 1;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
}

.drawer-menu-btn-item {
  width: 100%;
  background: rgba(18, 20, 24, 0.85);
  border: 1.5px solid #2D3342;
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.drawer-menu-btn-item:hover {
  border-color: var(--bitaksi-yellow);
  background: rgba(254, 208, 0, 0.05);
  transform: translateY(-1px);
}

.drawer-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-btn-icon {
  font-size: 18px;
}

.drawer-chevron {
  font-size: 18px;
  color: var(--text-secondary);
}

.drawer-footer {
  padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  border-top: 1.5px solid #2D3342;
  background: rgba(18, 20, 24, 0.5);
}

.drawer-login-btn {
  width: 100%;
  background: var(--bitaksi-yellow, #FED000);
  border: none;
  color: #121418;
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(254, 208, 0, 0.35);
  transition: all 0.2s;
  margin-bottom: 8px;
}

.drawer-login-btn:hover {
  background: #E5BC00;
  transform: translateY(-1px);
}

.drawer-logout-btn {
  width: 100%;
  background: rgba(255, 69, 58, 0.12);
  border: 1.5px solid rgba(255, 69, 58, 0.4);
  color: #FF453A;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.drawer-logout-btn:hover {
  background: #FF453A;
  color: #FFFFFF;
}

.drawer-link-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  transition: all 0.2s;
}
.drawer-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}
.drawer-delete-btn {
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.2);
}
.drawer-delete-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}
.drawer-rate-btn {
  color: #FED000;
  border-color: rgba(254, 208, 0, 0.2);
}
.drawer-rate-btn:hover {
  background: rgba(254, 208, 0, 0.12);
  color: #FED000;
  border-color: rgba(254, 208, 0, 0.4);
}

/* =========================================================================
   CİHAZ İZİNLERİ VE YARDIM BUTONU (DRAWER ENTEGRASYONU)
   ========================================================================= */
.drawer-perms-btn {
  width: 100%;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  color: #F8FAFC;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 8px;
}

.drawer-perms-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10B981;
  transform: translateY(-1px);
}

.drawer-perms-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
[dir="rtl"] .drawer-perms-btn-left {
  text-align: right;
}

.drawer-perms-title {
  font-weight: 800;
  font-size: 13px;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-perms-ratio-inline {
  font-size: 12px;
  color: #34D399;
  font-family: var(--font-mono, monospace);
  font-weight: 900;
}

.drawer-perms-subtitle {
  font-size: 10.5px;
  color: var(--text-secondary, #94A3B8);
  margin-top: 1px;
}

.drawer-perms-count-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.drawer-perms-count-badge.is-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.45);
}

.drawer-perms-count-badge.is-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.45);
}

/* =========================================================================
   CİHAZ VE SİSTEM İZİNLERİ MODALI (DEVICE PERMISSIONS HUD)
   ========================================================================= */
.perms-modal-card {
  max-width: 500px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.perms-meter-box {
  background: rgba(18, 20, 24, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}

.perms-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.perms-meter-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.perms-meter-score {
  font-size: 14px;
  font-weight: 900;
  color: #10B981;
  font-family: var(--font-mono, monospace);
}

.perms-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.perms-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981, #00E599);
  border-radius: 999px;
  transition: width 0.35s ease, background 0.35s ease;
}

.perms-list-container {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  margin-bottom: 14px;
  flex: 1;
}

.perm-item-row {
  background: rgba(27, 30, 38, 0.85);
  border: 1.5px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.perm-item-row.is-granted {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.04);
}

.perm-item-row.is-missing {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

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

.perm-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.perm-item-info {
  flex: 1;
  min-width: 0;
}

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

.perm-item-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}

.perm-item-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

.perm-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.perm-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.perm-pill.granted {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.perm-pill.missing {
  background: rgba(239, 68, 68, 0.16);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-perm-trigger {
  background: #10B981;
  color: #03150E;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-perm-trigger:hover {
  background: #00E599;
  transform: translateY(-1px);
}

.btn-perm-trigger.btn-perm-test {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-perm-trigger.is-done {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  cursor: default;
}

/* ==========================================================================
   LIGHT MODE STYLES FOR DRIVER COCKPIT (:root[data-theme="light"])
   ========================================================================== */
:root[data-theme="light"] .driver-app {
  background: #F1F5F9;
}

:root[data-theme="light"] .btn-driver-menu {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .hamburger-icon {
  stroke: #0F172A;
}

:root[data-theme="light"] .driver-top-bar .driver-pill {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #0F172A;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .driver-top-bar .driver-pill span {
  color: #0F172A;
}

:root[data-theme="light"] .earnings-pill {
  color: #059669 !important;
  font-weight: 900;
}

:root[data-theme="light"] .top-bar-live-status {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .driver-drawer-menu {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .drawer-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

:root[data-theme="light"] .drawer-driver-name {
  color: #0F172A;
}

:root[data-theme="light"] .drawer-close-btn {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #334155;
}

:root[data-theme="light"] .drawer-row-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

:root[data-theme="light"] .drawer-row-title {
  color: #0F172A;
}

:root[data-theme="light"] .drawer-menu-btn-item {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}

:root[data-theme="light"] .drawer-menu-btn-item:hover {
  background: #F1F5F9;
  border-color: var(--bitaksi-yellow);
}

:root[data-theme="light"] .drawer-footer {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

:root[data-theme="light"] .drawer-perms-btn {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #0F172A;
}

:root[data-theme="light"] .drawer-perms-title {
  color: #0F172A;
}

:root[data-theme="light"] .drawer-perms-subtitle {
  color: #475569;
}

:root[data-theme="light"] .perms-meter-box {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

:root[data-theme="light"] .perms-progress-bar-wrap {
  background: #E2E8F0;
}

:root[data-theme="light"] .perm-item-row {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

:root[data-theme="light"] .perm-item-icon {
  background: #F1F5F9;
}

:root[data-theme="light"] .btn-perm-trigger.btn-perm-test {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

:root[data-theme="light"] .btn-drawer-theme-toggle {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

:root[data-theme="light"] .driver-mission-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

:root[data-theme="light"] .driver-mission-card h4,
:root[data-theme="light"] .driver-mission-card span:not(.badge) {
  color: #0F172A;
}

:root[data-theme="light"] .modal-content,
:root[data-theme="light"] .driver-modal-card {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

:root[data-theme="light"] .modal-title,
:root[data-theme="light"] .driver-modal-card h2,
:root[data-theme="light"] .driver-modal-card h3,
:root[data-theme="light"] .driver-modal-card h4 {
  color: #0F172A !important;
}

:root[data-theme="light"] .driver-modal-card .modal-close-btn,
:root[data-theme="light"] .driver-modal-card .drawer-close-btn {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

:root[data-theme="light"] #btnCancelProofModal,
:root[data-theme="light"] .btn-proof-modal-cancel {
  background: #E2E8F0 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
  font-weight: 800 !important;
}

:root[data-theme="light"] #btnCloseProofModal,
:root[data-theme="light"] .btn-proof-modal-close {
  background: #E2E8F0 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

:root[data-theme="light"] #btnBottomCloseDriverWallet {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* Mobil Ses Açma Bildirimi */
.audio-notice-banner {
  position: absolute;
  top: 70px;
  left: 14px;
  right: 14px;
  z-index: 3500 !important;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(11, 17, 30, 0.94);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  animation: banner-glow 2s infinite alternate;
}

@keyframes banner-glow {
  from { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.18); }
  to { border-color: #10B981; box-shadow: 0 4px 25px rgba(16, 185, 129, 0.4); }
}

.notice-content span {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.btn-audio-enable {
  background: linear-gradient(135deg, #00E599 0%, #10B981 55%, #059669 100%);
  color: #03150E;
  border: none;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 13px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* PWA Kurulum Şeridi */
.pwa-install-banner {
  position: absolute;
  top: 130px;
  left: 14px;
  right: 14px;
  z-index: 3500 !important;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(27, 30, 38, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid #38BDF8;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  animation: pwa-banner-slide 0.4s ease-out;
}

@keyframes pwa-banner-slide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📡 Çöl Yolu & Zayıf Şebeke Dayanıklılık Şeridi */
.desert-offline-banner {
  position: absolute;
  top: 130px;
  left: 14px;
  right: 14px;
  z-index: 3495 !important;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(22, 24, 30, 0.96);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--bitaksi-yellow);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(254, 208, 0, 0.25);
  animation: pwa-banner-slide 0.3s ease-out;
}

.offline-icon-pulse {
  display: inline-block;
  animation: offline-pulse 1.8s infinite;
}

@keyframes offline-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.offline-pill-badge {
  display: inline-flex;
  transition: all 0.2s ease;
}
.offline-pill-badge:hover {
  background: rgba(254, 208, 0, 0.25) !important;
}

/* VIP Altın Çağrı Rozeti */
.call-vip-badge {
  background: linear-gradient(135deg, #F59E0B, #FED000);
  color: #000;
  font-size: 11.5px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  box-shadow: 0 0 20px rgba(254, 208, 0, 0.6);
  animation: vip-pulse 1.2s infinite alternate;
}

@keyframes vip-pulse {
  from { transform: scale(1); box-shadow: 0 0 10px rgba(254, 208, 0, 0.4); }
  to { transform: scale(1.03); box-shadow: 0 0 25px rgba(254, 208, 0, 0.8); }
}

.call-expanded-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid #38BDF8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Sürücü Harita Kontrolleri */
.driver-map-controls {
  position: absolute;
  top: 130px;
  right: 14px;
  z-index: 3000 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-float-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 30, 38, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--bitaksi-border);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.driver-float-btn:active {
  transform: scale(0.92);
  border-color: var(--bitaksi-yellow);
  background: rgba(254, 208, 0, 0.2);
}

.online-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #313747;
  border-radius: 24px;
  transition: .25s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .25s;
}

input:checked + .slider {
  background-color: var(--bitaksi-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.status-text {
  font-size: 12px;
  font-weight: 700;
}

.earnings-pill {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--bitaksi-yellow);
  font-size: 15px;
}

/* BiTaksi / OneSatha Modern Kompakt Alt Çağrı Paneli (Compact Bottom Sheet) */
.incoming-call-overlay {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  max-height: 48vh;
  background: linear-gradient(180deg, rgba(22, 26, 34, 0.98) 0%, rgba(11, 14, 20, 0.99) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2.5px solid var(--bitaksi-yellow);
  border-left: 1px solid rgba(254, 208, 0, 0.2);
  border-right: 1px solid rgba(254, 208, 0, 0.2);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.88), 0 0 25px rgba(254, 208, 0, 0.18);
  z-index: 100000 !important;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  animation: bitaksi-alarm-pulse 1.4s infinite alternate;
}

@keyframes bitaksi-alarm-pulse {
  from { box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.88), 0 0 15px rgba(254, 208, 0, 0.15); }
  to { box-shadow: 0 -14px 45px rgba(0, 0, 0, 0.88), 0 0 35px rgba(254, 208, 0, 0.35); }
}

/* Üst Başlık Satırı (Geri Sayım + Araç Tipi + Ücret + Dil) */
.call-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.call-sheet-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.call-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}

.countdown-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--bitaksi-yellow);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 15px var(--bitaksi-yellow-glow);
}

.countdown-unit {
  font-size: 9.5px;
  color: var(--bitaksi-yellow);
  font-weight: 800;
  margin-top: 1px;
  text-align: center;
}

.call-vehicle-info-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.call-vehicle-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.call-vehicle-icon {
  font-size: 18px;
}

.call-vehicle-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.call-chip-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.3;
}

.chip-bed {
  background: rgba(254, 208, 0, 0.18);
  border: 1px solid var(--bitaksi-yellow);
  color: var(--bitaksi-yellow);
}

.chip-rt {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid #38BDF8;
  color: #38BDF8;
}

.chip-traffic {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #F59E0B;
  color: #F59E0B;
}

.chip-accident {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #EF4444;
  color: #EF4444;
}

.chip-battery {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #EF4444;
  color: #FCA5A5;
}

.call-sheet-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.call-sheet-header-right .call-overlay-lang-switch {
  position: static;
  margin-bottom: 2px;
}

.call-earning-box {
  text-align: right;
}

[dir="rtl"] .call-earning-box {
  text-align: left;
}

.call-earning-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--bitaksi-yellow);
  font-family: var(--font-mono);
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(254, 208, 0, 0.35);
}

.call-earning-label {
  font-size: 9.5px;
  color: #2ecc71;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Orta Bar: Kompakt Rota Çizgisi + Küçük Fotoğraf Kutusu */
.call-route-photo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
}

.call-compact-route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #E2E8F0;
  font-weight: 700;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-icon-pickup, .route-icon-dest {
  font-size: 13px;
  flex-shrink: 0;
}

.route-arrow {
  color: var(--bitaksi-yellow);
  font-weight: 800;
  flex-shrink: 0;
}

.route-pickup-text, .route-dest-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-photo-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.call-mini-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--bitaksi-yellow);
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.call-photo-count-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: rgba(18, 20, 24, 0.9);
  color: var(--bitaksi-yellow);
  border: 1px solid var(--bitaksi-yellow);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
}

/* Alt Butonlar */
.call-actions-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 2px;
}

.btn-reject {
  background: rgba(255, 59, 48, 0.15);
  border: 1.5px solid var(--bitaksi-red);
  color: var(--bitaksi-red);
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  padding: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reject:active {
  background: rgba(255, 59, 48, 0.3);
}

.btn-accept-glow {
  background: var(--bitaksi-green);
  color: #000;
  font-size: 16px;
  font-weight: 900;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  padding: 13px;
  box-shadow: 0 0 20px var(--bitaksi-green-glow);
  animation: btn-pulse 1.3s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@keyframes btn-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Aktif Görev Kokpit Paneli (Royal KSA Emerald & Deep Obsidian HUD) */
.driver-mission-card {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 4000 !important;
  background: rgba(11, 17, 30, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2.5px solid #10B981;
  border-left: 1px solid rgba(16, 185, 129, 0.22);
  border-right: 1px solid rgba(16, 185, 129, 0.22);
  border-bottom: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.85), 0 0 28px rgba(16, 185, 129, 0.16);
  display: none;
}

.mission-step-indicator {
  font-size: 11px;
  font-weight: 800;
  color: #00E599;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mission-customer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.customer-name-lg {
  font-size: 16px;
  font-weight: 800;
}

.mission-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   TESLA / UBER DRIVER 2026: KAYDIRARAK ONAYLAMA (SLIDE-TO-CONFIRM) BARI
   ========================================================================== */
.mission-slide-confirm-track {
  display: none !important;
  position: relative;
  width: 100%;
  height: 58px;
  background: rgba(6, 10, 18, 0.92);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(16, 185, 129, 0.18);
  direction: ltr !important;
}

.mission-slide-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.45) 0%, rgba(0, 229, 153, 0.75) 100%);
  pointer-events: none;
  transition: width 0.2s ease;
}

.mission-slide-confirm-track.is-dragging .mission-slide-fill {
  transition: none;
}

.mission-slide-label-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 58px;
  pointer-events: none;
  text-align: center;
}

.mission-slide-text {
  font-size: 13.5px;
  font-weight: 900;
  color: #ECFDF5;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.mission-slide-hint {
  font-size: 15px;
  font-weight: 900;
  color: #00E599;
  animation: slideChevronPulse 1.4s infinite ease-in-out;
}

@keyframes slideChevronPulse {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}

.mission-slide-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00E599 0%, #10B981 60%, #059669 100%);
  color: #03150E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  touch-action: none;
}

.mission-slide-confirm-track.is-dragging .mission-slide-thumb {
  transition: none;
  cursor: grabbing;
  transform: scale(1.04);
}

/* Hızlı tıklama yedeği butonu (Slide-to-Confirm aktifken kompakt/secondary görünür) */
.mission-action-fallback-btn {
  font-size: 12px !important;
  padding: 9px 12px !important;
  opacity: 0.85;
  border-radius: 10px !important;
}

/* ==========================================================================
   SÜRÜCÜ GİRİŞ VE KAYIT MODALI (BİTAKSİ DRIVER AUTH) & GENEL MODAL STİLLERİ
   ========================================================================== */
.driver-auth-overlay,
.driver-modal-overlay,
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(10, 12, 16, 0.92) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[style*="display: none"],
.driver-modal-overlay[style*="display: none"],
.driver-auth-overlay[style*="display: none"],
.modal-overlay.hidden,
.driver-modal-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.driver-auth-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(10, 12, 16, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100050 !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Oturumu olan sürücülerde modal gizlenir (.show varsa tekrar açılabilir) */
html.has-driver-session .driver-auth-overlay:not(.show) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.driver-auth-overlay.show,
.driver-auth-overlay[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 100050 !important;
}

.driver-modal-card,
.modal-content {
  width: 100%;
  max-width: 440px;
  background: var(--bitaksi-dark-surface, #1B1E26);
  border: 1.5px solid var(--bitaksi-border, #2D3342);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
  pointer-events: auto !important;
}

.driver-auth-card {
  width: 100%;
  max-width: 440px;
  background: #1B1E26 !important;
  border: 1.5px solid #2D3342 !important;
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  color: #FFFFFF !important;
  pointer-events: auto !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.driver-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bitaksi-yellow), #00D084);
}

.driver-auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.driver-auth-logo {
  display: inline-flex !important;
  direction: ltr !important;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 4px;
}

.driver-auth-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--bitaksi-yellow);
  background: rgba(254, 208, 0, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  border: 1px solid rgba(254, 208, 0, 0.25);
}

.driver-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #121418;
  border: 1px solid var(--bitaksi-border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.driver-auth-tab {
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.driver-auth-tab.active {
  background: var(--bitaksi-yellow);
  color: #121418;
  font-weight: 800;
}

.auth-input-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* TÜRKİYE PLAKA INPUT FORMATI */
.plate-input-wrapper {
  display: flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 2px solid #222;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.plate-badge-tr {
  background: #003399;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 12px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  user-select: none;
}

.plate-text-input {
  flex: 1;
  background: #FFFFFF;
  border: none;
  color: #111111;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 10px 12px;
}

.plate-text-input:focus {
  outline: none;
}

.input-with-icon-wrap {
  width: 100% !important;
  position: relative;
  display: block;
}

.auth-input-standard {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px;
  background: #121418 !important;
  border: 1.5px solid #2D3342 !important;
  border-radius: var(--radius-sm);
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.auth-input-standard:focus {
  outline: none;
  border-color: var(--bitaksi-yellow) !important;
  box-shadow: 0 0 0 3px rgba(254, 208, 0, 0.25) !important;
}

.auth-input-standard::placeholder {
  color: #64748B !important;
}

select.auth-input-standard option {
  background: #1B1E26 !important;
  color: #FFFFFF !important;
  padding: 8px;
}

/* Chrome/Safari Autofill Koyu Tema Düzeltmesi (Mavi arka plan ve siyah yazı engeli) */
.auth-input-standard:-webkit-autofill,
.auth-input-standard:-webkit-autofill:hover, 
.auth-input-standard:-webkit-autofill:focus,
.auth-input-standard:-webkit-autofill:active {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0px 1000px #121418 inset !important;
  box-shadow: 0 0 0px 1000px #121418 inset !important;
  caret-color: #FFFFFF !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Auth Ekranı Tema Değiştirme Butonu */
.btn-auth-theme-toggle {
  background: #222 !important;
  border: 1px solid #333 !important;
  color: #FED000 !important;
  border-radius: 6px !important;
  transition: all 0.2s ease;
}
.btn-auth-theme-toggle:hover {
  border-color: #FED000 !important;
  transform: scale(1.06);
}

/* Sürücü Giriş/Kayıt WhatsApp Destek & Yardım Şeridi */
.driver-auth-support-bar {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary, #94A3B8);
  text-align: center;
}

.driver-auth-support-bar .support-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.driver-auth-support-bar .support-icon {
  font-size: 15px;
}

.driver-auth-support-bar .support-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366 !important;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  font-size: 12.5px;
  transition: all 0.2s ease;
  direction: ltr !important;
  unicode-bidi: isolate;
  letter-spacing: 0.3px;
}

.driver-auth-support-bar .support-whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.24);
  border-color: #25D366;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  color: #25D366 !important;
}

.driver-auth-support-bar .wa-icon-svg {
  width: 15px;
  height: 15px;
  fill: #25D366;
  flex-shrink: 0;
}

:root[data-theme="light"] .driver-auth-support-bar {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

:root[data-theme="light"] .driver-auth-support-bar .support-whatsapp-link {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
  color: #128C7E !important;
}

:root[data-theme="light"] .driver-auth-support-bar .wa-icon-svg {
  fill: #128C7E;
}

/* ==========================================================================
   AÇIK TEMA UYUMLULUK KURALLARI (LIGHT THEME COHERENCE)
   ========================================================================== */
:root[data-theme="light"] .driver-auth-card {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

:root[data-theme="light"] .driver-auth-header .driver-auth-logo {
  color: #0F172A !important;
}

:root[data-theme="light"] .driver-auth-header .driver-auth-logo .logo-white-text {
  color: #0F172A !important;
}

:root[data-theme="light"] .driver-auth-header div {
  color: #64748B !important;
}

:root[data-theme="light"] .driver-auth-tabs {
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .driver-auth-tab {
  color: #64748B !important;
}

:root[data-theme="light"] .driver-auth-tab.active {
  background: #FED000 !important;
  color: #0F172A !important;
  font-weight: 800 !important;
}

:root[data-theme="light"] .auth-input-group label {
  color: #334155 !important;
}

:root[data-theme="light"] .auth-input-standard {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
}

:root[data-theme="light"] .auth-input-standard:focus {
  border-color: #FED000 !important;
  box-shadow: 0 0 0 3px rgba(254, 208, 0, 0.2) !important;
}

:root[data-theme="light"] .auth-input-standard::placeholder {
  color: #94A3B8 !important;
}

:root[data-theme="light"] select.auth-input-standard option {
  background: #FFFFFF !important;
  color: #0F172A !important;
}

:root[data-theme="light"] .auth-input-standard:-webkit-autofill,
:root[data-theme="light"] .auth-input-standard:-webkit-autofill:hover, 
:root[data-theme="light"] .auth-input-standard:-webkit-autofill:focus,
:root[data-theme="light"] .auth-input-standard:-webkit-autofill:active {
  -webkit-text-fill-color: #0F172A !important;
  -webkit-box-shadow: 0 0 0px 1000px #F8FAFC inset !important;
  box-shadow: 0 0 0px 1000px #F8FAFC inset !important;
  caret-color: #0F172A !important;
}

:root[data-theme="light"] .btn-auth-theme-toggle {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #D97706 !important;
}

:root[data-theme="light"] .doc-upload-box {
  background: #F8FAFC !important;
  border: 1.5px dashed #CBD5E1 !important;
}

:root[data-theme="light"] .doc-upload-box:hover {
  background: #FEFCE8 !important;
  border-color: #FED000 !important;
}

:root[data-theme="light"] .doc-upload-title {
  color: #0F172A !important;
}

:root[data-theme="light"] .doc-upload-hint {
  color: #64748B !important;
}

:root[data-theme="light"] .password-policy-checklist {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .password-policy-checklist .policy-item {
  color: #475569 !important;
}

:root[data-theme="light"] .driver-onboarding-badge {
  background: #FFFBEB !important;
  border: 1.5px solid #FCD34D !important;
}

:root[data-theme="light"] .driver-onboarding-badge div > div:last-child {
  color: #78350F !important;
}

:root[data-theme="light"] .driver-pending-card {
  color: #0F172A !important;
}

:root[data-theme="light"] .pending-card-title {
  color: #0F172A !important;
}

:root[data-theme="light"] .pending-card-desc {
  color: #64748B !important;
}

:root[data-theme="light"] .pending-driver-summary {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .pending-row {
  border-bottom: 1px solid #E2E8F0 !important;
}

:root[data-theme="light"] .pending-label {
  color: #64748B !important;
}

:root[data-theme="light"] .pending-val {
  color: #0F172A !important;
}

:root[data-theme="light"] #btnPendingLogout {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

:root[data-theme="light"] .driver-auth-overlay {
  background: rgba(15, 23, 42, 0.6) !important;
}

/* ==========================================================================
   AÇIK TEMA SİHİRBAZ & KONTRAST DÜZELTMELERİ (LIGHT THEME WIZARD & CONTRAST)
   ========================================================================== */
/* 1. Üst Dil & Tema Seçici Rozeti (Siyah hap yerine açık gri şık kapsül) */
:root[data-theme="light"] .driver-lang-switch {
  background: #F1F5F9 !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

:root[data-theme="light"] .driver-lang-switch .btn-lang-item {
  color: #475569 !important;
}

:root[data-theme="light"] .driver-lang-switch .btn-lang-item.active {
  background: #FED000 !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(254, 208, 0, 0.4) !important;
}

:root[data-theme="light"] .driver-lang-switch .btn-auth-theme-toggle {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #D97706 !important;
}

/* 2. Adım Başlıkları & Açıklamaları (Beyaz üstüne beyaz yazıyı önleme) */
:root[data-theme="light"] .reg-step-title {
  color: #0F172A !important;
}

:root[data-theme="light"] .reg-step-desc {
  color: #64748B !important;
}

/* 3. 4 Adımlı Stepper Çubuğu (Siyah daireler yerine şık açık gri daireler) */
:root[data-theme="light"] .driver-wizard-stepper::before {
  background: #E2E8F0 !important;
}

:root[data-theme="light"] .driver-step-circle {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #64748B !important;
}

:root[data-theme="light"] .driver-step-title {
  color: #64748B !important;
}

:root[data-theme="light"] .driver-step-node.active .driver-step-circle {
  background: #FED000 !important;
  border-color: #FED000 !important;
  color: #121418 !important;
  box-shadow: 0 0 14px rgba(254, 208, 0, 0.45) !important;
}

:root[data-theme="light"] .driver-step-node.active .driver-step-title {
  color: #B45309 !important; /* Açık temada net okunan sıcak amber/altın */
  font-weight: 800 !important;
}

:root[data-theme="light"] .driver-step-node.completed .driver-step-circle {
  background: #00D084 !important;
  border-color: #00D084 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(0, 208, 132, 0.35) !important;
}

:root[data-theme="light"] .driver-step-node.completed .driver-step-title {
  color: #059669 !important;
}

/* 4. Geri Butonu ("السابق" / "Geri" - Siyah buton yerine açık gri modern buton) */
:root[data-theme="light"] .btn-reg-back {
  background: #F1F5F9 !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #1E293B !important;
}

:root[data-theme="light"] .btn-reg-back:hover {
  background: #E2E8F0 !important;
  border-color: #94A3B8 !important;
}

/* 5. Adım 4 Başvuru Özeti Kartı (Siyah kutu yerine açık şık kart) */
:root[data-theme="light"] .reg-summary-card {
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
}

:root[data-theme="light"] .reg-summary-card [data-i18n="reg_summary_title"] {
  color: #B45309 !important;
}

:root[data-theme="light"] .reg-summary-label {
  color: #64748B !important;
}

:root[data-theme="light"] .reg-summary-val {
  color: #0F172A !important;
}

:root[data-theme="light"] .reg-summary-row {
  border-bottom: 1px solid #E2E8F0 !important;
}

/* 6. Evrak Sayacı Çubuğu (Step 3) */
:root[data-theme="light"] .doc-status-counter-bar {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #334155 !important;
}

/* 7. Suudi Plaka Arapça Giriş Kutusu (Step 2) */
:root[data-theme="light"] .saudi-ar-input-row label {
  color: #475569 !important;
}

:root[data-theme="light"] .saudi-ar-direct-input {
  background: #F8FAFC !important;
  border: 1px dashed #CBD5E1 !important;
  color: #0F172A !important;
}

:root[data-theme="light"] .saudi-ar-direct-input:focus {
  border-color: #FED000 !important;
  background: #FFFFFF !important;
}

/* 8. Türkiye Plaka Giriş Kutusu (Step 2) */
:root[data-theme="light"] .plate-input-wrapper {
  background: #F8FAFC !important;
  border: 1.5px solid #CBD5E1 !important;
}

:root[data-theme="light"] .plate-text-input {
  color: #0F172A !important;
}

/* 9. Şifre Kuralları Başlığı (Step 4) */
:root[data-theme="light"] .password-policy-checklist [data-i18n="pass_policy_header"] {
  color: #B45309 !important;
}

/* 10. Hata Bildirimi (Açık temada net kırmızı) */
:root[data-theme="light"] .driver-auth-error {
  background: #FEF2F2 !important;
  border: 1.5px solid #F87171 !important;
  color: #B91C1C !important;
}

[dir="ltr"] .driver-auth-card,
[dir="ltr"] .auth-input-group,
[dir="ltr"] .auth-input-group label,
[dir="ltr"] .auth-input-standard {
  text-align: left;
  direction: ltr;
}

[dir="ltr"] .driver-auth-header {
  text-align: center;
}

[dir="ltr"] #loginIdentifier,
[dir="ltr"] #regPhone,
[dir="ltr"] #loginPassword {
  text-align: left !important;
  direction: ltr !important;
}

.driver-auth-error {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 69, 58, 0.15);
  border: 1px solid rgba(255, 69, 58, 0.35);
  color: #FF453A;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.reg-field-error-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: #EF4444;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  border-left: 3px solid #EF4444;
  animation: shakeError 0.25s ease-in-out;
}

html[dir="rtl"] .reg-field-error-hint {
  border-left: none;
  border-right: 3px solid #EF4444;
}

.reg-slide-error-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FF453A;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15);
  animation: shakeError 0.25s ease-in-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.driver-profile-pill {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s;
}

.driver-profile-pill:hover {
  transform: translateY(-1px);
}

/* ÇEKİCİ FOTOĞRAF YÜKLEME ALANI */
.photo-upload-container {
  border: 2px dashed var(--bitaksi-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.photo-upload-container:hover {
  border-color: var(--bitaksi-yellow);
  background: rgba(254, 208, 0, 0.04);
}

.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.photo-upload-icon {
  font-size: 26px;
}

.photo-upload-text {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}

.photo-upload-hint {
  font-size: 10.5px;
  color: var(--text-muted);
}

.photo-preview-wrap {
  position: relative;
  width: 100%;
  max-height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--bitaksi-yellow);
}

.photo-preview-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.btn-remove-photo {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #FF453A;
  border: 1px solid #FF453A;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   SUUDİ ARABİSTAN RESMİ PLAKA (MOROOR SAUDI LICENSE PLATE WIDGET)
   ========================================================================== */
.saudi-plate-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  direction: ltr !important;
}

.saudi-moroor-plate {
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF0F5 100%);
  border: 3px solid #1C2029;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  user-select: none;
  position: relative;
  transition: border-color 0.2s;
}

.saudi-moroor-plate:focus-within {
  border-color: var(--bitaksi-yellow);
  box-shadow: 0 0 0 2px rgba(254, 208, 0, 0.35);
}

.saudi-plate-main {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  direction: ltr !important;
}

.saudi-plate-row {
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  height: 48px;
}

.saudi-plate-row-ar {
  border-bottom: 2px solid #282E3C;
}

.saudi-plate-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  position: relative;
  direction: ltr !important;
}

.saudi-plate-cell-num {
  flex: 1.1;
  border-right: 2px solid #282E3C !important;
  border-left: none !important;
}

.saudi-plate-cell-letters {
  flex: 1.3;
}

.saudi-plate-ar-text {
  font-family: 'Amiri', 'Traditional Arabic', 'Segoe UI', Tahoma, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #121418;
  letter-spacing: 6px;
  text-align: center;
  line-height: 1;
  direction: ltr !important;
}

.saudi-plate-en-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center !important;
  direction: ltr !important;
  font-family: 'JetBrains Mono', 'DIN Alternate', 'Arial Black', monospace;
  font-size: 24px;
  font-weight: 900;
  color: #11141B;
  letter-spacing: 5px;
  text-transform: uppercase;
  outline: none;
}

.saudi-plate-ar-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center !important;
  font-family: 'Amiri', 'Traditional Arabic', 'Segoe UI', Tahoma, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #121418;
  letter-spacing: 6px;
  line-height: 1;
  outline: none;
}

.saudi-plate-en-input::placeholder,
.saudi-plate-ar-input::placeholder {
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.75;
}

.saudi-plate-strip {
  width: 54px;
  background: #E5E9F0;
  border-left: 2.5px solid #1C2029 !important;
  border-right: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: space-between;
  padding: 5px 3px;
  direction: ltr !important;
}

.saudi-strip-emblem {
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saudi-strip-emblem svg {
  width: 100%;
  height: 100%;
}

.saudi-strip-country {
  font-family: 'Amiri', 'Segoe UI', Tahoma, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #0E4823;
  line-height: 1;
  text-align: center;
}

.saudi-strip-ksa {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Arial Black', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #11141B;
  line-height: 1.1;
  letter-spacing: 1px;
}

.saudi-strip-badge {
  width: 13px;
  height: 13px;
  background: #11141B;
  border-radius: 50%;
}

.saudi-plate-helpers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.saudi-plate-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.saudi-ar-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.saudi-ar-input-row label {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.saudi-ar-direct-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(254, 208, 0, 0.4);
  color: #FED000;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Amiri', sans-serif;
  letter-spacing: 2px;
  padding: 2px 4px;
  outline: none;
}

/* ==========================================================================
   4 ZORUNLU SÜRÜCÜ EVRAK VE ARAÇ FOTOĞRAFI IZGARASI
   ========================================================================== */
.driver-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .driver-docs-grid {
    grid-template-columns: 1fr;
  }
}

.doc-upload-box {
  background: #15181F;
  border: 1.5px dashed var(--bitaksi-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
}

.doc-upload-box:hover {
  border-color: var(--bitaksi-yellow);
  background: rgba(254, 208, 0, 0.04);
}

.doc-upload-box.uploaded {
  border-color: #00D084;
  border-style: solid;
  background: rgba(0, 208, 132, 0.05);
}

.doc-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.doc-upload-title {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
}

.doc-required-badge {
  font-size: 9px;
  background: rgba(255, 69, 58, 0.18);
  color: #FF453A;
  border: 1px solid rgba(255, 69, 58, 0.4);
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 700;
}

.doc-upload-box.uploaded .doc-required-badge {
  background: rgba(0, 208, 132, 0.18);
  color: #00D084;
  border-color: rgba(0, 208, 132, 0.4);
}

.doc-upload-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
  text-align: center;
}

.doc-upload-icon {
  font-size: 24px;
}

.doc-upload-hint {
  font-size: 10px;
  color: var(--text-muted);
}

.doc-preview-wrap {
  width: 100%;
  height: 85px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #00D084;
}

.doc-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-remove-doc {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #FF453A;
  border: 1px solid #FF453A;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

/* SÜRÜCÜ ONAY BEKLEME EKRANI */
.driver-pending-card {
  text-align: center;
  padding: 10px 0;
}

.pending-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254, 208, 0, 0.12);
  border: 2px solid var(--bitaksi-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 14px auto;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(254, 208, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(254, 208, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 208, 0, 0); }
}

.pending-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.pending-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pending-driver-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bitaksi-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  margin-bottom: 16px;
}

.pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.pending-label {
  color: var(--text-muted);
}

.pending-val {
  font-weight: 700;
  color: #FFFFFF;
}

/* Sürücü Kokpit Toast Bildirimi */
.driver-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 20, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  border: 1.5px solid var(--bitaksi-yellow, #FED000);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(254, 208, 0, 0.25);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 800;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: driverToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
  max-width: 90vw;
}

@keyframes driverToastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Sürücü Dil Seçici */
.driver-lang-switch {
  pointer-events: auto;
  display: flex;
  background: rgba(27, 30, 38, 0.96);
  border: 1.5px solid var(--bitaksi-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 3100;
}

.call-overlay-lang-switch {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5100 !important;
}

[dir="rtl"] .call-overlay-lang-switch {
  right: auto;
  left: 16px;
}

.driver-lang-switch .btn-lang-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.driver-lang-switch .btn-lang-item.active {
  background: var(--bitaksi-yellow);
  color: #121418;
}

@media (max-width: 768px) {
  .driver-top-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .driver-top-bar::-webkit-scrollbar {
    display: none;
  }
  .driver-pill {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .driver-profile-pill {
    max-width: 170px;
  }
  #driverModePill {
    display: none !important;
  }
  .driver-top-bar .driver-lang-switch {
    margin-left: auto;
    flex-shrink: 0;
  }
  [dir="rtl"] .driver-top-bar .driver-lang-switch {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Seferlerim Butonu */
.btn-driver-trips {
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-driver-trips:hover {
  border-color: var(--bitaksi-yellow);
  color: var(--bitaksi-yellow);
}

/* İptal Butonu */
.btn-mission-cancel {
  margin-top: 8px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 69, 58, 0.12);
  border: 1.5px solid #FF453A;
  color: #FF453A;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-mission-cancel:hover {
  background: #FF453A;
  color: #fff;
}

/* İptal Sebebi Seçimi */
.cancel-reasons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cancel-reason-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bitaksi-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
}

.cancel-reason-item input[type="radio"] {
  accent-color: #FF453A;
}

/* Puanlama Yıldızları ve Etiketleri */
.star-btn {
  transition: transform 0.2s ease;
  user-select: none;
}
.star-btn:hover, .star-btn.active {
  transform: scale(1.2);
}

.rate-tag-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bitaksi-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rate-tag-chip.active {
  background: rgba(254, 208, 0, 0.15);
  border-color: var(--bitaksi-yellow);
  color: var(--bitaksi-yellow);
  font-weight: 700;
}

/* Seferler Kartı */
.driver-trip-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bitaksi-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   RTL (ARAPÇA) KORUMA KURALLARI: PLAKA, MARKA LOGOSU & GİRİŞLER
   ========================================================================== */
[dir="rtl"] .driver-auth-logo {
  direction: ltr !important;
  display: inline-flex !important;
}

[dir="rtl"] .saudi-moroor-plate,
[dir="rtl"] .saudi-plate-container,
[dir="rtl"] .saudi-plate-main,
[dir="rtl"] .saudi-plate-row,
[dir="rtl"] .saudi-plate-strip,
[dir="rtl"] .saudi-plate-cell,
[dir="rtl"] .plate-input-wrapper {
  direction: ltr !important;
}

[dir="rtl"] .saudi-plate-en-input {
  direction: ltr !important;
  text-align: center !important;
}

[dir="rtl"] .saudi-plate-cell-num {
  border-right: 2px solid #282E3C !important;
  border-left: none !important;
}

[dir="rtl"] .saudi-plate-strip {
  border-left: 2.5px solid #1C2029 !important;
  border-right: none !important;
}

[dir="rtl"] #topBarDriverPlate,
[dir="rtl"] #pendingDriverPlate {
  direction: ltr !important;
  display: inline-block;
}

[dir="rtl"] #loginIdentifier,
[dir="rtl"] #regPhone {
  direction: ltr !important;
  text-align: left !important;
}

/* ==========================================================================
   OSRM TURN-BY-TURN CANLI NAVİGASYON HUD (Google Maps / Uber Tarzı)
   ========================================================================== */
.driver-nav-hud {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(18, 20, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(254, 208, 0, 0.4);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(254, 208, 0, 0.15);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
  transition: all 0.25s ease;
  user-select: none;
}

.nav-hud-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bitaksi-yellow, #FED000);
  color: #121418;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(254, 208, 0, 0.35);
}

.nav-hud-text-box {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-hud-dist {
  font-size: 19px;
  font-weight: 900;
  color: var(--bitaksi-yellow, #FED000);
  font-family: var(--font-mono, monospace);
  line-height: 1.1;
  margin-bottom: 2px;
}

.nav-hud-instruction {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.nav-hud-meta-box {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.nav-hud-eta {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--bitaksi-green, #00D084);
  font-family: var(--font-mono, monospace);
}

.nav-hud-remain {
  font-size: 11px;
  color: var(--text-secondary, #94A3B8);
  font-weight: 600;
}

.btn-nav-steps {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 7px;
  margin-top: 2px;
  transition: background 0.15s ease;
}

.btn-nav-steps:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   WAZE & GOOGLE MAPS TEK TIKLA DERİN LİNK BUTONLARI (Deep-Link API)
   ========================================================================== */
.mission-nav-apps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.btn-nav-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-nav-gmaps {
  background: rgba(66, 133, 244, 0.12);
  border: 1.5px solid rgba(66, 133, 244, 0.45);
  color: #60A5FA;
}

.btn-nav-gmaps:hover {
  background: rgba(66, 133, 244, 0.24);
  border-color: #60A5FA;
  transform: translateY(-1px);
}

.btn-nav-waze {
  background: rgba(51, 204, 255, 0.12);
  border: 1.5px solid rgba(51, 204, 255, 0.45);
  color: #38BDF8;
}

.btn-nav-waze:hover {
  background: rgba(51, 204, 255, 0.24);
  border-color: #38BDF8;
  transform: translateY(-1px);
}

/* ==========================================================================
   BATTERY STATUS API: MÜŞTERİ KRİTİK PİL UYARILARI
   ========================================================================== */
.call-battery-alert,
.mission-battery-alert {
  background: rgba(255, 69, 58, 0.14);
  border: 1.5px solid #FF453A;
  color: #FF6961;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

.pulse-battery-alarm {
  animation: pulseBatteryAlarm 1.6s infinite;
}

@keyframes pulseBatteryAlarm {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 69, 58, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 69, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 69, 58, 0);
  }
}

.battery-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px #FF453A);
}

/* ==========================================================================
   TURN-BY-TURN ADIMLAR LİSTESİ MODALI
   ========================================================================== */
.nav-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.15s ease;
}

.nav-step-item.active-step {
  border-color: var(--bitaksi-yellow, #FED000);
  background: rgba(254, 208, 0, 0.1);
  box-shadow: 0 0 12px rgba(254, 208, 0, 0.2);
}

.nav-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(254, 208, 0, 0.15);
  color: var(--bitaksi-yellow, #FED000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.nav-step-text {
  flex: 1;
  font-size: 12.5px;
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.3;
}

.nav-step-dist {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary, #94A3B8);
}

/* ==========================================================================
   ÇEKİCİ KAYIT SİHİRBAZI (DRIVER REGISTRATION STEPPER WIZARD)
   ========================================================================== */
.driver-wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 10px 0 18px;
  padding: 0 4px;
}

.driver-wizard-stepper::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border-color, #2D3342);
  z-index: 1;
}

.driver-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
}

.driver-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1B1E26;
  border: 2px solid #2D3342;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.driver-step-title {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  transition: color 0.2s ease;
  white-space: nowrap;
}

/* Aktif Adım */
.driver-step-node.active .driver-step-circle {
  background: var(--bitaksi-yellow, #FED000);
  border-color: var(--bitaksi-yellow, #FED000);
  color: #121418;
  box-shadow: 0 0 14px rgba(254, 208, 0, 0.45);
  transform: scale(1.1);
}

.driver-step-node.active .driver-step-title {
  color: var(--bitaksi-yellow, #FED000);
  font-weight: 800;
}

/* Tamamlanmış Adım */
.driver-step-node.completed .driver-step-circle {
  background: #00D084;
  border-color: #00D084;
  color: #ffffff;
}

.driver-step-node.completed .driver-step-title {
  color: #00D084;
}

/* Step Slides */
.reg-wizard-slide {
  display: none;
  animation: regSlideFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reg-wizard-slide.active {
  display: block;
}

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

.reg-step-header {
  margin-bottom: 14px;
}

.reg-step-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-step-desc {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 3px;
  line-height: 1.4;
}

/* Aksiyon Çubukları */
.reg-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.btn-reg-back {
  flex: 0 0 auto;
  min-width: 90px;
  height: 48px;
  border-radius: 8px;
  background: #181B22;
  border: 1.5px solid #2D3342;
  color: #E2E8F0;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-reg-back:hover {
  background: #252B38;
  border-color: #475569;
}

.btn-reg-next {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  background: var(--bitaksi-yellow, #FED000);
  border: none;
  color: #121418;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(254, 208, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-reg-next:hover {
  background: #E5BB00;
  transform: translateY(-1px);
}

/* Evrak Durum Sayacı */
.doc-status-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2D3342;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Adım 4 Başvuru Özeti */
.reg-summary-card {
  background: #12151D;
  border: 1.5px solid #2D3342;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.reg-summary-label {
  color: #94A3B8;
  font-weight: 600;
}

.reg-summary-val {
  color: #FFFFFF;
  font-weight: 700;
}

#summaryRegPhone {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
  text-align: left !important;
  display: inline-block !important;
}

/* ==========================================================================
   ÇEVRİMDIŞI SÜRÜCÜ UYARI & TEK TIKLA ÇEVRİMİÇİ OLMA KARTI (OFFLINE ACTION CARD)
   ========================================================================== */
.driver-offline-card {
  position: absolute;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  max-width: 480px;
  margin: 0 auto;
  z-index: 3800 !important;
  background: rgba(11, 17, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(16, 185, 129, 0.42);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(16, 185, 129, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUpOfflineCard 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] .driver-offline-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(245, 158, 11, 0.15);
}

@keyframes slideUpOfflineCard {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.offline-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.offline-card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.offline-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  animation: pulseAmberDot 1.4s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseAmberDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
  }
  50% {
    transform: scale(1.35);
    opacity: 0.8;
    box-shadow: 0 0 16px rgba(245, 158, 11, 1);
  }
}

.offline-status-text {
  font-size: 14.5px;
  font-weight: 800;
  color: #F59E0B;
  letter-spacing: -0.2px;
}

:root[data-theme="light"] .offline-status-text {
  color: #D97706;
}

.offline-card-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
}

:root[data-theme="light"] .offline-card-desc {
  color: #475569;
}

.btn-driver-go-online {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00E599 0%, #10B981 55%, #059669 100%);
  color: #03150E;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.38);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-driver-go-online:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.55);
  filter: brightness(1.04);
}

.btn-driver-go-online:active {
  transform: translateY(1px) scale(0.98);
}

.btn-driver-go-online-icon {
  font-size: 18px;
  display: inline-flex;
  animation: bounceOnlineIcon 1.8s infinite ease-in-out;
}

@keyframes bounceOnlineIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

/* Üst Bardaki Canlı Durum Rozetine Tıklanabilirlik */
.top-bar-live-status {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-bar-live-status:hover {
  transform: scale(1.05);
  border-color: var(--bitaksi-yellow);
}

.top-bar-live-status:active {
  transform: scale(0.97);
}

/* =========================================================================
   MÜŞTERİ İLETİŞİM VE ARAMA MODALI (DARK & LIGHT TEMA TAM UYUMLU)
   ========================================================================= */
.contact-modal-card {
  max-width: 400px;
  text-align: center;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-modal-card .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.contact-modal-card .modal-title {
  color: #10B981 !important;
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-modal-card .btn-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary, #94A3B8);
  padding: 4px;
}
.contact-modal-card .btn-close:hover {
  color: #EF4444;
}

.contact-modal-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #94A3B8);
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Telefon Kutusu */
.contact-phone-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid #10B981;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-phone-label {
  font-size: 11px;
  color: #10B981;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* Telefon Numarası Metni (Karanlıkta Parlak Beyaz, Aydınlıkta Simsiyah / Koyu Zümrüt) */
.contact-phone-number {
  font-size: 26px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  direction: ltr;
  margin: 6px 0 10px 0;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

/* Kopyala Butonu */
.btn-copy-phone {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-copy-phone:hover {
  background: rgba(255, 255, 255, 0.22);
}

.contact-actions-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-direct-call {
  background: #10B981 !important;
  color: #FFFFFF !important;
  font-weight: 900;
  font-size: 15px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  border: none;
  cursor: pointer;
}

.btn-whatsapp-call {
  background: #25D366 !important;
  color: #FFFFFF !important;
  font-weight: 900;
  font-size: 14.5px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  border: none;
  cursor: pointer;
}

.btn-dismiss-contact {
  margin-top: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
}

/* ── BEYAZ TEMA (LIGHT MODE) ÖZEL DÜZELTMELERİ ── */
:root[data-theme="light"] .contact-modal-card {
  background: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

:root[data-theme="light"] .contact-modal-card .modal-header {
  border-bottom-color: #E2E8F0;
}

:root[data-theme="light"] .contact-modal-card .btn-close {
  color: #64748B;
}
:root[data-theme="light"] .contact-modal-card .btn-close:hover {
  color: #EF4444;
}

:root[data-theme="light"] .contact-modal-desc {
  color: #475569;
}

:root[data-theme="light"] .contact-phone-box {
  background: #ECFDF5;
  border-color: #10B981;
}

:root[data-theme="light"] .contact-phone-label {
  color: #059669;
}

:root[data-theme="light"] .contact-phone-number {
  color: #064E3B !important; /* Çok koyu ve net okunur zümrüt yeşili */
  text-shadow: none;
}

:root[data-theme="light"] .btn-copy-phone {
  background: #FFFFFF;
  border-color: #A7F3D0;
  color: #065F46 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
:root[data-theme="light"] .btn-copy-phone:hover {
  background: #E6F4EA;
}

:root[data-theme="light"] .btn-dismiss-contact {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

/* ==============================================================================
   📱 EVRENSEL ÇOKLU CİHAZ VE EKRAN UYUM MİMARİSİ (Universal Device Optimization)
   Samsung S24+, M33, Katlanabilir (Fold), Tablet ve Araç İçi Yatay Tutucu Modu
   ============================================================================== */

/* 1. Çentik, Kamera Deliği (Punch-Hole) ve Uçtan Uca (Edge-to-Edge) Güvenli Alan */
body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

/* 2. Çekici Araç İçi Yatay Telefon Tutucu Modu (Landscape / Dashboard Navigation) */
@media screen and (orientation: landscape) and (max-height: 600px) {
  .driver-top-bar {
    height: 48px !important;
    padding: 4px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left)) !important;
  }

  .driver-top-bar .driver-profile-info {
    font-size: 13px !important;
  }

  /* Harita görünümünü geniş tut, alt görev kartını sağa/sola kompakt yasla */
  .incoming-call-overlay,
  .active-mission-sheet {
    max-height: 94vh !important;
    overflow-y: auto !important;
  }

  .incoming-call-card {
    max-width: 460px !important;
    padding: 12px 16px !important;
    gap: 8px !important;
  }

  .incoming-call-card .action-buttons-row {
    flex-direction: row !important;
    gap: 10px !important;
  }

  .btn-accept-call,
  .btn-reject-call {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .driver-offline-card {
    max-width: 480px !important;
    margin: 0 auto max(8px, env(safe-area-inset-bottom)) auto !important;
    padding: 10px 14px !important;
  }
}

/* 3. Büyük Ekranlı Telefonlar, Katlanabilir Cihazlar ve Tabletler (Fold / Tablet / 768px+) */
@media screen and (min-width: 768px) {
  .incoming-call-card,
  .driver-offline-card,
  .mission-recovery-banner {
    max-width: 520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .active-mission-sheet {
    max-width: 560px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

/* 4. Küçük / Kompakt Telefonlar (Eski veya Kompakt Ekranlar <= 360px) */
@media screen and (max-width: 360px) {
  .driver-top-bar {
    padding: 8px 10px !important;
  }

  .btn-status-toggle {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .incoming-call-card .mission-badge {
    font-size: 11px !important;
  }
}

/* ==========================================================================
   🚀 KAPALI BETA ROZETİ (CLOSED TESTING BADGE v1.2.0)
   ========================================================================== */
.driver-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.14);
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.driver-beta-badge .beta-icon {
  font-size: 12px;
  animation: betaPulse 2s infinite ease-in-out;
}

@keyframes betaPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #FED000); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 6px #FED000); }
}

.drawer-version-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.4px;
}

.drawer-beta-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #10B981;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

:root[data-theme="light"] .reg-summary-card,
:root[data-theme="light"] .doc-status-counter-bar,
:root[data-theme="light"] .btn-reg-back {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

:root[data-theme="light"] .reg-summary-val {
  color: #0F172A !important;
}

:root[data-theme="light"] .driver-beta-badge {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
  color: #047857 !important;
}

:root[data-theme="light"] #driverSensorHud {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #10B981 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
}

@keyframes spinProof {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

:root[data-theme="light"] .photo-upload-container {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

:root[data-theme="light"] #btnProofPickGallery {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

/* 💰 Cüzdan & SARIE Transfer Modal Açık/Koyu Tema Uyumu */
.wallet-balance-card {
  background: #1B1E26;
}
.wallet-bank-card {
  background: rgba(255, 255, 255, 0.03);
}
.wallet-form-box {
  background: rgba(254, 208, 0, 0.04);
}
.wallet-payout-input {
  background: #121418;
  border: 1.5px solid var(--border-color);
}
.btn-wallet-max {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn-quick-payout-chip {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.15s ease;
}
.btn-quick-payout-chip:hover {
  background: rgba(254, 208, 0, 0.15);
  border-color: #FED000;
  color: #FED000;
}
.wallet-history-card {
  background: #1B1E26;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
}

:root[data-theme="light"] #driverWalletModal .driver-modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
}
:root[data-theme="light"] .wallet-balance-card {
  background: #F8FAFC !important;
  border-color: #FED000 !important;
}
:root[data-theme="light"] .wallet-bank-card {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
}
:root[data-theme="light"] .wallet-form-box {
  background: #FEFCE8 !important;
  border-color: #FDE047 !important;
}
:root[data-theme="light"] .wallet-payout-input {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
:root[data-theme="light"] .btn-wallet-max {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
:root[data-theme="light"] .btn-quick-payout-chip {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}
:root[data-theme="light"] .btn-quick-payout-chip:hover {
  background: #FEF9C3 !important;
  border-color: #EAB308 !important;
  color: #854D0E !important;
}
:root[data-theme="light"] .wallet-history-card {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}
:root[data-theme="light"] #btnBottomCloseDriverWallet {
  background: #F1F5F9 !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}



