/* Import logo styles */
@import url("logo-styles.css");

/* Basic Reset & Fonts */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #2d3748;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
}

nav a:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

nav a.button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

nav a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: rgba(102, 126, 234, 0.1) !important;
}

/* Chat notification dot */
.chat-link {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: #f56565;
  border-radius: 50%;
  border: 2px solid white;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: transparent;
  color: white;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.search-box form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  justify-items: stretch;
}

.search-box input,
.search-box button {
  padding: 18px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  height: 56px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  white-space: nowrap;
  min-width: 140px;
  padding: 18px 28px;
  border-radius: 12px;
  font-size: 16px;
  height: 56px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  justify-self: center;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* How it works */
.how-it-works {
  padding: 80px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
}

.how-it-works h2 {
  font-size: 42px;
  margin-bottom: 60px;
  font-weight: 700;
}

.steps {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  gap: 40px;
}

.step {
  max-width: 300px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
}

.step h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
}

/* Popular Routes */
.popular-routes {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.popular-routes h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 42px;
  color: white;
  font-weight: 700;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.route-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Flash Message Style */
.flash-message {
  padding: 20px;
  margin-bottom: 30px;
  border: none;
  border-radius: 12px;
  color: #155724;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 500;
}

/* Form Container Styles */
.form-container {
  max-width: 500px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-container h1,
.form-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2d3748;
  font-weight: 700;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #4a5568;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group .button,
.form-container .button {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.form-group .button:hover,
.form-container .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.form-switch {
  text-align: center;
  margin-top: 25px;
  color: #4a5568;
}

.form-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
  transform: scale(1.2);
}

.radio-group label {
  font-weight: 500;
  margin-bottom: 0;
  color: #4a5568;
}

/* Dashboard Styles */
main {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

.container h1 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.container h2 {
  color: white;
  font-size: 28px;
  font-weight: 600;
  margin: 40px 0 25px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.container h3 {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.action-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.action-card h3 {
  margin-top: 0;
  font-size: 22px;
  color: #2d3748;
  text-shadow: none;
}

.action-card p {
  flex-grow: 1;
  color: #4a5568;
  margin-bottom: 25px;
  line-height: 1.6;
}

.action-card .button {
  width: auto;
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
}

/* Credits Card Special Styling */
.credits-card {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 143, 0, 0.1) 100%);
  border: 2px solid #ffc107;
}

.credits-link {
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
  color: white !important;
}

.credits-link:hover {
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Modern Request Cards */
.requests-list {
  display: grid;
  gap: 25px;
  margin-bottom: 50px;
}

.request-card,
.customer-request-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 25px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.request-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
}

.customer-request-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.request-card:hover,
.customer-request-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.request-customer-section,
.request-driver-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.request-customer-info,
.request-driver-info {
  text-align: center;
}

.request-customer-info-link,
.request-driver-info-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  display: block;
}

.request-customer-info-link:hover,
.request-driver-info-link:hover {
  transform: scale(1.05);
}

.request-customer-avatar,
.request-driver-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 60px;
  max-height: 60px;
}

.customer-details,
.driver-details {
  text-align: center;
}

.customer-name,
.driver-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
}

.customer-role,
.driver-role {
  margin: 0;
  font-size: 12px;
  color: #718096;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.request-details-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2d3748;
  font-size: 20px;
  text-shadow: none;
}

.request-details-section p {
  margin: 8px 0;
  color: #4a5568;
  font-size: 14px;
}

.request-actions-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.request-action-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modern Buttons */
.button {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-approve {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  min-width: 100px;
}

.button-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.button-request {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  padding: 15px 30px;
  font-size: 16px;
}

.button-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.button-danger {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

.button-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.button-secondary {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  color: white;
}

.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 174, 192, 0.4);
}

