/* Dashboard â€” mobile-first overflow-safe layout */
html:has(body.dashboard-page) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.dashboard-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

body.dashboard-page .dashboard,
body.dashboard-page .dashboard-app,
body.dashboard-page .main,
body.dashboard-page .dashboard-shell,
body.dashboard-page .content,
body.dashboard-page .sidebar,
body.dashboard-page .dashboard-sidebar,
body.dashboard-page .card,
body.dashboard-page .dashboard-card,
body.dashboard-page .stat-card,
body.dashboard-page section,
body.dashboard-page .customer-hero,
body.dashboard-page .dashboard-hero,
body.dashboard-page .driver-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dashboard-page img {
  max-width: 100%;
  height: auto;
}

body.dashboard-page .dashboard,
body.dashboard-page .dashboard-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f8ff;
  overflow-x: hidden;
}

body.dashboard-page .dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #e7edf6;
  box-shadow: none;
}

body.dashboard-page .dashboard-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #071a44;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

body.dashboard-page .dashboard-menu-btn {
  display: none;
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #071a44;
  font-size: 18px;
  margin-left: auto;
}

body.dashboard-page .dashboard-user-log {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  margin-left: auto;
}

body.dashboard-page .dashboard-logout-mobile {
  display: none;
  width: 100%;
  margin-top: 8px;
}

body.dashboard-page .sidebar,
body.dashboard-page .dashboard-sidebar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e7edf6;
}

body.dashboard-page .sidebar a,
body.dashboard-page .dashboard-sidebar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 0;
  background: transparent;
  color: #071a44;
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 700;
  white-space: normal;
}

body.dashboard-page .sidebar a:hover,
body.dashboard-page .sidebar a.active,
body.dashboard-page .dashboard-sidebar a:hover,
body.dashboard-page .dashboard-sidebar a.active {
  background: transparent;
  color: #0067ff;
  text-decoration: underline;
}

body.dashboard-page .main,
body.dashboard-page .dashboard-shell {
  flex: 1;
  margin: 0 auto;
  margin-left: 0 !important;
  padding: 16px;
}

body.dashboard-page .main > *,
body.dashboard-page .dashboard-shell > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.dashboard-page .customer-hero,
body.dashboard-page .dashboard-hero,
body.dashboard-page .driver-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid #e7edf6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 20, 47, .06);
}

body.dashboard-page .customer-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

body.dashboard-page .customer-hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.dashboard-page h1,
body.dashboard-page .customer-hero-copy h1,
body.dashboard-page .dashboard-hero h1 {
  font-size: clamp(22px, 8vw, 38px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.dashboard-page h2,
body.dashboard-page .dashboard-card h2 {
  font-size: clamp(18px, 6vw, 30px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.dashboard-page h3 {
  font-size: clamp(16px, 5vw, 20px);
}

body.dashboard-page .customer-hero-copy p,
body.dashboard-page .dashboard-hero p {
  font-size: clamp(13px, 3.5vw, 15px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.dashboard-page .grid,
body.dashboard-page .stats-grid,
body.dashboard-page .customer-stats,
body.dashboard-page .cards-grid,
body.dashboard-page .content-grid,
body.dashboard-page .customer-layout,
body.dashboard-page .dashboard-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

body.dashboard-page .stats-grid,
body.dashboard-page .customer-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.dashboard-page .cards-grid,
body.dashboard-page .content-grid,
body.dashboard-page .customer-layout,
body.dashboard-page .dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.dashboard-page .customer-info-grid,
body.dashboard-page .customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

body.dashboard-page .card,
body.dashboard-page .dashboard-card,
body.dashboard-page .stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e7edf6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 20, 47, .06);
}

body.dashboard-page .stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.dashboard-page .stat-card strong {
  font-size: clamp(20px, 6vw, 28px);
}

body.dashboard-page .stat-card span {
  font-size: clamp(12px, 3vw, 13px);
}

body.dashboard-page .dashboard-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  min-width: 0;
}

body.dashboard-page .dashboard-card-head > div {
  min-width: 0;
}

body.dashboard-page .dashboard-card-head i,
body.dashboard-page .stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f0ff;
  color: #0067ff;
}

body.dashboard-page .dashboard-avatar,
body.dashboard-page .customer-avatar {
  position: relative;
  width: clamp(64px, 18vw, 96px);
  height: clamp(64px, 18vw, 96px);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e7f0ff;
  color: #0067ff;
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 900;
}

body.dashboard-page .dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.dashboard-page .customer-info-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7edf6;
  border-radius: 10px;
  background: #f8fbff;
}

body.dashboard-page .customer-info-item strong {
  font-size: clamp(13px, 3.5vw, 15px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.dashboard-page .dashboard-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.dashboard-page .dashboard-field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe4f1;
  border-radius: 8px;
  font-size: clamp(14px, 3.5vw, 16px);
}

body.dashboard-page .btn,
body.dashboard-page button,
body.dashboard-page .dashboard-cta,
body.dashboard-page .dashboard-primary,
body.dashboard-page .dashboard-logout,
body.dashboard-page .dashboard-home,
body.dashboard-page .dashboard-cta-small {
  max-width: 100%;
  box-sizing: border-box;
}

body.dashboard-page .dashboard-primary {
  min-width: 0 !important;
}

body.dashboard-page .dashboard-cta,
body.dashboard-page .dashboard-status-pill {
  white-space: normal !important;
  text-align: center;
}

body.dashboard-page .dashboard-user-log {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: clamp(12px, 3vw, 13px);
}

body.dashboard-page .dashboard-user-log strong {
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body.dashboard-page .booking-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

body.dashboard-page .booking-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7edf6;
  border-radius: 10px;
  background: #f8fbff;
}

body.dashboard-page .booking-row-body {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.dashboard-page .booking-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.dashboard-page .booking-status {
  white-space: normal !important;
}

body.dashboard-page .booking-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: clamp(12px, 3vw, 14px);
}

body.dashboard-page .booking-cancel-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.premium-dashboard-page .booking-cancel-btn {
  margin-top: 14px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 12px;
  color: #dc2626;
  background: #fff5f5;
  font-weight: 800;
  cursor: pointer;
}

body.dashboard-page .booking-cancel-btn:hover,
body.premium-dashboard-page .booking-cancel-btn:hover {
  background: #fee2e2;
}

body.cancel-panel-open {
  overflow: hidden;
}

.cancel-trip-panel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.cancel-trip-panel[hidden] {
  display: none !important;
}

.cancel-trip-panel-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.cancel-trip-panel-box {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 20px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  text-align: center;
}

.cancel-trip-panel-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  cursor: pointer;
}

.cancel-trip-panel-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #d97706;
  background: #fff7ed;
  font-size: 22px;
}

