/* Modal Styles - Sign In Modal */

.modal-overlay {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 80px 30px;
  /* Increased padding to ensure no screen contact */
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  /* Restored original width */
  max-height: calc(100vh - 160px);
  /* Ensure modal fits within padding */
  margin: 0;
  /* Remove margin to prevent overflow */
  transform: scale(0.9);
  transition: all 0.3s ease;
  overflow-y: auto;
  /* Enable scrolling */
  scrollbar-width: none;
  /* Hide scrollbar for Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.modal::-webkit-scrollbar {
  display: none;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  /* Restored original padding */
  border-bottom: 1px solid var(--border-hover);
  margin-bottom: 24px;
  /* Restored original margin */
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-body {
  padding: 0 24px 24px;
  /* Restored original padding */
}

/* Sign Up Form Styling */
.sign-up-form .form-group {
  margin-bottom: 18px;
  /* Restored original */
}

.sign-up-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* Restored original */
  margin-bottom: 18px;
  /* Restored original */
}

.sign-up-form .form-row .form-group {
  margin-bottom: 0;
}

/* Remove custom sign-up input styling - use default form styling */

.sign-up-form .sign-up-btn {
  width: 100%;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sign-up-form .sign-up-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.sign-up-form .sign-up-btn:disabled {
  background: var(--text-disabled);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Sign In Form Styling */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.auth-form .form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form .form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

.auth-form .form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

.auth-form .form-group input::placeholder {
  color: #555;
}

.auth-form .form-group input:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: #FF5C00;
  background: rgba(255, 92, 0, 0.03);
  box-shadow: 0 0 0 4px rgba(255, 92, 0, 0.1);
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--text-primary);
}

/* Social Auth */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.social-btn svg {
  flex-shrink: 0;
}

