/* The Crypto Taxi — shell, menú superior y componentes base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--asphalt-950);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--taxi); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--taxi); color: var(--text-on-taxi); }

.i { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-dim); }
.fine { font-size: 13px; color: var(--text-dim); display: flex; gap: 6px; align-items: flex-start; }
.fine .i { width: 15px; height: 15px; margin-top: 2px; }
.center { text-align: center; justify-content: center; }
.pad { padding: 12px 4px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.txt-danger { color: var(--danger); }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taxi);
}

/* ---------- arranque ---------- */
.boot { min-height: 100dvh; display: grid; place-content: center; gap: 22px; justify-items: center; }
.boot__sign {
  font-family: var(--font-display); font-size: 28px; color: var(--text-on-taxi); background: var(--taxi);
  padding: 10px 22px; border-radius: 14px 14px 8px 8px; box-shadow: 0 0 40px rgba(255, 198, 41, .35);
}
.boot__bar { width: 180px; height: 6px; border-radius: 99px; background: var(--asphalt-700); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 40%; background: var(--taxi); border-radius: inherit; animation: boot 1.1s var(--ease-out) infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.fatal { min-height: 100dvh; display: grid; place-content: center; gap: 10px; color: var(--text-dim); }

/* ---------- logo (cartel de techo de taxi) ---------- */
.logo { display: flex; align-items: center; flex: none; }
.logo__sign {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  padding: 6px 14px 7px; border-radius: 12px 12px 6px 6px; color: var(--text-on-taxi);
  background: linear-gradient(180deg, #FFD95A 0%, var(--taxi) 55%, var(--taxi-deep) 100%);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 0 2px #1B1F2A, 0 6px 18px rgba(255, 198, 41, .25);
  transition: transform .25s var(--ease-spring), box-shadow .25s;
}
.logo__sign::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -7px; height: 5px; border-radius: 0 0 4px 4px;
  background: #1B1F2A;
}
.logo:hover .logo__sign { transform: translateY(-1px) rotate(-1.5deg); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 0 0 2px #1B1F2A, 0 8px 28px rgba(255, 198, 41, .45); }
.logo__the { font-family: var(--font-ui); font-weight: 800; font-size: 9px; letter-spacing: .4em; margin-bottom: 2px; padding-left: .4em; }
.logo__main { font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.logo__sign--xl { padding: 12px 28px 14px; border-radius: 20px 20px 10px 10px; }
.logo__sign--xl .logo__the { font-size: 14px; }
.logo__sign--xl .logo__main { font-size: clamp(30px, 5vw, 44px); }
.logo__sign--xl::after { bottom: -12px; height: 9px; }

/* ---------- topbar (fila de estado + fila de menú) ---------- */
.app[data-screen="game"] { padding-top: calc(var(--topbar-h) + 8px); }
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  display: grid; grid-template-rows: 62px 1fr;
  background: linear-gradient(180deg, #1D2331 0%, #171C28 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 8px 24px rgba(0, 0, 0, .3);
}
.topbar__row { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.checker-strip {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; height: 8px; z-index: 49;
  background: repeating-conic-gradient(var(--checker-dark) 0 25%, var(--taxi) 0 50%) 0 0 / 16px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.nav {
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 16px; min-width: 0;
  background: rgba(0, 0, 0, .22); border-top: 1px solid rgba(255, 255, 255, .05);
}
.nav__item {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border-radius: 11px; border: 0; background: none; color: var(--text-dim); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: color .2s, background-color .2s, box-shadow .2s, transform .15s;
}
.nav__item .i { width: 18px; height: 18px; transition: transform .25s var(--ease-spring); }
.nav__item:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav__item:hover .i { transform: translateY(-1px) scale(1.1) rotate(-4deg); }
.nav__item:active { transform: translateY(1px); }
.nav__item.is-active { color: var(--text-on-taxi); background: linear-gradient(180deg, #FFD54F, var(--taxi)); box-shadow: 0 3px 0 #A87C00, 0 6px 16px rgba(255, 198, 41, .22); }
.nav__item.is-active:hover { background: linear-gradient(180deg, #FFDB66, var(--taxi)); }
.nav__badge {
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: -2px; border-radius: 99px; background: var(--danger); color: #fff;
  font-style: normal; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; animation: pop-in .35s var(--ease-spring);
}
.nav__item.is-active .nav__badge { box-shadow: 0 0 0 2px var(--taxi); }
.tabbar__item { position: relative; }
.nav__badge--dot { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 0; width: 9px; height: 9px; padding: 0; font-size: 0; }
.nav__caret { width: 14px !important; height: 14px !important; opacity: .7; transition: transform .2s !important; }
.nav__dd { position: relative; }
.nav__dd.is-open .nav__caret, .nav__dd:hover .nav__caret { transform: rotate(180deg) !important; }

.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 270px; padding: 8px;
  background: var(--asphalt-800); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .18s, transform .22s var(--ease-out), visibility 0s .2s;
}
.dd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav__dd.is-open .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .nav__dd:hover .dd-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.dd-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; transition: background-color .15s; }
.dd-item .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 198, 41, .12); color: var(--taxi); }
.dd-item strong { display: block; font-size: 14px; }
.dd-item small { color: var(--text-dim); font-size: 12.5px; }
.dd-item:hover { background: rgba(255, 255, 255, .06); }

.hud { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.hud__btns { display: flex; align-items: center; gap: 6px; }

.shift-clock {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px 0 6px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
}
.shift-clock__day {
  position: relative; width: 110px; height: 8px; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 182, 72, .22) 0 50%, rgba(155, 123, 255, .25) 50% 100%);
}
.shift-clock__day::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--asphalt-900); }
.shift-clock__day span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--warn) 0 50%, var(--violet) 50%); background-size: 110px 100%; border-radius: inherit; transition: width .5s; }
.shift-clock__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 198, 41, .14); color: var(--taxi); }
.shift-clock__text { display: flex; flex-direction: column; line-height: 1.1; }
.shift-clock__text strong { font-family: var(--font-display); font-size: 16px; font-weight: 400; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.shift-clock__text small, .shift-clock__reset small { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
.shift-clock__reset { display: flex; flex-direction: column; line-height: 1.1; padding-left: 10px; border-left: 1px solid var(--line); }
.shift-clock__reset strong { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-dim); }

.balances { display: flex; gap: 8px; }
.bal {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 5px; border-radius: 999px;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s;
}
.bal:hover { border-color: var(--line-strong); background: rgba(0, 0, 0, .45); }
.bal--pill { padding: 0 12px 0 8px; gap: 6px; color: var(--text); }
.bal--pill .pill-ic { width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.bal--pill .bal__val { min-width: 0; }
.pill-ic { width: 20px; height: 20px; flex: none; }
.pill-ic--btn { width: 18px; height: 18px; }
.pill-ic--title { width: 24px; height: 24px; }
.money--pill { color: #FFB4B6; }
.money--pill .pill-ic { width: 1.25em; height: 1.25em; }
.bal__sym { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; font-family: var(--font-display); font-size: 15px; color: #fff; }
.bal--usdt .bal__sym { background: radial-gradient(circle at 35% 30%, #4FD1A9, var(--usdt) 70%); box-shadow: 0 0 0 2px rgba(38, 161, 123, .3); }
.bal--cash .bal__sym { background: radial-gradient(circle at 35% 30%, #FFC689, var(--cash) 70%); color: #3A1F00; box-shadow: 0 0 0 2px rgba(255, 159, 67, .3); }
.bal__val { font-weight: 700; font-size: 15px; min-width: 52px; }
.bal__unit { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.bal__plus { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text-dim); transition: background-color .2s, color .2s, transform .25s var(--ease-spring); }
.bal__plus .i { width: 14px; height: 14px; }
.bal:hover .bal__plus { background: var(--taxi); color: var(--text-on-taxi); transform: rotate(90deg); }
.bal.is-bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 30% { transform: scale(1.12); } 100% { transform: none; } }

.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, .05); color: var(--text-dim); transition: background-color .2s, color .2s, transform .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--hud { width: 42px; height: 42px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.icon-btn--xs { width: 26px; height: 26px; border-radius: 8px; }
.icon-btn--xs .i { width: 14px; height: 14px; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #171C28;
  animation: pop-in .35s var(--ease-spring);
}
@keyframes pop-in { from { transform: scale(0); } }

.user-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .3); color: var(--text-dim); transition: border-color .2s;
}
.user-btn:hover { border-color: var(--line-strong); color: var(--text); }
.user-btn__name { font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.user-btn .i { width: 15px; height: 15px; }
.user-btn__av { position: relative; display: inline-flex; }
.guild-pin {
  position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--violet); color: #fff; box-shadow: 0 0 0 2px #171C28;
}
.guild-pin .i { width: 11px; height: 11px; }

.avatar {
  display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--av) 60%, #fff), var(--av) 70%);
  color: rgba(0, 0, 0, .72); font-weight: 800; font-size: calc(var(--s) * .44); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}

/* popovers */
.pop { position: relative; }
.pop__panel {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; background: var(--asphalt-800); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s, transform .22s var(--ease-out), visibility 0s .2s;
}
.pop.is-open .pop__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pop__panel--notif { width: min(380px, calc(100vw - 24px)); }
.pop__panel--user { width: 270px; padding: 8px; }
.pop__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.pop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-size: 14px; color: var(--text); text-align: left; }
.pop__item:hover { background: rgba(255, 255, 255, .06); }
.pop__item .i { color: var(--text-dim); }
.pop__item--danger, .pop__item--danger .i { color: var(--danger); }
.pop__toggle { justify-content: flex-start; cursor: pointer; }
.pop__toggle .switch { margin-left: auto; }
.pop__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.user-card { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; }
.user-card small { display: block; color: var(--text-dim); font-size: 12.5px; }
.notif-list { max-height: min(460px, 70vh); overflow: auto; padding: 6px; }
.notif { display: flex; gap: 12px; padding: 12px 10px; border-radius: 12px; }
.notif.is-unread { background: rgba(255, 198, 41, .06); }
.notif p { color: var(--text-dim); font-size: 13.5px; margin: 2px 0 4px; }
.notif small { color: var(--text-mute); font-size: 12px; }
.notif__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--taxi); }
.notif__ic--wallet { color: var(--usdt-bright); }
.notif__ic--contract { color: var(--violet); }
.notif__ic--referral { color: var(--r-mythic); }

.link-btn { border: 0; background: none; padding: 0; color: var(--taxi); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* tabbar móvil */
.tabbar { display: none; }

/* demo */
.demo-fab {
  position: fixed; right: 88px; bottom: 28px; z-index: 45; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px dashed rgba(255, 198, 41, .5); background: rgba(18, 22, 32, .85); color: var(--taxi);
  font-weight: 800; font-size: 11px; letter-spacing: .12em; backdrop-filter: blur(6px);
}
.demo-fab .i { width: 15px; height: 15px; }
.demo-fab em { font-style: normal; background: var(--taxi); color: var(--text-on-taxi); border-radius: 99px; padding: 1px 6px; }
.demo-fab em:empty { display: none; }
.demo-sec { margin-top: 18px; }
.demo-sec h4 { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.demo-sec h4 small { color: var(--text-mute); font-weight: 400; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* ---------- Telegram ---------- */
.tg-ic { width: 22px; height: 22px; flex: none; }
.tg-ic--lg { width: 40px; height: 40px; }
.pop__label { margin: 4px 12px 2px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.pop__item--tg span { flex: 1; display: grid; line-height: 1.2; }
.pop__item--tg small { color: var(--text-mute); font-size: 11.5px; }
.pop__ext { width: 14px !important; height: 14px !important; opacity: .6; }
.more-label { margin: 6px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.tg-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.tg-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 7px; border-radius: 99px; background: rgba(42, 171, 238, .12); border: 1px solid rgba(42, 171, 238, .35); color: #9AD8F7; font-weight: 700; font-size: 13.5px; transition: background-color .2s; }
.tg-chip:hover { background: rgba(42, 171, 238, .22); }
.tg-row--auth { padding-bottom: 0; }
.tg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tg-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(90deg, rgba(42, 171, 238, .12), transparent 70%), var(--asphalt-850); border: 1px solid rgba(42, 171, 238, .3); transition: transform .2s var(--ease-out), border-color .2s; }
.tg-card:hover { transform: translateY(-2px); border-color: rgba(42, 171, 238, .6); }
.tg-card > span { flex: 1; display: grid; gap: 1px; }
.tg-card small { color: var(--text-dim); font-size: 13px; }
.tg-card em { font-style: normal; color: #9AD8F7; font-size: 12.5px; font-weight: 700; }
.tg-card > .i { color: var(--text-mute); width: 16px; height: 16px; }
.chat__fine a { color: #9AD8F7; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) { .tg-cards { grid-template-columns: 1fr; } }

/* ---------- chat ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 46; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: linear-gradient(180deg, #FFD54F, var(--taxi)); color: var(--text-on-taxi); box-shadow: 0 4px 0 #A87C00, 0 12px 28px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease-spring);
}
.chat-fab .i { width: 26px; height: 26px; }
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-fab.is-on { transform: scale(.94); }
.chat-fab .badge { top: -2px; right: -2px; }
.chat {
  position: fixed; right: 18px; bottom: 90px; z-index: 47; width: min(390px, calc(100vw - 36px)); height: min(620px, calc(100dvh - var(--topbar-h) - 120px));
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--asphalt-900); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3); animation: chat-in .32s var(--ease-spring);
}
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.chat__head { display: flex; align-items: center; gap: 6px; padding: 14px 14px 10px 18px; background: linear-gradient(180deg, #1D2331, var(--asphalt-900)); }
.chat__title { flex: 1; display: grid; }
.chat__title b { font-family: var(--font-display); font-weight: 400; font-size: 16px; }
.chat__title small { display: flex; align-items: center; gap: 6px; color: var(--text-mute); font-size: 12px; }
.chat__title .city__dot { width: 7px; height: 7px; }
.chat__help { margin: 0 14px 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--text-dim); }
.chat__help ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.chat__help li { display: flex; align-items: center; gap: 10px; }
.chat__tabs { display: flex; gap: 4px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); }
.chat__tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--text-dim); font-weight: 600; font-size: 13px; }
.chat__tab .i { width: 15px; height: 15px; }
.chat__tab.is-on { background: var(--asphalt-700); color: var(--text); }
.chat__list { flex: 1; overflow-y: auto; padding: 6px 14px 14px; overscroll-behavior: contain; }
.chat__new { position: absolute; left: 50%; bottom: 112px; translate: -50% 0; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 99px; border: 0; background: var(--info); color: #fff; font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow-2); }
.chat__new .i { width: 14px; height: 14px; }
.chat__form { display: flex; gap: 8px; padding: 10px 14px 6px; border-top: 1px solid var(--line); }
.chat__form .input { height: 42px; }
.chat__form .btn { height: 42px; width: 46px; padding: 0; flex: none; }
.chat__fine { padding: 0 14px 10px; font-size: 11px; color: var(--text-mute); text-align: center; }
.cmsg { display: flex; gap: 10px; margin-top: 12px; }
.cmsg.is-grouped { margin-top: 3px; padding-left: 42px; }
.cmsg__av { padding: 0; border: 0; background: none; border-radius: 50%; align-self: flex-start; }
.cmsg__body { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.cmsg__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmsg__head time { color: var(--text-mute); font-size: 11px; }
.cmsg__name { padding: 0; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--text); }
.cmsg__name:hover { text-decoration: underline; }
.cmsg__text { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: rgba(255, 255, 255, .06); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.chat__mention { color: var(--info); font-weight: 700; }
/* herramientas del moderador: flotan sobre el mensaje al pasar el mouse (en el celular van debajo, siempre visibles) */
.cmsg { position: relative; }
.cmsg__mod {
  position: absolute; z-index: 2; top: -8px; right: 0; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding: 3px; border-radius: 14px;
  background: var(--asphalt-850); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.cmsg:hover .cmsg__mod, .cmsg__mod:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) {
  .cmsg__mod { position: static; flex-wrap: wrap; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; pointer-events: auto; }
}
.cmsg__mod button {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line-strong); white-space: nowrap;
  background: rgba(255, 255, 255, .04); color: var(--text-dim); font: 600 11.5px var(--font-ui); cursor: pointer;
}
.cmsg__mod button .i { width: 12px; height: 12px; }
.cmsg__mod button:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.cmsg__mod [data-mod="delete"]:hover, .cmsg__mod [data-mod="forever"]:hover { color: #FF9A9D; border-color: rgba(255, 90, 95, .5); }
.cmsg__mod button:disabled { opacity: .5; cursor: wait; }
.cmsg.is-mine { flex-direction: row-reverse; }
.cmsg.is-mine.is-grouped { padding-left: 0; }
.cmsg.is-mine .cmsg__body { justify-items: end; }
.cmsg.is-mine .cmsg__text { background: var(--taxi); color: var(--text-on-taxi); border-radius: 14px 4px 14px 14px; }
.cmsg.is-mine .chat__mention { color: #3A2C00; }
/* distintivos por nivel */
.tier { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px 0 5px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tier .i { width: 11px; height: 11px; }
.tier--taxista-pro { background: rgba(227, 160, 106, .16); color: #E9AE7E; box-shadow: inset 0 0 0 1px rgba(227, 160, 106, .4); }
.tier--empresario { background: rgba(201, 211, 224, .14); color: #E3E9F2; box-shadow: inset 0 0 0 1px rgba(201, 211, 224, .45); }
.tier--magnate { background: linear-gradient(90deg, #FFD95A, var(--taxi)); color: #3A2C00; box-shadow: 0 0 10px rgba(255, 198, 41, .45); }
.tier--none { background: rgba(255, 255, 255, .06); color: var(--text-mute); padding: 0 7px; }
.cmsg.tier-taxista-pro .avatar { box-shadow: 0 0 0 2px #E3A06A; }
.cmsg.tier-taxista-pro .cmsg__name { color: #E9AE7E; }
.cmsg.tier-empresario .avatar { box-shadow: 0 0 0 2px #E3E9F2, 0 0 8px rgba(227, 233, 242, .35); }
.cmsg.tier-empresario .cmsg__name { color: #E3E9F2; }
.cmsg.tier-magnate .avatar { box-shadow: 0 0 0 2px var(--taxi), 0 0 12px rgba(255, 198, 41, .6); }
.cmsg.tier-magnate .cmsg__name { color: var(--taxi); text-shadow: 0 0 10px rgba(255, 198, 41, .45); }

/* ---------- vista ---------- */
.view { outline: none; }
.view:not(.view--city) { max-width: 1240px; margin: 0 auto; padding: 32px 24px 96px; }

/* ---------- botones ---------- */
.btn {
  --bg: rgba(255, 255, 255, .06); --fg: var(--text); --bd: var(--line-strong); --sh: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font-weight: 700; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 3px 0 var(--sh); transition: transform .12s, box-shadow .12s, background-color .2s, filter .2s, opacity .2s;
  user-select: none;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--sh); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { --bg: linear-gradient(180deg, #FFD54F, var(--taxi)); --fg: var(--text-on-taxi); --bd: #E8AE00; --sh: #A87C00; }
.btn--primary { background: var(--bg); }
.btn--ghost:hover:not(:disabled) { --bg: rgba(255, 255, 255, .1); }
.btn--light { --bg: rgba(255, 255, 255, .16); --bd: rgba(255, 255, 255, .2); }
.btn--danger { --bg: var(--danger); --fg: #fff; --bd: #E04449; --sh: #A92D31; }
.btn--danger-ghost { --bg: rgba(255, 90, 95, .08); --fg: #FF8C8F; --bd: rgba(255, 90, 95, .3); }
.btn--sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn--sm .i { width: 16px; height: 16px; }
.btn--xs { height: 30px; width: 30px; padding: 0; border-radius: 9px; }
.btn--xs .i { width: 14px; height: 14px; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor;
  border-color: var(--fg) transparent var(--fg) transparent; animation: spin .7s linear infinite;
}
.btn.is-loading > * { visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--asphalt-600); border-top-color: var(--taxi); animation: spin .8s linear infinite; }
.loading-block { display: grid; place-items: center; padding: 60px 0; }

/* ---------- formularios ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field > span em { font-style: normal; color: var(--text-mute); font-weight: 400; }
.field input, .input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .28);
  color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder, .input::placeholder { color: var(--text-mute); }
.field input:focus, .input:focus { border-color: var(--taxi); box-shadow: 0 0 0 3px rgba(255, 198, 41, .18); background: rgba(0, 0, 0, .4); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 90, 95, .15); }
.field__hint { font-size: 12.5px; color: var(--text-mute); }
.form__error { padding: 10px 12px; border-radius: 10px; background: rgba(255, 90, 95, .1); color: #FF9A9D; font-size: 13.5px; }
.form__line { display: block; line-height: 1.5; }
.form__line + .form__line { margin-top: 4px; }
.form__error b { color: #FFD1D2; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px !important; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { padding-right: 110px; }
.input-wrap__unit { position: absolute; right: 56px; font-size: 13px; color: var(--text-mute); font-weight: 600; pointer-events: none; }
.input-wrap .link-btn { position: absolute; right: 14px; }
.input-wrap--xl input { height: 64px; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; padding-right: 96px; }
.input-wrap--xl .input-wrap__unit { right: 16px; }

.switch {
  appearance: none; position: relative; flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--asphalt-600); cursor: pointer;
  transition: background-color .2s; margin: 0;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .25s var(--ease-spring); }
.switch:checked { background: var(--usdt); }
.switch:checked::after { transform: translateX(16px); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--taxi), var(--usdt)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--taxi-deep); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transition: transform .15s; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--taxi), var(--usdt)); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--taxi-deep); }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.seg--full { display: flex; width: 100%; }
.seg--full .seg__btn { flex: 1; }
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 0;
  background: none; color: var(--text-dim); font-weight: 600; font-size: 14px; transition: background-color .2s, color .2s;
}
.seg__btn small { color: var(--text-mute); font-weight: 500; font-size: 12px; }
.seg__btn:hover:not(:disabled) { color: var(--text); }
.seg__btn.is-on { background: var(--asphalt-600); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.seg__btn.is-on small { color: var(--text-dim); }
.seg__btn:disabled { opacity: .35; cursor: not-allowed; }
.seg--sm .seg__btn { height: 32px; font-size: 13px; padding: 0 12px; }

.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; height: 40px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; }
.select select option { background: var(--asphalt-800); }
.select .i { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--text-dim); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-dim); cursor: pointer; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips--bar { margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04); color: var(--text-dim); font-weight: 600; font-size: 13px; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip.is-on { background: var(--taxi); color: var(--text-on-taxi); border-color: var(--taxi); }
.chip .i { width: 14px; height: 14px; }

/* ---------- piezas comunes ---------- */
.money { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money__sym { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; font-family: var(--font-display); font-size: .82em; font-weight: 400; }
.money--usdt { color: var(--usdt-bright); }
.money--usdt .money__sym { background: var(--usdt); color: #fff; }
.money--cash { color: var(--cash-bright); }
.money--cash .money__sym { background: var(--cash); color: #3A1F00; }
.money--lg { font-size: 20px; }
.money--xl { font-size: 30px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .07); color: var(--text-dim); white-space: nowrap;
}
.tag .i { width: 13px; height: 13px; }
.tag--ok { background: rgba(61, 219, 168, .12); color: var(--ok); }
.tag--guild { background: rgba(155, 123, 255, .16); color: #C6B5FF; }
.tag--danger { background: rgba(255, 90, 95, .12); color: #FF8C8F; }
.tag--warn { background: rgba(255, 182, 72, .12); color: var(--warn); }
.rarity {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
}
.plate {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; background: #F4F4EF; color: #1B1F2A; font-family: ui-monospace, Menlo, monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; box-shadow: inset 0 0 0 1.5px #1B1F2A, inset 0 3px 0 #2F6BD8;
  padding-top: 3px;
}
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; color: var(--warn); animation: pulse 1.4s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.status .i { width: 16px; height: 16px; }
.status--ready { color: var(--ok); }
.status--trip, .status--rented-trip { color: var(--taxi); }
.status--done, .status--waiting { color: var(--text-mute); }
.status--rented { color: var(--violet); }

.shift-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 8px; border-radius: 9px; font-size: 13px; font-weight: 700;
  background: rgba(255, 182, 72, .1); color: #FFD08A; white-space: nowrap; width: fit-content;
}
.shift-chip small { font-weight: 500; opacity: .75; margin-left: 2px; }
.shift-chip .i { width: 16px; height: 16px; }
.shift-chip--PM { background: rgba(155, 123, 255, .12); color: #C6B5FF; }

.quota { display: inline-flex; align-items: center; gap: 8px; }
.quota__pips { display: inline-flex; gap: 3px; }
.quota__pips i { width: 7px; height: 12px; border-radius: 2px; background: var(--ok); box-shadow: 0 0 6px rgba(61, 219, 168, .4); }
.quota__pips i.is-used { background: var(--asphalt-600); box-shadow: none; }
.quota__pips i.is-guild { background: var(--violet); box-shadow: 0 0 6px rgba(155, 123, 255, .5); }
.quota__pips i.is-guild.is-used { background: var(--asphalt-600); box-shadow: none; }
.quota__pips i.is-bonus { background: var(--taxi); box-shadow: 0 0 6px rgba(255, 198, 41, .55); }
.quota__bonus { font-style: normal; font-weight: 800; color: var(--taxi); }
.quota__txt { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.quota__txt b { color: var(--text); }

.trip-prog { display: flex; align-items: center; gap: 10px; }
.trip-prog__bar { position: relative; flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.trip-prog__bar span {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width .5s linear;
  background: repeating-linear-gradient(-45deg, var(--taxi) 0 8px, #FFD95A 8px 16px); background-size: 22px 100%; animation: stripes 1s linear infinite;
}
@keyframes stripes { to { background-position: 22px 0; } }
.trip-prog__time { font-family: var(--font-display); font-size: 14px; color: var(--taxi); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

.earn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.earn .i { width: 15px; height: 15px; color: var(--usdt-bright); }
.earn b { color: var(--usdt-bright); }

.panel { background: var(--asphalt-850); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel--pad { padding: 22px; }
.panel h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 12px; }
.panel h3 .i { color: var(--taxi); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--text-dim); font-size: 14px; }
.note .i { color: var(--info); margin-top: 1px; }
.note--warn { background: rgba(255, 182, 72, .08); color: #FFD9A0; }
.note--warn .i { color: var(--warn); }
.note--gift { background: rgba(255, 198, 41, .08); border: 1px solid rgba(255, 198, 41, .25); color: var(--text-dim); }
.note--gift .i { color: var(--taxi); }
.note b { color: var(--text); }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty > .i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(255, 198, 41, .1); color: var(--taxi); }
.empty h3 { font-size: 17px; }
.empty p { color: var(--text-dim); max-width: 420px; }
.empty .btn { margin-top: 6px; }
.empty--sm { padding: 28px 16px; border: 0; }

.vhead { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.vhead__txt { flex: 1; min-width: 260px; }
.vhead h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 8px; letter-spacing: .01em; }
.vhead__lead { color: var(--text-dim); max-width: 640px; font-size: 15.5px; }
.vhead__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.section-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 36px 0 14px; }
.section-title .i { color: var(--taxi); }
.section-title small { color: var(--text-mute); font-size: 13px; font-weight: 500; }

.tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; color: var(--text-dim); font-weight: 600; white-space: nowrap;
  transition: color .2s;
}
.tabs__item:hover { color: var(--text); }
.tabs__item.is-on { color: var(--taxi); }
.tabs__item.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--taxi); }
.tabs__badge { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--taxi); color: var(--text-on-taxi); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis--sm { grid-template-columns: repeat(2, minmax(0, 160px)); }
.kpi { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--asphalt-850); border: 1px solid var(--line); }
.kpi > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 198, 41, .1); color: var(--taxi); font-family: var(--font-display); }
.kpi b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi small { color: var(--text-dim); font-size: 12.5px; }
.kpi--usdt > span { background: rgba(38, 161, 123, .16); color: var(--usdt-bright); }
.kpi--gold > span { background: rgba(255, 198, 41, .16); color: var(--taxi); }
.kpi--cash > span { background: rgba(255, 159, 67, .16); color: var(--cash-bright); }
.kpi .money { font-size: 18px; }

.hint-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-top: 28px; border-radius: 18px; background: linear-gradient(90deg, rgba(155, 123, 255, .1), rgba(77, 163, 255, .06)); border: 1px solid rgba(155, 123, 255, .2); }
.hint-card > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(155, 123, 255, .16); color: #C6B5FF; }
.hint-card div { flex: 1; }
.hint-card p { color: var(--text-dim); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-grid--2 { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.stat small { display: block; color: var(--text-mute); font-size: 11.5px; margin-bottom: 3px; }
.stat b { font-variant-numeric: tabular-nums; font-size: 14.5px; white-space: nowrap; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 92px; z-index: 300; display: grid; gap: 10px; width: min(380px, calc(100vw - 24px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 12px 13px 14px; border-radius: 16px; background: rgba(29, 35, 48, .96);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); backdrop-filter: blur(8px); animation: toast-in .4s var(--ease-spring);
}
.toast.is-leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.toast__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: rgba(77, 163, 255, .15); color: var(--info); }
.toast--success .toast__icon { background: rgba(61, 219, 168, .15); color: var(--ok); }
.toast--error .toast__icon { background: rgba(255, 90, 95, .15); color: var(--danger); }
.toast--coin .toast__icon { background: rgba(38, 161, 123, .2); color: var(--usdt-bright); }
.toast--contract .toast__icon { background: rgba(155, 123, 255, .16); color: #C6B5FF; }
.toast__body { flex: 1; display: grid; gap: 2px; font-size: 14px; color: var(--text-dim); padding-top: 1px; }
.toast__body strong { color: var(--text); font-size: 14.5px; }
.toast__body b { color: var(--usdt-bright); }
.toast__x { border: 0; background: none; color: var(--text-mute); padding: 4px; border-radius: 8px; }
/* aviso en vivo (alquileres): compacto, con barra de tiempo de 3 s */
.toast--live { position: relative; overflow: hidden; align-items: center; padding: 10px 14px 12px 10px; cursor: pointer; border-color: rgba(155, 123, 255, .35); }
.toast--live.is-mine { border-color: rgba(255, 198, 41, .6); background: linear-gradient(90deg, rgba(255, 198, 41, .14), transparent 70%), rgba(29, 35, 48, .97); }
.toast--live .toast__body { gap: 1px; }
.toast--live .toast__body b { color: var(--text); }
.toast--live .toast__body small { color: var(--text-mute); font-size: 12px; }
.live__art { flex: none; width: 74px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); }
.live__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C6B5FF; }
.live__badge i { width: 7px; height: 7px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 3px rgba(255, 90, 95, .25); animation: pulse 1s ease-in-out infinite; }
.toast--live.is-mine .live__badge { color: var(--taxi); }
.live__timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #9B7BFF; transform-origin: left; animation: live-timer linear forwards; }
.toast--live.is-mine .live__timer { background: var(--taxi); }
@keyframes live-timer { to { transform: scaleX(0); } }
.toast__x:hover { color: var(--text); }
.toast__x .i { width: 15px; height: 15px; }

/* ---------- modales ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 12, .66); backdrop-filter: blur(5px); opacity: 0; transition: opacity .22s; }
.modal {
  position: relative; width: 100%; max-height: calc(100dvh - 40px); overflow: auto; background: var(--asphalt-800); border: 1px solid var(--line-strong);
  border-radius: 22px; box-shadow: var(--shadow-3); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .22s, transform .32s var(--ease-spring);
}
.modal--sm { max-width: 440px; }
.modal--md { max-width: 560px; }
.modal--lg { max-width: 760px; }
.modal-wrap.is-open .modal-backdrop { opacity: 1; }
.modal-wrap.is-open .modal { opacity: 1; transform: none; }
.modal-wrap.is-leaving .modal-backdrop { opacity: 0; }
.modal-wrap.is-leaving .modal { opacity: 0; transform: translateY(8px) scale(.98); transition-duration: .18s; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 20px 0 24px; }
.modal__head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.modal__head h2 .i { color: var(--taxi); width: 21px; height: 21px; }
.modal__body { padding: 16px 24px 8px; }
.modal__text { color: var(--text-dim); font-size: 15px; }
.modal__text b { color: var(--text); }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px 22px; flex-wrap: wrap; }

/* hero (bienvenida, auto nuevo) */
.modal-wrap--hero .modal { overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #2B3348 0%, var(--asphalt-800) 60%); }
.modal-wrap--hero .modal__body { padding-top: 0; }
.onb { text-align: center; }
.onb__stage { position: relative; height: 200px; margin: 0 -24px 6px; display: grid; place-items: end center; overflow: hidden; }
.onb__rays {
  position: absolute; left: 50%; top: 60%; width: 700px; height: 700px; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 198, 41, .14) 0 10deg, transparent 10deg 20deg);
  mask: radial-gradient(circle, #000 0%, transparent 60%); animation: spin 40s linear infinite;
}
.onb__car { position: relative; width: 300px; margin-bottom: 14px; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)); animation: car-in .9s var(--ease-spring); }
@keyframes car-in { from { transform: translateX(-140px) scale(.85); opacity: 0; } }
.onb__title { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 4px 0 16px; }
.onb__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.onb__steps li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); color: var(--text-dim); font-size: 14px; }
.onb__steps .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 198, 41, .12); color: var(--taxi); }
.onb__steps b { color: var(--text); }
/* consejo "¿Cómo ganar USDT?" */
.earntip { text-align: center; }
.earntip__coin {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 6px 0 4px; border-radius: 50%;
  font: 400 34px/1 var(--font-display); color: #fff; background: radial-gradient(circle at 35% 30%, #6FF5CB, var(--usdt) 55%, #0F6B4F);
  box-shadow: 0 0 0 3px rgba(61, 219, 168, .25), 0 0 28px rgba(61, 219, 168, .45); animation: car-in .7s var(--ease-spring);
}
.earntip__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 8px 0 16px; }
.earntip__lang { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--text-dim); font-size: 13.5px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; top: -10px; left: calc(var(--i) * 4.2%); width: 8px; height: 13px; border-radius: 2px;
  background: hsl(calc(var(--i) * 47) 90% 62%); animation: confetti 2.4s calc(var(--i) * -0.11s) ease-in infinite;
}
@keyframes confetti { to { transform: translateY(240px) rotate(720deg); opacity: .2; } }

.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 12px; }
.more-grid__item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .22); font-weight: 600; }
.more-grid__badge { position: absolute; top: 12px; right: 12px; margin: 0; }
.more-grid__item .i { color: var(--taxi); width: 22px; height: 22px; }

/* ---------- drawer ---------- */
.drawer-wrap { position: fixed; inset: 0; z-index: 150; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 12, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(470px, 100vw); display: flex; flex-direction: column; background: var(--asphalt-900);
  border-left: 1px solid var(--line-strong); box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform .38s var(--ease-out);
}
.drawer-wrap.is-open .drawer-backdrop { opacity: 1; }
.drawer-wrap.is-open .drawer { transform: none; }
.drawer-wrap.is-leaving .drawer { transform: translateX(100%); transition-duration: .25s; }
.drawer-wrap.is-leaving .drawer-backdrop { opacity: 0; }
.drawer__head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 20px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.drawer__head p { color: var(--text-dim); font-size: 13.5px; margin-top: 4px; }
.drawer__body { flex: 1; overflow: auto; padding: 20px 24px 32px; }

/* ---------- moneda voladora ---------- */
.coin-fly {
  position: fixed; z-index: 400; pointer-events: none; font-family: var(--font-display); font-size: 20px; white-space: nowrap;
  color: var(--usdt-bright); text-shadow: 0 2px 0 #0B3D2E, 0 0 18px rgba(61, 219, 168, .7);
}
.coin-fly--efectivo { color: var(--cash-bright); text-shadow: 0 2px 0 #5A3000, 0 0 18px rgba(255, 159, 67, .6); }

/* ---------- auth ---------- */
.auth { position: relative; min-height: 100dvh; overflow: hidden; display: grid; }
.auth__scene { position: absolute; inset: 0; }
.auth__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 14, 20, .92) 0%, rgba(11, 14, 20, .72) 38%, rgba(11, 14, 20, .1) 70%); pointer-events: none; }
.auth__panel { position: relative; z-index: 2; width: min(480px, 100%); padding: 48px 32px; display: grid; gap: 26px; align-content: center; pointer-events: none; }
.auth__panel > * { pointer-events: auto; }
.auth__brand { display: grid; gap: 24px; justify-items: start; }
.auth__tag { font-size: 17px; color: var(--text-dim); max-width: 380px; }
.auth__tag b { color: var(--usdt-bright); }
.auth__card { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: rgba(23, 28, 40, .9); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3); backdrop-filter: blur(10px); }
.auth__fine { font-size: 12.5px; color: var(--text-mute); text-align: center; }
.auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auth__perks li { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.auth__perks .i { color: var(--taxi); }

/* ---------- responsive del shell ---------- */
@media (max-width: 1280px) {
  .shift-clock__day { display: none; }
  .user-btn__name { display: none; }
}
@media (max-width: 1120px) {
  .shift-clock__reset { display: none; }
  .bal__unit { display: none; }
  .nav__item { padding: 0 11px; font-size: 14px; gap: 7px; }
}
@media (max-width: 980px) {
  .nav__item { padding: 0 9px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: 60px; }
  .topbar { grid-template-rows: 60px; }
  .topbar__row { gap: 10px; padding: 0 12px; }
  .nav, .shift-clock { display: none; }
  .hud { gap: 8px; }
  .logo__main { font-size: 14px; }
  .logo__the { font-size: 8px; }
  .bal { height: 38px; padding-right: 10px; gap: 6px; }
  .bal__sym { width: 27px; height: 27px; font-size: 13px; }
  .bal__val { font-size: 14px; min-width: 0; }
  .bal__plus { display: none; }
  .bal--pill { padding: 0 9px 0 5px; }
  .bal--pill .pill-ic { width: 22px; height: 22px; }
  .user-btn { padding: 0 4px; height: 40px; }
  .user-btn > .i { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(6, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(21, 26, 37, .97); border-top: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  }
  .tabbar__item { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; color: var(--text-mute); font-size: 11px; font-weight: 600; }
  .tabbar__item .i { width: 22px; height: 22px; }
  .tabbar__item.is-active { color: var(--taxi); background: rgba(255, 198, 41, .08); }
  .view:not(.view--city) { padding: 22px 16px 110px; }
  .demo-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 12px; }
  .chat-fab { display: none; }
  .chat { inset: calc(var(--topbar-h) + 8px) 0 calc(64px + env(safe-area-inset-bottom)) 0; width: auto; height: auto; border-radius: 0; border: 0; animation-name: toast-in; }
  .app.chat-open .demo-fab { display: none; }
  .chat__new { bottom: 104px; }
  .tabbar__item { border: 0; background: none; font: inherit; }
  .nav__badge--num { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; font-size: 10px; }
  .app[data-route="city"] .demo-fab { top: calc(var(--topbar-h) + 20px); bottom: auto; }
  .toasts { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .app.chat-open .tabbar__item[data-chat-tab] { color: var(--taxi); background: rgba(255, 198, 41, .08); }
  .modal-wrap--sheet { place-items: end center; padding: 0; }
  .modal-wrap--sheet .modal { border-radius: 22px 22px 0 0; max-width: none; transform: translateY(40px); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth__shade { background: linear-gradient(180deg, rgba(11, 14, 20, .55) 0%, rgba(11, 14, 20, .92) 45%); }
  .auth__panel { padding: 28px 16px; align-content: end; }
}
@media (max-width: 520px) {
  .logo { display: none; }
  .hud { margin-left: 0; width: 100%; justify-content: space-between; }
  .bal__val { font-size: 13.5px; }
  .balances { gap: 5px; }
  .hud { gap: 6px; }
  .topbar__row { padding: 0 8px; }
  .bal { height: 36px; padding-right: 8px; gap: 5px; padding-left: 4px; }
  .bal__sym { width: 24px; height: 24px; font-size: 12px; }
  .bal--pill { padding: 0 8px 0 4px; }
  .bal--pill .pill-ic { width: 20px; height: 20px; }
  .icon-btn--hud { width: 36px; height: 36px; }
  .user-btn { height: 36px; padding: 0 1px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 10px 12px; gap: 10px; border-radius: 14px; }
  .kpi > span { width: 32px; height: 32px; border-radius: 10px; }
  .kpi > span .i { width: 16px; height: 16px; }
  .kpi b { font-size: 17px; }
  .kpi small { font-size: 11.5px; line-height: 1.25; display: block; }
  .modal__foot .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Barra de carga al cambiar de sección */
.route-loader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 3px; pointer-events: none;
  opacity: 0; transition: opacity .2s; overflow: hidden;
}
.route-loader::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--taxi), var(--taxi-soft), transparent);
  animation: route-load 1s var(--ease-out) infinite;
}
.route-loader.is-on { opacity: 1; }
@keyframes route-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .route-loader::before { animation: none; width: 100%; } }