.cancel-trip-panel-box h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}

.cancel-trip-panel-box p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.cancel-trip-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cancel-trip-keep-btn,
.cancel-trip-confirm-btn {
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.cancel-trip-keep-btn {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #fff;
}

.cancel-trip-keep-btn:hover {
  background: #f8fafc;
}

.cancel-trip-confirm-btn {
  border: 0;
  color: #fff;
  background: #dc2626;
}

.cancel-trip-confirm-btn:hover {
  background: #b91c1c;
}

.cancel-trip-panel-status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.cancel-trip-panel-status.success {
  color: #15803d;
}

.cancel-trip-panel-status.error {
  color: #b91c1c;
}

body.dashboard-page .empty-bookings-panel {
  padding: 18px;
  border: 1px dashed #dbe4f1;
  border-radius: 12px;
  background: #f8fbff;
}

body.premium-dashboard-page .support-card .admin-contact-info {
  display: grid;
  gap: 8px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

body.premium-dashboard-page .support-card .admin-contact-info strong,
body.premium-dashboard-page .support-card .admin-contact-info a,
body.premium-dashboard-page .support-card .admin-contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dash-muted);
  font-weight: 600;
  text-decoration: none;
}

body.premium-dashboard-page .support-card .admin-contact-info strong {
  color: var(--dash-text);
  font-size: 15px;
}

body.premium-dashboard-page .support-card .admin-contact-info a {
  min-height: auto;
  display: inline-flex;
  justify-content: flex-start;
  padding: 0;
  color: var(--dash-muted);
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}

body.premium-dashboard-page .support-card .admin-contact-info a:hover {
  color: var(--dash-accent);
  transform: none;
}

body.dashboard-page .empty-bookings-panel {
  padding: 18px;
  border: 1px dashed #dbe4f1;
  border-radius: 12px;
  background: #f8fbff;
}

body.dashboard-page .customer-field-full {
  grid-column: 1 / -1;
}

/* Tablet */
@media (max-width: 1024px) {
  body.dashboard-page .stats-grid,
  body.dashboard-page .customer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 769px) {
  body.dashboard-page .sidebar,
  body.dashboard-page .dashboard-sidebar {
    display: flex;
    justify-content: center;
  }

  body.dashboard-page .dashboard-menu-btn {
    display: none !important;
  }

  body.dashboard-page .dashboard-home {
    margin-right: auto;
  }
}