.button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Booking Status */
.booking-status {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-status.confirmed {
  background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
  color: #22543d;
}

.booking-status.pending {
  background: linear-gradient(135deg, #fef5e7 0%, #fbd38d 100%);
  color: #744210;
}

.status-pending {
  color: #744210;
  font-weight: 600;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background: #fef5e7;
  color: #744210;
}

.status-badge.rejected {
  background: #fed7d7;
  color: #c53030;
}

/* Ride Cards */
.rides-list {
  display: grid;
  gap: 25px;
}

.ride-card-detailed,
.ride-card-customer,
.ride-card-driver {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.ride-card-detailed:hover,
.ride-card-customer:hover,
.ride-card-driver:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ride-card-detailed {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 30px;
  align-items: start;
}

.ride-card-customer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 30px;
  align-items: center;
}

.ride-card-driver {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 25px;
  align-items: center;
}

.ride-driver-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ride-driver-info {
  text-align: center;
}

.ride-driver-info-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  display: block;
}

.ride-driver-info-link:hover {
  transform: scale(1.05);
}

.ride-driver-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 70px;
  max-height: 70px;
}

.price-large {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px;
}

/* Passengers Section */
.ride-passengers-section h4 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 18px;
  color: #2d3748;
  font-weight: 600;
}

.passengers-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passenger-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.5);
}

.passenger-preview-item:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
  transform: translateX(5px);
}

.passenger-preview-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
}

.no-passengers {
  color: #718096;
  font-style: italic;
  margin: 0;
  text-align: center;
  padding: 20px;
  background: rgba(113, 128, 150, 0.1);
  border-radius: 12px;
}

/* Completed Ride Styles */
.ride-card-driver.completed,
.ride-card-customer.completed {
  border-left: 4px solid #48bb78;
}

.completion-badge {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.rating-complete {
  color: #48bb78;
  font-weight: 600;
  font-size: 14px;
}

/* Credit System Styles */
.credit-balance-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 40px;
}

.balance-info h2 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 20px;
}

.balance-amount {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.balance-amount.low-balance {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.balance-warning {
  color: #e53e3e;
  font-weight: 600;
  background: rgba(245, 101, 101, 0.1);
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
}

.rides-info {
  margin-top: 20px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
}

.rides-info p {
  margin: 5px 0;
  color: #4a5568;
  font-size: 14px;
}

/* Pricing Info */
.pricing-info {
  margin-bottom: 30px;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.bonus-offer {
  border: 3px solid #48bb78;
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.1) 100%);
}

.bonus-offer h3 {
  color: #22543d;
  text-shadow: none;
  margin-bottom: 15px;
}

.bonus-calculation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 18px;
  font-weight: 700;
}

.original-price {
  color: #718096;
  text-decoration: line-through;
}

.bonus-arrow {
  color: #48bb78;
  font-size: 24px;
}

.bonus-price {
  color: #48bb78;
  font-size: 24px;
}

.bonus-label {
  background: #48bb78;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.topup-options {
  margin-bottom: 50px;
}

.topup-options h2 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
}

.payment-method-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.payment-header h3 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 10px;
  font-size: 20px;
}

.payment-header p {
  color: #718096;
  margin-bottom: 25px;
}

/* Amount Selection */
.amount-section {
  margin-bottom: 25px;
}

.amount-section h4 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 15px;
  font-size: 16px;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.amount-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.amount-option:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.amount-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  width: 100%;
  text-align: center;
}

.amount-text {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 5px;
}

.rides-count {
  font-size: 12px;
  color: #718096;
  margin-top: 5px;
}

.bonus-badge {
  background: #48bb78;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  margin: 3px 0;
}

.special-offer {
  border-color: #48bb78;
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.05) 100%);
}

.amount-option input[type="radio"]:checked + .option-content {
  background: rgba(102, 126, 234, 0.1);
}

.amount-option input[type="radio"]:checked + .option-content .amount-text {
  color: #667eea;
}

/* Custom Amount */
.custom-amount-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.custom-amount-section h4 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 15px;
  font-size: 16px;
}

.custom-amount-input {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.custom-amount-input input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
}

