.cs-form-subtitle,
.cs-tab {
  color: var(--muted-text);
  font-size: 0.9rem;
}
.cs-header,
.cs-or-sep,
.cs-tab,
.cs-user-menu,
.dashboard-bookings-content {
  position: relative;
}
*,
.phone-input {
  box-sizing: border-box;
}
.loading,
.no-bookings,
.service-note {
  font-style: italic;
}
:root {
  --primary-color: #00008b;
  --secondary-color: #1a1a1a;
  --border-color: #e0e0e0;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --border-radius: 8px;
  --small-border-radius: 6px;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --muted-text: #666;
}
body.dark-mode {
  --bg-color: #1a1a1a;
  --card-bg: #2d2d2d;
  --input-bg: #3a3a3a;
  --text-color: #e5e5e5;
  --secondary-color: #f0f0f0;
  --border-color: #404040;
  --light-bg: #1a1a1a;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --muted-text: #b0b0b0;
}
* {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--light-bg);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.cs-client-portal-root {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.cs-client-portal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.cs-form-btn,
.cs-social-btn,
.cs-tab {
  transition: var(--transition);
}
#cs-client-portal-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
  text-align: center;
}
.cs-form-subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
}
.cs-client-portal-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.cs-tab {
  padding: 0.6rem 0.8rem;
  border: none;
  background: 0 0;
  cursor: pointer;
}
.bp-tab-button.bp-tab-active,
.cs-tab-active {
  color: var(--primary-color);
  font-weight: 500;
}
.bp-tab-button.bp-tab-active::after,
.cs-tab-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}
.cs-client-portal-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cs-client-portal-form label {
  font-size: 0.85rem;
  color: var(--secondary-color);
  display: block;
  margin-top: 0.4rem;
}
.cs-client-portal-form input,
.cs-client-portal-form select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  font-size: 0.9rem;
  transition: var(--transition);
  background-color: var(--input-bg);
  color: var(--text-color);
}
.bp-form-group input:focus,
.bp-form-group select:focus,
.cs-client-portal-form input:focus,
.cs-client-portal-form select:focus,
.form-control:focus,
.phone-input:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 14, 140, 0.1);
}
.booking-item:hover,
.cs-dropdown-menu,
.section-card,
.stat-card {
  box-shadow: var(--shadow);
}
.cs-name-group {
  display: flex;
  gap: 0.75rem;
}
.address-details,
.booking-details,
.bp-time-wrapper select,
.cs-name-group > div,
.date-filter,
.form-row .form-group,
.payment-details,
.search-filter,
.setting-info,
.status-filter,
.time-inputs select {
  flex: 1;
}
.cs-form-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--small-border-radius);
  font-size: 0.95rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 0.75rem;
}
.cs-profile-button,
.cs-social-btn {
  border: 1px solid var(--border-color);
  cursor: pointer;
}
.account-header,
.cs-header {
  border-bottom: 1px solid var(--border-color);
}
.cs-form-btn:hover {
  background: #001bb9;
}
.cs-or-sep {
  text-align: center;
  margin: 0.75rem 0;
}
.cs-error,
.cs-social-btn {
  padding: 0.6rem;
  margin-bottom: 0.75rem;
}
.cs-or-sep::after,
.cs-or-sep::before {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 2rem);
  height: 1px;
  background-color: var(--border-color);
}
.cs-or-sep::before {
  left: 0;
}
.cs-or-sep::after {
  right: 0;
}
.cs-or-sep span {
  background: var(--card-bg);
  padding: 0 0.75rem;
  color: var(--muted-text);
  font-size: 0.85rem;
}
.cs-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--small-border-radius);
  background: var(--card-bg);
  font-size: 0.9rem;
  color: var(--secondary-color);
}
.cs-profile-button:hover,
.cs-social-btn:hover,
.menu-item:hover,
.rebooking-form-actions .btn-secondary:hover,
.tab-btn:hover:not(.active),
body.dark-mode .rebooking-route-info {
  background: var(--light-bg);
}
.cs-client-portal-legal {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-text);
}
.cs-link {
  color: var(--primary-color);
  text-decoration: none;
}
.cs-link:hover,
.view-all-link:hover {
  text-decoration: underline;
}
.cs-error {
  background: #fee2e2;
  color: #dc2626;
  border-radius: var(--small-border-radius);
  font-size: 0.85rem;
}

.cs-success {
  background: #d1fae5;
  color: #065f46;
  border-radius: var(--small-border-radius);
  font-size: 0.85rem;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #a7f3d0;
}

/* Styles pour le mot de passe oublié */
.cs-forgot-password-section {
  margin-top: 1rem;
  text-align: center;
}

.cs-forgot-password-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.cs-forgot-password-btn:hover {
  color: #006;
  text-decoration: none;
}

body.dark-mode .cs-success {
  background: #064e3b;
  color: #a7f3d0;
  border-color: #065f46;
}

/* ================================
   MODAL MOT DE PASSE OUBLIÉ
   ================================ */

.cs-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cs-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.cs-modal-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.cs-modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cs-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}

.cs-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-text);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-modal-close:hover {
  background: var(--light-bg);
  color: var(--text-color);
}

.cs-modal-body {
  padding: 1.5rem;
}

.cs-modal-body p {
  margin-bottom: 1.5rem;
  color: var(--muted-text);
  line-height: 1.5;
}