/* Auth Switch */
.auth-switch {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-switch p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.link-btn {
  background: none;
  border: none;
  color: #FF5C00;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.link-btn:hover {
  color: #ff7a33;
  text-decoration: underline;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 4px 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.checkbox:hover {
  color: #aaa;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #FF5C00;
  cursor: pointer;
}

/* Forgot Password Link */
.link-btn.forgot-link {
  font-size: 13px;
  font-weight: 500;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  margin: 0;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.link-btn.forgot-link:hover {
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.08);
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 28px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.divider span {
  background: #111;
  padding: 0 20px;
  font-size: 13px;
  color: #666;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Social Sign In */
.social-signin {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.google-btn:hover {
  border-color: #4285F4;
}

.facebook-btn:hover {
  border-color: #1877F2;
}

/* Sign Up Link */
.signup-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signup-link a:hover {
  color: #ff7a33;
}

/* Plan Ride Modal Styles */
.plan-ride-modal {
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.plan-ride-modal .modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7a33 100%);
  color: white;
  padding: 24px 32px;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  margin-bottom: 0;
}

.plan-ride-modal .modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.plan-ride-modal .modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.plan-ride-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.plan-ride-modal .modal-body {
  padding: 0;
  background: var(--bg-tertiary);
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

.plan-ride-modal .modal-body::-webkit-scrollbar {
  width: 6px;
}

.plan-ride-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.plan-ride-modal .modal-body::-webkit-scrollbar-thumb {
  background-color: var(--border-hover);
  border-radius: 20px;
}

.plan-ride-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s ease;
}

.form-section:hover {
  border-color: var(--border-hover);
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Route Info Card */
#routeInfo {
  background: rgba(255, 92, 0, 0.05);
  border: 1px solid rgba(255, 92, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.route-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.route-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.route-summary {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 8px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
}

.btn-primary:hover {
  background: #ff7a33;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 92, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.form-group input[type="date"],
.form-group input[type="time"] {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
}

.form-group input[type="date"]:hover,
.form-group input[type="time"]:hover {
  border-color: var(--primary-color);
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.15);
}

.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
}

/* Style the calendar picker icon for WebKit browsers */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FF5C00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center;
  background-size: contain;
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px;
}

.form-group input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
  background-color: rgba(255, 92, 0, 0.1);
  transform: scale(1.1);
}

/* Remove all stepper controls from input fields */
.form-group input[type="date"]::-webkit-inner-spin-button,
.form-group input[type="date"]::-webkit-outer-spin-button,
.form-group input[type="time"]::-webkit-inner-spin-button,
.form-group input[type="time"]::-webkit-outer-spin-button {
  display: none;
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox specific */
.form-group input[type="date"]::-moz-calendar-picker-indicator,
.form-group input[type="time"]::-moz-calendar-picker-indicator {
  display: none;
}

/* Style the time picker icon for WebKit browsers */
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FF5C00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>') no-repeat center;
  background-size: contain;
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px;
}

.form-group input[type="time"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
  background-color: rgba(255, 92, 0, 0.1);
  transform: scale(1.1);
}

/* Remove all stepper controls from input fields */
.form-group input[type="date"]::-webkit-inner-spin-button,
.form-group input[type="date"]::-webkit-outer-spin-button,
.form-group input[type="time"]::-webkit-inner-spin-button,
.form-group input[type="time"]::-webkit-outer-spin-button {
  display: none;
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox specific */
.form-group input[type="date"]::-moz-calendar-picker-indicator,
.form-group input[type="time"]::-moz-calendar-picker-indicator {
  display: none;
}

/* Firefox styling */
.form-group input[type="date"]::-moz-calendar-picker-indicator {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FF5C00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center;
  background-size: contain;
  cursor: pointer;
  filter: none;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px;
}

.form-group input[type="date"]:hover::-moz-calendar-picker-indicator {
  opacity: 1;
  background-color: rgba(255, 92, 0, 0.1);
  transform: scale(1.1);
}

.form-group input[type="time"]::-moz-calendar-picker-indicator {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23FF5C00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>') no-repeat center;
  background-size: contain;
  cursor: pointer;
  filter: none;
  opacity: 0.7;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px;
}

.form-group input[type="time"]:hover::-moz-calendar-picker-indicator {
  opacity: 1;
  background-color: rgba(255, 92, 0, 0.1);
  transform: scale(1.1);
}

/* Enhanced styling for date/time picker dropdowns (WebKit) */
input[type="date"]::-webkit-datetime-edit-text-wrapper,
input[type="time"]::-webkit-datetime-edit-text-wrapper {
  color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit {
  color: var(--text-primary);
  padding: 0;
}

input[type="date"]::-webkit-datetime-edit-year-field,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
  color: var(--text-primary);
  background: transparent;
  border: none;
}

input[type="date"]::-webkit-datetime-edit-year-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="time"]::-webkit-datetime-edit-hour-field:focus,
input[type="time"]::-webkit-datetime-edit-minute-field:focus {
  background: rgba(255, 92, 0, 0.1);
  border-radius: 2px;
}

/* Placeholder styling */
.form-group input[type="date"]::placeholder,
.form-group input[type="time"]::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

/* Add subtle glow effect on focus */
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus {
  animation: inputGlow 0.3s ease-out;
}

@keyframes inputGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 92, 0, 0.1);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
  }
}

/* Custom Date Picker Dropdown */
.custom-date-picker {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 16px;
  margin-top: 8px;
  display: none;
  animation: fadeInUp 0.2s ease;
}

.custom-date-picker.active {
  display: block;
}

.custom-date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.custom-date-picker-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.custom-date-picker-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-date-picker-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.custom-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.custom-date-picker-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 4px;
}