.use-custom-btn {
  padding: 12px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.use-custom-btn:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.custom-note {
  font-size: 12px;
  color: #718096;
  margin: 0;
  font-style: italic;
}

.topup-button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
}

.transaction-history {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.transaction-history h2 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 25px;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 15px;
  border-left: 4px solid #e2e8f0;
  transition: all 0.3s ease;
}

.transaction-item.topup {
  border-left-color: #48bb78;
}

.transaction-item.deduction {
  border-left-color: #f56565;
}

.transaction-item.refund {
  border-left-color: #4299e1;
}

.transaction-item.bonus {
  border-left-color: #ffc107;
}

.transaction-item.admin_edit {
  border-left-color: #9f7aea;
}

.transaction-item:hover {
  background: rgba(102, 126, 234, 0.05);
}

.transaction-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.transaction-type {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #2d3748;
}

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

.transaction-details p {
  margin: 0;
  color: #4a5568;
}

.transaction-date {
  font-size: 14px;
  color: #718096;
}

.transaction-amount {
  font-size: 18px;
  font-weight: 700;
}

.transaction-amount.topup,
.transaction-amount.refund,
.transaction-amount.bonus,
.transaction-amount.admin_edit {
  color: #48bb78;
}

.transaction-amount.deduction {
  color: #f56565;
}

.no-transactions {
  text-align: center;
  color: #718096;
  font-style: italic;
  padding: 40px;
}

/* Payment Page Styles */
.payment-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.payment-header-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.payment-header-card h1 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 20px;
}

.payment-amount-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 24px;
}

.amount-label {
  color: #4a5568;
  font-weight: 500;
}

.amount-value {
  color: #667eea;
  font-weight: 800;
  font-size: 32px;
}

.payment-form-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

.security-notice {
  background: rgba(72, 187, 120, 0.1);
  border: 2px solid #48bb78;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.security-notice p {
  margin: 0;
  color: #22543d;
  font-weight: 600;
}

.payment-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.payment-button {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  min-width: 200px;
}

.payment-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.payment-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.payment-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.payment-info h3 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 20px;
}

.payment-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.payment-info li {
  padding: 8px 0;
  color: #4a5568;
  font-weight: 500;
}

/* Admin Enhancements */
.balance-display {
  font-weight: 700;
  color: #48bb78;
  font-size: 18px;
}

.driver-name-display {
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
}

.modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #2d3748;
  text-shadow: none;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

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

.edit-btn {
  background: #667eea !important;
  color: white !important;
}

.balance-amount.low-balance {
  color: #f56565;
}

.rides-count {
  font-weight: 600;
  color: #4a5568;
}