/* Mobile â€” fit 360px screens, no horizontal scroll */
@media (max-width: 768px) {
  body.dashboard-page {
    padding: 0;
  }

  body.dashboard-page .dashboard,
  body.dashboard-page .dashboard-app {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  body.dashboard-page .dashboard-topbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 60px;
  }

  body.dashboard-page .dashboard-home {
    width: auto;
    max-width: none;
    margin-right: 0;
    order: 1;
  }

  body.dashboard-page .dashboard-menu-btn {
    display: inline-flex;
    width: 44px;
    max-width: 44px;
    order: 2;
    margin-left: auto;
  }

  body.dashboard-page .dashboard-user-log {
    display: none !important;
  }

  body.dashboard-page .sidebar,
  body.dashboard-page .dashboard-sidebar {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0 16px 12px;
  }

  body.dashboard-page .sidebar.open,
  body.dashboard-page .dashboard-sidebar.open {
    display: flex;
  }

  body.dashboard-page .dashboard-logout-mobile {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  body.dashboard-page .sidebar a,
  body.dashboard-page .dashboard-sidebar a {
    width: 100%;
    max-width: 100%;
  }

  body.dashboard-page .main,
  body.dashboard-page .dashboard-shell {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  body.dashboard-page .grid,
  body.dashboard-page .stats-grid,
  body.dashboard-page .customer-stats,
  body.dashboard-page .cards-grid,
  body.dashboard-page .content-grid,
  body.dashboard-page .customer-layout,
  body.dashboard-page .dashboard-grid,
  body.dashboard-page .customer-info-grid,
  body.dashboard-page .customer-form-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
  }

  body.dashboard-page .card,
  body.dashboard-page .dashboard-card,
  body.dashboard-page .stat-card {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  body.dashboard-page .customer-hero,
  body.dashboard-page .dashboard-hero,
  body.dashboard-page .driver-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  body.dashboard-page .customer-hero-main {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  body.dashboard-page .btn,
  body.dashboard-page button,
  body.dashboard-page .dashboard-cta,
  body.dashboard-page .dashboard-primary,
  body.dashboard-page .dashboard-cta-small,
  body.dashboard-page .dashboard-status-pill {
    width: 100%;
    max-width: 100%;
  }

  body.dashboard-page .dashboard-topbar .dashboard-home,
  body.dashboard-page .dashboard-topbar .dashboard-menu-btn {
    width: auto;
    max-width: none;
  }

  body.dashboard-page .dashboard-logout-mobile {
    width: 100%;
    max-width: 100%;
  }

  body.dashboard-page .booking-row {
    flex-direction: column;
  }

  body.dashboard-page .booking-row-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  body.dashboard-page .main,
  body.dashboard-page .dashboard-shell {
    padding: clamp(16px, 3vw, 32px);
    max-width: 1200px;
  }
}

@media (min-width: 1025px) {
  body.dashboard-page .stats-grid,
  body.dashboard-page .customer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

body.dashboard-page .profile-card {
  overflow: hidden;
}

body.dashboard-page .book-driver-btn,
body.dashboard-page .book-driver-card {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  body.dashboard-page .profile-card {
    padding: 20px;
  }

  body.dashboard-page .book-driver-btn,
  body.dashboard-page .book-driver-card {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 18px 14px;
  }
}

/* Driver documents upload & dashboard view */
body.driver-docs-page .driver-docs-card {
  width: min(100%, 560px);
  max-height: 92vh;
  overflow-y: auto;
}

body.driver-docs-page .driver-docs-card.driver-docs-checking .driver-docs-form,
body.driver-docs-page .driver-docs-card.driver-docs-checking .driver-docs-header {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body.driver-docs-page .driver-docs-card.driver-docs-checking::after {
  content: "Checking your profile...";
  display: block;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
  padding: 48px 16px;
}

body.driver-docs-page .driver-docs-header {
  margin-bottom: 8px;
}

body.driver-docs-page .driver-docs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

body.premium-dashboard-page .customer-edit-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.86);
}

body.premium-dashboard-page .customer-edit-block h3 {
  margin-bottom: 16px;
  color: var(--dash-text, #071a44);
  font-size: 18px;
}

body.premium-dashboard-page .customer-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

body.premium-dashboard-page .dashboard-secondary-link,
body.premium-dashboard-page .driver-docs-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.premium-dashboard-page .dashboard-secondary-link:hover,
body.premium-dashboard-page .driver-docs-inline-link:hover {
  text-decoration: underline;
}

body.driver-docs-page .driver-docs-form {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

body.driver-docs-page .driver-doc-block {
  padding: 18px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: #f9fbff;
  display: grid;
  gap: 14px;
}

body.driver-docs-page .driver-doc-block-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.driver-docs-page .driver-doc-block-head i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e7f0ff;
  color: #0067ff;
  font-size: 18px;
  flex-shrink: 0;
}

body.driver-docs-page .driver-doc-block-head h2 {
  font-size: 18px;
  color: #071a44;
  margin-bottom: 4px;
}

body.driver-docs-page .driver-doc-block-head p {
  font-size: 13px;
  color: #51627f;
}

body.driver-docs-page .field-required {
  color: #DC2626;
  font-style: normal;
  font-weight: 800;
}

body.driver-docs-page .doc-upload-field {
  display: grid;
  gap: 8px;
}

body.driver-docs-page .doc-upload-field > span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

body.driver-docs-page .doc-upload-box {
  position: relative;
  min-height: 150px;
  border: 2px dashed #c9d8ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

body.driver-docs-page .doc-upload-box:hover {
  border-color: #0067ff;
  background: #f5f9ff;
}

body.driver-docs-page .doc-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

body.driver-docs-page .doc-upload-placeholder {
  min-height: 150px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 20px;
  text-align: center;
  color: #51627f;
}

body.driver-docs-page .doc-upload-placeholder i {
  font-size: 28px;
  color: #0067ff;
}

body.driver-docs-page .doc-upload-placeholder strong {
  color: #071a44;
  font-size: 15px;
}

body.driver-docs-page .doc-upload-placeholder small {
  font-size: 12px;
}

body.driver-docs-page .doc-upload-box.has-file .doc-upload-placeholder {
  opacity: 0.15;
}

body.driver-docs-page .doc-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

body.driver-docs-page .driver-docs-submit {
  width: 100%;
  margin-top: 4px;
}

body.driver-docs-page .driver-slot-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.driver-docs-page .driver-slot-option {
  min-height: 46px;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #fff;
  color: #10204a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

body.driver-docs-page .driver-slot-option.active {
  border-color: #1267ff;
  background: #eef5ff;
  color: #1267ff;
  box-shadow: 0 0 0 4px rgba(18, 103, 255, 0.12);
}

body.driver-docs-page .driver-vehicle-save-status {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #067647;
}

body.driver-docs-page .driver-vehicle-save-status.error {
  color: #b42318;
}

body.driver-docs-page #licenseNumber {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.driver-docs-page .driver-declaration-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.72);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

body.driver-dashboard-page .driver-declaration-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.72);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

body.driver-dashboard-page .doc-upload-field {
  display: grid;
  gap: 8px;
}

body.driver-dashboard-page .doc-upload-field > span {
  color: var(--dash-muted, #64748b);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.driver-dashboard-page .doc-upload-box {
  position: relative;
  min-height: 148px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
  overflow: hidden;
  cursor: pointer;
}

body.driver-dashboard-page .doc-upload-box:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(239, 246, 255, 0.9);
}

body.driver-dashboard-page .doc-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body.driver-dashboard-page .doc-upload-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  text-align: center;
  pointer-events: none;
}

body.driver-dashboard-page .doc-upload-placeholder i {
  color: #2563eb;
  font-size: 28px;
}

body.driver-dashboard-page .doc-upload-placeholder strong {
  color: #0f172a;
  font-size: 15px;
}

body.driver-dashboard-page .doc-upload-placeholder small {
  color: #64748b;
}

body.driver-dashboard-page .doc-upload-box.has-file .doc-upload-placeholder {
  opacity: 0.72;
}

body.driver-dashboard-page .doc-upload-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}

body.driver-dashboard-page .driver-declaration-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

#declarationUploadPanel[hidden],
#declarationViewPanel[hidden] {
  display: none !important;
}

.driver-application-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.driver-application-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
}

.driver-application-banner-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.driver-application-banner-copy strong {
  font-size: 16px;
  color: var(--dash-text, #0f172a);
}

.driver-application-banner-copy span {
  color: var(--dash-muted, #64748b);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.driver-application-banner.pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.driver-application-banner.pending .driver-application-banner-icon {
  background: #fef3c7;
  color: #b45309;
}

.driver-application-banner.accepted {
  background: #ecfdf3;
  border-color: #abefc6;
}

.driver-application-banner.accepted .driver-application-banner-icon {
  background: #d1fae5;
  color: #067647;
}

.driver-application-banner.rejected {
  background: #fff1f2;
  border-color: #fecdd3;
}

.driver-application-banner.rejected .driver-application-banner-icon {
  background: #ffe4e6;
  color: #be123c;
}

.driver-application-banner.incomplete {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.driver-application-banner.incomplete .driver-application-banner-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-drivers-list {
  display: grid;
  gap: 14px;
}

.admin-driver-card {
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
  display: grid;
  gap: 12px;
}

.admin-driver-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-driver-card-head strong {
  display: block;
  color: var(--dash-text, #0f172a);
  font-size: 17px;
}

.admin-driver-card-head small {
  color: var(--dash-muted, #64748b);
  font-weight: 600;
}

.admin-driver-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.admin-driver-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-driver-links a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.admin-driver-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.driver-application-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.driver-application-pill.pending {
  background: #fef3c7;
  color: #b45309;
}

.driver-application-pill.accepted {
  background: #d1fae5;
  color: #067647;
}

.driver-application-pill.rejected {
  background: #ffe4e6;
  color: #be123c;
}

body.dashboard-page .driver-docs-display {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

body.dashboard-page .driver-doc-view {
  padding: 16px;
  border: 1px solid #e7edf6;
  border-radius: 12px;
  background: #f9fbff;
}

body.dashboard-page .driver-doc-view-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #071a44;
}

body.dashboard-page .driver-doc-view-head i {
  color: #0067ff;
}

body.dashboard-page .driver-doc-meta {
  font-size: 14px;
  color: #51627f;
  margin-bottom: 10px;
}

body.dashboard-page .driver-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0067ff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

body.dashboard-page .driver-doc-thumb {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e7edf6;
}

body.dashboard-page .driver-docs-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
}

@media (max-width: 768px) {
  body.dashboard-page .driver-docs-edit {
    width: 100%;
  }
}

/* Premium SaaS dashboard — customer & driver */
body.premium-dashboard-page {
  --dash-bg: #F8FAFC;
  --dash-card: rgba(255, 255, 255, 0.86);
  --dash-border: rgba(148, 163, 184, 0.22);
  --dash-text: #0F172A;
  --dash-muted: #64748B;
  --dash-accent: #2563EB;
  --dash-accent-soft: #EFF6FF;
  --dash-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --dash-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
  --dash-radius: 24px;
  --sidebar-width: 280px;
  color: var(--dash-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.07), transparent 34rem),
    var(--dash-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.premium-dashboard-page * {
  box-sizing: border-box;
}

body.premium-dashboard-page a {
  color: inherit;
  text-decoration: none;
}

body.premium-dashboard-page .premium-dashboard {
  min-height: 100vh;
  display: block;
  background: transparent;
}

body.premium-dashboard-page .premium-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  border-right: 1px solid var(--dash-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 18px 0 50px rgba(15, 23, 42, 0.05);
}

body.premium-dashboard-page .sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

body.premium-dashboard-page .topbar-logo-mobile-only {
  display: none;
}

body.premium-dashboard-page .dashboard-brand-logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

body.premium-dashboard-page .dashboard-brand-logo-topbar {
  height: 52px;
  max-width: 170px;
}

body.premium-dashboard-page .brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563EB, #0F172A);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.26);
}

body.premium-dashboard-page .brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.premium-dashboard-page .brand-copy strong,
body.premium-dashboard-page .topbar-logo strong {
  color: var(--dash-text);
  font-size: 18px;
}

body.premium-dashboard-page .brand-copy small {
  color: var(--dash-muted);
  font-weight: 700;
  font-size: 12px;
}

body.premium-dashboard-page .sidebar-nav {
  display: grid;
  gap: 8px;
}

body.premium-dashboard-page .sidebar-nav a,
body.premium-dashboard-page .sidebar-booking,
body.premium-dashboard-page .sidebar-status {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  color: #475569;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.premium-dashboard-page .sidebar-nav a i,
body.premium-dashboard-page .sidebar-booking i {
  width: 22px;
  text-align: center;
  color: var(--dash-accent);
}

body.premium-dashboard-page .sidebar-nav a:hover,
body.premium-dashboard-page .sidebar-nav a.active {
  color: var(--dash-accent);
  background: var(--dash-accent-soft);
  transform: translateX(2px);
}

body.premium-dashboard-page .sidebar-booking {
  margin-top: auto;
  justify-content: center;
  color: #fff;
  background: var(--dash-accent);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

body.premium-dashboard-page .sidebar-booking i {
  color: #fff;
}

body.premium-dashboard-page .sidebar-status {
  margin-top: auto;
  justify-content: center;
  color: #047857;
  background: #ECFDF5;
  font-weight: 800;
  font-size: 14px;
}

body.premium-dashboard-page .sidebar-status i {
  font-size: 10px;
  color: #047857;
}

body.premium-dashboard-page .dashboard-workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

body.premium-dashboard-page .premium-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--dash-border);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(22px);
}

body.premium-dashboard-page .dashboard-search {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  color: var(--dash-muted);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--dash-shadow-soft);
}

body.premium-dashboard-page .dashboard-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--dash-text);
  background: transparent;
  font: inherit;
  font-weight: 600;
}

body.premium-dashboard-page .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: auto;
}

body.premium-dashboard-page .icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  color: var(--dash-text);
  background: rgba(255, 255, 255, 0.9);
}

