/* ===========================
   TEGAFAST — Global Styles
   Brand: #2ecc71 Green
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --green: #2ecc71;
  --green-dark: #27ae60;
  --green-light: #d4f5e2;
  --green-glow: rgba(46, 204, 113, 0.25);
  --bg: #0d1117;
  --bg-2: #161b24;
  --bg-3: #1e2530;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-green: rgba(46,204,113,0.3);
  --text: #f0f4f8;
  --text-2: #8b95a3;
  --text-3: #4a5568;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-green: 0 4px 20px rgba(46,204,113,0.2);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(46,204,113,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(46,204,113,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== GLASS / CARDS ===== */
.glass {
  background: rgba(22, 27, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.glass-card:hover { border-color: var(--border-green); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo i { color: var(--green); font-size: 1rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-link.active { color: var(--green); background: rgba(46,204,113,0.1); }

.menu-icon {
  display: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.menu-icon:hover { color: var(--text); background: var(--surface-hover); }

/* ===== DASHBOARD CONTAINER ===== */
.dashboard-container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== MAP ===== */
.map-section { position: relative; }

.map-container {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
}

.location-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.location-btn:hover { background: rgba(46,204,113,0.15); transform: scale(1.05); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: #0d1117;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover { color: var(--text); border-color: var(--border-green); background: var(--surface-hover); }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.form-group label i { color: var(--green); font-size: 0.75rem; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  background: var(--bg-2);
}

input::placeholder { color: var(--text-3); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b95a3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 80px; }

/* ===== UPLOAD AREAS ===== */
.upload-section { margin-bottom: 1rem; }

.upload-section > label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.upload-section > label i { color: var(--green); font-size: 0.75rem; }

.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-3);
  color: var(--text-2);
  font-size: 0.85rem;
}

.upload-area i { font-size: 1.5rem; color: var(--green); margin-bottom: 0.35rem; display: block; }

.upload-area:hover {
  border-color: var(--green);
  background: rgba(46,204,113,0.05);
  color: var(--text);
}

.image-preview { margin-top: 0.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.image-preview img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border-green);
}

/* ===== STATUS BADGE ===== */
.driver-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: var(--green); animation: pulse 1.5s infinite; }
.status-dot.offline { background: var(--text-3); }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px transparent; }
}

/* ===== ACTIVE TOGGLE BUTTON ===== */
.active-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.75rem;
  width: 100%;
  max-width: 240px;
}

.active-toggle-btn.online {
  background: rgba(46,204,113,0.12);
  color: var(--green);
  border-color: var(--border-green);
  box-shadow: var(--shadow-green);
}

.active-toggle-btn:hover { transform: translateY(-1px); }

/* ===========================
   DRIVER DASHBOARD
=========================== */
.driver-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
}

.profile-section { display: flex; flex-direction: column; gap: 1rem; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d1117;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border-green);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.profile-info p { font-size: 0.85rem; color: var(--green); font-weight: 500; }

/* Profile Form */
.profile-form h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.profile-form h3 i { color: var(--green); }

/* Ride Requests Panel */
.ride-requests-panel {
  border-radius: var(--radius-lg);
}

.ride-requests-panel h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ride-requests-panel h3 i { color: var(--green); }

.requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-2);
  font-size: 0.875rem;
}

.request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.request-item:hover { border-color: var(--border-green); }

/* ===========================
   PASSENGER DASHBOARD
=========================== */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  border-radius: 50%;
}

.welcome-text h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.welcome-text h2 span { color: var(--green); }
.welcome-text p { font-size: 0.875rem; color: var(--text-2); }

.welcome-icon { font-size: 2rem; color: var(--green); opacity: 0.7; position: relative; z-index: 1; }

/* Passenger Grid */
.passenger-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

/* Ride Type Selector */
.ride-type-selector h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ride-type-selector h3 i { color: var(--green); }

.ride-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ride-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.875rem 0.5rem;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-2);
  font-family: var(--font-body);
}

