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

body {
  background-color: #09090b;
  color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
}

.logo {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2rem;
  text-align: center;
}
.logo span { color: #e8500a; }

/* ── Cards ── */
.card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-sub   { font-size: 0.85rem; color: #71717a; margin-bottom: 1.5rem; }

/* ── Form elements ── */
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 0.3rem;
}
.form-row { display: flex; gap: 0.75rem; }
.form-row > div { flex: 1; min-width: 0; }

input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  color: #fafafa;
  font-size: 0.92rem;
  padding: 0.62rem 0.85rem;
  margin-bottom: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
input:focus, select:focus { border-color: #e8500a; }
input::placeholder { color: #52525b; }

.btn {
  width: 100%;
  background: #e8500a;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 0.25rem;
}
.btn:hover    { background: #c4430a; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  border: 1px solid #27272a;
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 500;
}
.btn-ghost:hover { background: #1c1c1f; color: #fafafa; }
.btn-sm   { width: auto; padding: 0.4rem 1rem; font-size: 0.82rem; margin-top: 0; }
.btn-xs   { width: auto; padding: 0.3rem 0.7rem; font-size: 0.75rem; margin-top: 0; }
.btn-red  { background: #7f1d1d; color: #fca5a5; border: 1px solid #7f1d1d; }
.btn-red:hover { background: #991b1b; }
.btn-green { background: #14532d; color: #86efac; border: 1px solid #166534; }
.btn-green:hover { background: #166534; }

.link-row {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: #71717a;
}
.link-row a { color: #e8500a; cursor: pointer; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

.error {
  background: #2d1010;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: none;
}
.error.show { display: block; }
.success-msg {
  background: #0d2d1a;
  border: 1px solid #166534;
  color: #86efac;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: none;
}

/* ── Rider type cards ── */
.rider-cards { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 0.5rem; }
.rider-card {
  background: #18181b;
  border: 2px solid #27272a;
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  text-align: left;
}
.rider-card:hover    { border-color: #52525b; }
.rider-card.selected { border-color: #e8500a; background: #1a100a; }
.rider-icon  { font-size: 2rem; flex-shrink: 0; }
.rider-title { font-size: 0.95rem; font-weight: 700; }
.rider-desc  { font-size: 0.78rem; color: #71717a; margin-top: 0.15rem; }

/* ── App shell ── */
.app-wrap {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.app-logo { font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }
.app-logo span { color: #e8500a; }
.user-bar { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: #a1a1aa; }

/* ── Bell notification ── */
.bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem 0.3rem;
  line-height: 1;
  border-radius: 0.4rem;
  transition: background 0.15s;
}
.bell-btn:hover { background: #27272a; }
.bell-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
.notif-panel {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #27272a;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a1a1aa;
}
.notif-dismiss-all {
  background: none;
  border: none;
  color: #71717a;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
}
.notif-dismiss-all:hover { color: #e8500a; }
.notif-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #27272a;
}
.notif-item:last-child { border-bottom: none; }
.notif-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.notif-dot-red    { background: #ef4444; }
.notif-dot-orange { background: #f97316; }
.notif-body { flex: 1; min-width: 0; }
.notif-bike   { font-size: 0.7rem; color: #71717a; margin-bottom: 0.1rem; }
.notif-title  { font-size: 0.85rem; font-weight: 600; color: #fafafa; }
.notif-detail { font-size: 0.75rem; color: #a1a1aa; margin-top: 0.1rem; }
.notif-snooze {
  background: none;
  border: 1px solid #3f3f46;
  color: #71717a;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.notif-snooze:hover { border-color: #e8500a; color: #e8500a; }
.notif-actions { display: flex; flex-direction: column; gap: 0.3rem; flex-shrink: 0; }
.notif-action {
  background: #e8500a;
  border: none;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}
.notif-action:hover { background: #c43e07; }
.notif-log-form { display: flex; flex-direction: column; gap: 0.3rem; }
.notif-log-input {
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #fafafa;
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  border-radius: 0.35rem;
  width: 110px;
}
.notif-log-input:focus { outline: none; border-color: #e8500a; }
.notif-log-hint { font-size: 0.68rem; color: #71717a; }
.notif-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #52525b;
}
.miles-edit-wrap { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.1rem; }
.miles-edit-input {
  width: 80px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 0.35rem;
  color: #fafafa;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
}
.miles-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.1rem 0.2rem;
  border-radius: 0.25rem;
  color: #a1a1aa;
}
.miles-edit-btn:hover { color: #fafafa; }
.miles-pencil {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: #52525b;
  padding: 0 0.1rem;
  line-height: 1;
}
.miles-pencil:hover { color: #e8500a; }

/* ── Nav tabs ── */
.nav-tabs {
  display: flex;
  gap: 0.2rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-top: 0;
  width: auto;
  white-space: nowrap;
}
.nav-tab:hover  { color: #fafafa; }
.nav-tab.active { background: #27272a; color: #fafafa; }

/* ── Section header ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-title { font-size: 1rem; font-weight: 700; }

/* ── Garage ── */
.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.bike-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  overflow: hidden;
}
.bike-photo {
  width: 100%; height: 120px;
  background: #27272a;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; overflow: hidden;
}
.bike-photo img { width: 100%; height: 100%; object-fit: cover; }
.bike-info { padding: 0.75rem; }
.bike-name { font-size: 0.88rem; font-weight: 600; }
.bike-year { font-size: 0.75rem; color: #71717a; margin-top: 0.1rem; }

/* ── Empty states ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #52525b;
}
.empty-icon  { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-title { font-size: 0.95rem; font-weight: 600; color: #71717a; margin-bottom: 0.4rem; }
.empty-desc  { font-size: 0.82rem; margin-bottom: 1.5rem; }

/* ── Coming soon ── */
.coming-soon { text-align: center; padding: 3rem 1rem; }
.coming-soon-icon  { font-size: 2.5rem; margin-bottom: 0.75rem; }
.coming-soon-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.coming-soon-desc  { font-size: 0.82rem; color: #71717a; }

/* ── Photo upload ── */
.photo-upload-area {
  border: 2px dashed #27272a;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 0.9rem;
  transition: border-color 0.15s;
  position: relative;
}
.photo-upload-area:hover { border-color: #52525b; }
.photo-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; margin: 0; padding: 0;
}
.upload-preview { width: 100%; height: 160px; object-fit: cover; border-radius: 0.5rem; display: none; }
.upload-placeholder { color: #52525b; font-size: 0.85rem; }
.upload-placeholder span { font-size: 1.75rem; display: block; margin-bottom: 0.4rem; }

/* ── Profile tab ── */
.profile-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1.1rem;
  gap: 1rem;
}
.profile-row + .profile-row { border-top: 1px solid #1f1f22; }
.profile-label { font-size: 0.8rem; color: #71717a; flex-shrink: 0; padding-top: 0.05rem; }
.profile-value { font-size: 0.88rem; text-align: right; color: #e4e4e7; line-height: 1.5; }
.profile-divider { height: 1px; background: #27272a; }
.rider-badge {
  display: inline-block;
  background: #1a100a;
  border: 1px solid #e8500a;
  color: #e8500a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.profile-note { font-size: 0.78rem; color: #52525b; text-align: center; padding: 0 0.5rem; }

/* ── Crew tab ── */
.crew-search-wrap { position: relative; margin-bottom: 1.25rem; }
.crew-search-wrap input { margin-bottom: 0; }
.crew-search-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  z-index: 10;
  overflow: hidden;
}
.crew-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #27272a;
  gap: 0.75rem;
}
.crew-result-row:last-child { border-bottom: none; }
.crew-result-name { font-size: 0.88rem; font-weight: 600; }
.crew-result-sub  { font-size: 0.75rem; color: #71717a; margin-top: 0.1rem; }

.crew-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1rem 0 0.5rem;
}
.crew-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}
.crew-avatar {
  width: 2.2rem; height: 2.2rem;
  background: #27272a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.crew-name { font-size: 0.88rem; font-weight: 600; }
.crew-sub  { font-size: 0.75rem; color: #71717a; margin-top: 0.1rem; }

/* ── Check email ── */
.email-icon { font-size: 3rem; margin-bottom: 1rem; text-align: center; }

/* ── Crew cards ── */
.crew-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.crew-card:hover { border-color: #e8500a; }
.crew-card-name { font-size: 0.95rem; font-weight: 700; }
.crew-card-meta { font-size: 0.78rem; color: #71717a; margin-top: 0.2rem; }
.role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.role-badge-admin  { background: #1a100a; border: 1px solid #e8500a; color: #e8500a; }
.role-badge-member { background: #18181b; border: 1px solid #3f3f46; color: #71717a; }

/* ── Admin panel ── */
.admin-user-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid #27272a;
}
.admin-user-row:last-child { border-bottom: none; }
.admin-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #27272a; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; color: #e8500a; flex-shrink: 0;
}
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-name { font-size: 0.85rem; font-weight: 600; color: #e4e4e7; }
.admin-user-email { font-size: 0.75rem; color: #71717a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-actions { display: flex; gap: 0.3rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.admin-type-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0; border-bottom: 1px solid #27272a;
}
.admin-type-row:last-child { border-bottom: none; }
.admin-type-name { flex: 1; font-size: 0.85rem; color: #e4e4e7; }
.admin-type-miles { font-size: 0.75rem; color: #71717a; white-space: nowrap; }

/* ── Service intervals ── */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.service-name  { font-size: 0.88rem; font-weight: 600; }
.service-miles { font-size: 0.78rem; color: #e8500a; font-weight: 600; margin-top: 0.1rem; }
.suggest-box {
  background: #12120f;
  border: 1px solid #3a2a10;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.suggest-title { font-size: 0.78rem; font-weight: 700; color: #e8500a; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-top: 1px solid #27272a;
  font-size: 0.82rem;
}
.suggest-item:first-of-type { border-top: none; }
.disclaimer-box {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: #a1a1aa;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.bike-actions { display: flex; gap: 0.5rem; padding: 0.5rem 0.75rem; border-top: 1px solid #27272a; }
.bike-mileage { font-size: 0.75rem; color: #e8500a; margin-top: 0.1rem; }

/* ── Alerts tab ── */
.alert-bike-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.alert-bike-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.alert-bike-name { font-size: 0.9rem; font-weight: 700; }
.alert-bike-meta { font-size: 0.75rem; color: #71717a; }
.alert-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid #1f1f22;
}
.traffic-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.traffic-green  { background: #22c55e; box-shadow: 0 0 6px #22c55e80; }
.traffic-orange { background: #f97316; box-shadow: 0 0 6px #f9731680; }
.traffic-red    { background: #ef4444; box-shadow: 0 0 6px #ef444480; }
.traffic-grey   { background: #3f3f46; }
.alert-row-body { flex: 1; min-width: 0; }
.alert-svc-name { font-size: 0.85rem; font-weight: 600; }
.alert-svc-detail { font-size: 0.72rem; color: #71717a; margin-top: 0.1rem; }
.alert-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; flex-shrink: 0; }
.alert-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.status-green  { color: #22c55e; }
.status-orange { color: #f97316; }
.status-red    { color: #ef4444; }
.status-grey   { color: #52525b; }
.alert-log-btn {
  background: none;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.alert-log-btn:hover { border-color: #e8500a; color: #e8500a; }
.alert-row-log { flex-direction: column; align-items: stretch; gap: 0.4rem; }
.alert-log-label { font-size: 0.8rem; font-weight: 600; color: #fafafa; }
.alert-log-hint { font-weight: 400; color: #71717a; }
.alert-log-controls { display: flex; align-items: center; gap: 0.4rem; }
.alert-log-input {
  flex: 1;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #fafafa;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  min-width: 0;
}
.alert-log-input:focus { outline: none; border-color: #e8500a; }

/* ── Views / tabs ── */
.view { display: none; flex-direction: column; align-items: center; width: 100%; }
.view.active { display: flex; }
.tab-section { display: none; width: 100%; }
.tab-section.active { display: block; }

/* ── Textarea ── */
textarea {
  width: 100%;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  color: #fafafa;
  font-size: 0.92rem;
  font-family: inherit;
  padding: 0.62rem 0.85rem;
  margin-bottom: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
textarea:focus       { border-color: #e8500a; }
textarea::placeholder { color: #52525b; }

/* ── Date / time inputs ── */
input[type=date], input[type=time] {
  color-scheme: dark;
  width: 100%;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  color: #fafafa;
  font-size: 0.92rem;
  padding: 0.62rem 0.85rem;
  margin-bottom: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
input[type=date]:focus, input[type=time]:focus { border-color: #e8500a; }

/* ── Ride board cards ── */
.ride-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.ride-card:hover { border-color: #e8500a; transform: translateY(-1px); }
.ride-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.ride-card-title { font-size: 0.95rem; font-weight: 700; flex: 1; line-height: 1.3; }
.ride-cat-badge {
  display: inline-block;
  background: #1a100a;
  border: 1px solid #e8500a40;
  color: #e8500a;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ride-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: #71717a;
  margin-bottom: 0.4rem;
}
.ride-card-by { font-size: 0.73rem; color: #52525b; }

/* ── Stop rows (create form) ── */
.stop-row {
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: #111113;
}
.stop-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

/* ── Crew checkbox rows (invite section) ── */
.ride-crew-check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #27272a;
  cursor: pointer;
}
.ride-crew-check-row:last-child { border-bottom: none; }

/* ── Ride detail attendees ── */
.ride-attendee-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #1f1f22;
  font-size: 0.85rem;
}
.ride-attendee-row:last-child { border-bottom: none; }
.ride-attendee-tick { color: #22c55e; font-weight: 700; flex-shrink: 0; }
.ride-attendee-org  { font-size: 0.7rem; color: #71717a; margin-left: auto; }

/* ── Message board ── */
.ride-msg-row {
  padding: 0.6rem 0;
  border-bottom: 1px solid #1f1f22;
}
.ride-msg-row:last-child { border-bottom: none; }
.ride-msg-meta { font-size: 0.72rem; color: #71717a; margin-bottom: 0.2rem; }

/* ── Hamburger button ── */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  width: auto;
  margin-top: 0;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fafafa;
  border-radius: 2px;
  transition: background 0.15s;
}
.hamburger-btn:hover span { background: #e8500a; }

/* ── Side menu ── */
.side-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #18181b;
  border-left: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 301;
  overflow-y: auto;
}
.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #27272a;
  font-weight: 700;
  font-size: 1rem;
}
.side-menu-close {
  background: none;
  border: none;
  color: #71717a;
  font-size: 1rem;
  cursor: pointer;
  width: auto;
  margin-top: 0;
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  line-height: 1;
}
.side-menu-close:hover { color: #fafafa; background: #27272a; }
.side-menu-user {
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: #71717a;
  border-bottom: 1px solid #1f1f22;
}
.side-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem;
  flex: 1;
}
.side-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: #e4e4e7;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  cursor: pointer;
  width: 100%;
  margin-top: 0;
  transition: background 0.12s, color 0.12s;
}
.side-menu-item:hover { background: #27272a; color: #fafafa; }
.side-menu-item-danger { color: #f87171; }
.side-menu-item-danger:hover { background: #1c0909; color: #ef4444; }
.side-menu-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.side-menu-divider { height: 1px; background: #27272a; margin: 0.4rem 0.85rem; }
#side-menu-overlay { background: rgba(0,0,0,0.55); }

/* ── Community section ── */
.comm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.comm-stat-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.85rem;
  padding: 0.9rem 0.5rem;
  text-align: center;
}
.comm-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e8500a;
  line-height: 1;
}
.comm-stat-label {
  font-size: 0.68rem;
  color: #71717a;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comm-ride-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #1f1f22;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 0.4rem;
}
.comm-ride-row:last-child { border-bottom: none; }
.comm-ride-row:hover { background: #18181b; }
.comm-crew-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #1f1f22;
}
.comm-crew-row:last-child { border-bottom: none; }

/* ── Admin message board ── */
.admin-msg-row {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}
.admin-msg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.admin-msg-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.admin-msg-type-idea    { background: #1a1a0a; border: 1px solid #ca8a0440; color: #fbbf24; }
.admin-msg-type-bug     { background: #1c0909; border: 1px solid #ef444440; color: #f87171; }
.admin-msg-type-contact { background: #0a1a1a; border: 1px solid #22d3ee40; color: #67e8f9; }

/* ── Admin unread badge ── */
.admin-msg-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8500a;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  padding: 0 0.25rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ── Admin list rows (rides/crews) ── */
.admin-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1f1f22;
}
.admin-list-row:last-child { border-bottom: none; }
.admin-archived-badge {
  display: inline-block;
  background: #1f1f22;
  border: 1px solid #3f3f46;
  color: #71717a;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

/* ── About / Contact-dev pages ── */
.about-section { margin-bottom: 1.5rem; }
.about-logo-mark {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.about-logo-mark span { color: #e8500a; }
.about-tagline { font-size: 0.85rem; color: #71717a; margin-bottom: 1rem; }
.about-body { font-size: 0.88rem; color: #a1a1aa; line-height: 1.7; }
.about-feature-list { list-style: none; margin-top: 0.75rem; }
.about-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: #a1a1aa;
  border-bottom: 1px solid #1f1f22;
}
.about-feature-row:last-child { border-bottom: none; }
.about-feature-icon { color: #e8500a; flex-shrink: 0; }

/* ── Leaderboard ── */
.lb-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.lb-tab-btn {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lb-tab-btn.active {
  background: #7c2d12;
  border-color: #e8500a;
  color: #fff;
}
.lb-panel-desc {
  font-size: 0.78rem;
  color: #71717a;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #1f1f22;
}
.lb-row:last-child { border-bottom: none; }
.lb-row-me { background: #1a1209; border-radius: 0.5rem; padding-left: 0.5rem; }
.lb-rank {
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.lb-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}
.lb-medal-gold   { background: #78350f; color: #fbbf24; border: 1px solid #d97706; }
.lb-medal-silver { background: #27272a; color: #d4d4d8; border: 1px solid #71717a; }
.lb-medal-bronze { background: #1c1003; color: #d97706; border: 1px solid #92400e; }
.lb-pos { font-size: 0.78rem; color: #52525b; font-weight: 600; }
.lb-name { flex: 1; font-size: 0.88rem; font-weight: 600; color: #e4e4e7; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stat { font-size: 1rem; font-weight: 800; color: #e8500a; flex-shrink: 0; }
.lb-sub  { font-size: 0.7rem; color: #71717a; flex-shrink: 0; min-width: 4rem; text-align: right; }
.lb-route-row { cursor: pointer; transition: background 0.1s; border-radius: 0.5rem; padding: 0.7rem 0.25rem; }
.lb-route-row:hover { background: #18181b; }
.lb-route-info { flex: 1; min-width: 0; }
.lb-route-title { font-size: 0.88rem; font-weight: 600; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-route-meta  { font-size: 0.72rem; color: #71717a; margin-top: 0.15rem; }
.lb-route-right { flex-shrink: 0; text-align: right; }
.lb-stars { font-size: 1rem; color: #e8500a; }
.lb-empty {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #52525b;
}

/* ── Star rating overlay ── */
.rating-stars-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.rating-star {
  background: none;
  border: none;
  font-size: 2.25rem;
  color: #3f3f46;
  cursor: pointer;
  padding: 0.1rem;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
}
.rating-star:hover,
.rating-star.active {
  color: #e8500a;
  transform: scale(1.15);
}

/* ── Completion notification action ── */
.notif-action-yes {
  background: #14532d;
  border-color: #16a34a;
  color: #86efac;
}
.notif-action-yes:hover { background: #166534; }
.ride-msg-text { font-size: 0.85rem; line-height: 1.55; color: #e4e4e7; }

/* ── Achievements view ── */
.ach-progress-bar-wrap {
  background: #27272a;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.ach-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e8500a, #f97316);
  border-radius: 999px;
  transition: width 0.6s ease;
  min-width: 4px;
}
.ach-progress-label {
  font-size: 0.78rem;
  color: #71717a;
  text-align: right;
}

.ach-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.6rem;
}
.ach-tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ach-tier-platinum { background: #1a0f2e; border: 1px solid #7c3aed; color: #c4b5fd; }
.ach-tier-gold     { background: #1c1003; border: 1px solid #d97706; color: #fbbf24; }
.ach-tier-silver   { background: #18181b; border: 1px solid #71717a; color: #d4d4d8; }
.ach-tier-bronze   { background: #1c0f06; border: 1px solid #92400e; color: #d97706; }
.ach-tier-count    { font-size: 0.72rem; color: #52525b; }

.ach-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #1f1f22;
}
.ach-card:last-child { border-bottom: none; }
.ach-card-unlocked .ach-card-icon { filter: none; }
.ach-card-locked   { opacity: 0.45; }
.ach-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 2.4rem;
  text-align: center;
  line-height: 1;
}
.ach-locked-icon { filter: grayscale(1); }
.ach-card-body { flex: 1; min-width: 0; }
.ach-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 0.15rem;
}
.ach-card-desc  { font-size: 0.78rem; color: #71717a; line-height: 1.4; }
.ach-card-date  { font-size: 0.7rem; color: #e8500a; margin-top: 0.2rem; font-weight: 600; }
.ach-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: #14532d;
  border: 1px solid #16a34a;
  color: #86efac;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Achievement toast ── */
.ach-toast {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 340px;
  width: calc(100% - 2rem);
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ach-toast.show { bottom: 1.5rem; }
.ach-toast-icon-wrap {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.ach-toast-body { flex: 1; min-width: 0; }
.ach-toast-label {
  font-size: 0.68rem;
  color: #71717a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ach-toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 0.1rem;
}
.ach-toast-desc  { font-size: 0.75rem; color: #a1a1aa; }
.ach-toast-tier  {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
