@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,700;0,800;0,900;1,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0b0d0c;
  --panel: #101311;
  --paper: #f4f2ea;
  --muted: #929891;
  --line: #292e2b;
  --acid: #c7ff19;
  --acid-dark: #9fcf00;
  --danger: #ff5d3d;
  --header: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

body {
  overflow: hidden;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.topbar {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, .97);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font: 900 27px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.04em;
}

.brand > span:last-child > span { color: var(--acid); }
.brand small {
  margin-left: 3px;
  color: #8c948d;
  font: 800 11px/1 Inter, Arial, sans-serif;
  letter-spacing: .11em;
  vertical-align: 3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--acid);
  color: var(--ink);
  transform: skew(-7deg);
}

.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.desktop-nav { display: flex; align-self: stretch; gap: 34px; }

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  cursor: pointer;
  color: var(--paper);
}

.nav-link:hover, .nav-link.active { color: var(--paper); }
.nav-link.active::after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--acid);
  bottom: 0;
  left: 0;
  right: 0;
}

.top-actions { display: flex; align-items: center; gap: 18px; }
.country-picker {
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--acid);
  background: linear-gradient(135deg, rgba(199,255,25,.14), #151916 55%);
  box-shadow: 0 0 0 1px rgba(199,255,25,.06), 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
  transition: .2s ease;
}
.country-picker:hover, .country-picker:focus-within {
  background: linear-gradient(135deg, rgba(199,255,25,.25), #191e1a 58%);
  box-shadow: 0 0 20px rgba(199,255,25,.12);
}
.country-picker-label {
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.country-picker-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}
.country-picker-current {
  min-width: 82px;
  color: var(--paper);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}
.country-picker select {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  appearance: none;
  opacity: 0;
  cursor: pointer;
}
.country-picker-arrow { color: var(--acid); font-size: 13px; pointer-events: none; }
.install-app {
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}
.install-app:hover { background: var(--acid); color: var(--ink); }
.notification-button {
  width: 38px; height: 38px;
  position: relative;
  border: 1px solid #3a423c;
  background: #161a17;
  color: var(--acid);
  cursor: pointer;
}
.notification-button b {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--danger); color: white;
  font-size: 8px;
}
.language-picker { height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #39413b; background: #151916; }
.language-picker > span { color: var(--acid); font-size: 12px; }
.language-picker select { width: 78px; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: 9px; font-weight: 700; cursor: pointer; }
.profile {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid #444a46;
  background: #1c211e;
  font-weight: 700;
  cursor: pointer;
}
.profile.logged-in { width: 36px; padding: 0; border-radius: 50%; background: var(--acid); color: var(--ink); border-color: var(--acid); }

.app-shell {
  height: calc(100vh - var(--header));
  display: grid;
  grid-template-columns: minmax(350px, 420px) 1fr;
}

.ride-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.panel-heading { padding: 30px 32px 21px; }
.ride-panel-toggle { display: none; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--acid);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}
.eyebrow span { width: 20px; height: 2px; background: var(--acid); }

