:root {
  --bg: #f7f3ec;
  --bg-soft: #f0ede8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --amber: #d96f32;
  --amber-hi: #e5a33b;
  --amber-dim: rgba(217, 111, 50, 0.14);
  --maple: #a84724;
  --forest: #4a5d4a;
  --graphite: #2f2e2b;
  --danger: #e5484d;
  --success: #4a5d4a;
  --text: #1c1917;
  --text-2: #78716c;
  --text-3: #a8a29e;
  --border: #e8e4de;
  --terrain: #eee7db;
  --radius: 16px;
  /* Mobil MTFont ile uyum: SF Pro / sistem sans */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --font-brand: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --shadow: 0 8px 28px rgba(47, 46, 43, 0.08);
}

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

html, body {
  min-height: 100%;
  background:
    radial-gradient(ellipse 90% 60% at 100% -10%, rgba(217, 111, 50, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(74, 93, 74, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

/* ── Header shell ───────────────────────────────────────── */
.nav.shell {
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 0;
  background: transparent;
  border-bottom: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 14px 0;
  padding: 8px 10px 8px 12px;
  background: var(--surface-glass);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(47, 46, 43, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  min-width: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
  background: #1a1a1a;
}
.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--amber);
}
.leaf-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--amber), var(--maple));
  color: #fff;
  flex: 0 0 auto;
}
.leaf-mark svg { width: 18px; height: 18px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.nav-auth {
  white-space: nowrap;
}
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 160px;
}
.nav-user-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-av {
  width: 26px; height: 26px; border-radius: 8px; object-fit: cover;
}

.menu-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--graphite);
  display: grid; place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.menu-btn:hover { background: var(--bg-soft); border-color: rgba(217,111,50,0.35); }
.menu-btn:active { transform: scale(0.96); }
.menu-btn svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

@media (max-width: 520px) {
  .brand-name { font-size: 18px; }
  .brand-logo { width: 36px; height: 36px; }
  .nav-auth { padding-left: 10px; padding-right: 10px; font-size: 13px; }
  .nav-user-btn span { max-width: 72px; }
}

/* Açılır menü — body'de (header backdrop-filter fixed bug'ını kırmaz) */
.mm-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(28, 25, 23, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.mm-menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mm-menu {
  position: fixed;
  z-index: 1410;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(47, 46, 43, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.mm-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mm-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.mm-menu-head .brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.mm-menu-head strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.mm-menu-head span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 1px;
}
.mm-menu-auth {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.mm-menu-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mm-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.mm-menu-link:hover { background: var(--bg-soft); }
.mm-menu-link.active {
  background: var(--amber-dim);
  border-color: rgba(217, 111, 50, 0.22);
}
.mm-menu-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--amber);
  flex: 0 0 auto;
}
.mm-menu-link.active .mm-menu-ico { background: rgba(217,111,50,0.18); }
.mm-menu-ico svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.mm-menu-copy { flex: 1; min-width: 0; }
.mm-menu-copy b { display: block; font-size: 14px; font-weight: 750; }
.mm-menu-copy small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mm-menu-logout {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--danger);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
}

/* ── Map ────────────────────────────────────────────────── */
.map-wrap {
  position: relative;
  height: calc(100dvh - 68px);
  margin-top: -2px;
}
#map { width: 100%; height: 100%; background: var(--terrain); }
.leaflet-control-zoom { display: none !important; }
.leaflet-bottom.leaflet-right { display: none !important; }

