:root {
  --krent-blue: #0B1F3A;
  --krent-blue-dark: #050F1E;
  --krent-gold: #FFC107;
  --krent-gold-dark: #FFA000;
  --krent-white: #FFFFFF;
  --krent-bg: #F5F7FA;
  --krent-text: #1A1A2E;
  --krent-text-light: #374151;
  --krent-error: #E53935;
  --radius: 16px;
}

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

body {
  font-family: -apple-system, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  background: var(--krent-bg);
  color: var(--krent-text);
  font-weight: 600;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.screen:not(.app-screen) {
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top, 20px) + 16px);
}

.topbar {
  padding-top: env(safe-area-inset-top, 4px);
}

.screen {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.hidden {
  display: none !important;
}

.search-hidden {
  display: none !important;
}

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

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.logo-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--krent-blue), var(--krent-blue-dark));
  color: var(--krent-gold);
  font-size: 32px;
  font-weight: 800;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.25);
}

.brand h1 {
  font-size: 28px;
  color: var(--krent-blue-dark);
  letter-spacing: 1px;
}

.tagline {
  color: var(--krent-text-light);
  font-size: 14px;
  margin-top: 4px;
}

.card {
  background: var(--krent-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hint {
  color: var(--krent-text-light);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.input-group:focus-within {
  border-color: var(--krent-blue);
}

.prefix {
  padding: 14px 12px;
  background: #F1F5F9;
  color: var(--krent-text-light);
  font-weight: 600;
  font-size: 15px;
}

.input-group input {
  flex: 1;
  border: none;
  padding: 14px 12px;
  font-size: 16px;
  outline: none;
  text-align: right;
  font-family: inherit;
}

.btn-primary {
  width: 100%;
  background: var(--krent-gold);
  color: var(--krent-blue);
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--krent-gold-dark);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-link {
  width: 100%;
  background: none;
  border: none;
  color: var(--krent-blue);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
}

.location-icon-big {
  font-size: 22px;
  vertical-align: middle;
  margin-left: 4px;
  display: inline-block;
}

.location-icon-svg {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin-left: 6px;
  display: inline-block;
}

.error-text {
  color: var(--krent-error);
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  direction: ltr;
}

.otp-box {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
}

.otp-box:focus {
  border-color: var(--krent-blue);
}

.usertype-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usertype-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  background: var(--krent-white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: start;
}

.usertype-card:hover {
  border-color: var(--krent-gold);
  background: #FFFBEB;
  transform: translateY(-1px);
}

.usertype-card:active {
  transform: translateY(0);
}

.usertype-icon-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usertype-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.usertype-icon-blue {
  background: #E8F1FF;
  color: var(--krent-blue);
}

.usertype-icon-gold {
  background: #FFF6DE;
  color: #B8860B;
}

.usertype-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.usertype-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--krent-text, #1A202C);
}

.usertype-subtitle {
  font-size: 12.5px;
  font-weight: 400;
  color: #8A94A6;
  line-height: 1.4;
}

.usertype-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #C3CAD6;
  transform: scaleX(-1); /* RTL: arrow points to the start (right) */
}

#recaptcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* ================= Home Screen ================= */

.app-screen {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--krent-bg);
  position: relative;
}

.app-shell {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 90px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  color: var(--krent-blue-dark);
}

.logo-circle.small {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border-radius: 14px;
  margin: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: var(--krent-white);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login-topbar {
  background: var(--krent-gold);
  color: var(--krent-blue);
  border: none;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-login-topbar:hover {
  background: var(--krent-gold-dark);
}

.search-bar {
  position: relative;
  margin-bottom: 18px;
}

.search-bar input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  background: var(--krent-white);
  font-family: inherit;
  text-align: right;
}

.search-bar input:focus {
  border-color: var(--krent-blue);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.5;
}

.categories-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: var(--krent-white);
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  max-height: 160px;
  overflow: hidden;
  transition: all 0.2s ease;
  aspect-ratio: 1 / 1.1;
  box-sizing: border-box;
}

.category-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-chip.active {
  border-color: var(--krent-blue);
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.2);
}

.category-chip .cat-icon {
  font-size: 22px;
}

.cat-img-wrap {
  width: 100%;
  height: 70%;
  border-radius: 0;
  overflow: hidden;
  background-color: #f0f0f0;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-chip:hover .cat-img {
  transform: scale(1.05);
}

.category-chip.active .cat-img-wrap {
  border-color: var(--krent-gold);
}

.category-chip .cat-name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--krent-text);
  padding: 8px 4px;
  width: 100%;
  background-color: var(--krent-white);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: normal;
}

