/* ==========================================================
   Denizli Go - Ana Stil Dosyası
   Light theme, Amber accents, Mobile-first
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Variables --- */
:root {
  --primary:       #F59E0B;
  --primary-dark:  #D97706;
  --primary-glow:  rgba(245, 158, 11, 0.18);
  --brand-ink:     #111827;
  --brand-blue:    #2563EB;
  --brand-mint:    #10B981;
  --bg:            #F6F7FB;
  --bg2:           #E9EDF5;
  --card:          #FFFFFF;
  --card2:         #F0F2F8;
  --border:        rgba(0,0,0,0.18);
  --border-gold:   rgba(245,158,11,0.4);
  --text:          #1A1C2E;
  --text2:         #5C6080;
  --text3:         #9699B0;
  --success:       #16a34a;
  --danger:        #dc2626;
  --warning:       #d97706;
  --info:          #2563eb;
  --online:        #16a34a;
  --offline:       #dc2626;
  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 8px 30px rgba(17,24,39,0.08);
  --shadow-gold:   0 8px 30px rgba(245,158,11,0.18);
  --transition:    0.25s cubic-bezier(.4,0,.2,1);
}

:root[data-theme="dark"] {
  --primary:       #F59E0B;
  --primary-dark:  #FBBF24;
  --primary-glow:  rgba(245, 158, 11, 0.22);
  --brand-ink:     #F8FAFC;
  --brand-blue:    #60A5FA;
  --brand-mint:    #34D399;
  --bg:            #0F172A;
  --bg2:           #111827;
  --card:          #182235;
  --card2:         #223047;
  --border:        rgba(255,255,255,0.14);
  --border-gold:   rgba(245,158,11,0.52);
  --text:          #F8FAFC;
  --text2:         #CBD5E1;
  --text3:         #94A3B8;
  --shadow:        0 10px 34px rgba(0,0,0,0.35);
  --shadow-gold:   0 8px 30px rgba(245,158,11,0.24);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- App Container --- */
#app {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* --- Screen Wrapper --- */
.screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================
   WELCOME SCREEN
   ======================== */
.welcome-screen {
  background:
    linear-gradient(180deg, rgba(7,11,22,0.78) 0%, rgba(12,18,32,0.92) 46%, rgba(17,24,39,0.98) 100%),
    url('../assets/denizli-horoz.svg') center 58%/118% auto no-repeat,
    url('../assets/bg.png') center/cover no-repeat;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 22px 24px;
  gap: 0;
  position: relative;
  overflow-y: auto;
}

.welcome-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(245,158,11,0.28), transparent 28%),
    linear-gradient(180deg, rgba(245,158,11,0.08), rgba(37,99,235,0.08) 45%, rgba(0,0,0,0.22));
  pointer-events: none;
}

.welcome-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
  text-align: center;
}

.welcome-logo {
  width: 118px; height: 118px;
  background: rgba(255,255,255,0.96) url('../assets/logo.png') center/78% no-repeat;
  display: flex; align-items: center; justify-content: center;
  border-radius: 30px;
  border: 1px solid rgba(245,158,11,0.46);
  box-shadow: 0 18px 46px rgba(0,0,0,0.38), 0 0 38px rgba(245,158,11,0.22);
  margin-bottom: 0;
  animation: pulse-logo 3.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-logo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-2px); }
}

.welcome-brand-text {
  min-width: 0;
}

.welcome-title {
  font-size: 36px; font-weight: 900;
  background: linear-gradient(90deg, #fff7ed, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0;
  margin-bottom: 8px;
  line-height: 1.02;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.welcome-subtitle {
  color: rgba(255,255,255,0.74); font-size: 14px; text-align: center; font-weight: 700;
  margin-bottom: 0;
  line-height: 1.35;
}

.welcome-proof {
  display: none;
}

.welcome-proof span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 8px;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
}

.welcome-cards {
  width: 100%; display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 18px;
  position: relative; z-index: 10;
}

.role-card-wrap {
  position: relative;
  padding-top: 36px;
}

.role-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,251,235,0.9));
  border: 1px solid rgba(245,158,11,0.34);
  border-radius: 12px;
  padding: 18px;
  display: flex; align-items: center; gap: 18px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 16px 38px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  position: relative;
}

.role-card:hover, .role-card:active {
  border-color: rgba(251,191,36,0.82);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(245,158,11,0.28);
}