.custom-date-picker-day {
  text-align: center;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.custom-date-picker-day:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

.custom-date-picker-day.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.custom-date-picker-day.disabled {
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.5;
}

.custom-date-picker-day.disabled:hover {
  background: transparent;
  border-color: transparent;
}

/* Custom Time Picker Dropdown */
.custom-time-picker {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 16px;
  margin-top: 8px;
  display: none;
  animation: fadeInUp 0.2s ease;
}

.custom-time-picker.active {
  display: block;
}

.custom-time-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.custom-time-picker-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.custom-time-picker-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-time-picker-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.custom-time-picker-content {
  display: flex;
  gap: 16px;
  align-items: center;
}

.custom-time-picker-column {
  flex: 1;
}

.custom-time-picker-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-time-picker-select {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-time-picker-select:hover {
  border-color: var(--primary-color);
  background: #1a1a1a;
}

.custom-time-picker-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
}

.custom-time-picker-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.custom-time-picker-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-time-picker-btn.primary {
  background: var(--primary-color);
  color: white;
}

.custom-time-picker-btn.primary:hover {
  background: #ff7a33;
  transform: translateY(-1px);
}

.custom-time-picker-btn.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.custom-time-picker-btn.secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Route Selection Styling */
.route-selection-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-option {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  transition: all 0.2s ease;
  cursor: pointer;
}

.route-option:hover {
  border-color: var(--primary-color);
  background: var(--bg-tertiary);
}

.route-option.selected {
  border-color: var(--primary-color);
  background: rgba(255, 92, 0, 0.05);
}

.route-option-header {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
}

.route-option-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 92, 0, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.route-option-content {
  flex: 1;
}

.route-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.route-option-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.route-option-radio {
  flex-shrink: 0;
}

.route-option-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

/* Map Container Styling */
.map-container {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  min-height: 300px;
}

.map-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
  border-bottom: 2px solid var(--border-light);
}

.map-placeholder-content {
  text-align: center;
  max-width: 300px;
}

.map-placeholder-icon {
  margin-bottom: 16px;
  opacity: 0.7;
}

.map-placeholder-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.map-placeholder-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.4;
}

.route-info {
  padding: 20px;
  background: var(--bg-tertiary);
}

.route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.route-stat {
  text-align: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.route-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.route-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.route-summary {
  padding: 12px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .route-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-overlay {
    padding: 60px 20px;
    /* Increased mobile padding to prevent edge contact */
  }

  .modal {
    max-width: 95%;
    /* Smaller on mobile */
    max-height: calc(100vh - 120px);
    /* Ensure modal fits within mobile padding */
    margin: 0;
    /* Remove margin to prevent overflow */
    overflow-y: auto;
    /* Enable scrolling */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
  }

  /* Hide scrollbar for Chrome, Safari, and Opera */
  .modal::-webkit-scrollbar {
    display: none;
  }

  .modal-header {
    padding: 12px 16px 0;
    /* Smaller padding on mobile */
  }

  .modal-body {
    padding: 0 12px 12px;
    /* Smaller padding on mobile */
  }

  .sign-up-form .form-row {
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 10px;
  }

  .sign-up-form .form-group {
    margin-bottom: 10px;
    /* Tighter spacing on mobile */
  }

  .sign-up-form .form-group input {
    padding: 8px 12px;
    /* Smaller on mobile */
    font-size: 16px;
    /* Larger for touch */
  }

  .sign-in-form .form-group {
    margin-bottom: 12px;
    /* Tighter spacing on mobile */
  }

  .sign-in-form .form-group input {
    padding: 8px 12px;
    /* Smaller on mobile */
    font-size: 16px;
    /* Larger for touch */
  }

  .sign-up-form .sign-up-btn,
  .sign-in-form .sign-in-btn {
    padding: 12px 16px;
    /* Larger touch targets */
    font-size: 16px;
  }

  .route-option-header {
    padding: 12px;
  }

  .route-option-icon {
    width: 32px;
    height: 32px;
  }

  .map-placeholder {
    height: 250px;
  }

  .map-placeholder-content {
    max-width: 250px;
  }
}

.plan-ride-modal .modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff7a33 100%);
  color: white;
  padding: 24px;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
  margin-bottom: 0;
}

.plan-ride-modal .modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.plan-ride-modal .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-ride-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.plan-ride-modal .modal-close svg {
  stroke: white;
}

.plan-ride-modal .modal-body {
  padding: 0;
  background: var(--bg-tertiary);
}

.plan-ride-form {
  padding: 24px;
  background: var(--bg-tertiary);
}

.form-section {
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-color);
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.15);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.form-actions .btn-primary:hover {
  background: #ff7a33;
  transform: translateY(-1px);
}

.form-actions .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.form-actions .btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .plan-ride-modal {
    max-width: 95%;
    max-height: 95vh;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
  }
}

/* Form Validation */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
  border-color: var(--danger-color);
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
  border-color: var(--success-color);
}

/* Loading State */
.form-actions .btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.form-actions .btn-primary.loading {
  position: relative;
  color: transparent;
}

