/* eLIVRAISON — design system */
:root {
  --brand: #FF5B14;
  --brand-600: #E84A06;
  --brand-50: #FFF1EA;
  --ink: #11141B;
  --ink-2: #3A4150;
  --muted: #7A8294;
  --line: #E8EAEF;
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --green: #12B76A;
  --green-50: #E8F8F0;
  --red: #E5484D;
  --red-50: #FDECEC;
  --amber: #F5A524;
  --blue: #2E6BFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(17, 20, 27, .10), 0 2px 6px rgba(17, 20, 27, .06);
  --shadow-lg: 0 24px 60px rgba(17, 20, 27, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }
#app { height: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; cursor: pointer; background: var(--ink); color: #fff; transition: transform .08s, background .2s, opacity .2s; text-align: center; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--brand); box-shadow: 0 6px 18px rgba(255, 91, 20, .32); }
.btn.primary:hover:not(:disabled) { background: var(--brand-600); }
.btn.ghost { background: var(--bg); color: var(--ink); }
.btn.ghost:hover { background: #EBEDF2; }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: var(--red-50); color: var(--red); }
.btn.success { background: var(--green); }
.btn.block { width: 100%; }
.btn.lg { padding: 17px 20px; font-size: 16px; border-radius: 16px; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); flex: none; }
.icon-btn.flat { box-shadow: none; background: var(--bg); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 14px; outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
textarea.input { resize: vertical; min-height: 70px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seg { display: flex; background: var(--bg); padding: 4px; border-radius: 14px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 11px; font-weight: 600; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D5D9E1; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(22px); }

/* ---------- Cards / badges ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); border: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--green-50); color: #067647; }
.badge.red { background: var(--red-50); color: var(--red); }
.badge.orange { background: var(--brand-50); color: var(--brand-600); }
.badge.blue { background: #EAF0FF; color: var(--blue); }
.badge.amber { background: #FFF6E5; color: #B54708; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.avatar { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 17px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.stars { color: var(--amber); letter-spacing: 1px; }

/* ---------- Login ---------- */
.auth { height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); }
.auth-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at -10% 110%, #FF8A4C 0%, transparent 60%), linear-gradient(150deg, #FF5B14 0%, #C83A00 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-hero h1 { font-size: 46px; max-width: 520px; line-height: 1.05; }
.auth-hero .road { position: absolute; right: -80px; bottom: 60px; width: 520px; opacity: .2; }
.auth-hero .feat { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
.auth-hero .feat div { display: flex; align-items: center; gap: 8px; }
.auth-hero .feat svg { width: 22px; height: 22px; flex: none; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 40px; max-width: 470px; width: 100%; margin: 0 auto; gap: 18px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.auth-hero .logo-mark { background: #fff; color: var(--brand); }
.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; transition: .15s; }
.phone-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.phone-input .cc { display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--bg); font-weight: 700; border-right: 1.5px solid var(--line); }
.phone-input input { border: 0; outline: 0; padding: 16px; font-size: 18px; font-weight: 600; letter-spacing: .04em; flex: 1; min-width: 0; }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 100%; aspect-ratio: 1/1.15; text-align: center; font-size: 24px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 14px; outline: 0; max-width: 58px; }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.dev-code { background: #FFF6E5; color: #93370D; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.demo-box { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); }
.demo-box b { cursor: pointer; color: var(--ink); text-decoration: underline dotted; }

/* ---------- Map shell (client / chauffeur) ---------- */
.map-shell { position: relative; height: 100%; width: 100%; overflow: hidden; }
.map { position: absolute; inset: 0; z-index: 0; background: #E9EDF2; }
.topbar { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 500; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.pill { background: var(--surface); border-radius: 14px; padding: 0 14px; height: 44px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); font-weight: 700; }
.sheet { position: absolute; z-index: 600; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); padding: 10px 18px calc(18px + var(--safe-b)); max-height: 64%; display: flex; flex-direction: column; transition: transform .3s ease; }
.sheet .grab { width: 42px; height: 5px; border-radius: 99px; background: #D9DCE3; margin: 0 auto 12px; flex: none; }
.sheet-body { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; padding-bottom: 2px; }
.sheet-foot { padding-top: 14px; flex: none; }
.fab { position: absolute; z-index: 550; right: 14px; }
@media (min-width: 900px) {
  .sheet { left: 18px; top: 76px; bottom: auto; right: auto; width: 420px; border-radius: 24px; max-height: calc(100% - 94px); padding-top: 18px; }
  .sheet .grab { display: none; }
  .topbar { left: 18px; right: 18px; top: 18px; }
  .fab { bottom: 24px !important; }
}

/* address inputs */
.addr { position: relative; display: flex; flex-direction: column; background: var(--bg); border-radius: 16px; }
.addr-line { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; min-height: 54px; }
.addr-line + .addr-line { border-top: 1px solid #E2E5EB; margin-left: 40px; padding-left: 0; }
.addr-line + .addr-line .pin-dot { margin-left: -26px; }
.addr-line .txt { flex: 1; min-width: 0; }
.addr-line .lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.addr-line .val { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-line .val.ph { color: var(--muted); font-weight: 500; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--ink); flex: none; background: #fff; }
.pin-dot.to { border-color: var(--brand); border-radius: 4px; }
.addr::before { content: ''; position: absolute; left: 20px; top: 34px; bottom: 34px; width: 2px; background: repeating-linear-gradient(var(--muted) 0 3px, transparent 3px 6px); }

/* search overlay */
.overlay { position: fixed; inset: 0; z-index: 2000; background: var(--surface); display: flex; flex-direction: column; animation: fadeUp .2s ease; }
.overlay-head { padding: 14px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.overlay-body { overflow-y: auto; flex: 1; }
.result { display: flex; gap: 12px; align-items: center; padding: 14px 18px; cursor: pointer; border-bottom: 1px solid var(--line); }
.result:hover { background: var(--bg); }
.result .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; flex: none; }
.result .ic svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .overlay { inset: 76px auto 18px 18px; width: 420px; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; } }

/* center picker */
.center-pin { position: absolute; left: 50%; top: 50%; z-index: 520; transform: translate(-50%, -100%); pointer-events: none; transition: transform .15s; }
.center-pin.lift { transform: translate(-50%, -118%); }
.center-pin::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 4px; background: rgba(0, 0, 0, .25); border-radius: 50%; transform: translateX(-50%); }
@media (min-width: 900px) { .center-pin { left: calc(50% + 219px); } }

/* vehicle options */
.vopts { display: flex; flex-direction: column; gap: 8px; }
.vopt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 2px solid transparent; background: var(--bg); cursor: pointer; transition: .15s; }
.vopt.on { border-color: var(--ink); background: var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.vopt.off { opacity: .45; cursor: not-allowed; }
.vopt .vimg { width: 58px; height: 44px; display: grid; place-items: center; flex: none; }
.vopt .vimg svg { width: 52px; height: 40px; }
.vopt .price { font-weight: 800; font-size: 16px; white-space: nowrap; text-align: right; }

/* driver card */
.driver-card { display: flex; gap: 14px; align-items: center; }
.plate { white-space: nowrap; background: #FFD84D; color: #111; font-weight: 800; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; border: 1.5px solid #111; display: inline-block; }
.eta-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pin-box { display: flex; gap: 6px; }
.pin-box span { width: 38px; height: 46px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; }

/* steps */
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.steps i.done { background: var(--green); }
.steps i.now { background: var(--line); }
.steps i.now::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--brand); border-radius: 99px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .b { width: 14px; height: 14px; border-radius: 50%; background: var(--line); margin-top: 3px; flex: none; z-index: 1; }
.tl.done .b { background: var(--green); }

/* searching radar */
.radar { position: relative; width: 120px; height: 120px; margin: 6px auto; }
.radar span { position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: .35; animation: ping 2s infinite; }
.radar span:nth-child(2) { animation-delay: .6s; } .radar span:nth-child(3) { animation-delay: 1.2s; }
.radar b { position: absolute; inset: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(255, 91, 20, .4); }
.radar b svg { width: 32px; height: 32px; }
@keyframes ping { 0% { transform: scale(.3); opacity: .5; } 100% { transform: scale(1); opacity: 0; } }

/* rating */
.rate { display: flex; justify-content: center; gap: 8px; }
.rate button { border: 0; background: none; font-size: 38px; cursor: pointer; color: #D9DCE3; transition: transform .1s; padding: 0; }
.rate button.on { color: var(--amber); }
.rate button:active { transform: scale(1.2); }

/* map markers */
.mk-veh { width: 46px; height: 46px; display: grid; place-items: center; transition: transform .9s linear; }
.mk-veh .in { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); border: 3px solid #fff; position: relative; }
.mk-veh .in svg { width: 22px; height: 22px; color: #fff; }
.mk-veh .arrow { position: absolute; inset: -9px; transition: transform .6s; }
.mk-veh .arrow::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 8px solid var(--ink); border-top: 0; }
.mk-veh.me .in { background: var(--blue); }
.mk-veh.me .arrow::before { border-bottom-color: var(--blue); }
.mk-veh.busy .in { background: var(--brand); }
.mk-veh.off .in { background: #98A1B2; }
.mk-pin { position: relative; width: 34px; height: 46px; }
.mk-pin .label { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 9px; white-space: nowrap; box-shadow: var(--shadow); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mk-me { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(46, 107, 255, .2), 0 2px 6px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--font); }
.tiles { filter: saturate(.75) contrast(.97) brightness(1.03); }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .7) !important; }
.leaflet-control-zoom { display: none; }
@media (min-width: 900px) { .leaflet-control-zoom { display: block; border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; } }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(17, 20, 27, .45); z-index: 3000; animation: fade .2s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--surface); z-index: 3001; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; animation: slideIn .25s ease; }
.drawer a, .drawer button.link { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px; color: var(--ink); font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.drawer a:hover, .drawer button.link:hover { background: var(--bg); }
.drawer svg { width: 20px; height: 20px; color: var(--ink-2); }
@keyframes slideIn { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 4000; background: rgba(17, 20, 27, .5); display: grid; place-items: end center; animation: fade .2s; }
.modal { background: var(--surface); width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); max-height: 92vh; overflow-y: auto; animation: fadeUp .25s ease; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 700px) { .modal-bg { place-items: center; } .modal { border-radius: 24px; } }

/* toast */
.toasts { position: fixed; z-index: 5000; top: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: fadeUp .2s; display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

/* page (lists) */
.page { height: 100%; overflow-y: auto; background: var(--bg); }
.page-head { position: sticky; top: 0; z-index: 10; background: rgba(244, 245, 248, .9); backdrop-filter: blur(10px); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.page-inner { max-width: 760px; margin: 0 auto; padding: 6px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.list-item { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 14px; border-radius: 16px; border: 1px solid var(--line); cursor: pointer; }
.list-item:hover { border-color: #D5D9E1; }
.vic { width: 46px; height: 46px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; flex: none; }
.vic svg { width: 34px; height: 26px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; opacity: .4; }

/* offer (driver) */
.offer { position: fixed; inset: 0; z-index: 4500; background: rgba(17, 20, 27, .6); display: grid; place-items: end center; animation: fade .2s; }
.offer-card { width: 100%; max-width: 520px; background: var(--surface); border-radius: 28px 28px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; animation: fadeUp .25s; }
@media (min-width: 700px) { .offer { place-items: center; } .offer-card { border-radius: 28px; } }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 64px; height: 64px; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.online-toggle { height: 52px; border-radius: 99px; padding: 0 22px 0 8px; display: flex; align-items: center; gap: 12px; font-weight: 800; border: 0; cursor: pointer; box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.online-toggle .knob { width: 38px; height: 38px; border-radius: 50%; background: #D5D9E1; display: grid; place-items: center; color: #fff; }
.online-toggle.on { background: var(--green); color: #fff; }
.online-toggle.on .knob { background: rgba(255, 255, 255, .25); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.side { background: var(--ink); color: #C9CED8; padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.side .logo { color: #fff; padding: 4px 10px 20px; }
.side a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; color: #C9CED8; font-weight: 600; font-size: 14.5px; }
.side a svg { width: 19px; height: 19px; opacity: .85; }
.side a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.on { background: var(--brand); color: #fff; }
.side .sep { margin: 14px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6B7385; font-weight: 700; }
.main { overflow-y: auto; height: 100%; }
.main-head { padding: 22px 28px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-body { padding: 12px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.kpi .lbl { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .val { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #FAFBFC; white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFBFC; }
tr.click { cursor: pointer; }
.admin-map { height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--brand), #FF8A4C); border-radius: 8px 8px 4px 4px; min-height: 3px; }
.bars .bar span { font-size: 11px; color: var(--muted); font-weight: 600; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { display: none; }
  .mobile-nav { display: flex; overflow-x: auto; background: var(--ink); padding: 8px 8px calc(8px + var(--safe-b)); gap: 4px; }
  .mobile-nav a { flex: none; color: #C9CED8; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px; }
  .mobile-nav a.on { background: var(--brand); color: #fff; }
  .mobile-nav svg { width: 20px; height: 20px; }
  .main-head, .main-body { padding-left: 16px; padding-right: 16px; }
  .two { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
.install-banner { position: fixed; bottom: 16px; right: 16px; z-index: 4200; background: var(--ink); color: #fff; border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); max-width: 380px; animation: fadeUp .3s; }
.spinner { width: 22px; height: 22px; border: 3px solid rgba(0, 0, 0, .1); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #EEF0F4 25%, #F6F7F9 50%, #EEF0F4 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
.modal > *, .sheet-body > *, .col > * { flex-shrink: 0; }
.fill-card { display: flex; flex-direction: column; }
.fill-card .admin-map { flex: 1; min-height: 360px; }

/* comptes */
.pw { position: relative; }
.pw .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.pw-eye svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; align-self: flex-end; font-size: 13.5px; }
.auth-tabs button { padding: 11px; font-size: 14px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick button { border: 2px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: .15s; }
.role-pick button svg { width: 24px; height: 24px; color: var(--brand); margin-bottom: 4px; }
.role-pick button b { font-size: 14px; }
.role-pick button span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.role-pick button.on { border-color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.vtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.vtype input { position: absolute; opacity: 0; pointer-events: none; }
.vtype span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; font-size: 12.5px; }
.vtype span svg { width: 50px; height: 34px; }
.vtype input:checked + span { border-color: var(--ink); background: var(--bg); }
.status-hero { border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.status-hero.pending { background: #FFF6E5; }
.status-hero.rejected { background: var(--red-50); }
.status-hero .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; }
.status-hero .ic svg { width: 26px; height: 26px; }
.nav-count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 8px; }
.side a.on .nav-count { background: #fff; color: var(--brand); }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.secret { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 800; letter-spacing: .08em; background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; user-select: all; }

.awake-pill { position: absolute; z-index: 520; top: 72px; left: 50%; transform: translateX(-50%); background: rgba(17,20,27,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.awake-pill svg { width: 14px; height: 14px; color: #FFD84D; }
.awake-pill.warn { background: var(--amber); color: #111; }
@media (min-width: 900px) { .awake-pill { top: 80px; } }
.push-banner { position: fixed; z-index: 4100; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--safe-b)); width: min(440px, calc(100% - 24px)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; display: flex; gap: 12px; align-items: center; animation: fadeUp .3s; border: 1px solid var(--line); }
.push-banner .bell { width: 42px; height: 42px; border-radius: 13px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.push-banner .bell svg { width: 22px; height: 22px; }