h1, .create-form h2 {
  margin: 0;
  font: 900 48px/.82 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

h1 em, .create-form h2 em { color: var(--acid); font-style: italic; }
.panel-heading p, .create-form > p {
  max-width: 320px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.search-area { padding: 0 32px 20px; border-bottom: 1px solid var(--line); }
.search-box {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #191d1a;
  border: 1px solid #303632;
}
.search-box:focus-within { border-color: var(--acid); }
.search-box svg {
  width: 17px;
  fill: none;
  stroke: #838a84;
  stroke-width: 1.7;
}
.search-box input {
  width: 100%;
  color: var(--paper);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}
.search-box input::placeholder { color: #69706b; }

.filter-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter {
  flex: none;
  padding: 8px 11px;
  border: 1px solid #343a36;
  border-radius: 1px;
  background: transparent;
  color: #8d948f;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}
.filter:hover, .filter.active {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  font-weight: 700;
}

.ride-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 32px 8px;
}
.ride-list-heading h2 {
  margin: 0;
  font: 800 17px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .04em;
}
.ride-list-heading span { color: #707771; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }

.ride-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 80px;
  scrollbar-color: #303632 transparent;
  scrollbar-width: thin;
}

.ride-card {
  display: grid;
  grid-template-columns: 50px 1fr 36px;
  gap: 12px;
  align-items: center;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: .2s ease;
  position: relative;
}
.ride-card::before {
  content: "";
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 2px;
  background: transparent;
}
.ride-card:hover, .ride-card.active { background: #181c19; }
.ride-card.active::before { background: var(--acid); }
.ride-date {
  height: 50px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #1e231f;
  border: 1px solid #303632;
}
.ride-date strong {
  font: 900 23px/.8 "Barlow Condensed", Impact, sans-serif;
}
.ride-date span {
  margin-top: 4px;
  color: var(--acid);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}
.ride-info { min-width: 0; }
.ride-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #737a74;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.verified {
  color: var(--acid);
  font-weight: 800;
}
.ride-info h3 {
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 16px/1 "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.ride-info p { margin: 0; color: #8c938e; font-size: 9px; }
.save-button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #798079;
  font-size: 20px;
  cursor: pointer;
}
.save-button.saved { color: var(--acid); }

.create-button {
  position: absolute;
  bottom: 18px;
  left: 32px;
  right: 32px;
  height: 48px;
  border: 0;
  background: var(--acid);
  color: var(--ink);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.create-button:hover { background: #d5ff53; }
.create-button span { font-size: 18px; margin-right: 6px; vertical-align: -1px; }

@media (min-width: 801px) {
  .ride-panel {
    display: block;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--acid) #202621;
  }
  .ride-list {
    min-height: auto;
    overflow: visible;
    padding-bottom: 8px;
  }
  .create-button {
    position: static;
    width: calc(100% - 64px);
    margin: 12px 32px 30px;
  }
}

.map-area { min-width: 0; overflow: hidden; background: #161b18; }
.map-canvas {
  --map-glow: rgba(73,90,79,.16);
  --water-color: #253a3b;
  --major-road: #3b443e;
  --minor-road: #2c332f;
  --block-fill: #1d231f;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 49%, var(--map-glow), transparent 32%),
    linear-gradient(145deg, #1a201c, #111512);
  transition: background .35s ease;
  background: #121612;
}
#realMap { position: absolute; inset: 0; z-index: 1; background: #161b18; }
.leaflet-container { font-family: Inter, Arial, sans-serif; }
.leaflet-tile-pane {
  filter: brightness(.58) invert(1) contrast(1.25) saturate(.42) hue-rotate(105deg);
}
.leaflet-tile {
  transition: filter .25s ease, opacity .25s ease;
}
.leaflet-control-zoom a { background: #111511 !important; color: var(--paper) !important; border-color: #343b36 !important; }
.leaflet-control-attribution { background: rgba(11,13,12,.78) !important; color: #8c948d; }
.leaflet-control-attribution a { color: var(--acid); }
.ride-map-icon { background: transparent; border: 0; }
.ride-map-icon span {
  width: 88px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 8px 13px;
  box-sizing: border-box;
  color: var(--ink);
  background: var(--acid);
  clip-path: polygon(50% 100%, 42% 82%, 4% 82%, 4% 4%, 96% 4%, 96% 82%, 58% 82%);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.45));
}
.ride-map-icon span strong {
  width: 100%;
  overflow: hidden;
  font: 900 12px "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .03em;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.ride-map-icon span small {
  margin-top: 4px;
  font: 800 8px Inter, Arial, sans-serif;
  letter-spacing: .08em;
}
.ride-map-icon.approximate span {
  background: #f4f2ea;
  outline: 2px dashed var(--acid);
  outline-offset: 2px;
}
.leaflet-tooltip { background: #111511; color: var(--paper); border: 1px solid #3b433d; box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 10px; }
.leaflet-tooltip-top::before { border-top-color: #3b433d; }
.map-canvas::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  opacity: .28;
  mix-blend-mode: overlay;
}
.map-lines { position: absolute; inset: -5%; width: 110%; height: 110%; transition: transform .3s ease; }
.map-lines path { fill: none; stroke-linecap: round; }
.water path { stroke: var(--water-color); stroke-width: 28; opacity: .55; }
.major-roads path { stroke: var(--major-road); stroke-width: 5; }
.minor-roads path { stroke: var(--minor-road); stroke-width: 2; }
.blocks path, .blocks rect { fill: var(--block-fill); stroke: var(--minor-road); stroke-width: 2; }

.city-label {
  position: absolute;
  z-index: 2;
  color: #5d675f;
  font: 700 10px Inter, sans-serif;
  letter-spacing: .25em;
}
.marker {
  position: absolute;
  z-index: 5;
  width: 42px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center bottom;
  transition: .2s ease;
}
.marker:hover, .marker.active { transform: translateY(-3px) scale(1.08); z-index: 8; }
.marker-pin {
  position: absolute;
  inset: 0 0 6px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  clip-path: polygon(50% 100%, 5% 48%, 5% 5%, 95% 5%, 95% 48%);
  font: 900 14px "Barlow Condensed", Impact, sans-serif;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.4));
}
.marker-pulse {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -3px;
  height: 12px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  opacity: 0;
}
.marker.active .marker-pulse { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { transform: scale(.4); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.country-stamp {
  position: absolute;
  z-index: 500;
  left: 25px;
  top: 22px;
  display: grid;
  padding-left: 11px;
  border-left: 3px solid var(--acid);
  pointer-events: none;
}
.country-stamp span { color: #697169; font-size: 7px; font-weight: 800; letter-spacing: .18em; }
.country-stamp strong { font: 900 25px/.9 "Barlow Condensed", Impact, sans-serif; letter-spacing: .04em; }

.map-popup {
  position: absolute;
  z-index: 7;
  left: calc(51% + 48px);
  top: calc(52% - 30px);
  min-width: 265px;
  display: grid;
  grid-template-columns: 46px 1fr 27px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: var(--paper);
  background: rgba(12,15,13,.94);
  border: 1px solid #3d453f;
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
  transition: .25s ease;
}
.popup-date {
  height: 46px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--acid);
  color: var(--ink);
}
.popup-date strong { font: 900 22px/.8 "Barlow Condensed", Impact, sans-serif; }
.popup-date span { margin-top: 4px; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.popup-city { color: var(--acid); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.map-popup h3 { margin: 3px 0; font: 800 16px/1 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.map-popup p { margin: 0; color: #858c87; font-size: 8px; }
.popup-arrow { border: 0; background: transparent; color: var(--acid); font-size: 18px; cursor: pointer; }

.map-tools {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 6;
  display: grid;
  gap: 9px;
}
.map-tools button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #3b433e;
  background: rgba(15,18,16,.9);
  font-size: 18px;
  cursor: pointer;
}
.map-tools button:hover { color: var(--acid); border-color: var(--acid); }
.map-tools svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.map-tools > div { display: grid; }
.map-tools > div button + button { border-top: 0; }
.map-legend {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 500;
  color: #747d76;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.map-legend span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--acid); }
.map-scale {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  width: 72px;
  padding-top: 5px;
  border-top: 1px solid #6d776f;
  color: #747d76;
  text-align: center;
  font-size: 8px;
}

.mobile-nav { display: none; }

dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #3d443f;
  background: #111411;
  color: var(--paper);
  box-shadow: 0 30px 90px rgba(0,0,0,.75);
}
dialog::backdrop { background: rgba(3,5,4,.82); backdrop-filter: blur(5px); }
.create-form { position: relative; padding: 36px; }
.close-dialog {
  position: absolute;
  top: 18px; right: 18px;
  width: 33px; height: 33px;
  border: 1px solid #3a403c;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.create-form h2 { font-size: 50px; }
.create-form > p { margin-bottom: 25px; }
.create-form label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #9ba19c;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.create-form input, .create-form textarea, .create-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #343a36;
  outline: 0;
  background: #1a1e1b;
  color: var(--paper);
  resize: vertical;
  text-transform: none;
  letter-spacing: normal;
}
.create-form select { appearance: auto; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.create-form .upload-box {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border: 1px dashed #465048;
  background: #171b18;
  cursor: pointer;
}
.upload-box:hover { border-color: var(--acid); }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-box .upload-icon { color: var(--acid); font-size: 23px; }
.upload-box strong { color: var(--paper); font: 800 15px "Barlow Condensed", Impact, sans-serif; letter-spacing: .03em; }
.upload-box small { color: #737b75; font-size: 8px; text-transform: none; letter-spacing: 0; }
.upload-file { color: var(--acid); font-size: 8px; }
.create-form input:focus, .create-form textarea:focus { border-color: var(--acid); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.create-form .safety-check { display: flex; grid-template-columns: 18px 1fr; align-items: start; text-transform: none; letter-spacing: 0; line-height: 1.45; }
.safety-check input { width: 16px; accent-color: var(--acid); }
.submit-ride {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: var(--acid);
  color: var(--ink);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}

.auth-dialog { width: min(470px, calc(100vw - 32px)); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0 4px; border: 1px solid #353c37; }
.auth-tab { padding: 12px; border: 0; background: transparent; color: #7e857f; text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.auth-tab.active { background: var(--acid); color: var(--ink); }
.prototype-note { margin: 13px auto 0 !important; text-align: center; font-size: 8px !important; }

.detail-dialog {
  width: min(1040px, calc(100vw - 36px));
  height: min(720px, calc(100vh - 36px));
  max-height: none;
  overflow: hidden;
}
.ride-detail { height: 100%; display: grid; grid-template-columns: 46% 54%; position: relative; }
.ride-detail.no-media { grid-template-columns: 1fr; }
.ride-detail.no-media .detail-content { width: min(720px, 100%); margin: 0 auto; }
.close-detail {
  position: absolute;
  z-index: 5;
  top: 17px; right: 17px;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(9,11,10,.75);
  font-size: 22px;
  cursor: pointer;
}
.detail-media { min-width: 0; padding: 18px; display: grid; grid-template-rows: minmax(0, 1fr) 116px; gap: 10px; background: #0a0c0b; }
.detail-media[hidden] { display: none; }
.detail-media.poster-only, .detail-media.photos-only { grid-template-rows: minmax(0, 1fr); }
.event-poster { position: relative; min-height: 0; overflow: hidden; background: #1a201c; }
.event-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(6,8,7,.9), transparent 63%); }
.event-poster img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.18); }
.poster-copy { position: absolute; z-index: 2; left: 27px; right: 27px; bottom: 25px; display: grid; }
.poster-copy span { color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.poster-copy strong { margin: 7px 0; font: italic 900 54px/.78 "Barlow Condensed", Impact, sans-serif; letter-spacing: -.025em; }
.poster-copy small { width: max-content; padding: 6px 8px; background: var(--acid); color: var(--ink); font-weight: 800; letter-spacing: .12em; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 9px; min-width: 0; }
.detail-gallery[hidden] { display: none; }
.gallery-item { min-width: 0; overflow: hidden; border: 1px solid #333b35; background: #1b201d; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: .2s ease; }
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1); }
.detail-content { min-width: 0; overflow-y: auto; padding: 44px 48px 35px; scrollbar-color: #394139 transparent; }
.detail-topline { display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; font-size: 9px; letter-spacing: .12em; }
.detail-save { border: 0; background: transparent; color: #929a93; text-transform: uppercase; font-size: 9px; cursor: pointer; }
.detail-save.saved { color: var(--acid); }
.detail-content > h2 { margin: 15px 0 8px; font: 900 49px/.9 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.detail-lead { margin: 0; max-width: 570px; color: #a2aaa3; font-size: 12px; line-height: 1.65; }
.detail-facts { margin: 25px 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #303731; }
.detail-facts div { padding: 15px; display: grid; gap: 5px; border-bottom: 1px solid #303731; }
.detail-facts div:nth-child(odd) { border-right: 1px solid #303731; }
.detail-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-facts span, .organizer span { color: #777f79; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.detail-facts strong { font-size: 11px; font-weight: 600; }
.organizer { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 12px; padding: 14px 0 21px; border-bottom: 1px solid #303731; }
.organizer-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--ink); font-weight: 800; }
.organizer > div:nth-child(2) { display: grid; gap: 3px; }
.organizer strong { font-size: 11px; }
.organizer small { color: var(--acid); font-size: 7px; }
.organizer button { padding: 8px 10px; border: 1px solid #3d453f; background: transparent; color: #9ba29c; text-transform: uppercase; font-size: 7px; cursor: pointer; }
.detail-section { padding: 21px 0; border-bottom: 1px solid #303731; }
.detail-section h3 { margin: 0 0 12px; font: 800 16px "Barlow Condensed", Impact, sans-serif; }
.detail-section ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; color: #979f98; font-size: 10px; }
.detail-section li::before { content: "✓"; margin-right: 9px; color: var(--acid); font-weight: 800; }
.attendees { padding: 20px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.attendees > div { display: flex; align-items: center; gap: 10px; }
#attendeeAvatars { display: flex; }
#attendeeAvatars i { width: 29px; height: 29px; display: grid; place-items: center; margin-left: -7px; overflow: hidden; border: 2px solid #111411; border-radius: 50%; background: #313933; color: var(--paper); font-size: 7px; font-style: normal; }
#attendeeAvatars i:first-child { margin-left: 0; background: var(--acid); color: var(--ink); }
#attendeeAvatars img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.attendees p { margin: 0; font-size: 9px; color: #8b938c; }
.attendees small { color: #676e68; font-size: 8px; }
.join-button { width: 100%; padding: 16px; display: flex; justify-content: space-between; border: 0; background: var(--acid); color: var(--ink); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.join-button.joined { background: #253027; color: var(--acid); border: 1px solid var(--acid); }
.join-note { margin: 9px 0 0; color: #697069; text-align: center; font-size: 8px; }
.ride-share { margin: 0 0 18px; padding-top: 17px; border-top: 1px solid #303731; }
.ride-share > span { display: block; margin-bottom: 9px; color: #777f79; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.ride-share > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ride-share button { padding: 10px 6px; border: 1px solid #3b433d; background: #171b18; color: #a5ada6; font-size: 8px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.ride-share button:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.vip-top-button { height: 35px; padding: 0 12px; border: 1px solid #d8aa3d; background: linear-gradient(135deg,#2a210e,#0f0d08); color: #f2c85b; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.ride-comments { margin: 0 0 18px; padding: 18px 0; border-top: 1px solid #303731; }
.comments-heading span { color: #e7b94d; font-size: 7px; font-weight: 900; letter-spacing: .16em; }
.comments-heading h3 { margin: 4px 0 12px; font: 800 16px "Barlow Condensed",Impact,sans-serif; }
.comments-list { display: grid; gap: 7px; max-height: 180px; overflow-y: auto; }
.ride-comment { display: grid; grid-template-columns: 31px 1fr; gap: 9px; padding: 9px; background: #171a18; border: 1px solid #2e342f; }
.ride-comment-avatar { width: 31px; height: 31px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #333a34; font-size: 8px; font-weight: 800; }
.ride-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ride-comment strong { font-size: 9px; }
.ride-comment strong b { margin-left: 5px; color: #e7b94d; font-size: 7px; }
.ride-comment p { margin: 4px 0 0; color: #9ba39c; font-size: 9px; line-height: 1.45; }
.comment-moderation { display:flex; flex-wrap:wrap; gap:8px; margin-top:7px; }
.comment-moderation button,.report-content-button { padding:5px 0; border:0; background:transparent; color:#848c85; font-size:7px; font-weight:800; text-transform:uppercase; text-decoration:underline; cursor:pointer; }
.comment-moderation button:hover,.report-content-button:hover { color:#e57964; }
.report-content-button { width:100%; margin:-8px 0 17px; text-align:right; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 9px; }
.comment-form input { min-width: 0; padding: 11px; border: 1px solid #3a413b; background: #171a18; color: var(--paper); font-size: 9px; outline: none; }
.comment-form button,.comments-locked { padding: 10px 12px; border: 1px solid #d8aa3d; background: #d8aa3d; color: #111; font-size: 8px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.comments-locked { width: 100%; background: rgba(216,170,61,.08); color: #e7b94d; }

.ranking-dialog { width: min(560px, calc(100vw - 32px)); height: min(780px, calc(100vh - 32px)); max-height: none; overflow: hidden; }
.profile-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(780px, calc(100vh - 32px)); overflow: hidden; }
.ranking-shell { height: 100%; position: relative; padding: 38px; overflow-y: auto; }
.profile-shell {
  position: relative;
  max-height: min(780px, calc(100vh - 32px));
  padding: 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--acid) #202621;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.ranking-shell h2 { margin: 0; font: 900 52px/.82 "Barlow Condensed", Impact, sans-serif; }
.ranking-shell h2 em { color: var(--acid); font-style: italic; }
.ranking-shell > p { max-width: 400px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ranking-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 12px; border: 1px solid #343b36; }
.ranking-tab { padding: 11px; border: 0; background: transparent; color: #798079; text-transform: uppercase; font-size: 9px; font-weight: 800; cursor: pointer; }
.ranking-tab.active { background: var(--acid); color: var(--ink); }
.xp-rules { display: flex; gap: 8px; margin-bottom: 14px; }
.xp-rules span { flex: 1; padding: 9px; border: 1px solid #303731; color: #777f78; font-size: 8px; text-transform: uppercase; }
.xp-rules strong { display: block; margin-bottom: 3px; color: var(--acid); font-size: 10px; }
.leaderboard-status { margin: 0 0 10px; color: var(--acid); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.leaderboard-loading { padding: 30px 12px; border: 1px solid #303731; color: #8c948d; text-align: center; font-size: 9px; text-transform: uppercase; }
.leaderboard { max-height: 52vh; display: grid; gap: 6px; overflow-y: auto; padding-right: 4px; scrollbar-color: var(--acid) #202621; }
.leader-row { display: grid; grid-template-columns: 34px 38px 1fr auto; align-items: center; gap: 10px; padding: 10px; background: #181c19; border: 1px solid #2c332e; }
.leader-row.top { border-color: #667329; }
.leader-row.vip { border-color: #a77a20; background: linear-gradient(105deg,rgba(216,170,61,.13),#181c19 55%); box-shadow: inset 3px 0 #e7b94d; }
.leader-row.vip .leader-avatar { outline: 2px solid #e7b94d; outline-offset: 2px; }
.vip-mini { margin-left: 5px; color: #e7b94d; font-size: 7px; }
.leader-position { color: #737b74; font: 900 17px "Barlow Condensed", Impact, sans-serif; }
.leader-avatar { width: 35px; height: 35px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #303731; font-size: 9px; font-weight: 800; }
.leader-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.leader-row.top .leader-avatar { background: var(--acid); color: var(--ink); }
.leader-info { display: grid; gap: 3px; }
.leader-info strong { font-size: 10px; }
.leader-info span { color: #727a73; font-size: 7px; text-transform: uppercase; }
.leader-xp { color: var(--acid); font: 800 15px "Barlow Condensed", Impact, sans-serif; }
.my-rank { margin-top: 12px; padding: 12px; border-left: 3px solid var(--acid); background: #1c211d; color: #9ba29c; font-size: 9px; }
.my-rank strong { color: var(--paper); }
.rider-directory-button { width: 100%; margin-top: 10px; padding: 13px; display: flex; justify-content: space-between; border: 1px solid var(--acid); background: rgba(199,255,25,.07); color: var(--acid); font-size: 9px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.rider-directory-dialog { width: min(760px,calc(100vw - 32px)); height: min(780px,calc(100vh - 32px)); max-height: none; overflow: hidden; }
.rider-directory-shell { height: 100%; position: relative; padding: 38px; overflow-y: auto; }
.rider-directory-shell h2 { margin: 0; font: 900 53px/.82 "Barlow Condensed",Impact,sans-serif; }
.rider-directory-shell h2 em { color: var(--acid); font-style: italic; }
.rider-directory-shell > p { color: var(--muted); font-size: 11px; }
.directory-filters { display: grid; grid-template-columns: 180px 1fr; gap: 9px; margin: 24px 0 13px; }
.directory-filters label { display: grid; gap: 6px; color: #878f88; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.directory-filters select,.directory-filters input { width: 100%; padding: 12px; border: 1px solid #394039; background: #171b18; color: var(--paper); outline: none; }
.directory-status { margin: 0 0 10px; color: var(--acid) !important; font-size: 8px !important; font-weight: 800; text-transform: uppercase; }
.rider-directory-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.directory-rider { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #303732; background: #181c19; }
.directory-rider.vip { border-color: #80621f; background: linear-gradient(105deg,rgba(216,170,61,.12),#181c19 58%); }
.directory-avatar { width: 41px; height: 41px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #303731; font-size: 9px; font-weight: 900; }
.directory-rider.vip .directory-avatar { outline: 2px solid #e7b94d; }
.directory-avatar img { width: 100%; height: 100%; object-fit: cover; }
.directory-info { min-width: 0; display: grid; gap: 3px; }
.directory-info strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.directory-info span { color: #747c75; font-size: 7px; text-transform: uppercase; }
.country-flag { margin-right: 3px; color: var(--paper); font-size: 14px; font-weight: 400; line-height: 1; vertical-align: -2px; }
.directory-xp { color: var(--acid); font: 800 14px "Barlow Condensed",Impact,sans-serif; white-space: nowrap; }

.profile-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 23px; border-bottom: 1px solid #303731; }
.profile-avatar-wrap { display: grid; justify-items: center; gap: 8px; }
.profile-big-avatar { width: 70px; height: 70px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--acid); color: var(--ink); font: 900 30px "Barlow Condensed", Impact, sans-serif; transform: rotate(-3deg); isolation: isolate; }
.profile-big-avatar img { width: 100%; height: 100%; max-width: 100%; display: block; border-radius: inherit; object-fit: cover; object-position: center; }
.leader-avatar img,
.directory-avatar img,
.ride-comment-avatar img,
#attendeeAvatars img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}
.profile-big-avatar span { color: var(--ink); font: inherit; letter-spacing: 0; }
.avatar-upload-button { padding: 6px 8px; border: 1px solid #465047; color: #aab1ab; font-size: 7px; font-weight: 800; text-align: center; text-transform: uppercase; cursor: pointer; }
.avatar-upload-button:hover { border-color: var(--acid); color: var(--acid); }
.avatar-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-hero span { color: var(--acid); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.profile-hero h2 { margin: 4px 0 2px; font: 900 35px/.9 "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.profile-hero p { margin: 0; color: #818982; font-size: 9px; }
.xp-progress { margin: 23px 0; }
.xp-progress > div { display: flex; justify-content: space-between; color: #8d958e; font-size: 8px; font-weight: 700; }
.xp-progress i { height: 8px; display: block; margin-top: 8px; background: #282e29; overflow: hidden; }
.xp-progress b { display: block; height: 100%; width: 0; background: var(--acid); transition: width .35s ease; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 4px; border: 1px solid #303731; }
.profile-stats div { padding: 18px 8px; display: grid; gap: 5px; text-align: center; border-right: 1px solid #303731; }
.profile-stats div:last-child { border: 0; }
.profile-stats strong { font: 900 25px "Barlow Condensed", Impact, sans-serif; }
.profile-stats span { color: #767e77; font-size: 7px; text-transform: uppercase; }
.strava-card { margin-top: 12px; padding: 14px; border: 1px solid #69321b; background: linear-gradient(110deg,rgba(252,76,2,.14),#171916 62%); }
.strava-card-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; }
.strava-brand { padding: 8px 9px; background: #fc4c02; color: white; font: 900 12px "Barlow Condensed",Impact,sans-serif; letter-spacing: .04em; transform: skew(-5deg); }
.strava-card-head div { display: grid; gap: 3px; }
.strava-card-head strong { color: #fff; font-size: 9px; text-transform: uppercase; }
.strava-card-head div span { color: #8d928c; font-size: 8px; }
.strava-totals { grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.strava-totals:not([hidden]) { display: grid; }
.strava-totals span { padding: 10px; display: grid; gap: 3px; border: 1px solid #4e3327; color: #8d928c; font-size: 7px; text-transform: uppercase; }
.strava-totals strong { color: #ff7840; font: 900 20px "Barlow Condensed",Impact,sans-serif; }
.strava-xp-week { margin-top: 10px; padding: 10px; border: 1px solid #4e3327; background: rgba(0,0,0,.16); }
.strava-xp-week:not([hidden]) { display: grid; gap: 7px; }
.strava-xp-week > span { color: #d8d9d6; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.strava-xp-week > span b { color: #fc6b2d; }
.strava-xp-week > i { height: 6px; display: block; overflow: hidden; background: #30251f; }
.strava-xp-week > i b { width: 0; height: 100%; display: block; background: #fc4c02; transition: width .3s ease; }
.strava-xp-week small { margin: 0; color: #807a76; }
.strava-actions { display: flex; gap: 6px; margin-top: 11px; }
.strava-actions button { flex: 1; padding: 10px; border: 0; background: #fc4c02; color: white; font-size: 8px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.strava-actions button:disabled { opacity: .55; cursor: wait; }
.strava-actions .strava-disconnect { flex: 0 0 auto; border: 1px solid #573426; background: transparent; color: #b38d7d; }
.strava-card small { display: block; margin-top: 9px; color: #6f746f; font-size: 7px; line-height: 1.4; }
.strava-km { display: block; margin-top: 3px; color: #fc6b2d; font-size: 7px; font-weight: 900; }
.logout-button { width: 100%; margin-top: 10px; padding: 11px; border: 1px solid #3a423b; background: transparent; color: #7d857e; text-transform: uppercase; font-size: 8px; cursor: pointer; }
.profile-privacy-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.profile-privacy-links a,.profile-privacy-links button { padding: 10px 8px; border: 1px solid #3a423b; background: transparent; color: #8d958e; font-size: 7px; font-weight: 800; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.profile-privacy-links button { border-color: #653630; color: #c37b72; }
.signup-consent a { color: var(--acid); }
.delete-account-dialog { width: min(520px,calc(100vw - 32px)); border-color: #713c35; background: #100d0c; }
.delete-account-shell { position: relative; padding: 38px; background: radial-gradient(circle at 90% 0,rgba(168,46,37,.16),transparent 38%); }
.danger-kicker { color: #e36f62; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.delete-account-shell h2 { margin: 9px 0 15px; font: 900 52px/.8 "Barlow Condensed",Impact,sans-serif; }
.delete-account-shell h2 em { color: #e36f62; font-style: italic; }
.delete-account-shell p { color: #a49d9a; font-size: 10px; line-height: 1.6; }
.delete-account-shell > strong { display: block; margin: 15px 0; color: #f0cbc6; font-size: 10px; text-transform: uppercase; }
.delete-account-shell label { display: grid; gap: 8px; color: #a49d9a; font-size: 8px; text-transform: uppercase; }
.delete-account-shell label b { color: white; }
.delete-account-shell input { padding: 13px; border: 1px solid #663c36; background: #171210; color: white; font-weight: 900; letter-spacing: .12em; outline: none; }
.delete-account-confirm { width: 100%; padding: 14px; border: 0; background: #c94537; color: white; font-size: 9px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.delete-account-confirm:disabled { opacity: .35; cursor: not-allowed; }
.delete-account-status { min-height: 16px; color: #e58a7f !important; text-align: center; }
.manage-rides-button { width: 100%; margin: 14px 0 8px; padding: 13px; display: flex; justify-content: space-between; border: 1px solid var(--acid); background: rgba(199,255,25,.08); color: var(--acid); text-transform: uppercase; font-size: 9px; font-weight: 800; cursor: pointer; }
.vip-profile-button { width: 100%; margin: 8px 0; padding: 13px; display: flex; justify-content: space-between; border: 1px solid #d8aa3d; background: linear-gradient(100deg,rgba(216,170,61,.18),rgba(216,170,61,.03)); color: #f0c65b; text-transform: uppercase; font-size: 9px; font-weight: 900; cursor: pointer; }
.profile-shell.vip-profile .profile-big-avatar { outline: 3px solid #e7b94d; box-shadow: 0 0 24px rgba(231,185,77,.24); }
.profile-shell.vip-profile #profileStatusLabel { color: #e7b94d; }

.vip-dialog { width: min(760px,calc(100vw - 32px)); height: min(760px,calc(100vh - 32px)); max-height: none; overflow: hidden; border-color: #6f5420; background: #0e0d09; }
.vip-shell { height: 100%; position: relative; overflow-y: auto; padding: 38px; background: radial-gradient(circle at 85% 0,rgba(231,185,77,.17),transparent 35%),linear-gradient(145deg,#11100c,#090a09); }
.vip-kicker { color: #e7b94d; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.vip-shell h2 { margin: 8px 0 0; font: 900 66px/.76 "Barlow Condensed",Impact,sans-serif; }
.vip-shell h2 em { color: #e7b94d; font-style: italic; }
.vip-intro { max-width: 520px; color: #a7a397; font-size: 11px; line-height: 1.6; }
.vip-features { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 22px 0; }
.vip-features span { padding: 13px; border: 1px solid #393326; background: rgba(255,255,255,.02); color: #bbb5a7; font-size: 9px; }
.vip-features b { margin-right: 8px; color: #e7b94d; }
.vip-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vip-prices button { position: relative; min-height: 145px; display: grid; align-content: center; gap: 7px; padding: 20px; border: 1px solid #514426; background: #17150f; color: #fff; text-align: left; cursor: pointer; }
.vip-prices button:hover { border-color: #8a6a2b; }
.vip-prices button.selected { border-color: #e7b94d; background: linear-gradient(145deg,#2a220f,#12110d); box-shadow: inset 0 0 0 1px #e7b94d; }
.vip-prices small { color: #e7b94d; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.vip-prices strong { font: 900 29px "Barlow Condensed",Impact,sans-serif; }
.vip-prices .vip-plan-price { color: #fff; font-size: 38px; line-height: .9; }
.vip-prices span { color: #8f8b80; font-size: 8px; }
.vip-prices i { position: absolute; right: 8px; top: 8px; padding: 5px 7px; background: #e7b94d; color: #111; font-size: 7px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.vip-prices .vip-checkout-button { grid-column: 1 / -1; min-height: 0; display: flex; justify-content: space-between; padding: 15px; border: 0; background: #e7b94d; color: #111; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.vip-prices .vip-checkout-button:disabled { opacity: .55; cursor: wait; }
.vip-payment-status { grid-column: 1 / -1; min-height: 15px; margin: 0; color: #e6a66b; font-size: 9px; text-align: center; }
.vip-dashboard { margin-top: 22px; padding: 20px; border: 1px solid #6f5420; background: rgba(231,185,77,.05); }
.vip-active-badge { color: #e7b94d; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.push-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid #54482d; background: #11110e; }
.push-card div { display: grid; gap: 4px; }
.push-card strong { color: #f1d179; font-size: 9px; letter-spacing: .08em; }
.push-card span { color: #8f8b80; font-size: 8px; }
.push-card button { padding: 10px 13px; border: 0; background: #e7b94d; color: #111; font-size: 8px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.push-card button.active { border: 1px solid #6f5420; background: transparent; color: #e7b94d; }
.vip-dashboard h3 { margin: 20px 0 9px; font: 900 20px "Barlow Condensed",Impact,sans-serif; }
#cityFollowForm { display: grid; grid-template-columns: 1fr 150px auto; gap: 7px; }
#cityFollowForm input,#cityFollowForm select { padding: 11px; border: 1px solid #4b422c; background: #11110e; color: white; outline: none; }
#cityFollowForm button,.vip-manage { padding: 11px; border: 0; background: #e7b94d; color: #111; font-size: 8px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.vip-follows { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.vip-follow { padding: 8px 10px; border: 1px solid #54482d; background: #17150f; color: #d5cdbb; font-size: 8px; cursor: pointer; }
.vip-follow b { color: #e7b94d; }
.vip-manage { width: 100%; margin-top: 6px; background: transparent; color: #e7b94d; border: 1px solid #6f5420; }
.vip-secure { color: #716d63; font-size: 8px; text-align: center; }

.organizer-dialog { width: min(760px, calc(100vw - 32px)); height: min(720px, calc(100vh - 32px)); max-height: none; overflow: hidden; }
.organizer-shell { height: 100%; position: relative; padding: 38px; overflow-y: auto; }
.organizer-shell h2 { margin: 0; font: 900 53px/.82 "Barlow Condensed", Impact, sans-serif; }
.organizer-shell h2 em { color: var(--acid); font-style: italic; }
.organizer-shell > p { color: var(--muted); font-size: 11px; }
.my-rides-list { display: grid; gap: 8px; margin-top: 24px; }
.my-ride-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; padding: 12px; border: 1px solid #303732; background: #181c19; }
.my-ride-date { height: 54px; display: grid; place-content: center; text-align: center; background: #232923; }
.my-ride-date strong { font: 900 24px/.8 "Barlow Condensed", Impact, sans-serif; }
.my-ride-date span { margin-top: 5px; color: var(--acid); font-size: 7px; font-weight: 800; }
.my-ride-copy { min-width: 0; }
.my-ride-copy h3 { margin: 5px 0 3px; font: 800 19px "Barlow Condensed", Impact, sans-serif; text-transform: uppercase; }
.my-ride-copy p { margin: 0; color: #7d857e; font-size: 8px; }
.ride-status { color: var(--acid); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.status-cancelled, .status-rejected { color: #e4745f; }
.my-ride-actions { display: flex; gap: 6px; }
.my-ride-actions button, .cancel-edit-button { padding: 9px; border: 1px solid #414942; background: transparent; color: #a7afa8; text-transform: uppercase; font-size: 7px; cursor: pointer; }
.my-ride-actions .danger { color: #e4745f; border-color: #69463f; }
.organizer-edit-form { margin-top: 24px; }
.organizer-edit-form label { display: grid; gap: 7px; margin-top: 13px; color: #9ba19c; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.organizer-edit-form input, .organizer-edit-form textarea, .organizer-edit-form select { width: 100%; padding: 12px; border: 1px solid #343a36; outline: 0; background: #1a1e1b; color: var(--paper); text-transform: none; }
.organizer-form-actions { display: grid; grid-template-columns: 120px 1fr; gap: 8px; margin-top: 18px; }

.shop-dialog { width: min(980px, calc(100vw - 32px)); height: min(690px, calc(100vh - 32px)); max-height: none; overflow: hidden; }
.shop-shell { height: 100%; position: relative; padding: 38px; overflow-y: auto; }
.shop-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.shop-heading h2, .admin-shell h2 { margin: 0; font: 900 53px/.82 "Barlow Condensed", Impact, sans-serif; }
.shop-heading h2 em, .admin-shell h2 em { color: var(--acid); font-style: italic; }
.shop-heading p, .admin-shell > p { max-width: 440px; margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-add-button { padding: 12px 15px; border: 1px solid var(--acid); background: var(--acid); color: var(--ink); text-transform: uppercase; font-size: 8px; font-weight: 800; cursor: pointer; }
.shop-country { margin: 27px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #303731; color: #788079; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shop-card { min-height: 230px; display: flex; flex-direction: column; padding: 20px; position: relative; overflow: hidden; border: 1px solid #303732; background: linear-gradient(145deg,#1b201c,#111411); }
.shop-card.featured { border-color: var(--acid); background: radial-gradient(circle at 100% 0,rgba(199,255,25,.13),transparent 42%),#151a16; }
.shop-card::after { content:""; position:absolute; width:100px; height:100px; right:-40px; bottom:-40px; border:20px solid rgba(255,255,255,.025); border-radius:50%; }
.shop-badge { width:max-content; padding:5px 7px; background:#272e28; color:#858e86; font-size:7px; text-transform:uppercase; letter-spacing:.1em; }
.shop-card.featured .shop-badge { background:var(--acid); color:var(--ink); font-weight:800; }
.shop-card h3 { margin:24px 0 6px; font:900 27px/.9 "Barlow Condensed",Impact,sans-serif; text-transform:uppercase; }
.shop-card p { margin:0; color:#858d86; font-size:9px; line-height:1.6; }
.shop-location { margin-top:10px; color:var(--acid); font-size:8px; text-transform:uppercase; }
.shop-actions { margin-top:auto; display:flex; gap:7px; position:relative; z-index:2; }
.shop-link { flex:1; padding:11px; border:0; background:var(--acid); color:var(--ink); text-align:center; text-decoration:none; text-transform:uppercase; font-size:8px; font-weight:800; }
.shop-delete { width:36px; border:1px solid #594039; background:transparent; color:#e4745f; cursor:pointer; }
.create-shop-dialog { width:min(520px,calc(100vw - 32px)); }

.admin-dialog { width:min(820px,calc(100vw - 32px)); height:min(680px,calc(100vh - 32px)); max-height:none; overflow:hidden; }
.admin-shell { height:100%; position:relative; padding:38px; overflow-y:auto; }
.admin-tabs { display:grid; grid-template-columns:repeat(3,1fr); margin:25px 0 14px; border:1px solid #343b36; }
.admin-tab { padding:12px; border:0; background:transparent; color:#7f8780; text-transform:uppercase; font-size:8px; font-weight:800; cursor:pointer; }
.admin-tab.active { background:var(--acid); color:var(--ink); }
.admin-tab b { margin-left:5px; padding:2px 5px; border-radius:8px; background:var(--danger); color:white; }
.admin-list { display:grid; gap:8px; }
.admin-item { display:grid; grid-template-columns:54px 1fr auto; gap:13px; align-items:center; padding:12px; border:1px solid #303732; background:#181c19; }
.admin-date { height:50px; display:grid; place-content:center; text-align:center; background:#232923; }
.admin-date strong { font:900 22px/.8 "Barlow Condensed",Impact,sans-serif; }
.admin-date span { color:var(--acid); font-size:7px; font-weight:800; }
.admin-info { min-width:0; display:grid; gap:4px; }
.admin-info strong { font:800 17px "Barlow Condensed",Impact,sans-serif; text-transform:uppercase; }
.admin-info span { color:#7e867f; font-size:8px; }
.admin-actions { display:flex; gap:6px; }
.approve-button,.reject-button,.delete-event-button,.view-event-button { padding:9px 10px; border:1px solid #3b433c; background:transparent; text-transform:uppercase; font-size:7px; font-weight:800; cursor:pointer; }
.view-event-button { color:var(--paper); border-color:#59625b; }
.approve-button { background:var(--acid); color:var(--ink); border-color:var(--acid); }
.reject-button,.delete-event-button { color:#e57964; border-color:#62443d; }
.admin-empty { padding:40px 15px; text-align:center; color:#737b74; font-size:10px; }
.admin-report { grid-template-columns:1fr auto; }
.admin-report-copy { display:grid; gap:6px; min-width:0; }
.admin-report-copy small { color:var(--acid); font-size:7px; font-weight:900; text-transform:uppercase; }
.admin-report-copy strong { font-size:13px; }
.admin-report-copy p { margin:0; color:#929a93; font-size:9px; line-height:1.45; }
.admin-report-copy span { color:#6f7770; font-size:8px; }

.report-dialog,.blocked-users-dialog { width:min(520px,calc(100vw - 32px)); max-height:calc(100vh - 32px); }
.report-shell,.blocked-users-shell { position:relative; padding:38px; overflow-y:auto; }
.report-shell h2,.blocked-users-shell h2 { margin:0; font:900 48px/.84 "Barlow Condensed",Impact,sans-serif; }
.report-shell h2 em,.blocked-users-shell h2 em { color:var(--acid); font-style:italic; }
.report-shell > p,.blocked-users-shell > p { color:var(--muted); font-size:10px; line-height:1.55; }
.report-shell label { display:grid; gap:7px; margin-top:14px; color:#929a93; font-size:9px; text-transform:uppercase; }
.report-shell select,.report-shell textarea { padding:12px; border:1px solid #3a413b; background:#171a18; color:var(--paper); font:inherit; text-transform:none; }
.manage-blocks-button { width:100%; margin-top:9px; padding:13px 15px; display:flex; justify-content:space-between; border:1px solid #3b433d; background:#171b18; color:#b1b8b2; font-size:9px; font-weight:800; text-transform:uppercase; cursor:pointer; }
.blocked-users-list { display:grid; gap:8px; margin-top:20px; }
.blocked-user-row { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:10px; padding:10px; border:1px solid #303732; background:#181c19; }
.blocked-user-avatar { width:36px; height:36px; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:#303731; font-size:8px; font-weight:800; }
.blocked-user-avatar img { width:100%; height:100%; object-fit:cover; }
.blocked-user-row strong { font-size:10px; }
.blocked-user-row button { padding:8px; border:1px solid var(--acid); background:transparent; color:var(--acid); font-size:7px; font-weight:900; text-transform:uppercase; cursor:pointer; }

.admin-ride-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100vh - 32px); }
.admin-ride-shell { position:relative; padding:38px; overflow-y:auto; }
.admin-ride-shell h2 { margin:0 0 22px; font:900 52px/.82 "Barlow Condensed",Impact,sans-serif; }
.admin-ride-shell h2 em { color:var(--acid); font-style:italic; }
.admin-ride-media { margin-bottom:20px; display:grid; grid-template-columns:minmax(180px,260px) 1fr; gap:10px; }
#adminRidePoster { width:100%; max-height:260px; object-fit:cover; border:1px solid #343b36; }
#adminRidePhotos { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
#adminRidePhotos img { width:100%; height:125px; object-fit:cover; border:1px solid #343b36; }
.admin-ride-submit { margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.admin-ride-submit > span { color:var(--acid); font-size:8px; font-weight:800; text-transform:uppercase; }
.admin-ride-submit .submit-ride { width:min(330px,100%); margin:0; }

.install-dialog { width: min(480px, calc(100vw - 32px)); }
.install-shell { position: relative; padding: 38px; }
.install-icon { width: 78px; height: 78px; margin-bottom: 22px; transform: rotate(-3deg); box-shadow: 0 12px 35px rgba(0,0,0,.35); }
.install-icon img { width: 100%; height: 100%; display: block; border-radius: 16px; }
.install-shell h2 { margin: 0; font: 900 47px/.83 "Barlow Condensed", Impact, sans-serif; }
.install-shell h2 em { color: var(--acid); font-style: italic; }
.install-shell > p { margin: 17px 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ios-steps { display: grid; gap: 8px; margin-bottom: 18px; }
.ios-steps span { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 9px; padding: 11px; background: #191e1a; border: 1px solid #303732; color: #969e97; font-size: 9px; }
.ios-steps strong { width: 24px; height: 24px; display: grid; place-items: center; background: var(--acid); color: var(--ink); }
.ios-steps b { color: var(--paper); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 26px;
  padding: 12px 18px;
  transform: translate(-50%, 20px);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { padding: 35px 14px; color: #747b75; text-align: center; font-size: 11px; line-height: 1.6; }

.founder-popup {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 24px;
  width: min(620px, calc(100vw - 32px));
  padding: 18px 48px 18px 21px;
  transform: translateX(-50%);
  background: rgba(17, 21, 18, .97);
  border: 1px solid #3a433c;
  border-left: 5px solid var(--acid);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  animation: founder-arrival .45s ease both;
}
.founder-popup[hidden] { display: none; }
.founder-label { color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.founder-popup p { margin: 8px 0 5px; font: italic 800 18px/1.15 "Barlow Condensed", Impact, sans-serif; }
.founder-popup strong { display: block; color: #aeb6af; font-size: 10px; line-height: 1.45; }
.founder-popup small { display: block; margin-top: 10px; color: #7f8881; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.founder-popup small b { color: var(--paper); }
.founder-close { position: absolute; top: 10px; right: 11px; width: 28px; height: 28px; border: 1px solid #414a43; background: transparent; color: #aeb6af; font-size: 18px; cursor: pointer; }
.founder-close:hover { color: var(--acid); border-color: var(--acid); }
@keyframes founder-arrival {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 800px) {
  :root { --header: 59px; }
  body { overflow: hidden; }
  .topbar { padding: 0 12px; }
  .brand { font-size: 24px; }
  .brand small { display: block; margin: 2px 0 0; font-size: 6px; letter-spacing: .14em; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-mark img { width: 100%; }
  .desktop-nav { display: none; }
  .top-actions { gap: 7px; }
  .country-picker { height: 35px; gap: 5px; padding: 0 7px; }
  .country-picker-icon { display: none; }
  .country-picker-label { font-size: 0; }
  .country-picker-label::after { content: "Pays"; font-size: 7px; }
  .country-picker-current { min-width: 52px; max-width: 70px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .country-picker-arrow { font-size: 10px; }
  .language-picker { height: 33px; padding: 0 5px; }
  .language-picker > span { display: none; }
  .language-picker select { width: 34px; font-size: 8px; }
  .install-app { position: fixed; z-index: 25; right: 14px; bottom: 78px; height: 39px; padding: 0 12px; background: var(--acid); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
  .founder-popup { bottom: 76px; padding: 16px 43px 16px 17px; }
  .founder-popup p { font-size: 16px; }
  .profile { height: 33px; padding: 0 9px; font-size: 8px; text-transform: uppercase; }
  .vip-top-button { position: fixed; right: 12px; bottom: 145px; z-index: 24; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
  .profile.logged-in { width: 33px; padding: 0; font-size: 11px; }
  .notification-button { width:33px; height:33px; }

  .app-shell {
    height: calc(100vh - var(--header) - 66px);
    display: block;
    position: relative;
  }
  .ride-panel {
    position: absolute;
    z-index: 10;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: min(46vh, 390px);
    border: 1px solid #353b37;
    box-shadow: 0 16px 45px rgba(0,0,0,.48);
    transition: height .28s ease, transform .28s ease;
  }
  .panel-heading { position: relative; padding: 14px 106px 8px 16px; }
  .ride-panel-toggle {
    position: absolute;
    right: 12px;
    top: 11px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid #485048;
    background: #171b18;
    color: #d8ded9;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
  }
  .ride-panel-toggle b { color: var(--acid); font-size: 13px; transition: transform .25s ease; }
  .ride-panel.is-collapsed { height: 58px; }
  .ride-panel.is-collapsed .panel-heading { height: 100%; padding-top: 13px; }
  .ride-panel.is-collapsed h1 {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
  }
  .ride-panel.is-collapsed h1 br { display: none; }
  .ride-panel.is-collapsed .ride-panel-toggle span { font-size: 0; }
  .ride-panel.is-collapsed .ride-panel-toggle span::after { content: "Afficher"; font-size: 7px; }
  .ride-panel.is-collapsed .ride-panel-toggle b { transform: rotate(180deg); }
  .ride-panel.is-collapsed .search-area,
  .ride-panel.is-collapsed .ride-list-heading,
  .ride-panel.is-collapsed .ride-list,
  .ride-panel.is-collapsed .create-button { display: none; }
  .panel-heading .eyebrow, .panel-heading p, .ride-list-heading, .search-box { display: none; }
  h1 { font-size: 29px; line-height: .88; }
  h1 br { display: block; }
  .search-area { order: 2; padding: 4px 16px 10px; border: 0; }
  .filter-row { margin-top: 0; }
  .ride-list { order: 3; padding: 0 7px; }
  .ride-card { grid-template-columns: 43px 1fr 32px; padding: 9px 8px; }
  .ride-date { height: 43px; }
  .ride-date strong { font-size: 20px; }
  .create-button { display: none; }
  .map-area { width: 100%; height: 100%; }
  .map-popup { display: none; }
  .map-tools { right: 14px; top: 14px; }
  .map-legend { left: 15px; bottom: 258px; }
  .map-scale { right: 15px; bottom: 258px; }
  .country-stamp { left: 15px; top: 14px; }
  .country-stamp strong { font-size: 20px; }

  .mobile-nav {
    height: 66px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    position: fixed;
    z-index: 100;
    left: 0; right: 0; bottom: 0;
    padding: 0 8px;
    border-top: 1px solid #2e3430;
    background: #0b0d0c;
  }
  .mobile-nav button {
    height: 100%;
    display: grid;
    place-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: var(--paper);
    text-transform: uppercase;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
  }
  .mobile-nav button span { font-size: 19px; line-height: 1; }
  .mobile-nav button.active { color: var(--acid); }
  .mobile-nav .mobile-create {
    width: 46px;
    height: 46px;
    place-self: center;
    background: var(--acid);
    color: var(--ink);
    transform: rotate(3deg);
  }
  .mobile-create span { font-size: 28px !important; }
  .create-form { padding: 28px 22px; }
  .form-grid, .upload-grid { grid-template-columns: 1fr; gap: 0; }
  .vip-features,.vip-prices { grid-template-columns: 1fr; }
  #cityFollowForm { grid-template-columns: 1fr; }
  .vip-shell { padding: 28px 22px; }
  .directory-filters,.rider-directory-list { grid-template-columns: 1fr; }
  .rider-directory-shell { padding: 28px 20px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-stats div:nth-child(2) { border-right: 0; }
  .profile-stats div:nth-child(-n+2) { border-bottom: 1px solid #303731; }
  .detail-dialog { width: 100vw; height: calc(100vh - 66px); max-width: none; max-height: none; margin: 0; border: 0; }
  .nav-dialog[open] {
    position: fixed;
    inset: var(--header) 0 66px;
    z-index: 90;
    width: 100vw;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    overflow: hidden;
  }
  .ride-detail { display: block; overflow-y: auto; }
  .detail-media { height: 530px; grid-template-rows: 410px 105px; padding: 12px; }
  .detail-media.poster-only, .detail-media.photos-only { height: 430px; grid-template-rows: 1fr; }
  .poster-copy strong { font-size: 47px; }
  .detail-content { overflow: visible; padding: 28px 20px 38px; }
  .detail-content > h2 { font-size: 40px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-facts div, .detail-facts div:nth-child(odd), .detail-facts div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #303731; }
  .detail-facts div:last-child { border-bottom: 0; }
  .attendees { align-items: flex-start; gap: 14px; }
  .ranking-dialog { height: calc(100vh - var(--header) - 66px); }
  .ranking-shell { padding: 30px 20px 40px; }
  .profile-dialog { height: calc(100dvh - var(--header) - 66px); max-height: none; }
  .profile-shell {
    height: 100%;
    max-height: none;
    padding: 30px 20px calc(46px + env(safe-area-inset-bottom));
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
  }
  .install-shell { padding: 30px 20px; }
  .delete-account-dialog { width: calc(100vw - 24px); }
  .delete-account-shell { padding: 32px 20px; }
  .delete-account-shell h2 { font-size: 43px; }
  .shop-dialog,.admin-dialog { width:100vw; height:calc(100vh - 66px); max-width:none; max-height:none; margin:0; border:0; }
  .admin-ride-dialog { width:100vw; height:calc(100vh - 66px); max-width:none; max-height:none; margin:0; border:0; }
  .admin-ride-shell { padding:28px 18px 40px; }
  .admin-ride-media { grid-template-columns:1fr; }
  .admin-ride-submit { align-items:stretch; flex-direction:column; }
  .admin-ride-submit .submit-ride { width:100%; }
  .organizer-dialog { width:100vw; height:calc(100vh - 66px); max-width:none; max-height:none; margin:0; border:0; }
  .organizer-shell { padding:28px 18px 40px; }
  .my-ride-item { grid-template-columns: 50px 1fr; }
  .my-ride-actions { grid-column: 1 / -1; }
  .my-ride-actions button { flex: 1; }
  .shop-shell,.admin-shell { padding:28px 18px 40px; }
  .shop-heading { display:block; }
  .admin-add-button { margin-top:16px; }
  .shop-grid { grid-template-columns:1fr; }
  .admin-item { grid-template-columns:46px 1fr; }
  .admin-actions { grid-column:1/-1; }
  .approve-button,.reject-button,.delete-event-button { flex:1; }
}

@media (min-width: 801px) and (max-height: 760px) {
  .panel-heading { padding-top: 22px; padding-bottom: 16px; }
  h1 { font-size: 41px; }
  .panel-heading p { margin-top: 11px; }
  .search-area { padding-bottom: 14px; }
  .ride-card { padding-top: 10px; padding-bottom: 10px; }
}