.role-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.role-card-icon.passenger { background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(16,185,129,0.14)); border: 1px solid rgba(37,99,235,0.22); color: var(--brand-blue); }
.role-card-icon.driver    { background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(245,158,11,0.28)); border: 1px solid rgba(245,158,11,0.32); color: var(--primary-dark); }
.role-card-icon.admin     { background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(124,58,237,0.2)); border: 1px solid rgba(124,58,237,0.2); }

.role-card-info h3 { font-size: 17px; font-weight: 900; margin-bottom: 4px; color: var(--brand-ink); }
.role-card-info p  { font-size: 13px; color: #475569; line-height: 1.3; font-weight: 650; }

.role-card-arrow { margin-left: auto; color: var(--primary-dark); font-size: 24px; transition: 0.2s; font-weight: 800; }
.role-card:hover .role-card-arrow { color: var(--primary); transform: translateX(3px); }

.welcome-theme-toggle {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 5;
  min-width: 92px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.86);
  color: #fff;
  border: 1px solid rgba(245,158,11,0.5);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  font-size: 10.5px;
  font-weight: 850;
}

:root[data-theme="light"] .welcome-theme-toggle {
  background: rgba(255,255,255,0.94);
  color: #111827;
  border-color: rgba(17,24,39,0.14);
}

.welcome-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.welcome-actions .btn-secondary {
  min-height: 42px;
  background: rgba(15,23,42,0.78);
  border-color: rgba(245,158,11,0.36);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.welcome-screen .muted-text {
  color: rgba(255,255,255,0.62);
}

:root[data-theme="light"] .welcome-screen {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(246,247,251,0.9) 54%, #F6F7FB 100%),
    url('../assets/denizli-horoz.svg') center 58%/112% auto no-repeat,
    url('../assets/bg.png') center/cover no-repeat;
}

:root[data-theme="light"] .welcome-screen::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(245,158,11,0.24), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.52) 54%, rgba(246,247,251,0.9));
}

:root[data-theme="light"] .welcome-title {
  background: linear-gradient(90deg, #111827, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

:root[data-theme="light"] .welcome-subtitle {
  color: #475569;
}

:root[data-theme="light"] .welcome-screen .muted-text {
  color: #64748B;
}

/* ========================
   AUTH SCREENS
   ======================== */
.auth-screen {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), var(--bg) 62%),
    url('../assets/bg.png') center/cover no-repeat;
  background-attachment: fixed;
}


.auth-header {
  padding: 56px 24px 32px;
  position: relative;
}

.auth-back {
  position: absolute; top: 20px; left: 20px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.82); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 20px; cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.auth-back:hover { border-color: var(--border-gold); color: var(--primary); }

.auth-header-icon { font-size: 40px; margin-bottom: 16px; }
.auth-header h2   { font-size: 28px; font-weight: 900; margin-bottom: 6px; color: var(--brand-ink); }
.auth-header p    { color: var(--text2); font-size: 14px; }

.auth-form {
  flex: 1; padding: 8px 24px 40px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ========================
   FORM COMPONENTS
   ======================== */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  transition: all var(--transition);
  -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: var(--card);
}

.form-input::placeholder { color: var(--text3); }
.form-textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 46px; }
.input-icon-wrap .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 18px; pointer-events: none; }

/* ========================
   BUTTONS
   ======================== */
.btn {
  border: none; border-radius: 8px; padding: 16px 24px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #111827;
  box-shadow: 0 8px 22px rgba(245,158,11,0.28);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245,158,11,0.34); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.82); color: var(--brand-ink);
  border: 1px solid rgba(17,24,39,0.12);
}
.btn-secondary:hover { border-color: var(--border-gold); background: #fff; }

.btn-success  { background: var(--success); color: #fff; box-shadow: 0 4px 16px rgba(46,204,113,0.3); }
.btn-danger   { background: var(--danger); color: #fff; box-shadow: 0 4px 16px rgba(231,76,60,0.3); }
.btn-detail   { background: #2563eb; color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.28); }
.btn-ghost    { background: transparent; color: var(--primary); border: 1.5px solid var(--border-gold); }
.btn-ghost:hover { background: var(--primary-glow); }

.btn-sm       { padding: 10px 16px; font-size: 14px; }
.btn-xs       { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.logout-btn {
  background: var(--danger);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(231,76,60,0.6);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  flex-shrink: 0;
}
.logout-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 20px rgba(231,76,60,0.9);
  border-color: #fff;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(30deg);
  transition: none;
  animation: shine-btn 4s infinite;
}

@keyframes shine-btn {
  0%   { left: -60%; }
  15%  { left: 120%; }
  100% { left: 120%; }
}

/* ========================
   BOTTOM NAV
   ======================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}

.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 6px 0;
  cursor: pointer; transition: all var(--transition);
  position: relative;
}

.nav-item .nav-icon { font-size: 22px; transition: all var(--transition); }
.nav-item .nav-label { font-size: 10px; font-weight: 600; color: var(--text3); transition: all var(--transition); }

.nav-item.active .nav-icon  { filter: drop-shadow(0 2px 8px rgba(255,215,0,0.6)); }
.nav-item.active .nav-label { color: var(--primary); }

.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 16px);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ========================
   HEADER / TOP BAR
   ======================== */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.top-bar-title  { font-size: 18px; font-weight: 700; }
.top-bar-action { width: 38px; height: 38px; background: var(--card2); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--border); font-size: 18px; transition: all var(--transition); }
.top-bar-action:hover { border-color: var(--border-gold); }

/* ========================
   CARDS
   ======================== */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 20px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-gold); }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: var(--text2); margin-bottom: 16px; }