.map-zoom {
  position: absolute;
  right: 14px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-ctrl {
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  color: var(--graphite);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s, background 0.15s;
}
.map-ctrl:hover { background: #fff; }
.map-ctrl:active { transform: scale(0.95); }
.map-ctrl svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round;
}

.map-overlay {
  position: absolute;
  left: 14px; top: 10px;
  z-index: 500;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 16px;
  max-width: min(280px, calc(100vw - 90px));
  box-shadow: var(--shadow);
  animation: riseIn 0.55s ease both;
  animation-delay: 0.15s;
}
.map-overlay h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.map-overlay p { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.map-overlay .live-count {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px;
  font-size: 13px; font-weight: 700; color: var(--amber);
}
.map-overlay .overlay-actions {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(217, 111, 50, 0.45);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 111, 50, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(217, 111, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 111, 50, 0); }
}

.rider-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 3px rgba(217, 111, 50, 0.22), 0 2px 6px rgba(47, 46, 43, 0.25);
}
.rider-pin {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.rider-pin .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--amber);
  color: #fff;
  font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(47, 46, 43, 0.22);
}
.rider-pin .avatar img { width: 100%; height: 100%; object-fit: cover; }
.rider-pin .label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px 8px 4px;
  font-size: 11px; font-weight: 700;
  color: var(--graphite);
  white-space: nowrap;
  box-shadow: var(--shadow);
  max-width: 140px;
  overflow: hidden; text-overflow: ellipsis;
}
.rider-pin .status-chip,
.rider-pop .status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}
.rider-pin.status-yolda .status-chip,
.rider-pop .status-chip.status-yolda {
  background: rgba(74, 93, 74, 0.14);
  color: var(--forest);
}
.rider-pin.status-molada .status-chip,
.rider-pop .status-chip.status-molada {
  background: rgba(217, 111, 50, 0.16);
  color: var(--amber);
}
.rider-pin.status-varildi .status-chip,
.rider-pop .status-chip.status-varildi {
  background: rgba(47, 46, 43, 0.1);
  color: var(--graphite);
}
.rider-pin.status-molada .avatar {
  box-shadow: 0 0 0 3px rgba(217, 111, 50, 0.28), 0 3px 10px rgba(47, 46, 43, 0.22);
}
.leaflet-popup-content-wrapper {
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.leaflet-popup-tip { background: var(--surface); }
.rider-pop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.rider-pop b { color: var(--amber); }
.rider-pop small { width: 100%; color: var(--text-2); }

/* ── Page ───────────────────────────────────────────────── */
.page { max-width: 860px; margin: 0 auto; padding: 28px 20px 80px; }
.page h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.page .sub { color: var(--text-2); font-size: 14px; margin-bottom: 22px; line-height: 1.45; }

.section-title {
  font-size: 11px; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--amber);
  margin: 26px 0 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 12px rgba(47, 46, 43, 0.04);
}
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.row .chip {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--amber-dim); color: var(--amber);
  flex: 0 0 auto;
  overflow: hidden;
}
.row .chip svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.row .chip img { width: 100%; height: 100%; object-fit: cover; }
.row .grow { flex: 1 1 auto; min-width: 0; }
.row .title { font-weight: 700; font-size: 15px; }
.row .meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.row .badge {
  font-size: 10px; font-weight: 800; color: var(--amber);
  letter-spacing: 0.5px;
}

.premium {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(217, 111, 50, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(217, 111, 50, 0.1), var(--surface));
  border: 1px solid rgba(217, 111, 50, 0.35);
  box-shadow: var(--shadow);
}
.premium .crown {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--maple));
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 111, 50, 0.4);
  flex: 0 0 auto;
}
.premium .crown svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.premium .grow { flex: 1; }
.premium .grow h3 { font-size: 17px; font-family: var(--font-display); }
.premium .grow p { font-size: 13px; color: var(--text-2); margin-top: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: var(--amber); color: #fff;
  font-weight: 750; font-size: 15px;
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(229, 72, 77, 0.35); }
.btn.full { width: 100%; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 750; color: var(--text-2);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.7px;
}
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--amber); background: var(--surface); }
.hint { font-size: 12px; margin-top: 6px; }
.hint.ok { color: var(--success); }
.hint.err { color: var(--danger); }

.seg {
  display: flex; gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 5px; margin-bottom: 22px;
}
.seg button {
  flex: 1; padding: 11px; border: none; border-radius: 50px;
  background: transparent; color: var(--text-2);
  font-weight: 750; font-size: 14px; cursor: pointer;
}
.seg button.active { background: var(--amber); color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px);
  background: var(--graphite); color: #fff;
  padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 2000;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

.empty { text-align: center; color: var(--text-3); padding: 30px 0; font-size: 14px; }
.center-narrow { max-width: 420px; }