.cs-modal-body label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.cs-modal-body input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.cs-modal-body input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cs-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cs-btn-secondary {
  background: var(--light-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--small-border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.cs-btn-secondary:hover {
  background: var(--border-color);
}

.cs-btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--small-border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.cs-btn-primary:hover:not(:disabled) {
  background: #006;
}

.cs-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Dark mode pour le modal */
body.dark-mode .cs-modal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .cs-modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

body.dark-mode .cs-modal-body input {
  background: var(--bg-color);
  border-color: var(--border-color);
}

body.dark-mode .cs-modal-body input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .cs-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .cs-modal-header {
    padding: 1rem 1rem 0.75rem;
  }
  
  .cs-modal-header h3 {
    font-size: 1.1rem;
  }
  
  .cs-modal-body {
    padding: 1rem;
  }
  
  .cs-modal-actions {
    flex-direction: column-reverse;
  }
  
  .cs-btn-secondary,
  .cs-btn-primary {
    width: 100%;
    padding: 0.875rem;
  }
}
.account-header,
.cs-header,
.prototype-account,
.user-details h1 {
  color: var(--text-color);
}
.cs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  z-index: 100;
  min-height: 50px;
  transition:
    background-color 0.3s,
    border-color 0.3s;
}
.cs-header-logo {
  height: 32px;
  width: auto;
  filter: none;
  transition: filter 0.3s;
}
body.dark-mode .cs-header-logo {
  filter: brightness(0) invert(1);
}
.prototype-account {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 50px);
  background: var(--bg-color);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.account-header {
  grid-column: 1/-1;
  background: var(--card-bg);
  padding: 0.8rem;
  transition:
    background-color 0.3s,
    border-color 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-content,
.route-display,
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
body.dark-mode .avatar {
  background: #3b4cca;
}
.user-details h1 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.member-since {
  color: var(--muted-text);
  font-size: 0.85rem;
}
.quick-actions {
  margin-top: 0;
  flex-shrink: 0;
}
.btn,
.menu-item {
  align-items: center;
  transition: var(--transition);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--small-border-radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  white-space: nowrap;
}
.account-header .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  gap: 0.4rem;
}
.btn-outline:hover,
.btn-primary,
.tab-btn.active {
  background: var(--primary-color);
  color: #fff;
}
.bp-submit-btn:hover,
.btn-primary:hover {
  background: #006;
}
.btn-outline {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
.btn-danger {
  background: var(--danger-color);
  color: #fff;
}
.account-content,
.account-sidebar,
.menu-item,
.stat-card {
  color: var(--text-color);
}
.btn-danger:hover {
  background: #dc2626;
}
.account-sidebar {
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0;
}
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--small-border-radius);
}
.section-card,
.stat-card,
.stat-icon {
  border-radius: var(--border-radius);
}
.menu-item.active {
  background: var(--light-bg);
  color: var(--primary-color);
  font-weight: 500;
}
.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: var(--primary-color);
}
.account-content {
  padding: 1.5rem;
  background: var(--light-bg);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.account-section,
.bp-tab-content,
.dashboard-tab-content,
.rebooking-route-info {
  display: none;
}
.account-section.active,
.booking-step.active,
.bp-tab-content.active,
.country-dropdown.show,
.dashboard-tab-content.active,
.tab-content.active {
  display: block;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--card-bg);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.stat-icon {
  width: 32px;
  height: 32px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}
.cs-dropdown-menu,
.cs-profile-button,
.section-card {
  background: var(--card-bg);
}
.stat-content h3,
.stat-number {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
  font-weight: 700;
  color: var(--text-color);
}
.stat-content p,
.stat-label {
  color: var(--muted-text);
  font-size: 0.8rem;
  line-height: 1.2;
}
.section-card {
  margin-bottom: 0.75rem;
  transition: background-color 0.3s;
  color: var(--text-color);
}
.section-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-color);
}
.section-header h2,
.section-header h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  margin: 0;
}
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}
.btn-primary .icon,
.country-option.selected .country-code {
  color: #fff;
}
.btn-primary .icon svg {
  stroke: white;
  fill: none;
}
.address-actions,
.cs-profile-button,
.payment-actions,
.steps-indicators,
.tabs-nav {
  gap: 0.5rem;
  display: flex;
}
.cs-profile-button {
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--small-border-radius);
  transition: var(--transition);
  color: var(--text-color);
}
.cs-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  min-width: 180px;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.2s;
  z-index: 1000;
  color: var(--text-color);
}
.booking-item,
.cs-logout-btn,
.form-control {
  transition: var(--transition);
}
.cs-user-menu.active .cs-dropdown-menu,
.cs-user-menu:hover .cs-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cs-logout-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
  background: 0 0;
  cursor: pointer;
  color: var(--text-color);
}
.cs-logout-btn:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}
.bookings-tabs .tab-btn,
.tab-btn,
.tabs-nav .tab-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: 0 0;
  color: #666;
  cursor: pointer;
  border-radius: var(--small-border-radius);
  transition: var(--transition);
  font-size: 0.9rem;
}
.no-bookings {
  text-align: center;
  color: var(--muted-text);
  padding: 2rem;
  background: var(--light-bg);
  border-radius: var(--small-border-radius);
}
.bookings-list,
.modal-body {
  padding: 1rem;
}
.booking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
}
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-badge.transfer {
  background: linear-gradient(135deg, #dbeafe, #3b82f6);
  color: #1e40af;
  border: 1px solid #2563eb;
}
.service-badge.disposal {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  color: #92400e;
  border: 1px solid #f59e0b;
}
.disposal-service .duration-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f57c00;
  font-weight: 500;
  margin-top: 4px;
}
.bp-date-wrapper,
.bp-time-wrapper,
.time-inputs,
.transfer-service .booking-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.duration-info {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.booking-route,
.booking-status {
  align-items: center;
  display: flex;
}
.duration-info i {
  width: 16px;
  height: 16px;
}
.booking-status {
  border-radius: var(--small-border-radius);
}
.status-completed {
  background: #d1fae5;
  color: var(--success-color);
}
.status-upcoming {
  background: #fef3c7;
  color: var(--warning-color);
}
.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}
.booking-step h3,
.bookings-filters,
.form-group,
.quick-actions-section h3 {
  margin-bottom: 1rem;
}
.booking-date {
  color: var(--muted-text);
  font-size: 0.875rem;
}
.booking-route {
  gap: 0.5rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}
.arrow,
.booking-price {
  font-weight: 700;
  color: var(--primary-color);
}
.dropoff,
.pickup {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.booking-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.booking-price {
  font-size: 1.1rem;
}
.booking-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bookings-filters,
.form-row {
  gap: 1rem;
  display: flex;
}
.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
}
.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}
.booking-vehicle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 0.5rem;
}
.booking-vehicle .vehicle-image {
  width: 80px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--small-border-radius);
}
.bookings-filters {
  color: var(--text-color);
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--text-color);
}
.account-form-section,
.payment-methods,
.saved-addresses {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: background-color 0.3s;
  padding: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}