/* ========================
   SECTION / PAGE LAYOUT
   ======================== */
.page-content {
  flex: 1; overflow-y: auto; padding-bottom: 90px;
}
.page-content::-webkit-scrollbar { width: 0; }

.section { padding: 20px; }
.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text2); margin-bottom: 14px;
}

.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ========================
   MAP CONTAINER
   ======================== */
.map-container {
  width: 100%; height: 280px; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border);
  position: relative;
}

.map-container-full {
  position: fixed; inset: 0; z-index: 10;
  border-radius: 0;
}

.map-overlay-card {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 20%);
  padding: 40px 20px 20px;
  z-index: 20;
}

#passenger-map { width: 100%; height: 100%; }
#driver-map    { width: 100%; height: 100%; }
#tracking-map  { width: 100%; height: 100vh; }

/* ========================
   LOCATION INPUT PANEL
   ======================== */
.location-panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  position: relative;
}

.location-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
}

.location-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.location-dot.pickup { background: var(--primary); box-shadow: 0 0 8px rgba(255,215,0,0.6); }
.location-dot.dest   { background: var(--danger); box-shadow: 0 0 8px rgba(231,76,60,0.6); }

.location-line {
  width: 2px; height: 24px; background: var(--border);
  margin-left: 5px; margin-top: -6px; margin-bottom: -6px;
}

.location-input-field {
  flex: 1; background: transparent; border: none; color: var(--text);
  font-size: 15px; font-weight: 500; padding: 4px 0;
  cursor: pointer;
}
.location-input-field::placeholder { color: var(--text3); font-weight: 400; }
.location-input-field:focus { outline: none; }

/* ========================
   PRICE ESTIMATE CARD
   ======================== */
.price-card {
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
}

.price-amount {
  font-size: 36px; font-weight: 800;
  color: var(--primary); letter-spacing: 0;
}
.price-unit  { font-size: 16px; font-weight: 400; }
.price-info  { font-size: 13px; color: var(--text2); }
.price-meta  { text-align: right; }
.price-meta span { display: block; font-size: 13px; color: var(--text2); }
.price-meta strong { font-size: 15px; }

/* ========================
   RIDE REQUEST ITEMS
   ======================== */
.request-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  margin-bottom: 12px;
  cursor: pointer; transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.request-item::before {
  content: ''; position: absolute; inset-y: 0; left: 0; width: 3px;
  background: var(--primary); border-radius: 3px 0 0 3px;
}
.request-item:hover  { border-color: var(--border-gold); transform: translateX(4px); }
.request-item-route  { font-size: 14px; color: var(--text2); margin: 10px 0; }
.request-item-price  { font-size: 20px; font-weight: 800; color: var(--primary); }

/* ========================
   NEW PACKAGE DRIVER ALERT
   ======================== */
.new-package-alert {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0,0,0,0.18);
  animation: packageBackdrop 3.6s ease forwards;
}

.new-package-card {
  width: min(86vw, 360px);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 22px 70px rgba(0,0,0,0.28), 0 0 0 8px rgba(245,158,11,0.16);
  animation: packagePop 3.6s cubic-bezier(.2,.9,.2,1) forwards;
}

.new-package-icon {
  font-size: 96px;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 16px rgba(245,158,11,0.35));
  animation: packageSpin 1.05s ease-in-out infinite;
}