body.premium-dashboard-page .notification-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #fff;
}

body.premium-dashboard-page .topbar-user {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

body.premium-dashboard-page .topbar-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563EB, #7aaeff);
}

body.premium-dashboard-page .topbar-user div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

body.premium-dashboard-page .topbar-user strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

body.premium-dashboard-page .topbar-user small {
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 700;
}

body.premium-dashboard-page .dashboard-logout,
body.premium-dashboard-page .dashboard-primary,
body.premium-dashboard-page .dashboard-cta,
body.premium-dashboard-page .support-card a,
body.premium-dashboard-page .emergency-panel a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #fff;
  background: var(--dash-accent);
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

body.premium-dashboard-page .dashboard-logout {
  color: var(--dash-text);
  background: #fff;
  border: 1px solid var(--dash-border);
  box-shadow: none;
}

body.premium-dashboard-page .dashboard-logout:hover,
body.premium-dashboard-page .dashboard-primary:hover,
body.premium-dashboard-page .dashboard-cta:hover,
body.premium-dashboard-page .support-card a:hover,
body.premium-dashboard-page .emergency-panel a:hover {
  transform: translateY(-2px);
}

body.premium-dashboard-page .premium-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  min-width: 0;
}

body.premium-dashboard-page .profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--dash-radius);
  background: #fff;
  box-shadow: var(--dash-shadow);
}

body.premium-dashboard-page .hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(15, 23, 42, 0.92)),
    radial-gradient(circle at 88% 20%, rgba(122, 174, 255, 0.55), transparent 18rem);
}

body.premium-dashboard-page .profile-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 320px);
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px);
  color: #fff;
}

body.premium-dashboard-page .customer-avatar {
  position: relative;
  width: clamp(88px, 14vw, 112px);
  height: clamp(88px, 14vw, 112px);
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  color: var(--dash-accent);
  background: #fff;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

body.premium-dashboard-page .customer-avatar span {
  font-size: clamp(32px, 6vw, 42px);
}

body.premium-dashboard-page .customer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.premium-dashboard-page .avatar-edit-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--dash-accent);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

body.premium-dashboard-page .avatar-edit-btn input {
  display: none;
}

body.premium-dashboard-page .profile-identity {
  min-width: 0;
}

body.premium-dashboard-page .customer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #DBEAFE;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  font-size: 13px;
}

body.premium-dashboard-page .driver-badge {
  color: #FEF3C7;
  background: rgba(255, 255, 255, 0.12);
}

body.premium-dashboard-page .profile-identity h1 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.premium-dashboard-page .profile-identity p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

body.premium-dashboard-page .profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.premium-dashboard-page .profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

body.premium-dashboard-page .profile-actions {
  display: grid;
  gap: 14px;
}

body.premium-dashboard-page .completion-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--dash-radius);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

body.premium-dashboard-page .completion-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
}

body.premium-dashboard-page .completion-card strong {
  color: #fff;
  font-size: 26px;
}

body.premium-dashboard-page .completion-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

body.premium-dashboard-page .completion-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 0.4s ease;
}