.form-actions .btn-primary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobiscroll Mobile Picker Styles */
.md-mobile-picker-header {
  font-size: 14px;
}

input.md-mobile-picker-input {
  color: initial;
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px 0;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: arial, verdana, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.md-mobile-picker-button.mbsc-button {
  font-size: 13px;
  padding: 0 15px;
  line-height: 36px;
  float: right;
  margin: 6px 0;
  width: 100%;
}

.mbsc-col-no-padding {
  padding-left: 0;
}

.md-mobile-picker-box-label.mbsc-textfield-wrapper-box,
.md-mobile-picker-box-label .mbsc-textfield-wrapper-box,
.md-mobile-picker-inline {
  margin: 6px 0 12px 0;
}

/* Remove stepper controls from number inputs */
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-moz-inner-spin-button,
.form-group input[type="number"]::-moz-outer-spin-button {
  display: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

/* Remove blinking cursor from entire website */
* {
  caret-color: transparent !important;
}

/* Show cursor only for text inputs when focused */
input:focus,
textarea:focus {
  caret-color: var(--primary-color) !important;
}

/* Alternative: Hide text cursor completely */
input,
textarea {
  caret-color: transparent;
}

input:focus,
textarea:focus {
  caret-color: var(--primary-color);
}

/* ============================================================
   POST A RIDE MODAL — Modern 3-Step Design
   ============================================================ */

/* Overlay — wider padding so modal breathes */
#planRideModal {
  padding: 24px 16px;
  align-items: flex-start;
  overflow-y: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.72);
}


/* Modal shell — glassmorphism */
.pr-modal {
  background: rgba(14, 14, 14, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: min(800px, 92vh);
  margin: 4vh auto;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 92, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: prSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.pr-modal::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.pr-modal::-webkit-scrollbar-track {
  background: transparent;
}

.pr-modal::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 8px;
}

.pr-modal::-webkit-scrollbar-thumb:hover {
  background: #444;
}


@keyframes prSlideIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── HEADER ── */
.pr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center 40%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pr-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.pr-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.pr-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.pr-header-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.4px;
}

.pr-header-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1px;
}

.pr-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.pr-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg);
}

/* ── STEP PROGRESS ── */
.pr-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px 0;
  gap: 0;
  background: transparent;
  flex-shrink: 0;
}

.pr-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pr-step-item:hover {
  transform: translateY(-2px);
}

.pr-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.pr-step-dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5C00, #ff7730);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.pr-step-item.active .pr-step-dot {
  background: linear-gradient(135deg, #FF5C00 0%, #e55100 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 
    0 4px 16px rgba(255, 92, 0, 0.3),
    0 0 0 4px rgba(255, 92, 0, 0.12);
  transform: scale(1.05);
}

.pr-step-item.done .pr-step-dot {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.15) 0%, rgba(255, 92, 0, 0.08) 100%);
  border-color: rgba(255, 92, 0, 0.4);
  color: #FF5C00;
}

.pr-step-item.done .pr-step-dot::before {
  opacity: 0.3;
}

.pr-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
}

.pr-step-item.active .pr-step-label {
  color: #FF5C00;
  font-weight: 700;
}

.pr-step-item.done .pr-step-label {
  color: #FF5C00;
  opacity: 0.8;
}

.pr-step-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 100%);
  margin: 0 12px;
  margin-bottom: 22px;
  max-width: 80px;
  border-radius: 3px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pr-step-line.active {
  background: linear-gradient(90deg, rgba(255, 92, 0, 0.2) 0%, rgba(255, 92, 0, 0.4) 50%, rgba(255, 92, 0, 0.2) 100%);
}

.pr-step-line.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, #FF5C00, #ff7a33, transparent);
  background-size: 200% 100%;
  animation: lineShimmer 1.5s ease infinite;
}

@keyframes lineShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── BODY / PANELS ── */
.pr-body {
  padding: 20px 28px 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.pr-body::-webkit-scrollbar {
  display: none;
}

.pr-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: prPanelIn 0.3s ease;
}

.pr-panel.active {
  display: flex;
}

@keyframes prPanelIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pr-panel.slide-back {
  animation: prPanelBack 0.3s ease;
}

@keyframes prPanelBack {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── FIELD GROUPS ── */
.pr-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pr-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: default;
}