.new-package-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.new-package-meta {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

@keyframes packagePop {
  0% { opacity: 0; transform: scale(0.45) translateY(30px); }
  14% { opacity: 1; transform: scale(1.12) translateY(0); }
  24% { transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.7) translateY(-24px); }
}

@keyframes packageSpin {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

@keyframes packageBackdrop {
  0% { opacity: 0; }
  12%, 80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ========================
   DRIVER PROFILE CARD
   ======================== */
.driver-profile-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 20px;
  display: flex; gap: 16px; align-items: center;
}

.driver-avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--card2); border: 2px solid var(--border-gold);
  object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--text2);
  overflow: hidden;
}

.driver-avatar img { width: 100%; height: 100%; object-fit: cover; }

.driver-name  { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.driver-plate {
  display: inline-block; background: var(--primary); color: #000;
  padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 800;
  letter-spacing: 1px; margin-bottom: 6px;
}
.driver-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; color: var(--text2);
}
.driver-rating .star { color: var(--primary); }

/* ========================
   STARS
   ======================== */
.stars { display: flex; gap: 6px; }
.stars .star-btn {
  font-size: 32px; background: none; border: none;
  cursor: pointer; line-height: 1; filter: grayscale(1);
  transition: all 0.15s;
}
.stars .star-btn.active, .stars .star-btn:hover { filter: grayscale(0); transform: scale(1.15); }

.star-display { display: flex; gap: 2px; }
.star-display span { font-size: 14px; }

/* ========================
   STATUS BADGES
   ======================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-pending  { background: rgba(243,156,18,0.15); color: var(--warning); border: 1px solid rgba(243,156,18,0.3); }
.badge-pending-live {
  background: rgba(22,163,74,0.16);
  color: var(--success);
  border: 1px solid rgba(22,163,74,0.38);
  box-shadow: 0 0 0 rgba(22,163,74,0.45);
  animation: pending-live-pulse 1.2s ease-in-out infinite;
}
.badge-active   { background: rgba(46,204,113,0.15); color: var(--success); border: 1px solid rgba(46,204,113,0.3); }
.badge-done     { background: rgba(52,152,219,0.15); color: var(--info);    border: 1px solid rgba(52,152,219,0.3); }
.badge-cancelled{ background: rgba(231,76,60,0.15);  color: var(--danger);  border: 1px solid rgba(231,76,60,0.3); }
.badge-online   { background: rgba(46,204,113,0.15); color: var(--success); border: 1px solid rgba(46,204,113,0.3); }
.badge-offline  { background: rgba(231,76,60,0.15);  color: var(--danger);  border: 1px solid rgba(231,76,60,0.3); }

/* ========================
   ONLINE TOGGLE
   ======================== */
.online-toggle-card {
  background: linear-gradient(135deg, var(--card2), var(--card));
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 24px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

.driver-earnings-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.driver-earnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.driver-earning-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.driver-earning-card.highlight {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(255,215,0,0.12), var(--card2));
}

.driver-earning-card span {
  display: block;
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.driver-earning-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
}

.toggle-switch { position: relative; width: 56px; height: 30px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--text3); border-radius: 34px;
  transition: all 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  width: 22px; height: 22px;
  left: 4px; top: 4px;
  background: #fff; border-radius: 50%;
  transition: all 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(26px); }

/* ========================
   NOTIFICATIONS
   ======================== */
.notif-item {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 16px;
  margin-bottom: 10px; transition: all var(--transition);
}
.notif-item.unread { border-color: var(--border-gold); }
.notif-item.unread::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); margin-right: 8px; vertical-align: middle;
}
.notif-title   { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.notif-message { font-size: 13px; color: var(--text2); }
.notif-time    { font-size: 11px; color: var(--text3); margin-top: 6px; }

/* ========================
   ADMIN DASHBOARD STATS
   ======================== */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card2); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}

