/* Movilidad — design system */
:root {
  --brand: #12b76a; --brand-d: #0a8f52; --brand-l: #e7f8ef;
  --ink: #101418; --ink-2: #3b4350; --muted: #6b7380; --line: #e7e9ee; --bg: #ffffff; --bg-2: #f4f5f7; --bg-3: #eceef2;
  --danger: #e5484d; --warn: #f5a524; --info: #2d5bff;
  --r: 14px; --r-lg: 22px; --shadow: 0 8px 30px rgba(16, 20, 24, .14); --shadow-s: 0 2px 10px rgba(16, 20, 24, .12);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: #dfe3e8; overflow: hidden; font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }
a { color: inherit; }
.hidden { display: none !important; }

/* moldura do app (centraliza em desktop, tela cheia no celular) */
.shell { position: relative; width: 100%; max-width: 480px; height: 100%; margin: 0 auto; background: var(--bg); overflow: hidden; box-shadow: 0 0 60px rgba(0,0,0,.15); }
@media (min-width: 520px) { .shell { height: min(100%, 940px); top: 50%; transform: translateY(-50%); border-radius: 28px; } }
.shell.wide { max-width: none; border-radius: 0; height: 100%; top: 0; transform: none; }

#map { position: absolute; inset: 0; z-index: 1; background: #e9edf0; }
.leaflet-control-attribution { font-size: 9px !important; opacity: .7; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 16px; background: var(--ink); color: #fff; width: 100%; transition: transform .08s, opacity .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.brand { background: var(--brand); }
.btn.light { background: var(--bg-2); color: var(--ink); }
.btn.danger { background: var(--danger); }
.btn.outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn.sm { height: 40px; font-size: 14px; padding: 0 14px; width: auto; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; }
.pill svg { width: 14px; height: 14px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: 14px; }
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--ink); color: #fff; }

/* campos */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input { width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid transparent; background: var(--bg-2); padding: 0 14px; font-size: 16px; outline: none; transition: border .15s, background .15s; }
.input:focus { border-color: var(--ink); background: #fff; }
textarea.input { height: 90px; padding: 12px 14px; resize: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { min-width: 0; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.center { text-align: center; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 14px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.divider.thick { height: 8px; background: var(--bg-2); margin: 14px -20px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; }

/* folha inferior (bottom sheet) */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -6px 30px rgba(0,0,0,.12); padding: 10px 20px calc(18px + var(--safe-b)); max-height: 82%; overflow-y: auto; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: #d5d8de; margin: 0 auto 12px; }
.sheet.flat::before { display: none; }

/* tela cheia (painéis) */
.panel { position: absolute; inset: 0; z-index: 40; background: #fff; display: flex; flex-direction: column; animation: slideIn .25s cubic-bezier(.2,.8,.2,1); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; }
.panel-head h2 { font-size: 20px; }
.panel-head .icon-btn { box-shadow: none; background: transparent; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 20px 30px; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* topo flutuante */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; padding: 14px; pointer-events: none; }
.topbar > * { pointer-events: auto; }

/* lista */
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.list-item:last-child { border-bottom: 0; }
.list-item .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.list-item .ic svg { width: 20px; height: 20px; }
.list-item .tx { flex: 1; min-width: 0; }
.list-item .tx b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .tx small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* busca "Para onde?" */
.where { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 16px; border-radius: 14px; background: var(--bg-2); font-size: 18px; font-weight: 600; color: var(--ink); }
.where svg { width: 22px; height: 22px; }
.where .later { margin-left: auto; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 14px; }
.where .later svg { width: 16px; height: 16px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.service { background: var(--bg-2); border-radius: 14px; padding: 10px 6px 8px; text-align: center; font-size: 13px; font-weight: 600; position: relative; }
.service .art { height: 38px; display: grid; place-items: center; margin-bottom: 4px; color: var(--ink); }
.service .art svg { height: 34px; width: 52px; }
.service .badge { position: absolute; top: -6px; right: -4px; background: var(--brand); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 999px; }

.promo-banner { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 16px; background: linear-gradient(120deg, #0f3d2b, #12b76a); color: #fff; }
.promo-banner b { font-size: 17px; display: block; }
.promo-banner small { opacity: .85; }
.promo-banner .big { font-size: 34px; font-weight: 800; margin-left: auto; }

/* tela de busca */
.route-box { display: flex; gap: 12px; padding: 0 16px 12px; }
.route-line { display: flex; flex-direction: column; align-items: center; padding-top: 19px; }
.route-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.route-line i.sq { border-radius: 1px; }
.route-line s { width: 2px; flex: 1; background: var(--ink); margin: 4px 0; min-height: 30px; }
.route-inputs { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.route-inputs .input { height: 44px; font-size: 15px; }
.suggest { flex: 1; overflow-y: auto; padding: 0 20px; border-top: 8px solid var(--bg-2); }

/* opções de corrida */
.ride-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; width: 100%; text-align: left; margin-bottom: 4px; }
.ride-opt.on { border-color: var(--ink); background: #fff; }
.ride-opt .art { width: 64px; height: 42px; flex: none; color: #8a94a3; }
.ride-opt .art svg { width: 64px; height: 42px; }
.ride-opt .art.moto { color: var(--ink); }
.ride-opt .tx { flex: 1; min-width: 0; }
.ride-opt .tx b { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.ride-opt .tx b small { font-weight: 500; font-size: 12px; display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); }
.ride-opt .tx b small svg { width: 12px; height: 12px; }
.ride-opt .tx > small { color: var(--muted); font-size: 13px; }
.ride-opt .price { text-align: right; font-weight: 700; font-size: 16px; }
.ride-opt .price s { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.ride-opt.na { opacity: .45; }
.surge-tag { display: inline-flex; align-items: center; gap: 4px; background: #eef3ff; color: var(--info); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; width: 100%; text-align: left; font-weight: 600; }
.pay-row svg { width: 26px; height: 26px; }

/* busca de motorista */
.finding { text-align: center; padding: 8px 0 4px; }
.finding .bar { height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; margin: 14px 0 18px; }
.finding .bar i { display: block; height: 100%; width: 35%; background: var(--brand); animation: load 1.3s infinite ease-in-out; border-radius: 2px; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.pulse { position: absolute; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: rgba(18,183,106,.25); animation: pulse 2s infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* cartão do motorista */
.trip-status { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.trip-status .eta { color: var(--brand-d); }
.driver-card { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #2f3b4b, #5d6b7f); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; position: relative; }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.avatar .rt { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); font-size: 11px; padding: 1px 6px; border-radius: 999px; box-shadow: var(--shadow-s); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.avatar .rt svg { width: 10px; height: 10px; color: var(--ink); }
.plate { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.plate-box { text-align: right; }
.car-art { width: 84px; height: 48px; color: #8a94a3; }
.car-art svg { width: 84px; height: 48px; }
.pin-box { display: flex; align-items: center; justify-content: space-between; background: var(--brand-l); border-radius: 12px; padding: 10px 14px; margin-top: 14px; }
.pin-box b { font-size: 22px; letter-spacing: .3em; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.action i { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; }
.action i svg { width: 20px; height: 20px; }
.action.sos i { background: #fde8e8; color: var(--danger); }
.stars-inline { display: inline-flex; align-items: center; gap: 3px; }
.stars-inline svg { width: 13px; height: 13px; }

/* avaliação */
.rate-stars { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.rate-stars button { width: 46px; height: 46px; color: #d6d9df; transition: transform .1s; }
.rate-stars button.on { color: #f5b301; }
.rate-stars button:active { transform: scale(1.2); }
.rate-stars svg { width: 100%; height: 100%; }
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tips button { height: 44px; border-radius: 12px; background: var(--bg-2); font-weight: 700; }
.tips button.on { background: var(--ink); color: #fff; }

.receipt-row { display: flex; justify-content: space-between; padding: 6px 0; }
.receipt-row.total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }

/* menu lateral */
.drawer-wrap { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.4); animation: fade .2s; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 250px; max-width: 80%; background: #fff; display: flex; flex-direction: column; animation: drawer .25s cubic-bezier(.2,.8,.2,1); }
.drawer-head { background: var(--ink); color: #fff; padding: 26px 18px 18px; }
.drawer-head h2 { font-size: 17px !important; line-height: 1.25; word-break: break-word; }
.drawer-head .avatar { width: 52px; height: 52px; font-size: 18px; background: var(--brand); }
.drawer nav { padding: 8px 10px; overflow-y: auto; flex: 1; }
.drawer nav button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 10px; border-radius: 12px; font-size: 15px; font-weight: 500; text-align: left; }
.drawer nav button:hover { background: var(--bg-2); }
.drawer nav button svg { width: 22px; height: 22px; }
@keyframes drawer { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); max-height: 90%; overflow-y: auto; animation: up .25s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .modal-wrap { align-items: center; } .modal { border-radius: 22px; } }

/* chat */
.chat { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; background: #fff; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; }
.msg small { display: block; font-size: 10px; opacity: .6; margin-top: 3px; text-align: right; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; }
.quick button { flex: none; background: var(--bg-2); border-radius: 999px; padding: 8px 12px; font-size: 13px; }

/* marcadores */
.car-marker { transition: none; }
.car-rot { width: 40px; height: 40px; transition: transform .6s linear; }
.map-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--info); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(45,91,255,.2), var(--shadow-s); }
.map-dot.pickup { background: var(--ink); box-shadow: 0 0 0 5px rgba(0,0,0,.12), var(--shadow-s); }
.map-square { width: 16px; height: 16px; background: var(--ink); border: 3px solid #fff; box-shadow: var(--shadow-s); }
.map-label { background: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-s); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.map-label.dark { background: var(--ink); color: #fff; }
.center-pin { position: absolute; left: 50%; top: 50%; z-index: 10; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.center-pin .head { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 6px solid #fff; box-shadow: var(--shadow-s); }
.center-pin .stem { width: 3px; height: 18px; background: var(--ink); }
.center-pin.lift .head { transform: translateY(-8px); transition: transform .15s; }

/* toast */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92%, 440px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; animation: up .25s; transition: opacity .3s, transform .3s; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--brand-d); }
.toast.out { opacity: 0; transform: translateY(-10px); }

/* autenticação */
.auth { position: absolute; inset: 0; z-index: 70; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.auth-hero { background: var(--ink); color: #fff; padding: 46px 26px 34px; position: relative; overflow: hidden; }
.auth-hero .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.auth-hero .logo svg { width: 38px; height: 38px; }
.auth-hero h1 { margin-top: 34px; font-size: 32px; line-height: 1.1; }
.auth-hero p { opacity: .75; margin: 10px 0 0; }
.auth-hero .road { position: absolute; right: 0; bottom: -10px; width: 200px; opacity: .12; }
.auth-body { padding: 22px 24px 30px; flex: 1; }
.tabs { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; height: 40px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.demo-box { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--brand-l); }

/* cards / estatísticas */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--bg-2); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat small { color: var(--muted); font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 10px; color: var(--muted); }
.bars i { display: block; width: 100%; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty svg { width: 46px; height: 46px; margin: 0 auto 10px; opacity: .3; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg-2); }
.tag.ok { background: var(--brand-l); color: var(--brand-d); }
.tag.bad { background: #fde8e8; color: var(--danger); }
.tag.warn { background: #fff4e0; color: #a86500; }
.tag.info { background: #eef3ff; color: var(--info); }
.compliments { display: flex; flex-wrap: wrap; gap: 8px; }
.compliments button { padding: 8px 12px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; }
.compliments button.on { background: var(--ink); color: #fff; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d0d4da; border-radius: 30px; 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: var(--shadow-s); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
.demo-ribbon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 16; background: rgba(16,20,24,.85); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; pointer-events: none; }

/* mapa claro e neutro: tira a saturação e suaviza o contraste do OpenStreetMap */
.map-soft { filter: grayscale(.92) brightness(1.06) contrast(.88); }

/* fotos dos veículos */
img.veh { display: block; object-fit: contain; }
.service .art img.veh { height: 38px; width: 62px; }
.ride-opt .art img.veh { width: 64px; height: 42px; }
.car-art img.veh { width: 84px; height: 48px; }
.list-item .ic img.veh { width: 32px; height: 24px; }

/* ---------- computador: painel à esquerda, mapa ocupando o resto ---------- */
@media (min-width: 900px) {
  body[data-app="rider"] .shell, body[data-app="driver"] .shell, body[data-app="track"] .shell {
    max-width: none; height: 100%; top: 0; transform: none; border-radius: 0; box-shadow: none;
  }
  body[data-app="rider"] .sheet, body[data-app="driver"] .sheet, body[data-app="track"] .sheet {
    left: 24px; top: 24px; right: auto; bottom: auto; width: 420px; max-height: calc(100% - 48px);
    border-radius: 18px; box-shadow: var(--shadow); padding: 26px 26px 24px;
  }
  body[data-app="rider"] .sheet::before, body[data-app="driver"] .sheet::before, body[data-app="track"] .sheet::before { display: none; }
  body[data-app="rider"] .topbar, body[data-app="driver"] .topbar { left: 444px; }
  body[data-app="rider"] .panel, body[data-app="driver"] .panel {
    left: 24px; top: 24px; bottom: 24px; right: auto; width: 420px; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  }
  body[data-app="rider"] .demo-ribbon, body[data-app="driver"] .demo-ribbon { left: calc(50% + 222px); }
  .auth { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: 460px; height: min(92%, 880px); border-radius: 22px; box-shadow: var(--shadow); }
  .drawer { border-radius: 0 18px 18px 0; }
}

/* ---------- seletor de idioma, Sair no topo ---------- */
.lang-switch { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch button { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.lang-switch.on-dark { background: rgba(255,255,255,.12); }
.lang-switch.on-dark button { color: rgba(255,255,255,.75); }
.lang-switch.on-dark button.on { background: #fff; color: var(--ink); }
.auth-hero .lang-switch { position: absolute; top: 16px; right: 16px; z-index: 2; }
.drawer-lang { padding: 10px 12px 4px; }
.topbar .logout-btn { margin-left: auto; margin-right: 10px; }
.topbar .logout-btn svg { width: 20px; height: 20px; }

/* ---------- segurança ---------- */
.rec-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #fde8e8; color: var(--danger); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.rec-pill.other { background: #fff4e0; color: #a86500; margin-left: 6px; }
.selfie-box { margin-top: 12px; border-radius: 16px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; max-height: 52vh; display: grid; place-items: center; }
.selfie-box video, .selfie-box img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.selfie-box img { transform: none; }