.category-chip.active .cat-name {
  background-color: var(--krent-blue);
  color: var(--krent-white);
}

/* شاردنەوەی بەهێزی بەشی گشتی ئۆتۆمبێلەکان لای کڕیار - بەبێ پاڵپشتی بە index.html */
#home-screen .vehicles-section {
  display: none !important;
}

.vehicles-section h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vehicle-card {
  display: flex;
  gap: 12px;
  background: var(--krent-white);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.vehicle-thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E3F2FD, #FFF8E1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.vehicle-title {
  font-weight: 700;
  font-size: 14px;
}

.vehicle-meta {
  font-size: 12px;
  color: var(--krent-text-light);
}

.vehicle-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--krent-blue);
}

.loading-text, .empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--krent-text-light);
  font-size: 14px;
}

.empty-state .empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.bottom-nav {
  display: flex;
  border-top: 1px solid #E2E8F0;
  background: var(--krent-white);
  padding: 8px 4px;
  position: sticky;
  bottom: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: none;
  padding: 8px 4px;
  font-size: 11px;
  color: var(--krent-text-light);
  font-family: inherit;
  cursor: pointer;
}

.nav-item.active {
  color: var(--krent-blue);
  font-weight: 700;
}

.nav-icon {
  font-size: 20px;
}

/* ================= Profile Screen ================= */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 10px;
}

.avatar-img, .avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  background: linear-gradient(135deg, var(--krent-blue), var(--krent-blue-dark));
  color: var(--krent-gold);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 30px;
  height: 30px;
  background: var(--krent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--krent-white);
}

.usertype-badge {
  background: #E3F2FD;
  color: var(--krent-blue-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: var(--krent-text-light);
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 4px;
}

.disabled-group input {
  color: var(--krent-text-light);
  background: #F8FAFC;
}

.logout-link {
  color: var(--krent-error);
  margin-top: 16px;
  text-align: center;
  width: 100%;
}

/* ================= Promo Slider ================= */

.promo-slider {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #E2E8F0;
  width: 100%;
  background: var(--krent-white);
}

.promo-track {
  display: flex;
  gap: 8px;
  padding: 8px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

.promo-slide {
  min-width: 210px;
  max-width: 240px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--krent-text);
  background: var(--krent-white);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #E2E8F0;
}

.promo-img-box {
  width: 100%;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f8f9fa;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-text {
  padding: 10px 12px;
}

.promo-title {
  font-weight: 800;
  font-size: 12px;
  line-height: 1.4;
  color: var(--krent-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-sub {
  font-size: 11px;
  color: var(--krent-blue);
  font-weight: 700;
  margin-top: 2px;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  background: var(--krent-white);
}

.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D1D9E6;
  transition: all 0.3s;
}

.promo-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--krent-blue);
}

.add-vehicle-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--krent-gold), #FFB300);
  color: var(--krent-blue-dark);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.35);
  font-family: inherit;
}

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

.input-group select {
  flex: 1;
  border: none;
  padding: 14px 12px;
  font-size: 15px;
  outline: none;
  text-align: right;
  font-family: inherit;
  background: transparent;
  width: 100%;
}

/* ================= Admin ================= */

.admin-section-title {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-card.admin-card {
  flex-direction: column;
  align-items: stretch;
}

.vehicle-card.admin-card .vehicle-top {
  display: flex;
  gap: 12px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.admin-actions button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-approve {
  background: #E8F5E9;
  color: #2E7D32;
}

.btn-reject, .btn-delete {
  background: #FFEBEE;
  color: var(--krent-error);
}

.pending-badge {
  display: inline-block;
  background: #FFF3E0;
  color: #E65100;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* ================= Staff & Requests (Admin) ================= */

.staff-form-card {
  margin-bottom: 14px;
}

.staff-list, .requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--krent-white);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.promo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  margin-left: 10px;
  flex-shrink: 0;
}

.staff-name {
  font-weight: 700;
  font-size: 14px;
}

.staff-meta {
  font-size: 12px;
  color: var(--krent-text-light);
  margin-top: 2px;
}

.request-card {
  background: var(--krent-white);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.request-card.request-done {
  opacity: 0.6;
}

.request-title {
  font-weight: 700;
  font-size: 14px;
}

.request-meta {
  font-size: 12px;
  color: var(--krent-text-light);
  margin-top: 2px;
  margin-bottom: 10px;
}

.request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #E7F9EE;
  color: #1B8A45;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-map {
  background: #E3F2FD;
  color: var(--krent-blue-dark);
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.no-staff-badge {
  background: #FFF3E0;
  color: #E65100;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 10px;
  align-self: center;
}

.commission-badge {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 4px;
}

.commission-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.commission-input {
  flex: 1;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  text-align: right;
}

.btn-save-commission {
  background: #E3F2FD;
  color: var(--krent-blue-dark);
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.staff-card-actions {
  display: flex;
  gap: 6px;
}

.btn-edit {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: var(--krent-white);
  font-size: 14px;
  cursor: pointer;
}

.promo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

#staff-cancel-edit-btn {
  display: none;
}

#driver-cancel-edit-btn {
  display: none;
}

#promo-cancel-edit-btn {
  display: none;
}