body.premium-dashboard-page .profile-actions .dashboard-cta {
  width: 100%;
  background: #fff;
  color: var(--dash-accent);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

body.premium-dashboard-page .profile-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.premium-dashboard-page .profile-hero-actions .dashboard-cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

body.premium-dashboard-page .profile-hero-actions .dashboard-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.premium-dashboard-page .dashboard-card-edit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--dash-accent);
  background: var(--dash-accent-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

body.premium-dashboard-page .dashboard-card-edit:hover {
  background: rgba(37, 99, 235, 0.16);
}

body.premium-dashboard-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

body.premium-dashboard-page .stat-card,
body.premium-dashboard-page .dashboard-card {
  min-width: 0;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  background: var(--dash-card);
  backdrop-filter: blur(18px);
  box-shadow: var(--dash-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.premium-dashboard-page .stat-card:hover,
body.premium-dashboard-page .dashboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--dash-shadow);
}

body.premium-dashboard-page .stat-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

body.premium-dashboard-page .stat-icon,
body.premium-dashboard-page .card-title-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--dash-accent);
  background: var(--dash-accent-soft);
}

body.premium-dashboard-page .stat-card span {
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 800;
}

body.premium-dashboard-page .stat-card strong {
  color: var(--dash-text);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
}

body.premium-dashboard-page .stat-card small {
  color: #94A3B8;
  font-weight: 700;
  font-size: 12px;
}

body.premium-dashboard-page .dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  margin-top: 22px;
}

body.premium-dashboard-page .dashboard-card {
  padding: 24px;
}

body.premium-dashboard-page .dashboard-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  min-width: 0;
}

body.premium-dashboard-page .dashboard-card-head h2 {
  margin: 0;
  color: var(--dash-text);
  font-size: clamp(18px, 2.5vw, 20px);
  line-height: 1.15;
}

body.premium-dashboard-page .dashboard-card-head p {
  margin: 6px 0 0;
  color: var(--dash-muted);
  font-size: 14px;
  font-weight: 600;
}

body.premium-dashboard-page .customer-info-grid,
body.premium-dashboard-page .customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.premium-dashboard-page .customer-info-item,
body.premium-dashboard-page .timeline-item,
body.premium-dashboard-page .address-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.74);
}

body.premium-dashboard-page .customer-info-item {
  display: grid;
  gap: 7px;
}

body.premium-dashboard-page .customer-info-item span,
body.premium-dashboard-page .dashboard-field span {
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.premium-dashboard-page .field-required {
  color: #DC2626;
  font-style: normal;
  font-weight: 800;
  text-transform: none;
}

body.premium-dashboard-page .profile-missing-value {
  color: #DC2626;
}

body.premium-dashboard-page .profile-city-hint {
  margin: 4px 0 0;
  color: #B45309;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

body.premium-dashboard-page .dashboard-field input.field-empty-required {
  border-color: #FCA5A5;
  background: #FEF2F2;
}

body.premium-dashboard-page .customer-info-item strong {
  color: var(--dash-text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

body.premium-dashboard-page .driver-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  line-height: 1.6;
  font-weight: 600;
  font-size: 14px;
}

body.premium-dashboard-page .driver-docs-display {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 18px;
}

body.premium-dashboard-page .driver-doc-view {
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.74);
}

body.premium-dashboard-page .driver-doc-view-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--dash-text);
  font-weight: 800;
}

body.premium-dashboard-page .driver-doc-view-head i {
  color: var(--dash-accent);
}

body.premium-dashboard-page .driver-doc-meta {
  font-size: 14px;
  color: var(--dash-muted);
  margin-bottom: 10px;
}

body.premium-dashboard-page .driver-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dash-accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

body.premium-dashboard-page .driver-doc-thumb {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--dash-border);
}

body.premium-dashboard-page .driver-docs-edit {
  width: fit-content;
  text-decoration: none;
}

body.premium-dashboard-page .empty-bookings-panel,
body.premium-dashboard-page .empty-state-mini {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 22px;
  text-align: center;
  color: var(--dash-muted);
  background: rgba(248, 250, 252, 0.72);
}

body.premium-dashboard-page .empty-bookings-panel i,
body.premium-dashboard-page .empty-state-mini i {
  color: var(--dash-accent);
  font-size: 28px;
}

body.premium-dashboard-page .empty-bookings-panel h3,
body.premium-dashboard-page .empty-state-mini strong {
  margin: 0;
  color: var(--dash-text);
}

body.premium-dashboard-page .timeline-list,
body.premium-dashboard-page .address-list {
  display: grid;
  gap: 12px;
}

body.premium-dashboard-page .timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body.premium-dashboard-page .timeline-item div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.premium-dashboard-page .timeline-item strong {
  color: var(--dash-text);
}

body.premium-dashboard-page .timeline-item small,
body.premium-dashboard-page .empty-state-mini span {
  color: var(--dash-muted);
  font-weight: 600;
}

body.premium-dashboard-page .timeline-item b {
  color: var(--dash-text);
  font-weight: 800;
}

body.premium-dashboard-page .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--dash-accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

body.premium-dashboard-page .status-dot.success {
  background: #22C55E;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

body.premium-dashboard-page .quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.premium-dashboard-page .quick-actions-grid a {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  color: var(--dash-text);
  background: rgba(248, 250, 252, 0.74);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.premium-dashboard-page .quick-actions-grid a:hover {
  transform: translateY(-2px);
  color: var(--dash-accent);
  border-color: rgba(37, 99, 235, 0.24);
}

body.premium-dashboard-page .quick-actions-grid i {
  color: var(--dash-accent);
  font-size: 20px;
}

body.premium-dashboard-page .support-card,
body.premium-dashboard-page .emergency-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #EFF6FF, #fff);
}

body.premium-dashboard-page .support-card strong,
body.premium-dashboard-page .emergency-panel strong {
  color: var(--dash-text);
  font-size: 18px;
}

body.premium-dashboard-page .support-card span,
body.premium-dashboard-page .emergency-panel span {
  color: var(--dash-muted);
  font-weight: 600;
}

body.premium-dashboard-page .support-chat-btn {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--dash-accent);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.24);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

body.premium-dashboard-page .support-chat-btn:hover,
body.premium-dashboard-page .support-chat-btn:focus-visible {
  transform: translateY(-1px);
}

body.premium-dashboard-page .card-title-icon.danger {
  color: #EF4444;
  background: #FEE2E2;
}

body.premium-dashboard-page .emergency-panel a {
  width: fit-content;
  background: #EF4444;
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.24);
}

body.premium-dashboard-page .mobile-bottom-nav {
  display: none;
}

