﻿:root {
  --surface: rgba(255, 255, 255, 0.95);
  --surface-soft: #f7f8f2;
  --surface-border: rgba(17, 18, 20, 0.08);
  --text: #121417;
  --muted: #667085;
  --accent: #c8ff00;
  --accent-soft: rgba(200, 255, 0, 0.16);
  --shadow: 0 20px 60px rgba(15, 18, 26, 0.08);
  --success: #1f7a37;
  --danger: #bf2d2d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(200, 255, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfcf7 0%, #eef1e7 100%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

.rider-page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.rider-topbar,
.rider-main {
  width: min(1120px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

.rider-topbar {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(17, 18, 20, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup { display: flex; align-items: baseline; gap: 12px; }
.brand-mark { font-size: 1.55rem; font-weight: 800; letter-spacing: 0.08em; }
.brand-copy { color: var(--muted); font-weight: 600; }

.rider-main {
  margin-top: 28px;
  margin-bottom: 44px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.public-shell,
.app-panel {
  display: grid;
  gap: 20px;
}

.auth-card,
.recovery-card {
  width: min(560px, 100%);
  justify-self: center;
}

.auth-card h1 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}
.auth-copy {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #364402;
  font-weight: 700;
  font-size: 0.82rem;
}
.eyebrow.muted {
  background: rgba(17, 18, 20, 0.06);
  color: #48514a;
}

h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.55rem; line-height: 1.1; }
h3 { font-size: 1rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.section-head p { color: var(--muted); margin-top: 8px; line-height: 1.6; }

.stack-form { display: grid; gap: 16px; }
.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
}
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
  outline: 2px solid rgba(200, 255, 0, 0.35);
  border-color: rgba(200, 255, 0, 0.45);
}

.inline-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.inline-actions.left {
  justify-content: flex-start;
}

.grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  min-height: 50px;
}
.primary-button {
  padding: 14px 22px;
  background: var(--accent);
  color: #11150a;
}
.primary-button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.ghost-button {
  padding: 12px 18px;
  background: rgba(17, 18, 20, 0.06);
  color: #171a13;
}
.form-hint,
.error-text,
.success-text { line-height: 1.6; }
.form-hint { color: var(--muted); }
.error-text { color: var(--danger); }
.success-text { color: var(--success); }
.compact-section { padding-top: 10px; }

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.dashboard-hero p { color: var(--muted); margin-top: 10px; }
.header-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card { display: grid; gap: 10px; }
.stat-card span, .stat-card small { color: var(--muted); }
.stat-card strong { font-size: 2rem; }
.accent-card { background: linear-gradient(135deg, #1c2500, #121410); color: white; }
.accent-card span, .accent-card small { color: rgba(255,255,255,.72); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .95fr);
  gap: 20px;
}
.quick-actions,
.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.trip-list { display: grid; gap: 14px; }
.trip-card, .empty-card {
  border: 1px solid var(--surface-border);
  background: var(--surface-soft);
  border-radius: 22px;
  padding: 18px;
}
.trip-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.trip-card p, .support-block p { color: var(--muted); line-height: 1.6; }
.chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf0e3;
  color: #394014;
  font-weight: 600;
}
.meta-list { display: grid; gap: 14px; }
.meta-list div { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--surface-border); }
.meta-list dt { font-size: .85rem; color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; }
.support-block { display: grid; gap: 14px; }
.hero-account {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.account-actions {
  display: grid;
  gap: 12px;
  min-width: 240px;
}
.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-border);
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .content-grid,
  .two-col,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-account {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .rider-topbar,
  .rider-main {
    width: min(100vw - 20px, 100%);
  }

  .rider-topbar,
  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-card { padding: 22px; }
  .inline-actions,
  .inline-actions.left { justify-content: stretch; }
  .inline-actions > * { flex: 1 1 auto; }
}