/* ── Auth stage (giriş / kayıt) ─────────────────────────── */
.auth-body {
  min-height: 100dvh;
  overflow-x: hidden;
}
.auth-stage {
  position: relative;
  min-height: calc(100dvh - 78px);
  display: grid;
  place-items: center;
  padding: 18px 16px 40px;
  isolation: isolate;
}
.auth-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 80% 0%, rgba(217, 111, 50, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(74, 93, 74, 0.14), transparent 50%),
    linear-gradient(165deg, #fff8f0 0%, var(--bg) 42%, #ebe4d6 100%);
}
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: authDrift 14s ease-in-out infinite;
}
.auth-orb-a {
  width: 280px; height: 280px;
  left: -80px; top: 8%;
  background: radial-gradient(circle, rgba(217,111,50,0.35), transparent 70%);
}
.auth-orb-b {
  width: 320px; height: 320px;
  right: -100px; bottom: 5%;
  background: radial-gradient(circle, rgba(168,71,36,0.22), transparent 70%);
  animation-delay: -4s;
  animation-duration: 18s;
}
.auth-orb-c {
  width: 180px; height: 180px;
  left: 40%; top: 55%;
  background: radial-gradient(circle, rgba(74,93,74,0.2), transparent 70%);
  animation-delay: -8s;
  animation-duration: 16s;
}
.auth-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(47,46,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,46,43,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(58deg) translateY(-8%);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 75%);
  animation: authGrid 22s linear infinite;
}
.auth-road {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 140%;
  height: 42%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent, rgba(217,111,50,0.07) 40%, rgba(47,46,43,0.06));
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
@keyframes authDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.06); }
}
@keyframes authGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 48px, 48px 0; }
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 22px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(232, 228, 222, 0.95);
  box-shadow:
    0 24px 60px rgba(47, 46, 43, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.auth-panel.auth-success {
  transform: scale(0.97);
  opacity: 0;
}

.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}
.auth-leaf-stage {
  width: 128px;
  height: 128px;
  margin: 0 auto 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.auth-leaf {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  background: transparent;
  transform: scale(1.22);
}
.auth-brand-name {
  font-family: var(--font-brand);
  font-size: clamp(34px, 8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--amber);
  margin: 0 0 8px;
  animation: authFadeUp 0.7s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-brand-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  min-height: 1.35em;
  transition: opacity 0.25s ease;
  animation: authFadeUp 0.7s 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.auth-seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s;
}
.auth-seg button.active { color: #fff; }
.auth-seg-ink {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--maple));
  box-shadow: 0 6px 16px rgba(217, 111, 50, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.auth-seg[hidden] { display: none !important; }

.auth-forms {
  position: relative;
  min-height: 210px;
}
.auth-form {
  display: none;
}
.auth-form.is-active {
  display: block;
}
.auth-form-enter .field,
.auth-form-enter .auth-submit,
.auth-form-enter .auth-resend,
.auth-form-enter .auth-verify-text {
  animation: authFieldIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes authFieldIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-form.auth-shake {
  animation: authShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes authShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

.auth-submit {
  margin-top: 6px;
  min-height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-hi), var(--amber) 45%, var(--maple));
  box-shadow: 0 10px 24px rgba(217, 111, 50, 0.28);
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
}
.auth-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 111, 50, 0.34);
}
.auth-submit:active { transform: translateY(0) scale(0.99); }
.auth-submit.is-busy span {
  opacity: 0.75;
}
.auth-submit.is-busy::after {
  content: "";
  width: 16px; height: 16px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-code {
  text-align: center !important;
  letter-spacing: 0.45em !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  padding-left: 1.1em !important;
}
.auth-verify-text {
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 16px;
}
.auth-resend { margin-top: 10px; }

.auth-legal {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  line-height: 1.45;
}
.auth-legal a {
  color: var(--amber);
  font-weight: 750;
}

.auth-body .auth-panel .field input {
  border-radius: 14px;
  padding: 14px 15px;
  background: rgba(247, 243, 236, 0.85);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.auth-body .auth-panel .field input:focus {
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 4px var(--amber-dim);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb, .auth-grid,
  .auth-brand-name, .auth-brand-line,
  .auth-form-enter .field,
  .auth-form-enter .auth-submit,
  .auth-form-enter .auth-resend {
    animation: none !important;
  }
  .auth-seg-ink { transition: none !important; }
}

/* ── Hero (light atlas) ─────────────────────────────────── */
.atlas-hero {
  position: relative;
  min-height: 220px;
  background:
    radial-gradient(ellipse 80% 70% at 90% 10%, rgba(217, 111, 50, 0.16), transparent 55%),
    linear-gradient(180deg, #fff8f0 0%, var(--bg) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.atlas-hero.short { min-height: 160px; }
.atlas-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 28px;
}
.atlas-copy .brand-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--amber); text-transform: uppercase; margin-bottom: 10px;
}
.atlas-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px); font-weight: 700;
  letter-spacing: -0.03em; margin: 0 0 8px; color: var(--graphite);
}
.atlas-copy p {
  color: var(--text-2); font-size: 15px; margin: 0 0 18px; max-width: 420px; line-height: 1.45;
}