.pr-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #f0f0f0;
  font-family: inherit;
  transition: all 0.25s ease;
  box-sizing: border-box;
  outline: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pr-input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.pr-input:hover {
  border-color: rgba(255, 92, 0, 0.55);
  background: rgba(255, 92, 0, 0.05);
  box-shadow:
    0 0 0 3px rgba(255, 92, 0, 0.08),
    0 0 16px rgba(255, 92, 0, 0.12);
}

.pr-input:focus {
  border-color: #FF5C00;
  background: rgba(255, 92, 0, 0.07);
  box-shadow:
    0 0 0 3px rgba(255, 92, 0, 0.15),
    0 0 24px rgba(255, 92, 0, 0.18);
}


.pr-input:focus::placeholder {
  color: #555;
}

.pr-textarea {
  resize: none;
  line-height: 1.6;
  min-height: 100px;
}

.pr-char-count {
  text-align: right;
  font-size: 11px;
  color: #444;
  margin-top: -4px;
}

.pr-row {
  display: flex;
  gap: 14px;
}

.pr-row .pr-field-group {
  flex: 1;
}

/* ── ERROR MESSAGES ── */
.pr-error {
  font-size: 12px;
  color: #ff4444;
  min-height: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pr-error:not(:empty)::before {
  content: '⚠';
  font-size: 11px;
}

/* ── RIDE TYPE PILLS ── */
.pr-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-pill {
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
  color: #888;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.pr-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.pr-pill:hover::before {
  left: 100%;
}

.pr-pill:hover {
  border-color: rgba(255, 92, 0, 0.3);
  color: #aaa;
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pr-pill.active {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.15) 0%, rgba(255, 92, 0, 0.08) 100%);
  border-color: rgba(255, 92, 0, 0.5);
  color: #fff;
  font-weight: 600;
  box-shadow: 
    0 4px 16px rgba(255, 92, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pr-pill.active:hover {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.2) 0%, rgba(255, 92, 0, 0.1) 100%);
  box-shadow: 
    0 6px 20px rgba(255, 92, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ── DIFFICULTY CARDS ── */
.pr-diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 540px) {
  .pr-diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pr-diff-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.pr-diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 92, 0, 0.08), transparent);
  transition: left 0.5s ease;
}

.pr-diff-card:hover::before {
  left: 100%;
}

.pr-diff-card:hover {
  border-color: rgba(255, 92, 0, 0.3);
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pr-diff-card.selected {
  border-color: rgba(255, 92, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.12) 0%, rgba(255, 92, 0, 0.06) 100%);
  box-shadow: 
    0 8px 24px rgba(255, 92, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.pr-diff-icon {
  font-size: 22px;
  line-height: 1;
}

.pr-diff-name {
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e0;
}

.pr-diff-card.selected .pr-diff-name {
  color: #FF5C00;
}

.pr-diff-desc {
  font-size: 10.5px;
  color: #555;
  line-height: 1.4;
}

/* ── ROUTE / LOCATION ── */
.pr-location-wrap {
  position: relative;
}

.pr-location-wrap .pr-input {
  padding-right: 44px;
}

.pr-loc-dot {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  flex-shrink: 0;
}

.pr-loc-dot.green {
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.3);
}

.pr-loc-dot.orange {
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.3);
}

.pr-add-waypoint {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px dashed #2e2e2e;
  border-radius: 10px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.pr-add-waypoint:hover {
  border-color: #FF5C00;
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.04);
}

/* Waypoint input row */
.pr-waypoint-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-waypoint-row .pr-input {
  flex: 1;
}

.pr-waypoint-remove {
  background: #1e1e1e;
  border: 1.5px solid #2a2a2a;
  border-radius: 8px;
  color: #555;
  width: 36px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pr-waypoint-remove:hover {
  border-color: #ff4444;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.08);
}

/* ── ROUTE PREVIEW CARD ── */
.pr-route-preview {
  background: linear-gradient(135deg, rgba(255, 92, 0, 0.06) 0%, rgba(255, 92, 0, 0.02) 100%);
  border: 1px solid rgba(255, 92, 0, 0.2);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 0;
  animation: prPanelIn 0.3s ease;
}

.pr-route-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.pr-route-stat svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.pr-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #FF5C00;
  line-height: 1.1;
}