.stat-icon  { font-size: 24px; }
.stat-value { font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.stat-card.highlight { border-color: var(--border-gold); background: linear-gradient(135deg, rgba(255,215,0,0.08), var(--card2)); }

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

.admin-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.admin-panel.wide {
  padding: 0;
  overflow: hidden;
}

.theme-toggle-global {
  position: fixed;
  right: calc(50% - 224px);
  top: 14px;
  z-index: 5000;
  min-width: 112px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.82);
  color: #fff;
  border: 1px solid rgba(245,158,11,0.45);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .theme-toggle-global {
  background: rgba(255,255,255,0.9);
  color: #111827;
  border-color: rgba(17,24,39,0.12);
}

@media (max-width: 480px) {
  .theme-toggle-global {
    right: 12px;
  }
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
}

.admin-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-panel-title-row .section-title {
  margin-bottom: 0;
}

.admin-dashboard-map {
  width: 100%;
  height: 230px;
  border-top: 1px solid var(--border);
}

.admin-active-ride,
.admin-rank-row,
.admin-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.admin-active-ride {
  cursor: pointer;
}

.admin-active-ride:last-child,
.admin-rank-row:last-child,
.admin-money-row:last-child {
  border-bottom: none;
}

.admin-active-ride strong,
.admin-rank-row strong {
  display: block;
  font-size: 14px;
}

.admin-active-ride span,
.admin-rank-row span,
.admin-money-row span {
  display: block;
  color: var(--text2);
  font-size: 12px;
  margin-top: 3px;
}

.admin-rank-row b,
.admin-money-row strong {
  color: var(--primary);
  font-size: 15px;
  white-space: nowrap;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-empty-small {
  color: var(--text2);
  font-size: 13px;
  padding: 18px 0 4px;
  text-align: center;
}

/* ========================
   USER LIST (Admin)
   ======================== */
.user-item {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px; transition: all var(--transition);
}
.user-item:hover { border-color: var(--border-gold); }

.user-ava {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.user-ava img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; }
.user-name  { font-size: 15px; font-weight: 600; }
.user-email { font-size: 12px; color: var(--text2); }
.user-meta  { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }

/* ========================
   PROFILE PAGE
   ======================== */
.profile-photo-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px; gap: 12px;
}

.profile-photo {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--card2); border: 3px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; cursor: pointer; position: relative; overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.profile-photo .photo-edit { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; font-size: 20px; }
.profile-photo:hover .photo-edit { opacity: 1; }
.profile-photo-label { font-size: 13px; color: var(--text2); }

.vehicle-photo-card {
  background: var(--card2); border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-gold); padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; min-height: 140px; justify-content: center;
  transition: all var(--transition); overflow: hidden; position: relative;
}
.vehicle-photo-card:hover { background: rgba(255,215,0,0.05); }
.vehicle-photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.vehicle-photo-card .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.vehicle-photo-card:hover .overlay { opacity: 1; }

/* ========================
   REVIEW ITEMS
   ======================== */