.page.instrument { max-width: 980px; padding-bottom: 48px; }

.rider-hud {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(47, 46, 43, 0.04);
}
.rider-hud .hud-cell { min-width: 88px; padding-right: 16px; }
.rider-hud .hud-cell span {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--text-3);
}
.rider-hud .hud-cell b {
  font-size: 24px; color: var(--amber);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}
.rider-hud .hud-div {
  width: 1px; align-self: stretch; background: var(--border); margin: 0 8px 0 0;
}
.rider-hud .hud-meta {
  width: 100%; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  color: var(--text-3);
}
.rider-hud .hud-empty { color: var(--text-2); font-size: 14px; }
.rider-hud .hud-empty a { color: var(--amber); font-weight: 700; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}
.stat-card .val {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stat-card .lbl {
  font-size: 11px; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px;
}

.coverage-row {
  display: flex; align-items: center; gap: 18px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.coverage-row h3 { margin: 0 0 4px; font-size: 16px; font-family: var(--font-display); }
.radar {
  --p: 0;
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at center, transparent 62%, rgba(217, 111, 50, 0.14) 63%, transparent 64%),
    conic-gradient(var(--amber) calc(var(--p) * 1turn), var(--border) 0);
  position: relative; flex: 0 0 auto;
}
.radar::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--surface);
}
.radar span, .radar small {
  position: relative; z-index: 1;
}
.radar span { font-size: 22px; font-weight: 800; color: var(--amber); display: block; text-align: center; line-height: 1; font-family: var(--font-display); }
.radar small { font-size: 10px; color: var(--text-3); display: block; text-align: center; }