.pr-stat-key {
  font-size: 10.5px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.pr-route-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 92, 0, 0.15);
  margin: 0 16px;
  flex-shrink: 0;
}

/* ── LOCATION AUTOCOMPLETE ── */
.pr-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: none;
}

.pr-autocomplete-item {
  padding: 10px 14px;
  font-size: 13px;
  color: #ddd;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.2s;
}

.pr-autocomplete-item:last-child {
  border-bottom: none;
}

.pr-autocomplete-item:hover {
  background: rgba(255, 92, 0, 0.1);
  color: #FF5C00;
}


/* ── MINI MAP ── */
.pr-map-container {
  border-radius: 14px;
  overflow: visible;
  border: 1.5px solid #333;
  background: #f5f5f5;
  position: relative;
}

/* Toolbar above the map */
.pr-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  border-radius: 13px 13px 0 0;
  gap: 8px;
}

.pr-map-pick-btns {
  display: flex;
  gap: 6px;
}

.pr-map-pick-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #252525;
  border: 1.5px solid #333;
  border-radius: 8px;
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pr-map-pick-btn:hover {
  border-color: #FF5C00;
  color: #fff;
}

.pr-map-pick-btn.active {
  background: rgba(255, 92, 0, 0.15);
  border-color: #FF5C00;
  color: #FF5C00;
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.12);
}

.pr-map-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pr-map-pin-dot.green {
  background: #4CAF50;
}

.pr-map-pin-dot.orange {
  background: #FF5C00;
}

.pr-map-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #252525;
  border: 1.5px solid #333;
  border-radius: 8px;
  color: #aaa;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.pr-map-expand-btn:hover {
  border-color: #FF5C00;
  color: #FF5C00;
}

#planRideMap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 13px 13px;
  overflow: hidden;
}

.pr-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #888;
  font-size: 12.5px;
  pointer-events: none;
}

/* ── CUSTOM MAP MARKER PINS ── */
.pr-map-pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.pr-map-pin.start {
  background: #4CAF50;
  border: 2px solid #fff;
}

.pr-map-pin.end {
  background: #FF5C00;
  border: 2px solid #fff;
}

.pr-map-pin span {
  transform: rotate(45deg);
}

/* ── IN-MAP SEARCH CONTROL ── */
.pr-map-search-ctrl {
  position: relative;
  width: 260px;
  margin: 8px 0 0 8px;
  z-index: 1000;
}

.pr-map-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  border: 1.5px solid #333;
  border-radius: 10px;
  padding: 7px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease;
}

.pr-map-search-box:focus-within {
  border-color: #FF5C00;
  box-shadow: 0 4px 20px rgba(255, 92, 0, 0.2);
}

.pr-map-search-icon {
  color: #666;
  flex-shrink: 0;
  transition: color 0.2s;
}

.pr-map-search-box:focus-within .pr-map-search-icon {
  color: #FF5C00;
}

.pr-map-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f0f0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  min-width: 0;
}

.pr-map-search-input::placeholder {
  color: #555;
}

.pr-map-search-clear {
  background: none;
  border: none;
  color: #555;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.pr-map-search-clear:hover {
  background: #333;
  color: #fff;
}

/* Results dropdown */
.pr-map-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1.5px solid #333;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.pr-map-search-results::-webkit-scrollbar {
  width: 4px;
}

.pr-map-search-results::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

.pr-map-search-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #222;
  transition: background 0.15s ease;
}

.pr-map-search-result-item:last-child {
  border-bottom: none;
}

.pr-map-search-result-item:hover {
  background: rgba(255, 92, 0, 0.1);
}

.pr-map-search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-map-search-result-sub {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-map-search-loading,
.pr-map-search-empty {
  padding: 12px 14px;
  font-size: 12px;
  color: #666;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.pr-map-search-loading::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #444;
  border-top-color: #FF5C00;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animated pulse marker for searched location */
.pr-map-search-marker {
  width: 20px;
  height: 20px;
  background: #FF5C00;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.5);
  animation: searchPulse 1.4s ease-out 3;
  position: relative;
}

.pr-map-search-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 92, 0, 0.4);
  animation: searchRing 1.4s ease-out 3;
}