#driver-photo-preview {
  width: 72px;
  height: 72px;
}

.driver-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  margin-left: 10px;
  flex-shrink: 0;
  background: #F1F5F9;
}

.promo-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promo-preview-row img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #F1F5F9;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--krent-white);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-name {
  font-weight: 700;
  font-size: 13px;
}

.stat-cat {
  font-weight: 400;
  color: var(--krent-text-light);
  font-size: 12px;
}

.stat-numbers {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--krent-text-light);
}

.stat-today b, .stat-total b {
  color: var(--krent-blue);
  font-size: 14px;
}

.stat-numbers b {
  color: var(--krent-blue);
}

/* ================= Desktop layout for Admin screen ================= */

@media (min-width: 900px) {
  #admin-screen {
    max-width: 1100px;
  }

  #admin-screen .app-shell {
    padding: 24px 32px 60px;
  }

  #admin-screen .vehicles-list,
  #admin-screen .staff-list,
  #admin-screen .requests-list,
  #admin-screen .stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
  }

  #admin-screen .staff-form-card {
    max-width: 480px;
  }

  #admin-screen h3 {
    margin-top: 8px;
  }
}

@media (min-width: 1200px) {
  #admin-screen {
    max-width: 1300px;
  }
}

/* ================= Responsive Layout for Laptop & Desktop (site-wide) ================= */
@media (min-width: 900px) {
  /* بەشە سەرەکییەکان (سەرەکی، پڕۆفایل، بەڕێوەبەری) پان دەبنەوە بۆ شاشەی گەورە */
  .app-screen {
    max-width: 100%;
    width: 100%;
    height: 100vh;
  }

  .app-shell {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 24px 32px 40px;
  }

  /* کاتێگۆرییەکان بە زیاتر ستوون لە شاشەی گەورەدا */
  .categories-row {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  /* لیستی ئۆتۆمبێلەکان بە زیاتر ستوون */
  #vehicles-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  #vehicles-list .vehicle-thumb {
    height: 110px;
  }

  /* ناوچەی خوارەوە (Bottom Nav) لە ناوەڕاستی شاشە دەمێنێتەوە */
  .bottom-nav {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
}

.close-btn {
  align-self: flex-start;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F0;
  background: var(--krent-white);
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 12px;
  color: var(--krent-text-light);
}

/* ================= Request Modal ================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--krent-white);
  border-radius: var(--radius);
  padding: 24px 22px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: fadeIn 0.25s ease;
}

.modal-card h2 {
  font-size: 19px;
  margin-bottom: 6px;
  padding-left: 30px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F0;
  background: var(--krent-white);
  font-size: 14px;
  cursor: pointer;
  color: var(--krent-text-light);
}

/* ================= Admin dashboard menu grid ================= */

.admin-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.admin-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--krent-white);
  border: none;
  border-radius: 14px;
  padding: 22px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--krent-text);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-menu-item:active {
  transform: scale(0.97);
}

.admin-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.12), rgba(255, 193, 7, 0.14));
  color: var(--krent-blue);
}

.admin-menu-icon svg {
  width: 22px;
  height: 22px;
}

.admin-modal .modal-card {
  max-width: 460px;
  text-align: right;
}

/* ================= Home vehicles grid (3 per row) ================= */

#vehicles-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#vehicles-list .vehicle-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 6px;
  gap: 6px;
}

#vehicles-list .vehicle-thumb {
  width: 100%;
  height: 62px;
  font-size: 24px;
  border-radius: 8px;
}

#vehicles-list .vehicle-info {
  align-items: center;
  gap: 2px;
  width: 100%;
}

#vehicles-list .vehicle-title {
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#vehicles-list .vehicle-meta {
  font-size: 10px;
}

#vehicles-list .vehicle-price {
  font-size: 11px;
}

#vehicles-list .empty-state {
  grid-column: 1 / -1;
}

