/* user.css — user dashboard ({city}.zigou.com.br/users) */

.shell { display: flex; min-height: 100vh; }
.u-side {
  width: 240px; flex: 0 0 240px; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #070d18, var(--xbyte-dark));
  border-right: 1px solid var(--xbyte-border); padding: 1.1rem; display: flex; flex-direction: column;
}
.u-profile { display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: .9rem; background: rgba(255,255,255,.03); border: 1px solid var(--xbyte-border); margin-bottom: 1rem; }
.u-avatar { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--bs-font-display); font-weight: 600; background: var(--xbyte-gradient); color: #fff; }
.u-link { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: .7rem; color: var(--xbyte-muted); font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .14s; }
.u-link:hover { background: rgba(255,255,255,.04); color: var(--xbyte-text); }
.u-link.active { background: rgba(56,189,248,.12); color: #e0f2fe; box-shadow: inset 0 0 0 1px rgba(56,189,248,.28); }
.u-link svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 2; }

.u-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.u-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem; background: rgba(5,7,13,.78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--xbyte-border); }
.u-top h1 { font-size: 1.25rem; margin: 0; }
.u-content { padding: 1.6rem; max-width: 1100px; width: 100%; }

.role-switch { display: flex; gap: .25rem; background: var(--xbyte-surface-2); padding: .25rem; border-radius: .8rem; border: 1px solid var(--xbyte-border); flex-wrap: wrap; }
.role-switch button { border: 0; background: transparent; color: var(--xbyte-muted); padding: .4rem .8rem; border-radius: .6rem; font-weight: 600; font-size: .82rem; cursor: pointer; }
.role-switch button.active { background: rgba(56,189,248,.14); color: #e0f2fe; }

.kpi { padding: 1.2rem 1.3rem; height: 100%; }
.kpi-label { color: var(--xbyte-muted); font-size: .8rem; }
.kpi-value { font-family: var(--bs-font-display); font-size: 1.8rem; font-weight: 600; margin-top: .2rem; }

.field-pin { position: relative; }
.field-pin .dot-marker { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; }
.field-pin .form-control { padding-left: 38px; }
.connector { width: 2px; height: 20px; margin-left: 18px; background: linear-gradient(var(--xbyte-cyan), var(--xbyte-gold)); opacity: .5; }
.fare-box { background: var(--xbyte-surface-2); border: 1px dashed var(--xbyte-border-strong); border-radius: 1rem; padding: 1.1rem 1.25rem; }

.avatar { width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--bs-font-display); font-weight: 600; background: rgba(56,189,248,.12); color: #bae6fd; border: 1px solid rgba(56,189,248,.25); }
.tracker { position: relative; height: 8px; background: var(--xbyte-surface-2); border-radius: 99px; overflow: hidden; }
.tracker-fill { position: absolute; inset: 0 auto 0 0; background: var(--xbyte-gradient); transition: width 1s linear; }

.ride-offer { padding: 1.1rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; }
.toggle-online { display: inline-flex; align-items: center; gap: .6rem; }

.list-row { display: flex; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--xbyte-border); }
.list-row:last-child { border-bottom: 0; }

.step-list { counter-reset: s; }
.step-list li { list-style: none; position: relative; padding: .6rem 0 .6rem 2.4rem; }
.step-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: .55rem; width: 26px; height: 26px; border-radius: 8px; background: rgba(56,189,248,.14); color: #bae6fd; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }

.danger-zone { border: 1px solid rgba(220,38,38,.3); background: rgba(220,38,38,.05); border-radius: 1rem; padding: 1.4rem; }

.u-toggle-btn { display: none; }
@media (max-width: 991px) {
  .u-side { position: fixed; left: 0; top: 0; z-index: 1050; transform: translateX(-100%); transition: transform .25s; }
  .u-side.open { transform: none; }
  .u-toggle-btn { display: inline-flex; }
  .u-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1040; }
}