@keyframes searchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.6);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(255, 92, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 92, 0, 0);
  }
}

@keyframes searchRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ── ROUTING PANEL (overrides default Leaflet styles) ── */
.leaflet-routing-container {
  background: #1c1c1c !important;
  border: 1.5px solid #333 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  color: #e0e0e0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  max-width: 240px !important;
  min-width: 180px !important;
  overflow: hidden !important;
}

.leaflet-routing-container h2,
.leaflet-routing-container h3 {
  background: #FF5C00 !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
}

.leaflet-routing-container .leaflet-routing-alt {
  background: transparent !important;
  border: none !important;
  padding: 8px !important;
}

.leaflet-routing-container table {
  color: #ccc !important;
  font-size: 12px !important;
}

.leaflet-routing-container .leaflet-routing-instruction-icon {
  filter: invert(1) !important;
}

.leaflet-routing-collapse-btn {
  background: #FF5C00 !important;
  color: #fff !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ── FULLSCREEN MAP OVERLAY ── */
#prMapFullscreen {
  position: fixed;
  inset: 0;
  background: #0e0e0e;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  animation: prPanelIn 0.25s ease;
}

.pr-map-fs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
  flex-shrink: 0;
}

#prMapFsContainer {
  flex: 1;
  position: relative;
}

#prMapFsContainer #planRideMap {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* ── BIKE POWER CHIPS ── */
.pr-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pr-chip {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #272727;
  background: #1a1a1a;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pr-chip:hover {
  border-color: #FF5C00;
  color: #FF5C00;
}

.pr-chip.active {
  background: rgba(255, 92, 0, 0.12);
  border-color: #FF5C00;
  color: #FF5C00;
  font-weight: 600;
}

/* ── RIDERS STEPPER ── */
.pr-stepper {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border: 1.5px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
}

.pr-stepper-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  width: 42px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.pr-stepper-btn:hover {
  background: rgba(255, 92, 0, 0.1);
  color: #FF5C00;
}

.pr-stepper-btn:active {
  background: rgba(255, 92, 0, 0.18);
}

.pr-stepper-val {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
  min-width: 40px;
  text-align: center;
  line-height: 44px;
  border-left: 1px solid #252525;
  border-right: 1px solid #252525;
}

/* ── SAFETY CHECKBOX ── */
.pr-safety-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 14px 16px;
  background: #181818;
  border: 1.5px solid #252525;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.pr-safety-check:hover {
  border-color: #FF5C00;
  background: rgba(255, 92, 0, 0.04);
}

.pr-safety-check input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

.pr-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 6px;
  background: #111;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.pr-safety-check input:checked~.pr-checkmark {
  background: #FF5C00;
  border-color: #FF5C00;
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15);
}

.pr-safety-check input:checked~.pr-checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-left: none;
  border-top: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.pr-safety-check span:last-child {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

.pr-safety-check input:checked~span:last-child {
  color: #aaa;
}

/* ── FOOTER NAVIGATION ── */
.pr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 22px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  flex-shrink: 0;
}

.pr-footer-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e2e2e;
  transition: all 0.3s ease;
  display: block;
}

.pr-dot.active {
  background: #FF5C00;
  width: 20px;
  border-radius: 3px;
}

.pr-btn-ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #272727;
  border-radius: 12px;
  color: #777;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pr-btn-ghost:hover {
  border-color: #444;
  color: #bbb;
  background: #1a1a1a;
}

.pr-btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF5C00, #ff7a33);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 92, 0, 0.3);
  letter-spacing: 0.2px;
}

.pr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 92, 0, 0.4);
}

.pr-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.25);
}

.pr-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── SUCCESS OVERLAY ── */
.pr-success-overlay {
  position: absolute;
  inset: 0;
  background: #141414;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: prPanelIn 0.4s ease;
  z-index: 20;
  padding: 40px 32px;
  text-align: center;
}

.pr-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 92, 0, 0.12);
  border: 2px solid #FF5C00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: prBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes prBounce {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.pr-success-title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f0f0;
}

.pr-success-sub {
  font-size: 14px;
  color: #666;
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
}