@media (max-width: 1200px) {
  body.premium-dashboard-page {
    --sidebar-width: 92px;
  }

  body.premium-dashboard-page .premium-sidebar {
    align-items: center;
    padding: 22px 14px;
  }

  body.premium-dashboard-page .brand-copy,
  body.premium-dashboard-page .sidebar-nav a span,
  body.premium-dashboard-page .sidebar-booking span,
  body.premium-dashboard-page .sidebar-status span {
    display: none;
  }

  body.premium-dashboard-page .dashboard-brand-logo {
    height: 50px;
    max-width: 72px;
    object-fit: contain;
    object-position: left center;
  }

  body.premium-dashboard-page .sidebar-brand {
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  body.premium-dashboard-page .sidebar-nav a,
  body.premium-dashboard-page .sidebar-booking,
  body.premium-dashboard-page .sidebar-status {
    width: 58px;
    height: 58px;
    justify-content: center;
    padding: 0;
    border-radius: 20px;
  }

  body.premium-dashboard-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.premium-dashboard-page .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.premium-dashboard-page .premium-topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  body.premium-dashboard-page .dashboard-search {
    grid-column: 1 / -1;
    order: 3;
  }

  body.premium-dashboard-page .profile-hero-content {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.premium-dashboard-page .profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  body.premium-dashboard-page .profile-hero-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  body.premium-dashboard-page {
    --sidebar-width: 0px;
  }

  body.premium-dashboard-page .premium-sidebar {
    display: none;
  }

  body.premium-dashboard-page .dashboard-workspace {
    margin-left: 0;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  body.premium-dashboard-page .premium-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: auto;
    padding: 16px;
  }

  body.premium-dashboard-page .topbar-logo-mobile-only {
    display: inline-flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    text-decoration: none;
  }

  body.premium-dashboard-page .dashboard-brand-logo-topbar {
    height: 44px;
    max-width: 148px;
  }

  body.premium-dashboard-page .topbar-actions {
    grid-column: 3;
    grid-row: 1;
  }

  body.premium-dashboard-page .dashboard-search {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 48px;
  }

  body.premium-dashboard-page .icon-button,
  body.premium-dashboard-page .topbar-user small,
  body.premium-dashboard-page .dashboard-logout span {
    display: none;
  }

  body.premium-dashboard-page .topbar-user {
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.premium-dashboard-page .topbar-user div {
    display: none;
  }

  body.premium-dashboard-page .premium-shell {
    padding: 16px;
  }

  body.premium-dashboard-page .profile-hero-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 20px;
  }

  body.premium-dashboard-page .profile-meta {
    justify-content: center;
  }

  body.premium-dashboard-page .profile-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  body.premium-dashboard-page .profile-hero-actions {
    grid-template-columns: 1fr;
  }

  body.premium-dashboard-page .stats-grid,
  body.premium-dashboard-page .customer-info-grid,
  body.premium-dashboard-page .customer-form-grid,
  body.premium-dashboard-page .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  body.premium-dashboard-page .dashboard-primary,
  body.premium-dashboard-page .dashboard-cta,
  body.premium-dashboard-page .driver-docs-edit,
  body.premium-dashboard-page .support-card a,
  body.premium-dashboard-page .emergency-panel a {
    width: 100%;
  }

  body.premium-dashboard-page .stat-card,
  body.premium-dashboard-page .dashboard-card {
    padding: 18px;
  }

  body.premium-dashboard-page .timeline-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.premium-dashboard-page .timeline-item b {
    grid-column: 2;
  }

  body.premium-dashboard-page .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: var(--dash-radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  }

  body.premium-dashboard-page .mobile-bottom-nav a,
  body.premium-dashboard-page .mobile-bottom-nav button {
    min-width: 0;
    min-height: 56px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 0;
    border-radius: 18px;
    color: var(--dash-muted);
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  body.premium-dashboard-page .mobile-bottom-nav i {
    font-size: 17px;
  }

  body.premium-dashboard-page .mobile-bottom-nav .active {
    color: var(--dash-accent);
    background: var(--dash-accent-soft);
  }
}

@media (max-width: 380px) {
  body.premium-dashboard-page .mobile-bottom-nav span {
    display: none;
  }

  body.premium-dashboard-page .mobile-bottom-nav {
    left: 8px;
    right: 8px;
  }
}

/* Customer premium dashboard */
body.customer-dashboard-page .sidebar-booking {
  margin-top: auto;
}

body.customer-dashboard-page .customer-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.customer-dashboard-page .booking-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #EFF6FF;
  color: #2563EB;
}

body.customer-dashboard-page .booking-status.success {
  background: #ECFDF5;
  color: #047857;
}

body.customer-dashboard-page .booking-status.danger {
  background: #FEF2F2;
  color: #B91C1C;
}

body.customer-dashboard-page .booking-status.pending {
  background: #FFF7ED;
  color: #C2410C;
}

body.customer-dashboard-page .driver-assignment-status {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #DBEAFE;
  background: #F8FBFF;
}

body.customer-dashboard-page .driver-assignment-status.assigned {
  border-color: #BBF7D0;
  background: #F0FDF4;
}

body.customer-dashboard-page .driver-assignment-status.pending {
  border-color: #FED7AA;
  background: #FFF7ED;
}

body.customer-dashboard-page .driver-assignment-status.awaiting {
  border-color: #FDE68A;
  background: #FFFBEB;
}

body.customer-dashboard-page .driver-assignment-status-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

body.customer-dashboard-page .driver-assignment-status.assigned .driver-assignment-status-head i {
  color: #16A34A;
}

body.customer-dashboard-page .driver-assignment-status.pending .driver-assignment-status-head i {
  color: #EA580C;
}

body.customer-dashboard-page .driver-assignment-status.awaiting .driver-assignment-status-head i {
  color: #D97706;
}

body.customer-dashboard-page .driver-assignment-message {
  margin: 6px 0 0;
  color: var(--dash-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

body.customer-dashboard-page .timeline-driver-status {
  display: block;
  margin-top: 4px;
  color: #047857;
  font-weight: 700;
}

body.customer-dashboard-page .status-dot.is-assigned {
  background: #16A34A;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

body.customer-dashboard-page .booking-route {
  margin: 4px 0 0;
  color: var(--dash-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

body.customer-dashboard-page .booking-route i {
  width: 18px;
  color: var(--dash-accent);
}

body.customer-dashboard-page .address-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--dash-border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.74);
}

body.customer-dashboard-page .address-item i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--dash-accent);
  background: var(--dash-accent-soft);
}

body.customer-dashboard-page .address-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.customer-dashboard-page .address-item strong {
  color: var(--dash-text);
  font-size: 14px;
}

body.customer-dashboard-page .address-item span {
  color: var(--dash-muted);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  body.customer-dashboard-page .customer-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.customer-dashboard-page .customer-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1440px) {
  body.customer-dashboard-page .premium-shell {
    max-width: 1560px;
  }

  body.customer-dashboard-page .dashboard-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.driver-dashboard-page .driver-trip-shell {
  width: 100%;
  margin-bottom: 18px;
}

body.driver-dashboard-page .driver-dashboard-gate {
  width: 100%;
  margin-bottom: 18px;
}

body.driver-dashboard-page .driver-dashboard-gate-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

body.driver-dashboard-page .driver-dashboard-gate-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 28px;
}

body.driver-dashboard-page .driver-dashboard-gate-copy h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

body.driver-dashboard-page .driver-dashboard-gate-copy p {
  margin: 0;
  color: var(--dash-muted);
  line-height: 1.55;
}

body.driver-dashboard-page .sidebar-nav a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.driver-dashboard-page .driver-verified-only[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  body.driver-dashboard-page .driver-dashboard-gate-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.driver-dashboard-page .driver-dashboard-gate-icon {
    margin: 0 auto;
  }
}

body.driver-dashboard-page .driver-trip-shell .dashboard-card {
  width: 100%;
}

body.driver-dashboard-page .driver-trip-section.driver-trip-locked .trip-timer-card,
body.driver-dashboard-page .driver-trip-section.driver-trip-locked .trip-cost-panel {
  opacity: 0.72;
}

body.driver-dashboard-page .driver-trip-panel {
  display: grid;
  gap: 18px;
}

body.driver-dashboard-page .trip-timer-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  text-align: center;
}

body.driver-dashboard-page .trip-timer-head {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 -2px;
}

body.driver-dashboard-page .trip-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.driver-dashboard-page .trip-reset-btn:hover {
  background: #fff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.35);
}

body.driver-dashboard-page .trip-reset-btn:active {
  transform: scale(0.98);
}

body.driver-dashboard-page .trip-timer-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dash-muted);
}