.review-item {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 16px; margin-bottom: 12px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-ava    { width: 36px; height: 36px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.review-name   { font-size: 14px; font-weight: 600; }
.review-date   { font-size: 12px; color: var(--text3); }
.review-text   { font-size: 14px; color: var(--text2); line-height: 1.5; }

/* ========================
   TRACKING / WAITING
   ======================== */
.waiting-screen {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
}

.spinner {
  width: 80px; height: 80px;
  border: 4px solid rgba(245,158,11,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.waiting-title   { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.waiting-message { font-size: 15px; color: var(--text2); line-height: 1.6; margin-bottom: 32px; }

.nearby-driver-count {
  width: 100%;
  max-width: 260px;
  margin: -10px 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(220,38,38,0.10);
  border: 2px solid rgba(220,38,38,0.35);
}

.nearby-driver-number {
  color: var(--danger);
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.nearby-driver-label {
  margin-top: 6px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.tracking-driver-card {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  max-height: 34vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: var(--card); border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 12px 14px 22px;
  z-index: 200;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}

.tracking-status-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: 8px;
}

.tracking-status-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(22,163,74,0.13);
  border: 1px solid rgba(22,163,74,0.32);
  color: var(--success);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.tracking-driver-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.tracking-driver-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text2);
  font-size: 12px;
  margin: 4px 0;
}

.tracking-call-btn {
  min-width: 54px;
  height: 40px;
  border-radius: 12px;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(22,163,74,0.24);
}

.tracking-details {
  margin-bottom: 10px;
}

.tracking-details summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.tracking-details summary::-webkit-details-marker {
  display: none;
}

.tracking-detail-text {
  max-height: 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card2);
  color: var(--text2);
  font-size: 12px;
  line-height: 1.35;
}

.driver-active-screen {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 0;
}

.driver-active-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.driver-active-card {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 220;
  width: 100%;
  max-width: 480px;
  max-height: 32vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  padding: 12px 14px 22px;
  box-shadow: 0 -8px 34px rgba(0,0,0,0.22);
}

.driver-active-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.driver-active-actions a {
  text-decoration: none;
}

.driver-active-route {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
  max-height: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.driver-active-details {
  margin-bottom: 10px;
}

.driver-active-details summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.driver-active-details summary::-webkit-details-marker {
  display: none;
}

.driver-active-details[open] summary {
  margin-bottom: 8px;
}

.driver-active-route .info-row {
  padding: 7px 0;
}

.driver-active-route .info-row-value {
  font-size: 12px;
  line-height: 1.35;
}

.driver-active-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.driver-active-summary div {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
}

.driver-active-summary span {
  display: block;
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.driver-active-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

/* ========================
   MODAL / OVERLAY
   ======================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 300; animation: fadeIn 0.2s;
}

.modal-content {
  background: var(--card); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px;
  padding: 24px; max-height: 80vh; overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.1);
}
.modal-content::-webkit-scrollbar { width: 0; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-handle {
  width: 36px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 20px;
}

/* ========================
   TOAST
   ======================== */
#toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 40px); max-width: 440px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  animation: toastIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: all;
}
.toast.success { border-color: rgba(22,163,74,0.4); background: #f0fdf4; }
.toast.error   { border-color: rgba(220,38,38,0.4); background: #fff1f1; }
.toast.info    { border-color: rgba(245,158,11,0.4); background: #fffbeb; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================
   HISTORY ITEMS
   ======================== */
.history-item {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 18px;
  margin-bottom: 12px; transition: all var(--transition);
}
.history-item:hover { border-color: var(--border-gold); }

.history-route {
  display: flex; flex-direction: column; gap: 6px; margin: 12px 0;
}
.history-route-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.route-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.route-dot.pickup { background: var(--primary); }
.route-dot.dest   { background: var(--danger); }

/* ========================
   EMPTY STATE
   ======================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; text-align: center;
}
.empty-icon    { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-title   { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-subtitle{ font-size: 14px; color: var(--text2); line-height: 1.5; }

/* ========================
   LOADING
   ======================== */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(248,249,252,0.9);
  backdrop-filter: blur(4px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 500;
}
.loading-text { margin-top: 16px; font-size: 15px; color: var(--text2); }

/* ========================
   INFO ROWS
   ======================== */
.info-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row-icon { width: 38px; height: 38px; background: var(--card2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.info-row-label{ font-size: 12px; color: var(--text2); }
.info-row-value{ font-size: 15px; font-weight: 600; }

/* ========================
   ADMIN TABS
   ======================== */
.tab-bar {
  display: flex; gap: 8px; padding: 16px 20px 0; overflow-x: auto; scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }
.tab-btn:hover:not(.active) { border-color: var(--border-gold); color: var(--text); }

/* ========================
   SCROLLABLE CONTENT
   ======================== */
.scroll-x { overflow-x: auto; display: flex; gap: 12px; padding-bottom: 8px; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ========================
   RESPONSIVE
   ======================== */
@media (min-width: 481px) {
  #app {
    box-shadow: var(--shadow);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.pulse { animation: pulse 1.5s ease-in-out infinite; }

@keyframes pending-live-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(22,163,74,0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 14px rgba(22,163,74,0.45); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.bounce { animation: bounce 1s ease-in-out infinite; }

.gold-text { color: var(--primary); }
.muted-text { color: var(--text2); font-size: 13px; }

/* ========================
   SEARCH INPUT
   ======================== */
.search-wrap { position: relative; margin-bottom: 16px; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 16px; }
.search-input { width: 100%; background: var(--card2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 12px 12px 40px; color: var(--text); font-size: 14px; }
.search-input:focus { outline: none; border-color: var(--primary); }
.search-input::placeholder { color: var(--text3); }

/* ========================
   SEND NOTIFICATION FORM
   ======================== */
.target-select {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.target-btn {
  padding: 12px 8px; border-radius: var(--radius); background: var(--card2);
  border: 1.5px solid var(--border); color: var(--text2);
  font-size: 13px; font-weight: 600; text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.target-btn.active { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }

/* ========================
   DRIVE CARD MINI
   ======================== */
.mini-driver-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--card2); border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--border);
}
.mini-driver-bar .info { flex: 1; }
.mini-driver-action { display: flex; gap: 10px; }

/* ========================
   TAGS
   ======================== */
.tag {
  display: inline-block; background: rgba(255,255,255,0.06);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 500; color: var(--text2);
  border: 1px solid var(--border);
}

/* colors for vehicle color indicators */
.color-dot {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; vertical-align: middle; margin-right: 6px;
  border: 1px solid rgba(255,255,255,0.2);
}