/* ── VISIBILITY TOGGLE ── */
.pr-visibility-toggle {
  display: flex;
  gap: 8px;
}

.pr-vis-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #272727;
  background: #1a1a1a;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pr-vis-btn:hover {
  border-color: #FF5C00;
  color: #ddd;
}

.pr-vis-btn.active {
  background: rgba(255, 92, 0, 0.12);
  border-color: #FF5C00;
  color: #FF5C00;
  font-weight: 600;
}

/* ── INVITE CODE ── */
.pr-invite-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  border: 1.5px dashed #FF5C00;
  border-radius: 10px;
  padding: 12px 16px;
}

.pr-invite-code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #FF5C00;
}

.pr-invite-copy-btn {
  background: #252525;
  border: 1.5px solid #333;
  border-radius: 8px;
  color: #aaa;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.pr-invite-copy-btn:hover {
  border-color: #FF5C00;
  color: #FF5C00;
}

.pr-invite-hint {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   MY RIDES MODAL + JOIN WITH CODE
   ═══════════════════════════════════════════════════════ */

.mr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mr-overlay.active {
  opacity: 1;
}

.mr-modal {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: prSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mr-modal-sm {
  max-width: 400px;
}

.mr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #222;
}

.mr-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f0f0f0;
}

.mr-close {
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.mr-close:hover {
  color: #FF5C00;
}

/* Tabs */
.mr-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #222;
}

.mr-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mr-tab:hover {
  color: #ddd;
}

.mr-tab.active {
  color: #FF5C00;
  border-bottom-color: #FF5C00;
}

/* Body */
.mr-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.mr-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: #666;
  font-size: 13px;
}

.mr-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #333;
  border-top-color: #FF5C00;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.mr-empty {
  text-align: center;
  padding: 48px 24px;
  color: #555;
  font-size: 14px;
}

/* Ride Cards */
.mr-ride-card {
  background: #1a1a1a;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}

.mr-ride-card:hover {
  border-color: #333;
}

.mr-ride-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.mr-ride-title {
  font-size: 15px;
  font-weight: 600;
  color: #f0f0f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mr-ride-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mr-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.mr-badge.public {
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.mr-badge.private {
  background: rgba(255, 92, 0, 0.12);
  color: #FF5C00;
  border: 1px solid rgba(255, 92, 0, 0.2);
}

.mr-code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #FF5C00;
  background: rgba(255, 92, 0, 0.08);
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 2px;
}

.mr-ride-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* ── DELETE BUTTON on ride cards ── */
.mr-ride-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #222;
}

.mr-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.06);
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mr-delete-btn:hover {
  background: rgba(255, 68, 68, 0.15);
  border-color: #ff4444;
  color: #ff4444;
  transform: translateY(-1px);
}

.mr-delete-btn:active {
  transform: translateY(0);
}

/* ── DELETE CONFIRMATION DIALOG ── */
.mr-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mr-confirm-overlay.active {
  opacity: 1;
}

.mr-confirm-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 68, 68, 0.1);
  animation: prSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mr-confirm-icon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}

.mr-confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.mr-confirm-msg {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 24px;
}

.mr-confirm-msg strong {
  color: #ccc;
}

.mr-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mr-confirm-cancel {
  flex: 1;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid #2a2a2a;
  background: #252525;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.mr-confirm-cancel:hover {
  border-color: #444;
  color: #ccc;
  background: #2e2e2e;
}

.mr-confirm-delete {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #cc2200, #ff3300);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 51, 0, 0.35);
  font-family: inherit;
}

.mr-confirm-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 51, 0, 0.45);
}

.mr-confirm-delete:active {
  transform: translateY(0);
}

.mr-confirm-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}



/* ── DATE INPUT OVERRIDES FOR PR MODAL ── */
.pr-modal input[type="date"],
.pr-modal input[type="time"] {
  color-scheme: dark;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #planRideModal {
    padding: 12px 8px;
  }

  .pr-modal {
    border-radius: 20px;
  }

  .pr-header {
    padding: 18px 20px;
  }

  .pr-progress,
  .pr-body,
  .pr-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pr-row {
    flex-direction: column;
    gap: 12px;
  }

  .pr-row .pr-field-group[style] {
    max-width: 100% !important;
  }
}