.form-help {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-top: 0.25rem;
}
.form-actions {
  margin-top: 1.5rem;
}
.account-section-content,
.settings-section {
  max-width: 800px;
  color: var(--text-color);
}
.account-form-section {
  background: var(--card-bg);
}
.payment-methods,
.saved-addresses {
  background: var(--card-bg);
  color: var(--text-color);
}
.address-item,
.payment-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
}
.address-icon,
.payment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}
.address-details strong,
.payment-details strong,
.setting-info strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}
.address-details p,
.payment-details span,
.setting-info p {
  color: var(--muted-text);
  font-size: 0.9rem;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  color: var(--text-color);
}
.close-modal {
  background: 0 0;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-text);
}
.modal-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.phone-input-container {
  display: flex;
  position: relative;
  width: 100%;
}
.country-selector {
  position: relative;
  flex-shrink: 0;
}
.country-selector-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--small-border-radius) 0 0 var(--small-border-radius);
  background: var(--input-bg);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  min-width: 70px;
  color: var(--text-color);
  height: 48px;
  box-sizing: border-box;
}
.country-selector-button:focus,
.country-selector-button:hover {
  border-color: var(--primary-color);
  outline: 0;
}
.country-code {
  font-size: 0.8rem;
  color: var(--text-color);
  font-weight: 500;
}
.dropdown-arrow {
  font-size: 0.6rem;
  color: var(--muted-text);
  margin-left: 2px;
}
.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--small-border-radius) var(--small-border-radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: var(--shadow);
  width: 70px;
}
.country-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.5rem 0.3rem;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--border-color);
}
.country-option:last-child,
.detail-row:last-child,
.setting-item:last-child,
.summary-row:last-child {
  border-bottom: none;
}
.country-option:hover,
.pac-item-selected,
.pac-item:hover,
body.dark-mode .pac-item-selected,
body.dark-mode .pac-item:hover {
  background-color: var(--light-bg);
}
.country-option.selected {
  background-color: var(--primary-color);
  color: #fff;
}
.country-option .country-code {
  font-size: 0.75rem;
  color: var(--text-color);
  font-weight: 500;
}
.phone-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 var(--small-border-radius) var(--small-border-radius) 0;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--input-bg);
  color: var(--text-color);
  height: 48px;
}
.phone-input-container:focus-within .country-selector-button {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 14, 140, 0.1);
}
@media (max-width: 1024px) {
  .new-booking-section {
    max-width: 600px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
    margin: 0 auto;
  }
  .new-booking-section .bp-widget-container {
    max-width: 500px;
    width: 100%;
    margin: 0;
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }
}
@media (max-width: 768px) {
  /* =======================================
     LOGIN PAGE MOBILE NATIVE OPTIMIZATION
     ======================================= */
  .cs-client-portal-root {
    padding: 0 !important; /* Native mobile - no side padding */
    margin: 0 !important;
    min-height: calc(100vh - 60px) !important; /* Full height minus header */
    display: flex !important;
    align-items: stretch !important;
    margin-top: -60px !important; /* Move up to remove gap */
    padding-top: 60px !important; /* Add padding to show content below header */
  }
  .cs-client-portal-card {
    padding: 0.5rem 1.5rem 2rem !important; /* Minimal top padding */
    margin: 0 !important;
    border-radius: 0 !important; /* No rounded corners for native feel */
    box-shadow: none !important; /* No shadow for native feel */
    width: 100% !important;
    max-width: none !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  #cs-client-portal-title {
    font-size: 1.4rem;
    margin-top: 0 !important; /* No space - native feel */
  }
  
  /* Header mobile optimization for login page */
  .cs-header {
    padding: 0.75rem 1.5rem !important; /* Match card padding */
  }
  
  /* Prevent zoom on iOS when focusing inputs */
  .cs-client-portal-form input,
  .cs-client-portal-form select {
    font-size: 16px !important; /* Minimum 16px to prevent iOS zoom */
  }
  
  .prototype-account,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    display: none;
  }
  .account-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .user-info {
    justify-content: center;
  }
  .quick-actions {
    align-self: center;
  }
  .user-details h1 {
    font-size: 1.2rem;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .country-selector-button {
    min-width: 65px;
    gap: 2px;
    padding: 0.75rem 0.4rem;
  }
  .country-code {
    font-size: 0.75rem;
  }
  .country-dropdown {
    width: 65px;
  }
  .country-option {
    padding: 0.4rem 0.2rem;
    gap: 2px;
  }
  .country-option .country-code {
    font-size: 0.7rem;
  }
  #section-new-booking .account-content,
  .account-content:has(.new-booking-section) {
    padding: 0 !important;
    margin: 0 !important;
  }
  .new-booking-section {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 100px);
    background: var(--bg-color);
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
  }
  .new-booking-section .bp-widget-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1rem;
    box-shadow: none;
    border-radius: 0;
    background: var(--bg-color);
    border: none;
  }
}
@media (max-width: 480px) {
  /* =======================================
     LOGIN PAGE MOBILE EXTRA OPTIMIZATION
     ======================================= */
  .cs-client-portal-root {
    min-height: 100vh !important; /* Full viewport height */
  }
  .cs-client-portal-card {
    padding: 1.5rem 1rem !important; /* Even tighter on small screens */
    justify-content: center !important; /* Center content vertically */
  }
  
  .cs-client-portal-tabs {
    gap: 0.4rem;
  }
  .cs-tab {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
  .cs-name-group {
    flex-direction: column;
    gap: 0.4rem;
  }
  
  /* Extra insurance against iOS zoom on small screens */
  .cs-client-portal-form input,
  .cs-client-portal-form select,
  input, select {
    font-size: 16px !important; /* Critical for iOS */
  }
  #section-new-booking .account-content,
  .account-content:has(.new-booking-section) {
    padding: 0 !important;
    margin: 0 !important;
  }
  .new-booking-section {
    padding: 0;
    margin: 0;
    min-height: calc(100vh - 100px);
    background: var(--bg-color);
  }
  .new-booking-section .bp-widget-container {
    padding: 0.75rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: var(--bg-color);
  }
  .new-booking-section .bp-tabs {
    margin: 0 -0.75rem 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-bg);
    border-radius: 0;
    gap: 0;
  }
  .new-booking-section .bp-tab-button {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 500;
  }
  .new-booking-section .bp-form-group {
    margin-bottom: 1rem;
  }
  .new-booking-section .bp-form-group label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
  }
  .new-booking-section .bp-form-group input,
  .new-booking-section .bp-form-group select {
    padding: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    transition: 0.3s;
  }
  .new-booking-section .bp-form-group input:focus,
  .new-booking-section .bp-form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 14, 140, 0.1);
  }
  .new-booking-section .bp-submit-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    margin: 1.5rem auto 0;
    background: var(--primary-color);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 14, 140, 0.2);
    display: block;
  }
  .new-booking-section .bp-time-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }
  .new-booking-section .bp-time-wrapper select {
    min-width: 40px;
    width: 80px;
    max-width: 80px;
    text-align: center;
    flex: none;
  }
  .new-booking-section .bp-time-wrapper span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
}
@media (min-width: 1025px) {
  .new-booking-section {
    max-width: none;
    width: 100%;
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #f8f9ff 0, #fff 100%);
    min-height: calc(100vh - 190px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .new-booking-section .bp-widget-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  .new-booking-section .bp-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--light-bg);
    padding: 0.3rem;
  }
  .new-booking-section .bp-tab-button {
    flex: 1;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 5px;
    text-align: center;
    background: 0 0;
    transition: 0.3s;
  }
  .new-booking-section .bp-tab-button.bp-tab-active {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
  .new-booking-section .bp-tab-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
  }
  .new-booking-section .bp-form-group:has(#dropoff_address),
  .new-booking-section .bp-form-group:has(#pickup_address),
  .new-booking-section .bp-form-group:has(#pickup_address_hourly) {
    grid-column: 1/-1;
  }
  .new-booking-section .bp-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
  }
  .new-booking-section .bp-form-group input,
  .new-booking-section .bp-form-group select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: #fff;
    transition: 0.3s;
  }
  .new-booking-section .bp-form-group input:focus,
  .new-booking-section .bp-form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 14, 140, 0.1);
  }
  .new-booking-section .bp-submit-btn {
    grid-column: 1/-1;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
    background: var(--primary-color);
    transition: 0.3s;
    border: none;
  }
  .new-booking-section .bp-submit-btn:hover {
    background: var(--primary-color);
    opacity: 0.8;
  }
  .new-booking-section .bp-time-wrapper {
    gap: 0.5rem;
  }
  .new-booking-section .bp-time-wrapper select {
    min-width: 65px;
  }
  .new-booking-section .bp-time-wrapper span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
  }
  .new-booking-section .bp-form-group:has(#bp_duration_hourly) {
    grid-column: 1/-1;
  }
  .new-booking-section .bp-form-group {
    margin-bottom: 0.2rem;
  }
}
.booking-form-container {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.journey-type-btn,
.step-dot {
  transition: var(--transition);
}
.booking-step {
  display: none;
  margin-bottom: 2rem;
}
.journey-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.journey-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--card-bg);
  cursor: pointer;
  color: var(--text-color);
}
.journey-type-btn.active {
  border-color: var(--primary-color);
  background: #f0f0ff;
  color: var(--primary-color);
}
.journey-type-btn:hover:not(.active) {
  border-color: #ccc;
}
.address-inputs,
.datetime-inputs,
.passengers-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.booking-steps-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}
.location-detail.pickup .location-icon,
.route-point.start,
.step-dot.active {
  background: var(--primary-color);
}
.settings-group {
  padding: 1rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.setting-control {
  margin-left: 1rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.slider,
.slider:before {
  position: absolute;
  transition: var(--transition);
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
}
.slider:before {
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
}
.bp-clear-btn:hover,
.bp-tab-button:hover:not(.bp-tab-active),
.rebooking-modal-close:hover,
body.dark-mode .bp-tab-button:hover:not(.bp-tab-active) {
  background: var(--light-bg);
  color: var(--text-color);
}
input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.bp-widget-container {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
  color: var(--text-color);
}
.bp-error-message {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--small-border-radius);
  border: 1px solid;
}
.bp-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.bp-clear-btn,
.bp-tab-button {
  border: none;
  cursor: pointer;
  color: var(--muted-text);
  transition: var(--transition);
  background: 0 0;
}
.bp-tab-button {
  padding: 0.75rem 1rem;
  border-radius: var(--small-border-radius) var(--small-border-radius) 0 0;
  font-size: 0.9rem;
  position: relative;
}
.bp-form-group {
  margin-bottom: 1.5rem;
  position: relative;
}
.bp-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
}
.bp-form-group input,
.bp-form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--text-color);
  transition: var(--transition);
}
.bp-has-clear input {
  padding-right: 2.5rem;
}
.bp-clear-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
}
.bp-date-clickable input[type="date"],
.bp-submit-btn {
  width: 100%;
  cursor: pointer;
}
.bp-clear-btn::after {
  content: "×";
  font-size: 16px;
  line-height: 1;
}
.bp-date-clickable {
  position: relative;
  cursor: pointer;
}
.bp-date-clickable input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  color: transparent;
  background: 0 0;
  cursor: pointer;
}
.bp-date-clickable input[type="date"]::-moz-focus-inner {
  border: 0;
}
.bp-date-clickable::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  pointer-events: none;
}
.bp-date-clickable.focused {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 14, 140, 0.15);
}
.bp-date-clickable.focused input[type="date"] {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 14, 140, 0.1);
}
.bp-date-clickable,
.bp-date-clickable input[type="date"],
.bp-date-clickable:hover:not(.focused) {
  transition: 0.2s;
}
.bp-date-clickable:hover:not(.focused) input[type="date"] {
  border-color: #ccc;
  transition: border-color 0.2s;
}
.bp-time-wrapper span {
  color: var(--text-color);
  font-weight: 700;
}
.bp-submit-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--small-border-radius);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  margin-top: 1rem;
}
.pac-item,
.pac-item-query {
  font-size: 14px;
  color: var(--text-color);
}
.bp-submit-btn:active {
  transform: translateY(1px);
}
.bp-icon-calendar::before,
.bp-icon-clock::before,
.bp-icon-location::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
}
.bp-icon-calendar input,
.bp-icon-clock select,
.bp-icon-location input {
  padding-left: 2.5rem;
}
.pac-container {
  margin-top: 2px;
  padding: 5px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  font-family: inherit;
  z-index: 10000;
  background: var(--card-bg);
}
.pac-item {
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.pac-icon,
.pac-item::before {
  display: none;
  margin-right: 10px;
}
.pac-item::before {
  content: "📍";
  font-size: 16px;
}
.pac-item.airport::before {
  content: "✈️";
  margin-right: 10px;
  font-size: 16px;
  display: inline-block;
}
.pac-item-query {
  font-weight: 500;
}
.rebooking-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  animation: 0.2s fadeIn ease-out;
}
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.rebooking-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.rebooking-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: 0.3s slideUp ease-out;
  z-index: 1;
}
.rebooking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.rebooking-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}
.rebooking-modal-close {
  background: 0 0;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.rebooking-modal-body {
  padding: 1.5rem;
}
.route-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-color);
}
.route-point i {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}
.route-arrow {
  color: var(--muted-text);
  font-weight: 700;
}
.rebooking-form-group {
  margin-bottom: 1.25rem;
}
.rebooking-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.875rem;
}
.rebooking-form-group .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.rebooking-form-group .form-control:focus {
  outline: 0;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.time-inputs span {
  font-weight: 700;
  color: var(--text-color);
}
.rebooking-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}
.rebooking-form-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: 0.2s;
  cursor: pointer;
}
.rebooking-form-actions .btn-primary {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}
.rebooking-form-actions .btn-primary:hover:not(:disabled) {
  background: #2563eb;
  border-color: #2563eb;
}
.rebooking-form-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.rebooking-form-actions .btn-secondary {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes slideUpMobile {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@media (max-width: 768px) {
  .rebooking-modal-content {
    width: 95%;
    max-width: none;
    margin: 1rem auto;
    max-height: 85vh;
    animation: 0.3s slideUp ease-out !important;
  }
  .rebooking-modal-header {
    padding: 1.25rem 1.25rem 1rem;
  }
  .rebooking-modal-header h3 {
    font-size: 1.125rem;
  }
  .rebooking-modal-body {
    padding: 1.25rem;
  }
  .route-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .route-arrow {
    align-self: center;
    transform: rotate(90deg);
    font-size: 1.25rem;
  }
  .rebooking-form-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .rebooking-form-actions .btn {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
  }
  .bp-widget-container {
    padding: 1rem;
  }
  .bp-tabs,
  .bp-time-wrapper {
    gap: 0.25rem;
  }
  .bp-tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
  .bp-form-group {
    margin-bottom: 1rem;
  }
}
@media (max-width: 480px) {
  .rebooking-modal-content {
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: none;
    max-height: calc(100vh - 4rem);
    border-radius: 12px;
    animation: 0.3s slideUpMobile !important;
  }
  .rebooking-modal-header {
    padding: 1rem;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    border-radius: 12px 12px 0 0;
    z-index: 1;
  }
  .rebooking-modal-body {
    padding: 1rem 1rem 2rem;
  }
  .route-point {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }
  .rebooking-form-group {
    margin-bottom: 1rem;
  }
  .rebooking-form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  .rebooking-form-group .form-control {
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 10px;
  }
  .time-inputs {
    gap: 0.75rem;
  }
  .time-inputs span {
    font-size: 1.25rem;
    font-weight: 700;
  }
  .rebooking-form-actions {
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    margin: 0 -1rem -2rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
  }
  .bp-date-wrapper,
  .bp-time-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .bp-time-wrapper span {
    display: none;
  }
}
@media (max-width: 375px) {
  .rebooking-modal-content {
    top: 1rem;
    width: calc(100% - 0.5rem);
    max-height: calc(100vh - 2rem);
  }
  .rebooking-modal-header h3 {
    font-size: 1rem;
  }
  .route-point span {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}
body.dark-mode .rebooking-modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}
body.dark-mode .rebooking-form-group .form-control {
  background: var(--light-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}
body.dark-mode .rebooking-form-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
body.dark-mode .bp-widget-container {
  background: var(--card-bg);
  color: var(--text-color);
}
body.dark-mode .bp-tab-button {
  color: var(--muted-text);
}
.view-all-btn,
body.dark-mode .bp-tab-button.bp-tab-active {
  color: var(--primary-color);
}
body.dark-mode .pac-container {
  background: var(--card-bg);
  border-color: var(--border-color);
}
body.dark-mode .modify-booking-info p,
body.dark-mode .pac-item,
body.dark-mode .pac-item-query {
  color: var(--text-color);
}
.loading {
  text-align: center;
  color: var(--muted-text);
  padding: 2rem;
}
.section-footer {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
}
.view-all-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}
.quick-actions-section {
  margin-top: 1.5rem;
  color: var(--text-color);
}
.upcoming-bookings-list {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}
.bookings-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.tab-content {
  display: none;
  color: var(--text-color);
}
@media (max-width: 480px) {
  .cs-client-portal-tabs {
    gap: 0.4rem;
  }
  .cs-tab {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
  .cs-name-group {
    flex-direction: column;
    gap: 0.4rem;
  }
  .booking-steps-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  /* Dashboard optimizations for iPhone */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
  }
  
  .stat-card {
    padding: 0.75rem 0.5rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  
  .stat-icon {
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto !important;
  }
  
  .stat-content {
    text-align: center !important;
  }
  
  .stat-number {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }
  
  .stat-label {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }
  
  /* Compact booking items */
  .booking-item {
    padding: 0.75rem !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .booking-vehicle {
    align-self: center !important;
    min-width: auto !important;
    padding: 0 !important;
  }
  
  .booking-vehicle .vehicle-image {
    width: 80px !important;
    height: 50px !important;
  }
  
  .booking-details {
    text-align: center !important;
  }
  
  .booking-header {
    justify-content: center !important;
    gap: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .booking-route {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  
  .booking-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  
  .booking-price {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    text-align: center !important;
    order: -1 !important; /* Place price first */
  }
  
  /* Optimized button layout for iPhone */
  .booking-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 0.5rem !important;
    width: 100% !important;
    order: 1 !important;
  }
  
  /* View details button - spans both columns */
  .booking-buttons .view-details-btn {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    min-height: 44px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Book again button - left column, second row */
  .booking-buttons .book-again-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 40px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Book return button - right column, second row */
  .booking-buttons .book-return-btn {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-height: 40px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .booking-stats {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Mobile sidebar adjustments for small screens */
  .account-sidebar {
    width: calc(100vw - 20px);
    max-width: 320px;
  }
  
  /* Hamburger adjustments for small screens */
  .cs-mobile-menu-toggle {
    padding: 10px;
  }
  
  .hamburger-line {
    width: 20px;
    height: 2.5px;
  }
  
  /* Header spacing for small screens */
  .cs-header {
    padding: 0.5rem 1rem;
    min-height: 60px;
  }
  
  .cs-header-logo {
    height: 28px;
  }
  
  /* General mobile styles for booking time wrapper */
  .bp-form-group .bp-time-wrapper,
  .bp-time-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  .bp-form-group .bp-time-wrapper select,
  .bp-time-wrapper select {
    flex: 1 !important;
    max-width: calc(50% - 4px) !important;
    width: auto !important;
    display: inline-block !important;
  }
  
  .bp-form-group .bp-time-wrapper span,
  .bp-time-wrapper span {
    margin: 0 !important;
    font-weight: bold !important;
    color: var(--text-color) !important;
    display: inline-block !important;
  }
}
.currency-symbol {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--success-color);
}
.action-btn-primary,
.action-btn-primary i,
.action-btn-primary:hover,
.action-btn-primary:hover i {
  color: var(--card-bg) !important;
}
.action-btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.action-btn-primary:hover {
  background-color: #001bb9 !important;
  border-color: #001bb9 !important;
}
.action-btn-danger,
.action-btn-danger i {
  color: var(--danger-color) !important;
}
.action-btn-danger:hover,
.action-btn-danger:hover i {
  color: var(--danger-hover-color, #991b1b) !important;
}
.action-btn-danger {
  background-color: var(--danger-bg, #fee2e2) !important;
  border-color: var(--danger-border, #fecaca) !important;
}
.action-btn-danger:hover {
  background-color: var(--danger-hover-bg, #fecaca) !important;
  border-color: var(--danger-hover-border, #f87171) !important;
}
.service-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-type-badge.disposal {
  background: var(
    --disposal-badge-bg,
    linear-gradient(135deg, #fef3c7, #fbbf24)
  );
  color: var(--disposal-badge-color, #92400e);
  border: 1px solid var(--disposal-badge-border, #f59e0b);
}
.service-type-badge.transfer {
  background: var(
    --transfer-badge-bg,
    linear-gradient(135deg, #dbeafe, #3b82f6)
  );
  color: var(--transfer-badge-color, #1e40af);
  border: 1px solid var(--transfer-badge-border, #2563eb);
}
.duration-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--duration-detail-bg, #fffbeb);
  border: 1px solid var(--duration-detail-border, #fbbf24);
  border-radius: 8px;
  margin-top: 8px;
}
.duration-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--duration-icon-bg, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-bg);
}
.service-note {
  font-size: 0.8em;
  color: var(--service-note-color, #92400e);
}
.disposal-distance-info {
  background: var(--distance-info-bg, #f0f9ff);
  border: 1px solid var(--distance-info-border, #0ea5e9);
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: var(--distance-info-color, #0c4a6e);
}
body.dark-mode .service-type-badge.disposal {
  background: linear-gradient(135deg, #78350f, #92400e);
  color: #fef3c7;
  border-color: #f59e0b;
}
body.dark-mode .service-type-badge.transfer {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: #dbeafe;
  border-color: #2563eb;
}
body.dark-mode .duration-detail {
  background: #78350f;
  border-color: #92400e;
  color: #fef3c7;
}
body.dark-mode .duration-icon {
  background: #f59e0b;
  color: #1a1a1a;
}
body.dark-mode .service-note {
  color: #fef3c7;
}
body.dark-mode .disposal-distance-info {
  background: #0c4a6e;
  border-color: #0ea5e9;
  color: #f0f9ff;
}

/* ================================
   MOBILE LOGOUT BUTTON - DESKTOP & MOBILE
   ================================ */

/* Style logout button consistently on both desktop and mobile */
.mobile-logout-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  margin-top: auto !important; /* Push to bottom on both desktop and mobile */
  border-top: 1px solid var(--border-color) !important;
  background: none !important;
  border: none !important;
  color: var(--danger-color) !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  width: 100% !important;
  text-align: left !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  min-height: 56px !important;
}

.mobile-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
}

.mobile-logout-btn i {
  width: 20px !important;
  height: 20px !important;
  color: inherit !important;
}

/* Ensure sidebar menu takes remaining space */
.account-sidebar .sidebar-menu {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100vh - 150px) !important; /* Allow space for logout at bottom */
}

/* ================================
   MOBILE MENU HAMBURGER
   ================================ */

/* Header right section */
.cs-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cs-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  z-index: 1001;
}

.cs-mobile-menu-toggle:hover {
  background: var(--light-bg);
}

.cs-mobile-menu-toggle:active {
  background: var(--border-color);
  transform: scale(0.95);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 1px;
}

/* Hamburger animation when active */
.cs-mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.cs-mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.cs-mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar overlay */
.cs-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.cs-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile sidebar close button */
.cs-sidebar-close {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1001;
  color: var(--text-color);
}

.cs-sidebar-close:hover {
  background: var(--border-color);
  transform: scale(1.05);
}

.cs-sidebar-close:active {
  transform: scale(0.95);
}

.cs-sidebar-close i {
  width: 18px;
  height: 18px;
}

/* Dark mode support for mobile menu */
body.dark-mode .cs-mobile-menu-toggle:hover {
  background: var(--light-bg);
}

body.dark-mode .cs-sidebar-close {
  background: var(--light-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

body.dark-mode .cs-sidebar-close:hover {
  background: var(--border-color);
}

/* Touch optimization for iPhone */
@media (pointer: coarse) {
  .cs-mobile-menu-toggle {
    padding: 12px;
    margin-right: 4px;
  }
  
  .hamburger-line {
    width: 24px;
    height: 3px;
    margin: 4px 0;
  }
  
  .cs-sidebar-close {
    width: 44px;
    height: 44px;
    top: 12px;
    left: 12px;
  }
  
  .cs-sidebar-close i {
    width: 20px;
    height: 20px;
  }
  
  .menu-item {
    padding: 1rem 1.25rem;
    min-height: 56px;
  }
  
  /* Mobile logout button is now styled globally above */
}
.booking-detail-container {
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color 0.3s,
    color 0.3s;
}
.back-btn,
.detail-header {
  display: flex;
  color: var(--text-color);
}
.detail-header {
  grid-column: 1/-1;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: background-color 0.3s;
}
.back-btn,
.booking-map {
  background: var(--light-bg);
}
.back-btn,
.booking-status {
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--small-border-radius);
}
.back-btn {
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}
.booking-map,
.location-detail,
.payment-method {
  transition: background-color 0.3s;
}
.back-btn:hover {
  background: var(--border-color);
}
.booking-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.booking-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
}
.booking-stats {
  grid-column: 1/-1;
  margin-bottom: 0.75rem;
}
.detail-content,
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.booking-map {
  height: 180px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-bg) 0, #e9ecef 100%);
}
.route-visualization {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0.6;
}
.journey-details,
.location-detail {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}
.route-point {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.location-detail.dropoff .location-icon,
.route-point.end {
  background: var(--success-color);
}
.route-line {
  width: 100px;
  height: 2px;
  background: var(--border-color);
  position: relative;
}
.route-line::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--border-color);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.journey-details {
  flex-direction: column;
  color: var(--text-color);
}
.location-detail {
  align-items: flex-start;
  background: var(--light-bg);
  border-radius: var(--border-radius);
}
.location-icon,
.payment-method {
  align-items: center;
  display: flex;
}
.location-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.location-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text-color);
}
.location-info p {
  color: var(--muted-text);
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.3;
}
.datetime {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 500;
}
.passenger-details,
.payment-info {
  padding: 0.75rem;
  color: var(--text-color);
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.detail-row .label {
  color: var(--muted-text);
  font-weight: 500;
  font-size: 0.85rem;
}
.detail-row .value {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.85rem;
}
.flight-info {
  background: #e8f4f8;
  border-radius: var(--small-border-radius);
  padding: 0.5rem !important;
  margin-top: 0.3rem;
  color: var(--text-color);
}
.payment-method {
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--light-bg);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
}
.card-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--small-border-radius);
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-btn,
.notification {
  background: var(--card-bg);
  color: var(--text-color);
}
.payment-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}
.price-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 1rem;
}
.action-buttons {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--small-border-radius);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.85rem;
}
.action-btn:hover {
  background: var(--light-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.action-btn:last-child {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger-color);
}
.action-btn:last-child:hover {
  background: #fee2e2;
  border-color: var(--danger-color);
}
@media (max-width: 768px) {
  .cs-client-portal-root {
    padding: 0.75rem;
  }
  .cs-client-portal-card {
    padding: 1.25rem;
  }
  #cs-client-portal-title {
    font-size: 1.4rem;
  }
  .journey-type-options,
  .prototype-account,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mobile hamburger menu */
  .cs-mobile-menu-toggle {
    display: flex;
  }
  
  /* Mobile sidebar behavior */
  .account-sidebar {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    overflow-y: auto;
    padding-top: 60px;
    display: block !important;
    opacity: 1;
    visibility: visible;
  }
  
  .account-sidebar.active {
    transform: translateX(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  

  
  .cs-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ensure sidebar content is visible on mobile */
  .account-sidebar .menu-item {
    display: flex !important;
    color: var(--text-color) !important;
    background: transparent !important;
  }
  
  .account-sidebar .menu-item:hover {
    background: var(--light-bg) !important;
  }
  
  /* Prevent body scroll when menu is open */
  body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  .bookings-filters,
  .form-row {
    flex-direction: column;
  }
  .booking-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .booking-vehicle {
    min-width: 80px;
    padding: 0.25rem;
  }
  .booking-vehicle .vehicle-image {
    width: 60px;
    height: 40px;
  }
  .booking-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .booking-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  .booking-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .setting-control {
    margin-left: 0;
  }
  .booking-detail-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .detail-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .quick-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .quick-actions .btn {
    flex: 1;
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  .booking-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-visualization {
    flex-direction: column;
    gap: 1rem;
  }
  .route-line {
    width: 2px;
    height: 50px;
    transform: rotate(90deg);
  }
  .location-detail {
    flex-direction: column;
    text-align: center;
  }
  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .booking-stats {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* ========================================
     BOOKING DETAILS - RESPONSIVE IPHONE
     ======================================== */
  
  /* 1. Restructure main container for mobile */
  .booking-detail-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
  }
  
  /* 2. Mobile header optimization */
  .detail-header {
    padding: 1rem !important;
    flex-direction: column !important;
    gap: 1rem !important;
    order: 1 !important;
  }
  
  .header-content {
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
  }
  
  .back-btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  .booking-info h1 {
    font-size: 1.1rem !important;
    text-align: center !important;
  }
  
  .quick-actions {
    display: none !important; /* Hide download invoice and book again buttons on mobile */
  }
  
  /* 3. Critical booking info card */
  .booking-critical-info {
    background: var(--card-bg) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin: 0 1rem !important;
    box-shadow: var(--shadow) !important;
    order: 2 !important;
    text-align: center !important;
    border: 2px solid var(--primary-color) !important;
  }
  
  .critical-booking-id {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 0.5rem !important;
  }
  
  .critical-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: var(--success-color) !important;
    color: white !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
  }
  
  .critical-price {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
  }
  
  /* 4. Mobile action buttons - Touch optimized (removed, using sidebar actions instead) */
  .mobile-actions {
    display: none !important; /* Use sidebar actions instead */
  }
  

  
  /* 3. Compact stats for mobile - 2x2 grid */
  .booking-stats {
    order: 3 !important; /* After critical info, before actions */
    margin: 0 1rem !important;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns instead of 3 */
    gap: 0.75rem !important;
  }
  
  .booking-stats .stat-card {
    padding: 1rem 0.75rem !important;
    text-align: center !important;
  }
  
  .booking-stats .stat-icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 auto 0.5rem !important;
  }
  
  .booking-stats .stat-content h3 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .booking-stats .stat-content p {
    font-size: 0.75rem !important;
    color: var(--muted-text) !important;
  }
  
  /* 5. Route section optimization */
  .detail-content {
    order: 5 !important; /* After actions */
    padding: 0 1rem !important;
  }
  
  .detail-content .section-card {
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
  }
  
  .section-header {
    padding: 1rem 1rem 0.5rem !important;
  }
  
  .section-header h2 {
    font-size: 1.1rem !important;
  }
  
  /* 7. Map mobile optimization */
  #booking-map {
    height: 200px !important;
    border-radius: 8px !important;
    margin: 0 1rem 1rem !important;
  }
  
  /* 8. Journey details mobile */
  .journey-details {
    padding: 0 1rem 1rem !important;
  }
  
  .location-detail {
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
    background: var(--light-bg) !important;
    border-radius: 8px !important;
  }
  
  .location-icon {
    width: 32px !important;
    height: 32px !important;
  }
  
  .location-info h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .location-info p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  
  /* 8. Service type badge mobile */
  .service-type-badge {
    margin: 0 1rem 1rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    border-radius: 12px !important;
  }
  
  /* 10. Passenger details mobile */
  .passenger-details {
    padding: 0 1rem 1rem !important;
  }
  
  .detail-row {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  .detail-row .label {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
  }
  
  .detail-row .value {
    font-size: 0.9rem !important;
    text-align: right !important;
    color: var(--muted-text) !important;
    max-width: 60% !important;
    word-break: break-word !important;
  }
  
  /* 4. Split sidebar content for mobile */
  .detail-sidebar {
    display: contents !important; /* Remove wrapper, let children flow */
  }
  
  /* 4a. Quick actions card - After stats */
  .quick-actions-card {
    order: 4 !important;
    margin: 0 1rem !important;
    border-radius: 12px !important;
  }
  
  .quick-actions-card .action-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  
  .action-btn {
    min-height: 48px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  
        /* 10. Payment section mobile optimization - Bottom of page */
  .payment-status-card {
    order: 10 !important; /* Force at the very bottom */
    margin: 0 1rem 2rem !important;
    border-radius: 12px !important;
  }
  
  .payment-breakdown .price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.9rem !important;
  }
  
  .payment-breakdown .price-row.total {
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: var(--primary-color) !important;
    padding-top: 1rem !important;
    border-top: 2px solid var(--border-color) !important;
  }
  
  .payment-method {
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
    border-radius: 8px !important;
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(400px);
  opacity: 0;
  transition: 0.3s;
  max-width: 400px;
  min-width: 300px;
  border-left: 4px solid transparent;
}
.notification.show {
  transform: translateX(0);
  opacity: 1;
}
.notification-success {
  border-left-color: var(--success-color);
}
.notification-error {
  border-left-color: var(--danger-color);
}
.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.notification-success .notification-content i {
  color: var(--success-color);
}
.notification-error .notification-content i {
  color: var(--danger-color);
}
.notification-content span {
  font-size: 0.9rem;
  font-weight: 500;
}
@media (max-width: 768px) {
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100px);
  }
  .notification.show {
    transform: translateY(0);
  }
}
.booking-summary {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.summary-row .label {
  font-weight: 500;
  color: var(--muted-text);
}
.summary-row.current-datetime {
  background: rgba(234, 179, 8, 0.1);
  border-radius: 4px;
  padding: 12px;
  margin: 8px 0;
}
.info-message,
.warning-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}
.warning-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}
.warning-message i {
  color: #dc2626;
  margin-top: 2px;
  flex-shrink: 0;
}
.info-message {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #059669;
}
.info-message i {
  color: #059669;
  margin-top: 2px;
  flex-shrink: 0;
}
.info-message p,
.warning-message p {
  margin: 0;
  line-height: 1.5;
}
.btn.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.btn.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
.btn.btn-danger:disabled {
  background: #fca5a5;
  border-color: #fca5a5;
}
.cancel-booking-info,
.modify-booking-info {
  margin-bottom: 20px;
}
.modify-booking-info p {
  margin-bottom: 16px;
  color: var(--text-color);
}
body.dark-mode .booking-summary {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}
body.dark-mode .summary-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .summary-row.current-datetime {
  background: rgba(234, 179, 8, 0.15);
}
body.dark-mode .warning-message {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}
body.dark-mode .info-message {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.booking-status.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #fecaca;
    margin-left: 8px;
}

.cancelled-booking-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 16px;
}

.cancelled-booking-notice i {
    width: 20px;
    height: 20px;
}

/* Status badge styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid;
}

.status-badge i {
    width: 16px;
    height: 16px;
}

.status-badge.status-draft {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.status-badge.status-confirmed {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

.status-badge.status-assigned {
    background: #dbeafe;
    color: #2563eb;
    border-color: #bfdbfe;
}

.status-badge.status-cancelled {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* Disabled button styles */
.btn.disabled, 
.action-btn.disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