/* Chat Styles */
.chat-container {
  display: flex;
  height: calc(100vh - 140px);
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.conversations-sidebar {
  width: 350px;
  min-width: 350px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  background: rgba(248, 250, 252, 0.8);
}

.conversations-header {
  padding: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.conversations-header h2 {
  margin: 0;
  font-size: 22px;
  color: #2d3748;
  text-shadow: none;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.conversation-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.conversation-item.active {
  background: rgba(102, 126, 234, 0.2);
  border-left: 4px solid #667eea;
}

.conversation-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

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

.conversation-name {
  margin: 0 0 5px 0;
  font-weight: 600;
  color: #2d3748;
  font-size: 16px;
}

.conversation-last-message {
  margin: 0;
  color: #718096;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-unread {
  width: 20px;
  height: 20px;
  background: #f56565;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.no-conversations {
  padding: 40px 20px;
  text-align: center;
  color: #718096;
  font-style: italic;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.chat-user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 15px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  flex-shrink: 0;
}

.chat-user-name {
  margin: 0;
  font-size: 18px;
  color: #2d3748;
  text-shadow: none;
}

.messages-container {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  min-height: 0;
}

.message {
  max-width: 70%;
  padding: 15px 20px;
  border-radius: 20px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message p {
  margin: 0;
}

.message.sent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 8px;
}

.message.received {
  background: rgba(255, 255, 255, 0.9);
  color: #2d3748;
  align-self: flex-start;
  border-bottom-left-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-input-container {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.chat-input-container form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.chat-input-container input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.chat-input-container input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-send {
  padding: 15px 25px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  flex-shrink: 0;
}

.button-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.no-chat-selected {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 18px;
  text-align: center;
  padding: 40px;
}

/* Rating System Styles */
.rating-container {
  max-width: 800px;
  margin: 0 auto;
}

.ride-summary {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rating-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.user-rating-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
}

.user-info-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-details h3 {
  margin: 0 0 5px 0;
  color: #2d3748;
  text-shadow: none;
}

.user-role {
  color: #718096;
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seats-info {
  color: #4a5568;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.rating-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rating-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 10px;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
  justify-content: flex-end;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating .star {
  font-size: 35px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: #ffd700;
  transform: scale(1.1);
}

.rating-text-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-text-container label {
  font-weight: 500;
  color: #4a5568;
}

.rating-text-container textarea {
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.rating-text-container textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rating-form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* Filter Section */
.filter-section {
  margin: 30px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
}

.filter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.filter-group label {
  font-weight: 600;
}

.filter-group select {
  padding: 8px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
}

/* Results Header */
.results-header {
  text-align: center;
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 50px;
  color: white;
}

.results-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.results-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* No results */
.no-rides {
  text-align: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  color: #4a5568;
  font-size: 18px;
}

/* Rating Display */
.driver-rating,
.passenger-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.rating-stars {
  color: #ffd700;
  font-weight: 700;
}

.rating-count {
  color: #718096;
  font-size: 12px;
}

.no-rating {
  color: #718096;
  font-size: 12px;
  margin: 5px 0 0 0;
  font-style: italic;
}

/* Enhanced Signup Page Styles */
.signup-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.signup-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.signup-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 10px;
  text-shadow: none;
}

.signup-header p {
  color: #4a5568;
  font-size: 16px;
  margin: 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.form-section:hover {
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  text-shadow: none;
}

.section-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

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

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

/* Enhanced Radio Button Styles */
.radio-button-group {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.radio-button-option {
  flex: 1;
  position: relative;
}

.radio-button-option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.radio-button-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.8);
  font-weight: 500;
  color: #4a5568;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.radio-button-label:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.radio-button-option input[type="radio"]:checked + .radio-button-label {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  color: #667eea;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.radio-button-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: white;
}

.radio-button-option input[type="radio"]:checked + .radio-button-label .radio-button-custom {
  border-color: #667eea;
  background: #667eea;
}

.radio-button-option input[type="radio"]:checked + .radio-button-label .radio-button-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-button-text {
  font-size: 16px;
}

/* Account Type Specific Styles */
.account-type-group {
  flex-direction: column;
  gap: 15px;
}

.account-type-option {
  flex: none;
  position: relative;
}

.account-type-option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.account-type-label {
  padding: 20px;
  border-radius: 16px;
  display: flex;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.account-type-content {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.account-type-icon {
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  flex-shrink: 0;
}

.account-type-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.account-type-title {
  font-size: 18px;
  font-weight: 700;
  color: inherit;
}

.account-type-desc {
  font-size: 14px;
  color: #718096;
  font-weight: 400;
}

.account-type-option input[type="radio"]:checked + .account-type-label .account-type-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

/* Enhanced Checkbox Styles */
.terms-agreement {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.02) 100%);
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 16px;
  padding: 25px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  visibility: hidden;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  cursor: pointer;
  line-height: 1.6;
  width: 100%;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
  background: white;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label .checkbox-custom {
  border-color: #667eea;
  background: #667eea;
}

.checkbox-container input[type="checkbox"]:checked + .checkbox-label .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-text {
  color: #4a5568;
  font-weight: 500;
}

.terms-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.terms-link:hover {
  color: #5a67d8;
  text-decoration: underline;
}

/* Enhanced Submit Button */
.signup-button {
  width: 100%;
  padding: 20px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.signup-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.signup-button:active {
  transform: translateY(-1px);
}

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

/* Signup Footer */
.signup-footer {
  text-align: center;
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.signup-footer p {
  color: #4a5568;
  margin: 0;
  font-size: 16px;
}

.login-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-link:hover {
  color: #5a67d8;
  text-decoration: underline;
}

/* Mobile Responsive for Signup */
@media (max-width: 768px) {
  .signup-container {
    padding: 0 15px;
  }

  .signup-header {
    padding: 25px 20px;
    margin-bottom: 30px;
  }

  .signup-header h1 {
    font-size: 28px;
  }

  .form-section {
    padding: 25px 20px;
  }

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

  .radio-button-group {
    flex-direction: column;
    gap: 12px;
  }

  .account-type-content {
    gap: 12px;
  }

  .account-type-icon {
    width: 45px;
    height: 45px;
    font-size: 28px;
  }

  .section-title {
    font-size: 18px;
    gap: 10px;
  }

  .section-icon {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .checkbox-container {
    gap: 12px;
  }

  .terms-agreement {
    padding: 20px;
  }
}

/* General profile image constraints */
img[src*="uploads/avatars"],
img[alt*="profile"],
img[alt*="avatar"],
img[alt*="Driver"],
img[alt*="Customer"] {
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
}

/* Driver Credits Page Professional Styling */
.credits-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Professional Credits Hero Section */
.credits-hero-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 50px;
  margin-bottom: 50px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}

.credits-hero-content {
  text-align: left;
}

.credits-hero-content .credits-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.credits-hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 15px;
  text-shadow: none;
}

.credits-hero-content p {
  font-size: 18px;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

.balance-showcase {
  display: flex;
  justify-content: center;
}

.balance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  text-align: center;
  min-width: 300px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

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

.balance-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-status.status-good {
  background: rgba(72, 187, 120, 0.2);
  color: #c6f6d5;
}

.balance-status.status-low {
  background: rgba(245, 101, 101, 0.2);
  color: #fed7d7;
}

.balance-amount-large {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1;
}

.balance-amount-large .currency {
  font-size: 24px;
  opacity: 0.8;
}

.balance-rides-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rides-available {
  text-align: left;
}

.rides-available .rides-number {
  font-size: 24px;
  font-weight: 700;
  display: block;
}

.rides-available .rides-text {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cost-per-ride {
  text-align: right;
  font-size: 12px;
  opacity: 0.8;
}

/* Payment Methods Section */
.payment-methods-section {
  margin-bottom: 50px;
}

.payment-methods-section .section-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.payment-method-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 35px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.payment-method-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.payment-method-card:hover::before {
  left: 100%;
}

.payment-method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.payment-method-card.visa-card {
  border-color: #1a73e8;
}

.payment-method-card.visa-card:hover {
  box-shadow: 0 25px 50px rgba(26, 115, 232, 0.2);
}

.payment-method-card.cliq-card {
  border-color: #ff6b35;
}

.payment-method-card.cliq-card:hover {
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.2);
}

.payment-method-card.zain-card {
  border-color: #8e44ad;
}

.payment-method-card.zain-card:hover {
  box-shadow: 0 25px 50px rgba(142, 68, 173, 0.2);
}

.payment-method-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.payment-method-header .payment-icon {
  font-size: 32px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
  text-shadow: none;
}

.payment-info .payment-description {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

.payment-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badge.instant {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.payment-badge.approval {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

/* Amount Selection */
.amount-selection h4 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  text-shadow: none;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.amount-option-card {
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.amount-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.amount-content {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 25px 15px;
  text-align: center;
  border: 3px solid #e9ecef;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.amount-option-card:hover .amount-content::before {
  left: 100%;
}

.amount-option-card:hover .amount-content {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #2196f3;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.amount-option-card input[type="radio"]:checked + .amount-content {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: #667eea;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.amount-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.amount-rides {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 5px;
}

.amount-option-card.special-offer .amount-content {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border-color: #ff9800;
  position: relative;
}

.amount-option-card.special-offer .offer-ribbon {
  position: absolute;
  top: 10px;
  right: -25px;
  background: #ff5722;
  color: white;
  padding: 4px 30px;
  font-size: 10px;
  font-weight: 700;
  transform: rotate(45deg);
  z-index: 3;
  letter-spacing: 0.5px;
}

.bonus-tag {
  background: linear-gradient(135deg, #ff5722, #d84315);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  margin: 5px 0;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Custom Amount Section */
.custom-amount-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(237, 242, 247, 0.9));
  border-radius: 20px;
  padding: 25px;
  margin-top: 20px;
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.custom-amount-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.custom-amount-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  text-shadow: none;
}

.minimum-info {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.custom-amount-input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.custom-amount-input-group input {
  flex: 1;
  padding: 15px 20px;
  border: 3px solid #e9ecef;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.custom-amount-input-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  outline: none;
}

.use-custom-btn {
  padding: 15px 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.use-custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Payment Submit Buttons */
.payment-submit-btn {
  width: 100%;
  padding: 18px 30px;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.payment-submit-btn.visa-btn {
  background: linear-gradient(135deg, #1a73e8, #1557b0);
  color: white;
}

.payment-submit-btn.visa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(26, 115, 232, 0.3);
}

.payment-submit-btn.cliq-btn {
  background: linear-gradient(135deg, #ff6b35, #e55a2b);
  color: white;
}

.payment-submit-btn.cliq-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.payment-submit-btn.zain-btn {
  background: linear-gradient(135deg, #8e44ad, #7d3c98);
  color: white;
}

.payment-submit-btn.zain-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3);
}

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

/* Support Section */
.support-section {
  margin-bottom: 50px;
}

.support-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 30px;
  transition: all 0.3s ease;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.support-icon {
  font-size: 48px;
  color: #667eea;
}

.support-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
  text-shadow: none;
}

.support-content p {
  color: #4a5568;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 16px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white;
  text-decoration: none;
}

.whatsapp-icon {
  font-size: 18px;
}

/* Transaction History */
.transaction-history-section {
  margin-bottom: 50px;
}

.transaction-history-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.transaction-history-section .section-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

.transaction-summary {
  display: flex;
  gap: 30px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.summary-label {
  font-size: 14px;
  color: white;
  opacity: 0.8;
}

.summary-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.transactions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.transaction-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #667eea;
  transition: all 0.3s ease;
}

.transaction-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.transaction-card.topup {
  border-left-color: #4caf50;
}

.transaction-card.deduction {
  border-left-color: #f44336;
}

.transaction-card.bonus {
  border-left-color: #ff9800;
}

.transaction-card.admin_edit {
  border-left-color: #9c27b0;
}

.transaction-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.transaction-header .transaction-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
}

.transaction-info {
  flex: 1;
}

.transaction-type-label {
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 5px;
}

.transaction-date {
  font-size: 14px;
  color: #718096;
}

.transaction-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.transaction-amount {
  font-size: 20px;
  font-weight: 700;
}

.transaction-amount.positive {
  color: #4caf50;
}

.transaction-amount.negative {
  color: #f44336;
}

.transaction-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5e8;
  color: #2e7d32;
}

.transaction-description {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.4;
}

.no-transactions {
  text-align: center;
  padding: 50px;
  color: white;
}

.no-transactions-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.no-transactions h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: white;
  text-shadow: none;
}

.no-transactions p {
  color: white;
  opacity: 0.8;
}

/* Bonus Preview Styles */
.bonus-preview {
  margin-top: 15px;
  display: none;
}

.bonus-calculation-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #48bb78;
}

.bonus-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.bonus-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bonus-item.bonus-highlight {
  color: #48bb78;
  font-weight: 700;
}

.bonus-item.total {
  border-top: 2px solid #e2e8f0;
  padding-top: 10px;
  font-weight: 700;
  font-size: 18px;
}

.rides-preview {
  text-align: center;
  color: #4a5568;
  font-size: 14px;
  font-style: italic;
}

.no-bonus-card {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

.bonus-tip {
  color: #667eea;
  font-size: 12px;
  margin-top: 8px;
  font-weight: 600;
}

/* Responsive Design for Credits Page */
@media (max-width: 768px) {
  .credits-hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    text-align: center;
  }

  .credits-hero-content {
    text-align: center;
  }

  .credits-hero-content h1 {
    font-size: 32px;
  }

  .balance-card {
    min-width: auto;
    width: 100%;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-amount-input-group {
    flex-direction: column;
  }

  .support-card {
    flex-direction: column;
    text-align: center;
  }

  .transactions-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    gap: 15px;
  }

  .payment-method-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Enhanced Driver Preferences Styles */
.driver-preferences {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.15);
  position: relative;
  overflow: hidden;
}

.driver-preferences::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.driver-preferences h5 {
  color: #2d3748;
  margin: 0 0 20px 0;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.driver-preferences h5::before {
  content: "⚙️";
  font-size: 20px;
}

.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.preference-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.preference-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.preference-tag:hover::before {
  left: 100%;
}

.preference-tag.allowed {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.preference-tag.allowed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.preference-tag.not-allowed {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.preference-tag.not-allowed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.preference-tag.neutral {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.preference-tag.neutral:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.additional-notes {
  background: rgba(255, 255, 255, 0.9);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  color: #4a5568;
  border-left: 4px solid #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 50px;
}

.additional-notes::before {
  content: "📝";
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 16px;
}

.additional-notes strong {
  color: #2d3748;
  font-weight: 700;
}

/* Profile form improvements for preferences */
.form-container h3 {
  color: #2d3748;
  font-size: 22px;
  margin: 35px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  position: relative;
}

.form-container h3::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.preference-section {
  background: rgba(102, 126, 234, 0.05);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.radio-group {
  display: grid;
  gap: 12px;
  margin-top: 15px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
}

.radio-option:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

.radio-option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.3);
  accent-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-label {
  color: #667eea;
  font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
  background: rgba(102, 126, 234, 0.15);
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.radio-label {
  font-weight: 500;
  color: #4a5568;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Location Input and Map Selection Styles */
.location-input-container {
  position: relative;
  margin-bottom: 15px;
  z-index: 99999; /* Changed from 10000 to 99999 */
}

.location-input-container.active {
  z-index: 999999;
}

.location-input-container.active .autocomplete-dropdown {
  z-index: 999999;
}

.location-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.location-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.location-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.location-input.loading {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3" fill="%23667eea"><animate attributeName="r" values="3;5;3" dur="1s" repeatCount="indefinite"/></circle></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
}

.map-select-btn {
  padding: 15px 20px;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.map-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.map-select-btn.active {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.map-select-btn.active:hover {
  box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

.current-location-btn {
  padding: 12px 18px;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.current-location-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 999999; /* Changed from 99999 to 999999 */
  max-height: 300px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f7fafc;
  display: flex;
  align-items: center;
  gap: 12px;
}

.autocomplete-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  color: #667eea;
}

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

.autocomplete-icon {
  font-size: 16px;
  color: #718096;
  width: 20px;
  text-align: center;
}

.autocomplete-text {
  flex: 1;
}

.autocomplete-main {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 2px;
}

.autocomplete-secondary {
  font-size: 14px;
  color: #718096;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #718096;
  font-style: italic;
}

/* Map Container Enhancements */
.map-container {
  position: relative;
  margin: 20px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container.selecting {
  cursor: crosshair;
}

.map-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;
  pointer-events: none;
}

.map-instruction {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: #2d3748;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Route Information Card */
.route-info-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.route-info-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.route-info-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.route-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.route-info-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.route-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.route-detail-item {
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.route-detail-item:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  transform: translateY(-2px);
}

.route-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.route-detail-value {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
}

.route-detail-value.price {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
}

/* Form Enhancements */
.form-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

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

.form-row.single {
  grid-template-columns: 1fr;
}

/* Status Messages */
.status-message {
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 2px solid #c3e6cb;
}

.status-message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.status-message.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 2px solid #bee5eb;
}

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

/* Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  border-radius: inherit;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design for Location Inputs */
@media (max-width: 768px) {
  .location-input-group {
    flex-direction: column;
    gap: 15px;
  }

  .map-select-btn {
    width: 100%;
  }

  .route-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .autocomplete-dropdown {
    max-height: 200px;
  }

  .preferences-grid {
    grid-template-columns: 1fr;
  }

  .preference-tag {
    text-align: center;
    justify-content: center;
  }

  .radio-group {
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .credits-hero-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    text-align: center;
  }
}

/* Terms and Conditions Page Styles */
.terms-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.terms-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.terms-content h1 {
  color: #2d3748;
  text-shadow: none;
  margin-bottom: 30px;
  font-size: 32px;
  text-align: center;
}

.terms-content h2 {
  color: #2d3748;
  text-shadow: none;
  margin: 30px 0 15px 0;
  font-size: 24px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.terms-content h3 {
  color: #4a5568;
  text-shadow: none;
  margin: 25px 0 10px 0;
  font-size: 20px;
}

.terms-content p {
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 15px;
}

.terms-content ul,
.terms-content ol {
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
}

.terms-content li {
  margin-bottom: 8px;
}

.terms-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.terms-section:last-child {
  border-bottom: none;
}

.contact-info {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
  padding: 25px;
  border-radius: 15px;
  margin: 25px 0;
  border-left: 4px solid #667eea;
}

.contact-info h4 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 18px;
}

.contact-info p {
  margin-bottom: 8px;
}

.effective-date {
  text-align: center;
  font-style: italic;
  color: #718096;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Terms Checkbox Styling */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 25px 0;
  padding: 20px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.3);
  accent-color: #667eea;
}

.terms-checkbox label {
  color: #4a5568;
  line-height: 1.6;
  cursor: pointer;
  font-weight: 500;
}

.terms-checkbox label a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.terms-checkbox label a:hover {
  text-decoration: underline;
}

.terms-checkbox.error {
  border-color: #f56565;
  background: rgba(245, 101, 101, 0.05);
}

.terms-checkbox.error label {
  color: #c53030;
}

/* Footer Link Styles */
footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
}

footer a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Mobile Responsive for Terms */
@media (max-width: 768px) {
  .terms-content {
    padding: 25px;
    margin: 10px;
  }

  .terms-content h1 {
    font-size: 28px;
  }

  .terms-content h2 {
    font-size: 22px;
  }

  .terms-checkbox {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .contact-info {
    padding: 20px;
    margin: 20px 0;
  }
}

/* Signup Form Terms Validation */
.form-group.terms-group {
  background: rgba(102, 126, 234, 0.05);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.1);
  margin-bottom: 25px;
}

.form-group.terms-group.error {
  border-color: #f56565;
  background: rgba(245, 101, 101, 0.05);
}

.terms-validation-error {
  color: #c53030;
  font-size: 14px;
  margin-top: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-validation-error::before {
  content: "⚠️";
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .search-box form {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ride-card-detailed,
  .ride-card-customer,
  .ride-card-driver {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .request-card,
  .customer-request-card {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .chat-container {
    flex-direction: column;
    height: auto;
  }

  .conversations-sidebar {
    width: 100%;
    height: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .user-rating-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .user-info-section {
    justify-content: center;
    text-align: center;
  }

  .rating-section {
    text-align: center;
  }

  .star-rating {
    justify-content: center;
  }

  .filter-form {
    flex-direction: column;
    gap: 10px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .amount-options {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .custom-amount-input {
    flex-direction: column;
    gap: 10px;
  }

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