.score-motor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 16px; margin-bottom: 24px;
}
.score-motor summary {
  cursor: pointer; list-style: none; padding: 14px 0;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.score-motor summary::-webkit-details-marker { display: none; }
.score-motor[open] summary { color: var(--amber); }
.motor-line {
  display: flex; gap: 12px; padding: 0 0 12px 0; align-items: flex-start;
  border-left: 2px solid var(--amber); padding-left: 12px; margin-bottom: 8px;
}
.motor-line b { min-width: 72px; color: var(--amber); font-size: 12px; }
.motor-line span { color: var(--text-3); font-size: 12px; line-height: 1.4; }

.pace-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pace-head span {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-3);
}
.pace-head a { color: var(--amber); font-weight: 700; font-size: 13px; }
.pace-tape {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}
.pace-card {
  min-width: 120px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
}
.pace-card .rank { font-size: 11px; font-weight: 800; color: var(--text-3); }
.pace-card.first .rank { color: var(--amber); }
.pace-card .name { font-weight: 700; font-size: 14px; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.pace-card .bike, .pace-row .bike, .pod-bike, .self-pace .bike {
  font-size: 10px; font-weight: 500; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.pace-card .score {
  font-size: 18px; font-weight: 800; color: var(--amber);
  font-variant-numeric: tabular-nums; font-family: var(--font-display);
}
.plain-link {
  display: block; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  color: var(--text); font-weight: 650; font-size: 15px;
}
.plain-link::after { content: " →"; color: var(--amber); }

.rail {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.rail button {
  flex: 1; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-2); font-weight: 700; font-size: 14px;
  padding: 12px 8px; cursor: pointer;
  margin-bottom: -1px;
}
.rail button.active { color: var(--amber); border-bottom-color: var(--amber); }

.podium {
  display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  min-height: 180px; padding: 20px 8px 8px; margin-bottom: 8px;
}
.pod-col { flex: 1; max-width: 120px; text-align: center; }
.pod-name {
  font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.pod-bike { margin-bottom: 4px; }
.pod-score {
  font-size: 13px; color: var(--amber); font-weight: 800;
  font-variant-numeric: tabular-nums; margin-bottom: 8px; font-family: var(--font-display);
}
.pod-bar {
  width: 100%; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--amber), rgba(217, 111, 50, 0.28));
  min-height: 48px;
}
.pod-rank {
  margin-top: 8px; font-size: 12px; font-weight: 800; color: var(--text-3);
}

.pace-list {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 16px;
}
.pace-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px;
  align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pace-row:last-child { border-bottom: none; }
.pace-row.me { box-shadow: inset 3px 0 0 var(--amber); padding-left: 10px; }
.pace-row .r {
  font-weight: 800; font-size: 14px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.pace-row .n { font-weight: 700; font-size: 15px; }
.pace-row .m { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.pace-row b {
  color: var(--amber); font-size: 16px;
  font-variant-numeric: tabular-nums; font-family: var(--font-display);
}

.self-pace {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.self-pace .tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #fff;
  background: var(--amber); padding: 3px 7px; border-radius: 6px;
}
.self-pace .nm-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.self-pace .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.self-pace .rk { font-weight: 800; color: var(--text-2); }
.self-pace .sc { font-weight: 800; color: var(--amber); font-family: var(--font-display); }

.me-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(47, 46, 43, 0.04);
}
.me-hero .rank-big {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700; color: var(--amber);
}
.me-hero .meta { color: var(--text-2); font-size: 13px; margin-top: 4px; }

.profile-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 8px;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 22px;
  background: var(--amber-dim); color: var(--amber);
  display: grid; place-items: center;
  font-size: 28px; font-weight: 800;
  overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--border);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; }

@media (max-width: 640px) {
  .map-overlay {
    left: 12px;
    right: auto;
    max-width: min(260px, calc(100vw - 86px));
  }
}

/* ── Splash: yaprak dolumu ──────────────────────────────── */
.mm-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(217, 111, 50, 0.16), transparent 60%),
    linear-gradient(180deg, #fff8f0 0%, var(--bg) 100%);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mm-splash.out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.splash-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,111,50,0.22), transparent 70%);
  filter: blur(8px);
  opacity: 0;
}
.mm-splash.play .splash-glow {
  animation: glowPulse 2.2s ease both;
}
.splash-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.splash-leaf-wrap {
  width: min(260px, 58vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 16px 28px rgba(168, 71, 36, 0.22));
}
.splash-maple {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.92);
}
.mm-splash.play .splash-maple {
  animation: leafSettle 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mm-splash.play .splash-leaf-wrap {
  animation: none;
}
.splash-wordmark {
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}
.mm-splash.play .splash-wordmark {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.55s forwards;
}
.splash-name {
  display: block;
  font-family: var(--font-brand);
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--amber);
  line-height: 1;
}
.splash-sub {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

@keyframes leafSettle {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 1; }
  100% { opacity: 0.55; transform: scale(1.15); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

body.splash-playing .nav,
body.splash-playing .map-wrap,
body.splash-playing .page,
body.splash-playing .atlas-hero {
  opacity: 0;
}
body.splash-done .nav,
body.splash-done .map-wrap,
body.splash-done .page,
body.splash-done .atlas-hero {
  animation: riseIn 0.55s ease both;
}

.page-ready .atlas-hero,
.page-ready .page {
  animation: riseIn 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .mm-splash, .mm-splash * { animation: none !important; transition: none !important; }
  body.splash-playing .nav,
  body.splash-playing .map-wrap,
  body.splash-playing .page { opacity: 1; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Reveal / motion ────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-16px); }
[data-reveal="left"].is-in { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="scale"].is-in { transform: scale(1); }

/* ── Home: atlas canlı ──────────────────────────────────── */
.map-wrap.home-atlas {
  height: calc(100dvh - 68px);
}
.map-wrap.home-atlas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 400;
  background:
    radial-gradient(ellipse 90% 55% at 50% 110%, rgba(247, 243, 236, 0.92), transparent 55%),
    linear-gradient(180deg, rgba(247, 243, 236, 0.35) 0%, transparent 18%, transparent 72%, rgba(247, 243, 236, 0.55) 100%);
}

.live-pill {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 520;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.live-pill .pulse { flex: 0 0 auto; }
.live-pill em {
  font-style: normal;
  color: var(--text-2);
  font-weight: 600;
  margin-left: 2px;
}

.home-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  z-index: 520;
  width: min(440px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(47, 46, 43, 0.12);
}
/* reveal transform, yatay ortalamayı bozmasın */
.home-dock[data-reveal] {
  transform: translateY(14px);
}
.home-dock[data-reveal].is-in {
  transform: translateY(0);
}
.home-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 16px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.18s, transform 0.18s, color 0.18s;
}
.home-dock a:hover {
  background: var(--amber-dim);
  color: var(--amber);
}
.home-dock a:active { transform: scale(0.97); }
.home-dock .dock-ico {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--amber);
}
.home-dock a:hover .dock-ico { background: rgba(217,111,50,0.18); }
.home-dock .dock-ico svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