.ride-type-btn i { font-size: 1.25rem; }
.ride-type-btn span { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.ride-type-btn small { font-size: 0.7rem; color: var(--text-3); }

.ride-type-btn:hover { border-color: var(--border-green); color: var(--green); }

.ride-type-btn.active {
  background: rgba(46,204,113,0.1);
  border-color: var(--green);
  color: var(--green);
  box-shadow: var(--shadow-green);
}

/* Destination Card */
.destination-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  transition: all var(--transition);
}

.input-group:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }

.input-icon { color: var(--green); font-size: 0.85rem; flex-shrink: 0; }

.input-group input {
  border: none;
  background: none;
  padding: 0.7rem 0;
  box-shadow: none;
  flex: 1;
}

.input-group input:focus { border: none; box-shadow: none; }

.suggested-places {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 0.25rem;
}

.suggested-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.suggested-item:last-child { border-bottom: none; }
.suggested-item:hover { background: var(--surface-hover); }
.suggested-item i { color: var(--green); }

/* Ride Actions */
.ride-actions { display: flex; gap: 0.75rem; }

.request-btn {
  flex: 1;
  padding: 0.875rem;
  font-size: 0.95rem;
}

.cancel-btn {
  padding: 0.875rem 1.25rem;
}

/* Driver Info Card */
.driver-info-card { display: flex; flex-direction: column; gap: 1rem; }

.driver-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.driver-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border-green);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.driver-photo img { width: 100%; height: 100%; object-fit: cover; }

.driver-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.driver-rating { color: #fbbf24; font-size: 0.875rem; display: flex; align-items: center; gap: 0.4rem; }

.driver-contact-buttons { display: flex; gap: 0.75rem; }

.btn-call, .btn-message {
  flex: 1;
  padding: 0.7rem;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.btn-call { background: var(--green); color: #0d1117; }
.btn-call:hover { background: var(--green-dark); }
.btn-message { background: #25D366; color: white; }
.btn-message:hover { background: #1ebe57; }

/* Ride Progress */
.ride-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.ride-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  transform: translateY(50%);
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-3);
  z-index: 1;
  text-align: center;
}

.progress-step i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.progress-step.active { color: var(--green); }
.progress-step.active i { background: rgba(46,204,113,0.15); border-color: var(--green); color: var(--green); }

.eta-info, .fare-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

.fare-info { color: var(--text); }

/* Recent Rides */
.recent-rides-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-rides-section h3 i { color: var(--green); }

.recent-rides-list { display: flex; flex-direction: column; gap: 0.75rem; }

.ride-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.ride-history-item:hover { border-color: var(--border-green); }

.loading-text { color: var(--text-2); font-size: 0.875rem; text-align: center; padding: 1rem; }

/* ===========================
   MODAL
=========================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  max-width: 440px;
  width: 100%;
  padding: 1.75rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover { color: var(--text); border-color: var(--border-green); }

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 2rem;
  color: var(--border);
  cursor: pointer;
}

.star-rating i.fas { color: #fbbf24; }
.star-rating i:hover, .star-rating i:hover ~ i { color: #fbbf24; }

/* ===========================
   BROWSE DRIVERS
=========================== */
.search-section { margin: 0 0 1rem; }

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}

.search-bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.search-bar i { color: var(--text-3); margin-right: 0.5rem; }
.search-bar input { flex: 1; border: none; background: none; color: var(--text); outline: none; font-size: 0.9rem; }

.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.filter-btn {
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8rem;
  font-weight: 500;
}

.filter-btn:hover { border-color: var(--border-green); color: var(--text); }
.filter-btn.active { background: rgba(46,204,113,0.12); border-color: var(--green); color: var(--green); }

.drivers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.drivers-header h3 { font-family: var(--font-display); font-weight: 700; }

.drivers-count { font-size: 0.85rem; color: var(--text-2); }

.drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.driver-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.driver-card:hover { border-color: var(--border-green); transform: translateY(-2px); box-shadow: var(--shadow-green); }

.driver-card-header { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }

.driver-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.driver-avatar img { width: 100%; height: 100%; object-fit: cover; }
.driver-avatar i { font-size: 2.5rem; color: var(--text-3); }

.verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--green);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d1117;
  font-size: 0.6rem;
  border: 2px solid var(--bg-2);
}