/* ================= Toggle switch (driver online/offline) ================= */

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

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

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #E2E8F0;
  border-radius: 28px;
  transition: 0.2s;
}

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

.switch input:checked + .slider {
  background-color: #2E7D32;
}

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

/* live-tracking map page */
.track-map-wrap {
  width: 100%;
  height: 45vh;
  background: #E2E8F0;
}

.track-driver-card {
  background: var(--krent-white);
  border-radius: 16px 16px 0 0;
  margin-top: -20px;
  position: relative;
  padding: 20px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

/* ================= Contract Print View ================= */

#contract-print-view {
  position: fixed;
  inset: 0;
  background: #F1F5F9;
  z-index: 9999;
  overflow-y: auto;
  padding: 16px;
}

#contract-print-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto 16px;
}

#contract-print-content {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  line-height: 1.5;
  color: #1A202C;
  font-size: 13px;
}

#contract-print-content p {
  margin: 4px 0 8px;
}

.contract-header {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--krent-blue);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.contract-logo-img {
  max-width: 190px;
  width: 100%;
  height: auto;
}

.contract-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.contract-logo-fallback b {
  font-size: 24px;
  color: var(--krent-blue);
  font-weight: 800;
}

.contract-logo-fallback span {
  font-size: 11px;
  color: #64748B;
}

.contract-company-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--krent-blue);
}

.contract-company-sub {
  font-size: 12.5px;
  color: #64748B;
}

.contract-meta-line {
  font-size: 12.5px;
  color: #475569;
  margin: 2px 0;
}

.contract-main-title {
  text-align: center;
  font-size: 15.5px;
  font-weight: 800;
  margin: 10px 0 10px;
  color: var(--krent-blue-dark);
  line-height: 1.4;
}

.contract-blank-lines {
  font-size: 12.5px;
  line-height: 1.75;
  color: #334155;
  margin: 3px 0 6px;
}

.contract-parties {
  font-size: 13px;
  text-align: justify;
  margin-bottom: 6px;
}

#contract-print-content h3 {
  font-size: 13.5px;
  color: var(--krent-blue);
  margin: 12px 0 4px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 3px;
}

.contract-terms {
  font-size: 12.5px;
  padding-inline-start: 18px;
  text-align: justify;
  margin: 4px 0;
}

.contract-terms li {
  margin-bottom: 3px;
}

.contract-closing {
  font-size: 12.5px;
  color: #475569;
  margin-top: 10px;
  font-style: italic;
}

.contract-signatures {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.contract-sign-box {
  flex: 1;
  min-width: 220px;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
}

.contract-sign-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--krent-blue-dark);
  margin-bottom: 6px;
}

.contract-sign-line {
  font-size: 12px;
  color: #334155;
  margin-bottom: 3px;
}

.contract-sign-blank {
  font-size: 12px;
  color: #334155;
  margin-top: 14px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #contract-print-content, #contract-print-content * {
    visibility: visible;
  }
  #contract-print-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    font-size: 10.5px;
    line-height: 1.35;
  }
  #contract-print-content p {
    margin: 2px 0 4px;
  }
  #contract-print-content h3 {
    margin: 8px 0 3px;
    font-size: 11.5px;
  }
  .contract-terms {
    margin: 2px 0;
  }
  .contract-terms li {
    margin-bottom: 1px;
  }
  .contract-signatures {
    margin-top: 12px;
  }
  .contract-sign-box {
    padding: 8px 10px;
  }
  .contract-logo-img {
    max-width: 150px;
  }
  #contract-print-toolbar {
    display: none;
  }
}

.photo-pick-btn {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  padding: 14px;
  color: var(--krent-blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.photo-pick-btn:active {
  background: #EEF2F7;
}

/* ================= Pending Vehicle Photo Review ================= */

.pending-photos-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.pending-photo-box {
  flex: 1;
  min-width: 0;
}

.pending-photo-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 5px;
}

.pending-photo-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
}

.pending-photo-missing {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  border: 1.5px dashed #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #94A3B8;
}

/* ================= Vehicle Management Tabs ================= */

.vehicle-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid #E2E8F0;
  overflow-x: auto;
}

.vehicle-tab {
  background: none;
  border: none;
  padding: 10px 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
}

.vehicle-tab.active {
  color: var(--krent-blue);
  border-bottom-color: var(--krent-blue);
}