body.driver-dashboard-page .trip-timer-display {
  font-family: "Inter", sans-serif;
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--dash-text);
  font-variant-numeric: tabular-nums;
}

body.driver-dashboard-page .trip-timer-status {
  margin: 0;
  font-size: 14px;
  color: var(--dash-muted);
}

body.driver-dashboard-page .trip-timer-status.running {
  color: #16a34a;
  font-weight: 700;
}

body.driver-dashboard-page .trip-timer-status.stopped {
  color: #2563eb;
  font-weight: 700;
}

body.driver-dashboard-page .trip-timer-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.driver-dashboard-page .trip-start-btn,
body.driver-dashboard-page .trip-stop-btn {
  min-width: 150px;
}

body.driver-dashboard-page .trip-stop-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

body.driver-dashboard-page .driver-hero-online-control {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
}

body.driver-dashboard-page .driver-hero-online-status-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.driver-dashboard-page .driver-hero-online-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

body.driver-dashboard-page .driver-hero-online-dot.is-online {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22);
}

body.driver-dashboard-page .driver-hero-online-dot.is-offline {
  background: #94a3b8;
}

body.driver-dashboard-page .driver-hero-online-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.driver-dashboard-page .driver-hero-online-copy strong {
  font-size: 16px;
  color: #fff;
}

body.driver-dashboard-page .driver-hero-online-copy span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

body.driver-dashboard-page .driver-hero-online-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body.driver-dashboard-page .driver-hero-online-toggle-btn.is-offline {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.28);
}

body.driver-dashboard-page .driver-hero-online-toggle-btn.is-online {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: 0 12px 24px rgba(71, 85, 105, 0.24);
}

body.driver-dashboard-page .driver-hero-online-toggle-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.driver-dashboard-page .driver-hero-online-toggle-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

body.driver-dashboard-page .driver-hero-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

body.driver-dashboard-page .driver-hero-online-badge.is-online {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.22);
}

body.driver-dashboard-page .driver-hero-online-badge.is-online i {
  color: #4ade80;
}

body.driver-dashboard-page .driver-hero-online-badge.is-offline {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.22);
}

body.driver-dashboard-page .driver-hero-online-badge.is-offline i {
  color: #cbd5e1;
}

body.driver-dashboard-page .driver-online-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

body.driver-dashboard-page .driver-online-control-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.driver-dashboard-page .driver-online-control-copy strong {
  font-size: 16px;
  color: var(--dash-text);
}

body.driver-dashboard-page .driver-online-control-copy span {
  font-size: 13px;
  color: var(--dash-muted);
  line-height: 1.45;
}

body.driver-dashboard-page .driver-online-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

body.driver-dashboard-page .driver-online-toggle-btn.is-offline {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: 0 10px 24px rgba(71, 85, 105, 0.22);
}

body.driver-dashboard-page .driver-online-toggle-btn.is-online {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

body.driver-dashboard-page .driver-online-toggle-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.driver-dashboard-page .driver-online-toggle-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

body.driver-dashboard-page .driver-availability-online {
  color: #16a34a;
}

body.driver-dashboard-page .driver-availability-offline {
  color: #64748b;
}

body.driver-dashboard-page .driver-status-pill.is-online {
  color: #16a34a;
}

body.driver-dashboard-page .driver-status-pill.is-online i {
  color: #22c55e;
}

body.driver-dashboard-page .driver-status-pill.is-offline {
  color: #64748b;
}

body.driver-dashboard-page .driver-status-pill.is-offline i {
  color: #94a3b8;
}

body.driver-dashboard-page .trip-cost-panel {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.85);
}

body.driver-dashboard-page .trip-cost-panel h3,
body.driver-dashboard-page .trip-history-block h3,
body.driver-dashboard-page .assigned-trips-block h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--dash-text);
}

body.driver-dashboard-page .assigned-trips-block {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  overflow: visible;
}

body.driver-dashboard-page .driver-trip-section {
  overflow: visible;
}

body.driver-dashboard-page .assigned-trip-care {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
}

body.driver-dashboard-page .assigned-trip-care-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 18px;
}

body.driver-dashboard-page .assigned-trip-care-copy {
  display: grid;
  gap: 4px;
}

body.driver-dashboard-page .assigned-trip-care-copy strong {
  color: var(--dash-text);
  font-size: 15px;
}

body.driver-dashboard-page .assigned-trip-care-copy span {
  color: var(--dash-muted);
  font-size: 12px;
}

