*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f1117;
  --surface:  #1a1d27;
  --border:   #2a2d3a;
  --text:     #e8eaf0;
  --text-dim: #8b90a8;
  --accent:   #f5a623;
  --accent2:  #4eff8a;
  --danger:   #ff5252;
  --radius:   10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--text); }

/* ── Main ──────────────────────────────────────────────────────────── */
main { flex: 1; padding: 2rem 1rem; max-width: 640px; margin: 0 auto; width: 100%; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary  { background: var(--accent); color: #000; }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface); }
.btn-small    { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* ── Hero (index) ──────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 1rem;
}
.hero h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
.hero-sub { color: var(--text-dim); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── Ride page ─────────────────────────────────────────────────────── */
.ride-page { padding-top: 2rem; text-align: center; }
.ride-page h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.pickup-address { font-size: 1.1rem; margin-bottom: 1.5rem; }
.muted { color: var(--text-dim); }

.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.driver-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem auto;
  max-width: 320px;
  text-align: left;
  line-height: 2;
}

/* ── Driver page ───────────────────────────────────────────────────── */
.driver-page h1 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.driver-page h2 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: var(--text-dim); }

.driver-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.driver-controls label { color: var(--text-dim); font-size: 0.9rem; }
.driver-controls input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
}

.ride-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ride-card p { margin-bottom: 0.25rem; }