body.has-home-dock .map-zoom {
  bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}
.live-pill[hidden] { display: none !important; }

/* ── Page heroes (garaj / hesap) ────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 22px;
  min-height: 168px;
  background:
    radial-gradient(ellipse 80% 90% at 90% 10%, rgba(217, 111, 50, 0.22), transparent 55%),
    linear-gradient(135deg, #fff8f0 0%, var(--bg-soft) 45%, #ebe4d8 100%);
  border: 1px solid var(--border);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.page-hero.has-photo {
  color: #fff;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}
.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,25,23,0.15) 0%, rgba(28,25,23,0.72) 100%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--amber);
}
.page-hero.has-photo .eyebrow { color: rgba(255,255,255,0.75); }
.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--graphite);
}
.page-hero.has-photo h1 { color: #fff; }
.page-hero .lead {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  max-width: 360px;
  line-height: 1.4;
}
.page-hero.has-photo .lead { color: rgba(255,255,255,0.82); }

.vehicle-grid {
  display: grid;
  gap: 12px;
}
.vehicle-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.vehicle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.vehicle-card .thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--amber);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vehicle-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card .thumb svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.vehicle-card .body { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.vehicle-card .title { font-weight: 750; font-size: 16px; }
.vehicle-card .meta { font-size: 12px; color: var(--text-2); }
.vehicle-card .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px rgba(47, 46, 43, 0.04);
}
.profile-hero-card .profile-avatar {
  width: 84px; height: 84px; border-radius: 26px;
}
.profile-hero-card .name {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.profile-hero-card .meta { color: var(--text-2); font-size: 14px; margin-top: 4px; }

.stat-card {
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 111, 50, 0.35);
}
.link-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.link-tile + .link-tile { margin-top: 8px; }
.link-tile:hover {
  transform: translateX(3px);
  background: var(--bg-soft);
  border-color: rgba(217, 111, 50, 0.28);
}
.link-tile .chip {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--amber-dim); color: var(--amber);
}
.link-tile .chip svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8;
}
.link-tile .title { font-weight: 750; font-size: 15px; }
.link-tile .meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.atlas-hero {
  transition: none;
}
.atlas-hero .atlas-copy > * {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.atlas-hero .atlas-copy > *:nth-child(1) { animation-delay: 0.05s; }
.atlas-hero .atlas-copy > *:nth-child(2) { animation-delay: 0.12s; }
.atlas-hero .atlas-copy > *:nth-child(3) { animation-delay: 0.2s; }
.atlas-hero .atlas-copy > *:nth-child(4) { animation-delay: 0.28s; }

/* ── Legal pages ────────────────────────────────────────── */
.page.legal { max-width: 720px; }
.legal-body { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.legal-body h2 {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--text);
  margin: 22px 0 8px;
}
.legal-body ul { padding-left: 1.2em; margin: 8px 0 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--amber); font-weight: 650; }
.legal-body p { margin-bottom: 12px; }