body.driver-dashboard-page .assigned-trip-care-copy a {
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.driver-dashboard-page .assigned-trip-care-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.driver-dashboard-page .assigned-trip-care-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 640px) {
  body.driver-dashboard-page .assigned-trip-care {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.driver-dashboard-page .assigned-trip-care-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

body.driver-dashboard-page .assigned-trips-list {
  display: grid;
  gap: 10px;
}

body.driver-dashboard-page .assigned-trip-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.75);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.driver-dashboard-page .assigned-trip-item.needs-response {
  grid-template-columns: 1fr;
  cursor: default;
}

body.driver-dashboard-page .assigned-trip-item.needs-response .assigned-trip-main {
  width: 100%;
}

body.driver-dashboard-page .assigned-trip-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  position: relative;
}

body.driver-dashboard-page .assigned-trip-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 8px;
  width: min(100%, 240px);
  margin-left: auto;
  position: relative;
  align-items: stretch;
}

body.driver-dashboard-page .assigned-trip-reject-wrap {
  position: relative;
  display: flex;
  min-width: 0;
}

body.driver-dashboard-page .trip-accept-btn,
body.driver-dashboard-page .trip-reject-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  white-space: nowrap;
}

body.driver-dashboard-page .trip-accept-btn {
  background: #16a34a;
  color: #fff;
}

body.driver-dashboard-page .trip-reject-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.28);
}

body.driver-dashboard-page .trip-accept-btn:hover,
body.driver-dashboard-page .trip-reject-btn:hover {
  transform: none;
}

body.driver-dashboard-page .trip-accept-btn:disabled,
body.driver-dashboard-page .trip-reject-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.driver-dashboard-page .assigned-trip-reject-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(280px, calc(100vw - 48px));
  display: none;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

body.driver-dashboard-page .assigned-trip-reject-popover.is-open {
  display: grid;
}

body.driver-dashboard-page .assigned-trip-reject-popover[hidden] {
  display: none !important;
}

body.driver-dashboard-page .assigned-trip-reject-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-top: 1px solid rgba(239, 68, 68, 0.28);
  border-left: 1px solid rgba(239, 68, 68, 0.28);
  display: none;
}

body.driver-dashboard-page .assigned-trip-reject-popover.is-open::before {
  display: block;
}

body.driver-dashboard-page .assigned-trip-reject-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.driver-dashboard-page .assigned-trip-reject-popover-head strong {
  font-size: 12px;
  font-weight: 800;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.driver-dashboard-page .trip-reject-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  cursor: pointer;
}

body.driver-dashboard-page .assigned-trip-badge.pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

body.driver-dashboard-page .trip-reject-reason-input {
  width: 100%;
  min-height: 54px;
  max-height: 96px;
  resize: vertical;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  font: inherit;
  font-size: 13px;
  color: var(--dash-text);
  background: #fff;
}

body.driver-dashboard-page .trip-reject-reason-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

body.driver-dashboard-page .trip-reject-reason-error {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
}

body.driver-dashboard-page .assigned-trip-reject-popover-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

body.driver-dashboard-page .trip-reject-cancel-btn,
body.driver-dashboard-page .trip-reject-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.driver-dashboard-page .trip-reject-cancel-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--dash-text);
}

body.driver-dashboard-page .trip-reject-send-btn {
  border: none;
  background: #dc2626;
  color: #fff;
}

body.driver-dashboard-page .trip-reject-send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

body.driver-dashboard-page .trip-reject-btn.is-open {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

body.driver-dashboard-page .assigned-trip-item.reject-popover-open {
  z-index: 25;
  position: relative;
}

body.driver-dashboard-page .assigned-trips-list {
  overflow: visible;
}

@media (max-width: 767px) {
  body.driver-dashboard-page .assigned-trip-reject-popover {
    right: 0;
    left: auto;
    width: min(260px, calc(100vw - 32px));
  }

  body.driver-dashboard-page .assigned-trip-action-buttons {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}

body.driver-dashboard-page .assigned-trip-item:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

body.driver-dashboard-page .assigned-trip-item.is-active {
  border-color: #2563eb;
  background: rgba(219, 234, 254, 0.95);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

body.driver-dashboard-page .assigned-trip-item strong {
  color: var(--dash-text);
  font-size: 15px;
}

body.driver-dashboard-page .assigned-trip-item small {
  display: block;
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.45;
}

body.driver-dashboard-page .assigned-trip-item b {
  align-self: center;
  color: #2563eb;
  font-size: 14px;
  white-space: nowrap;
}

body.driver-dashboard-page .assigned-trip-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.driver-dashboard-page .upcoming-trip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

body.driver-dashboard-page .upcoming-trip-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body.driver-dashboard-page .upcoming-trip-item i {
  color: #2563eb;
  margin-top: 3px;
}

body.driver-dashboard-page .upcoming-trip-item strong {
  display: block;
  color: var(--dash-text);
  font-size: 14px;
}

body.driver-dashboard-page .upcoming-trip-item span {
  display: block;
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.driver-dashboard-page .trip-duration-summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--dash-muted);
}

body.driver-dashboard-page .trip-history-block {
  display: grid;
  gap: 10px;
}

body.driver-dashboard-page .trip-history-list {
  display: grid;
  gap: 10px;
}

body.driver-dashboard-page .trip-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
}

body.driver-dashboard-page .trip-history-item strong {
  color: var(--dash-text);
  font-size: 15px;
}

body.driver-dashboard-page .trip-history-item small {
  display: block;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.5;
}

body.driver-dashboard-page .trip-payment-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.driver-dashboard-page .trip-payment-badge.paid {
  background: #dcfce7;
  color: #15803d;
}

body.driver-dashboard-page .trip-payment-badge.pending {
  background: #ffedd5;
  color: #c2410c;
}

body.driver-dashboard-page .status-dot.pending {
  background: #fb923c;
}

body.driver-dashboard-page .trip-history-item b {
  align-self: center;
  color: #2563eb;
  font-size: 16px;
}

body.driver-dashboard-page .trip-history-empty {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  text-align: center;
  color: var(--dash-muted);
  background: rgba(248, 250, 252, 0.72);
}

.dashboard-load-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  background: #fff4f4;
  color: #b42318;
  border: 1px solid #fecdca;
}

.dashboard-load-status.success {
  background: #ecfdf3;
  color: #067647;
  border-color: #abefc6;
}

.dashboard-show-more-btn[hidden] {
  display: none !important;
}

.dashboard-show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.72);
  color: var(--dash-accent, #2563eb);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-show-more-btn:hover {
  background: rgba(219, 234, 254, 0.95);
  border-color: rgba(37, 99, 235, 0.55);
}

.dashboard-show-more-btn:focus-visible {
  outline: 2px solid var(--dash-accent, #2563eb);
  outline-offset: 2px;
}

.dashboard-list-more-hidden:not(.dashboard-list-more-shown) {
  display: none !important;
}
