/* ============================================================
   VEXORA RIDEOUTS · styles v1.0.1 — BLACK & WHITE (estilo Vexora)
   Montserrat only. No blue. No color accents: pure mono.
   ============================================================ */
:root {
  --bg: #0a0b0d;
  --panel: #141518;
  --panel-2: #1b1d21;
  --line: #26282d;
  --line-2: #3a3d44;
  --text: #f4f5f6;
  --dim: #9aa0a8;
  --acc: #ffffff;
  --acc-ink: #0b0c0e;
  --danger: #ff5d5d;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 255, 255, .06), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgba(255, 255, 255, .03), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: 96px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
button { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(14px, 4vw, 28px);
  background: rgba(10, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 26px; height: 26px; color: var(--text); }
.wordmark { font-weight: 800; letter-spacing: .14em; font-size: 14px; color: var(--dim); }
.wordmark b { color: var(--text); font-weight: 900; }
.top-r { display: flex; align-items: center; gap: 10px; }
.chip.free {
  font-size: 10px; font-weight: 900; letter-spacing: .14em;
  color: var(--acc-ink); background: var(--acc);
  border-radius: 999px; padding: 4px 9px;
}

/* ---------- buttons / controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 14px;
  padding: 11px 18px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.acc { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.btn.acc:hover { filter: brightness(.94); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--danger); border-color: rgba(255, 93, 93, .35); }
.btn .ic { width: 16px; height: 16px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.arm { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.seg { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg-b { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 12px; font-weight: 700; font-size: 13px; color: var(--dim); cursor: pointer; }
.seg-b.is-on { background: var(--acc); color: var(--acc-ink); }

input, select, textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .13); }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rowgap { display: flex; gap: 10px; }
.ferr { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 0; }
.ferr:empty { display: none; }
.tiny { font-size: 12px; }
.dim { color: var(--dim); font-weight: 600; }
.auth-hint { margin: -4px 0 0; }

/* ---------- layout ---------- */
main { max-width: 720px; margin: 0 auto; padding: 18px clamp(14px, 4vw, 24px) 0; }
.view[hidden] { display: none; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.sec-head h2 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.card-t .ic { width: 18px; height: 18px; color: var(--text); }
.empty { color: var(--dim); font-size: 13.5px; font-weight: 600; text-align: center; padding: 22px 10px; }
.guestcard h3 { font-size: 17px; font-weight: 900; }
.guestcard p { margin: 8px 0 14px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 30px 8px 22px; margin-bottom: 18px; }
.hero-glow {
  position: absolute; inset: -30px 0 auto; height: 240px; pointer-events: none;
  background: radial-gradient(320px 160px at 50% 0%, rgba(255, 255, 255, .12), transparent 70%);
}
.hero h1 { font-size: clamp(28px, 6vw, 40px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero-sub { color: var(--dim); font-weight: 600; max-width: 420px; margin: 12px auto 0; }
.hero-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 20px; }
.feat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px;
}
.feat svg { width: 15px; height: 15px; color: var(--text); }

/* ---------- avatars ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #23262c, #14161a);
  border: 1px solid var(--line-2);
  color: var(--text); font-weight: 900;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av24 { width: 24px; height: 24px; font-size: 11px; }
.av40 { width: 40px; height: 40px; font-size: 16px; flex: none; }
.av72 { width: 72px; height: 72px; font-size: 28px; }
.me-mini { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }

/* ---------- feed ---------- */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .who { font-weight: 800; font-size: 14px; }
.post-head .sub { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; }
.post-photo { display: block; width: 100%; background: #000; }
.post-photo img { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.post-foot { display: flex; align-items: center; gap: 8px; padding: 11px 14px 13px; }
.like {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.like svg { width: 16px; height: 16px; }
.like.is-on { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.like.is-on svg path { fill: currentColor; }
.post-cap { padding: 0 14px 14px; font-weight: 600; font-size: 14px; }
.del-x {
  margin-left: auto; background: transparent; border: 0; color: var(--dim);
  cursor: pointer; padding: 6px; border-radius: 10px;
}
.del-x:hover { color: var(--danger); background: rgba(255, 93, 93, .08); }
.del-x svg { width: 16px; height: 16px; display: block; }

/* ---------- speed ---------- */
.yourmax { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yourmax .big { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.yourmax .big small { font-size: 15px; color: var(--dim); font-weight: 700; margin-left: 6px; }
.yourmax .lbl { color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pod {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 10px; text-align: center;
}
.pod .medal { font-size: 18px; }
.pod .u { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; font-weight: 800; font-size: 13px; }
.pod .v { color: var(--text); font-weight: 900; font-size: 18px; margin-top: 2px; }
.pod.p1 { border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 24px rgba(255, 255, 255, .1); }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-top: 1px solid var(--line); }
.board li:first-child { border-top: 0; }
.board .rank { width: 26px; font-weight: 900; color: var(--dim); font-size: 13px; }
.board .top3 .rank { color: var(--text); }
.board .who { font-weight: 800; font-size: 14px; }
.board .sc { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; }
.board .spd { margin-left: auto; font-weight: 900; color: var(--text); font-size: 15px; white-space: nowrap; }
.recents { list-style: none; margin: 0; padding: 0; }
.recents li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13.5px; }
.recents li:first-child { border-top: 0; }
.recents .spd { font-weight: 900; color: var(--text); white-space: nowrap; }
.recents .who { font-weight: 800; }
.recents .when { margin-left: auto; color: var(--dim); font-size: 12px; font-weight: 600; white-space: nowrap; }
.speed-input { display: flex; gap: 10px; }
.speed-input input { font-size: 30px; font-weight: 900; letter-spacing: -.02em; padding: 10px 14px; }
.speed-input select { width: 110px; font-weight: 800; }

/* ---------- rideouts ---------- */
.ride { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ride::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); }
.ride.past::before, .ride.cancelled::before { background: var(--line-2); }
.ride-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ride h3 { font-size: 17px; font-weight: 800; }
.ride .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--dim); font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.ride .meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--text); }
.ride .det { margin: 10px 0 0; color: var(--text); font-size: 13.5px; font-weight: 600; }
.badge { font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 4px 9px; flex: none; }
.badge.soon { background: var(--acc); color: var(--acc-ink); }
.badge.pastb { background: var(--panel-2); color: var(--dim); border: 1px solid var(--line); }
.badge.cancel { background: rgba(255, 93, 93, .15); color: var(--danger); border: 1px solid rgba(255, 93, 93, .4); }
.ride.cancelled h3 { text-decoration: line-through; color: var(--dim); }
.ride-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.counts { margin-left: auto; color: var(--dim); font-size: 12.5px; font-weight: 700; }
.rsvp { border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 12.5px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.rsvp.is-on, .rsvp.arm { background: var(--acc); border-color: transparent; color: var(--acc-ink); }
.routelink { font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- me / perfil ---------- */
.me-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.me-name { font-size: 22px; font-weight: 900; }
.avatarwrap { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.av-edit {
  position: absolute; right: -4px; bottom: -4px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc); color: var(--acc-ink);
}
.av-edit svg { width: 14px; height: 14px; }
.mestats { display: flex; gap: 14px; align-items: center; color: var(--dim); font-size: 12px; font-weight: 700; padding-top: 18px; }
.mestats b { color: var(--text); font-size: 15px; margin-right: 3px; }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mine-grid .cell { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.mine-grid img { display: block; width: 100%; height: 92px; object-fit: cover; }
.mine-grid .del-x { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); border-radius: 8px; }
.mine-grid .del-x svg { color: #fff; }
.backbtn { margin-bottom: 12px; }
.rider-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.rider-head h2 { font-size: 22px; font-weight: 900; }
.rider-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.rstat { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; }
.rstat b { display: block; font-size: 18px; font-weight: 900; color: var(--text); }
.rstat span { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- sheets ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(4, 5, 6, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet {
  position: fixed; z-index: 61; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 13px;
  max-height: 88dvh; overflow: auto;
}
.sheet h3 { font-size: 18px; font-weight: 900; }
@media (min-width: 640px) {
  .sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: var(--r-lg); border-bottom: 1px solid var(--line); }
}
.drop { position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--r); min-height: 150px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.drop:hover { border-color: var(--acc); }
.drop-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; font-weight: 700; text-align: center; padding: 16px; }
.drop-ph svg { width: 30px; height: 30px; color: var(--text); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- tabs (abajo, flotantes) ---------- */
.tabs {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 20px));
  display: flex;
  background: rgba(18, 19, 22, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 7px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 18px;
  color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-on { background: var(--panel-2); color: var(--text); }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; transform: translateX(-50%);
  bottom: 92px;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 11px 18px;
  font-weight: 700; font-size: 13.5px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 30px);
  text-align: center;
}
.toast.ok { border-color: rgba(255, 255, 255, .5); }
.toast.err { border-color: rgba(255, 93, 93, .5); color: var(--danger); }

@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
  .podium { gap: 7px; }
  .pod .u { font-size: 11.5px; }
  .mine-grid { grid-template-columns: repeat(2, 1fr); }
  input, select, textarea { font-size: 16px; }
}