.tab-badge {
  background: #E53935;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ================= Channel Choice (WhatsApp / SMS) ================= */

.channel-choice-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.channel-choice-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: var(--krent-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.channel-choice-btn.active {
  border-color: var(--krent-blue);
  background: #E8F1FF;
  color: var(--krent-blue);
}

.channel-icon {
  font-size: 16px;
}

/* ===== دوگمەکانی سەرەوە: گەورەتر (لانیکەم 44px وەک ڕێنمایی ئەپڵ) و ڕوونتر ===== */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
#profile-back-btn,
#admin-back-btn {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  font-weight: 800;
}
#profile-back-btn::after,
#admin-back-btn::after {
  content: "گەڕانەوە";
  font-size: 13.5px;
  font-family: inherit;
}
#logout-btn,
#staff-dashboard-logout-btn,
#driver-dashboard-logout-btn {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  background: #FFEBEE;
  border-color: #FFCDD2;
  color: #C62828;
  font-size: 18px;
}
#logout-btn::after,
#staff-dashboard-logout-btn::after,
#driver-dashboard-logout-btn::after {
  content: "دەرچوون";
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
}
.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
  max-width: 100%;
}

/* ===== یەک ستایل بۆ هەموو دوگمە زەردەکان: قاوەیی + نووسینی سپی =====
   (هەمان ڕەنگی دوگمەی "داواکاری تاکسی" — لە هەموو شاشەیەکدا ڕوونتر دەبینرێت) */
.btn-primary,
.btn-login-topbar,
.add-vehicle-banner,
.avatar-edit-btn {
  background: #5C3F05;
  color: #FFFFFF;
}
.btn-primary:hover,
.btn-login-topbar:hover,
.add-vehicle-banner:hover {
  background: #4A3204;
  color: #FFFFFF;
}
.btn-primary:disabled {
  opacity: 0.55;
}
#home-marquee-wrap.home-marquee-wrap {
  background: #5C3F05;
}
#home-marquee-wrap .home-marquee-item {
  color: #FFFFFF;
}

/* ===== فۆرمی داواکردنی ئۆتۆمبێل: نووسینی گەورەتر و بۆڵد بۆ ئەوەی کڕیار بە ئاسانی بیخوێنێتەوە ===== */
#request-modal-overlay h2 {
  font-size: 22px;
  font-weight: 800;
}
#request-modal-overlay .hint {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A2E;
  line-height: 1.7;
}
#request-modal-overlay .field-label {
  font-size: 15px;
  font-weight: 800;
  color: #1A1A2E;
}
#request-modal-overlay input {
  font-size: 18px;
  font-weight: 700;
}
#request-modal-overlay .btn-primary {
  font-size: 17px;
  font-weight: 800;
  padding-top: 15px;
  padding-bottom: 15px;
}
#request-modal-overlay .btn-link {
  font-size: 16px;
  font-weight: 800;
  color: #0B1F3A;
}
/* دوگمەی "ناردنی شوێنی ئێستام" — وەک دوگمەیەکی ڕوون، نەک لینکێکی بچووک */
#request-location-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: #5C3F05;
  background: #FFF8E1;
  border: 2px dashed #5C3F05;
  border-radius: 16px;
  padding: 14px 12px;
  margin: 8px 0 12px;
}
#request-switch-number-btn {
  font-size: 15px;
  text-decoration: underline;
}

/* ===== فۆرمی داواکاری: کورتکردنەوە بۆ ئەوەی کارتی شۆفێر بەبێ سکرۆڵ ببینرێت =====
   لیستی شۆفێرەکان دەچێتە سەرەوەی نەخشەکە، و نەخشە و بۆشاییەکان بچووکتر دەکرێن */
#request-modal-overlay .hint {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.55;
}
#request-modal-overlay h2 {
  margin-bottom: 6px;
}
#request-step-location {
  display: flex;
  flex-direction: column;
}
#request-step-location > * {
  order: 0;
}
#request-nearby-count {
  order: 8;
  margin: 4px 0 6px !important;
}
#request-nearby-drivers-list {
  order: 9;
  margin: 0 0 8px !important;
}
#request-nearby-map {
  order: 10;
  height: 160px !important;
  margin: 4px 0 8px !important;
}
#request-switch-number-btn {
  order: 11;
  padding: 8px;
}
#request-location-btn {
  font-size: 17px;
  padding: 8px 10px;
  margin: 4px 0 6px;
}
#request-location-btn .location-icon-svg {
  width: 34px;
  height: 34px;
}
#request-location-status {
  margin-bottom: 6px;
}
#request-step-location .error-text:empty {
  display: none;
}
#request-step-location .btn-primary {
  margin-top: 4px;
  margin-bottom: 4px;
}
#request-step-location > p.hint:nth-of-type(2) {
  margin: 6px 0 2px !important;
}