.driver-info { flex: 1; min-width: 0; }
.driver-name { font-family: var(--font-display); margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; }
.driver-rating { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem; }
.stars { color: #fbbf24; font-size: 0.75rem; }
.rating-value { font-size: 0.8rem; color: var(--text-2); }
.driver-vehicle { font-size: 0.8rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.driver-distance { text-align: right; font-size: 0.8rem; color: var(--green); font-weight: 600; flex-shrink: 0; }

.driver-card-footer { border-top: 1px solid var(--border); padding-top: 0.875rem; }

.driver-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.875rem;
  font-size: 0.78rem;
  color: var(--text-2);
}

.driver-stats .stat { display: flex; align-items: center; gap: 0.35rem; }
.driver-stats .stat i { color: var(--green); }

.driver-actions { display: flex; gap: 0.5rem; }

.call-driver-btn, .more-info-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.call-driver-btn:hover { background: var(--green); border-color: var(--green); color: #0d1117; }
.more-info-btn:hover { background: var(--surface-hover); color: var(--text); }

/* Driver Modal */
.driver-profile-full { max-height: 80vh; overflow-y: auto; }

.profile-header-full {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-avatar-full {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-green);
  flex-shrink: 0;
}

.profile-avatar-full img { width: 100%; height: 100%; object-fit: cover; }

.verification-status { margin-top: 0.4rem; }
.verified { color: var(--green); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }

.driver-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.detail-section h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); margin-bottom: 0.75rem; }
.detail-section p { margin: 0.4rem 0; font-size: 0.875rem; color: var(--text-2); }
.detail-section p strong { color: var(--text); }

.vehicle-photo-full { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; }

.action-buttons-full {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-call-large, .btn-message-large, .btn-ride-large {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.btn-call-large { background: var(--green); color: #0d1117; }
.btn-call-large:hover { background: var(--green-dark); }
.btn-message-large { background: #25D366; color: white; }
.btn-ride-large { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn-ride-large:hover { border-color: var(--border-green); color: var(--text); }

/* States */
.no-drivers, .error-message {
  text-align: center;
  padding: 3rem;
  color: var(--text-2);
}

.no-drivers i, .error-message i {
  font-size: 2.5rem;
  color: var(--text-3);
  display: block;
  margin-bottom: 0.75rem;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--green);
}

/* Ride Status */
.ride-status-card {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: rgba(46,204,113,0.08);
  border: 1px solid var(--border-green);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ===========================
   RESPONSIVE
=========================== */

/* Tablets */
@media (max-width: 1024px) {
  .driver-dashboard-grid { grid-template-columns: 1fr 340px; }
  .passenger-grid { grid-template-columns: 1fr 340px; }
  .drivers-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Mobile */
@media (max-width: 768px) {
  .dashboard-container { padding: 1rem; gap: 1rem; }

  .navbar { padding: 0.75rem 1rem; }

  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 0.75rem; gap: 0.25rem; z-index: 99; }
  .nav-links.open { display: flex; }

  .nav-link { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }

  .menu-icon { display: block; }

  .driver-dashboard-grid { grid-template-columns: 1fr; }
  .passenger-grid { grid-template-columns: 1fr; }

  .map-container { height: 300px; }

  .ride-types { grid-template-columns: repeat(3, 1fr); }

  .welcome-banner { padding: 1rem; }
  .welcome-text h2 { font-size: 1.1rem; }
  .welcome-icon { font-size: 1.5rem; }

  .drivers-grid { grid-template-columns: 1fr; }
  .driver-details-grid { grid-template-columns: 1fr; }
  .action-buttons-full { flex-direction: column; }

  .modal-content { padding: 1.25rem; margin: 0 0.5rem; }

  .driver-dashboard-grid .profile-section { order: -1; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .ride-types { grid-template-columns: repeat(3, 1fr); }
  .ride-type-btn { padding: 0.65rem 0.25rem; }
  .ride-type-btn span { font-size: 0.72rem; }

  .glass-card { padding: 1rem; }

  .active-toggle-btn { max-width: 100%; }

  .driver-card-header { flex-wrap: wrap; }
  .driver-distance { width: 100%; text-align: left; }

  .profile-header-full { flex-direction: column; align-items: center; text-align: center; }
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.glass-card, .driver-card {
  animation: fadeIn 0.4s ease both;
}