/* SOS CAR — webapp. Reproduz o app Compose: fundo prata, cartões brancos,
   barra inferior flutuante com o botão SOS elevado. Mobile-first. */

body {
    background: var(--surface);
    color: var(--text);
    overscroll-behavior-y: none;
}

/* Em telas largas o app fica numa coluna central, como um aparelho. */
@media (min-width: 620px) {
    body { background: var(--navy-deep); }
    .app { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .5); }
}

.app {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    min-height: 100dvh;
    margin-inline: auto;
    background: var(--surface);
}
.app[hidden] { display: none; }

/* A Home usa o gradiente prata do app. */
.app.is-home { background: linear-gradient(180deg, var(--home-top), var(--home-bottom)); }

/* ─────────── Barra superior ─────────── */
.appbar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 52px;
    padding: max(8px, env(safe-area-inset-top)) 8px 4px;
    background: transparent;
}
.appbar__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}
.appbar__spacer { margin-left: auto; }
.iconbtn {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--text);
    position: relative;
    transition: background .18s var(--ease);
}
.iconbtn:active { background: rgba(15, 31, 61, .08); }
.iconbtn__dot {
    position: absolute;
    top: 8px; right: 9px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--orange);
}
.iconbtn__count {
    position: absolute;
    top: 4px; right: 4px;
    min-width: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

/* ─────────── Área de conteúdo ─────────── */
.view {
    flex: 1;
    min-height: 0;
    padding: 0 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.view:focus { outline: none; }
.view.has-tabbar { padding-bottom: 104px; }
.view.is-flush { padding: 0; display: flex; flex-direction: column; }

/* ─────────── Blocos comuns ─────────── */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.card--tap { cursor: pointer; transition: transform .15s var(--ease); }
.card--tap:active { transform: scale(.985); }

.stack { display: grid; gap: 12px; }
.stack--sm { gap: 9px; }

.muted { color: var(--text-soft); font-size: 13.5px; }
.section-title { font-size: 18px; font-weight: 700; margin: 0; }

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--orange-tint);
    color: var(--orange);
    font-size: 10.5px;
    font-weight: 700;
}
.pill--gray { background: #ECECEC; color: var(--text-soft); }
.pill--ok {
    background: transparent;
    color: var(--green);
    border: 1.2px solid var(--green);
}
.pill--solid { background: var(--orange); color: #fff; }
.pill--danger { background: var(--red); color: #fff; }

/* Botões */
.btn-fill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: filter .15s var(--ease), transform .15s var(--ease);
}
.btn-fill:active { transform: scale(.99); filter: brightness(1.1); }
.btn-fill[disabled] { opacity: .55; pointer-events: none; }
.btn-fill--orange { background: var(--orange); }
.btn-fill--ghost {
    background: #fff;
    color: var(--navy);
    box-shadow: inset 0 0 0 1.4px var(--border);
}
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}
.btn-text--muted { color: var(--text-soft); font-weight: 500; }
.btn-text--danger { color: var(--red); }
.btn-text--orange { color: var(--orange); font-weight: 700; }

/* Campos */
.field { display: grid; gap: 6px; }
.field > span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-soft);
}
.field input, .field textarea, .field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.4px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(15, 31, 61, .1);
}
.field--error input { border-color: var(--red); }

.error-text { color: var(--red); font-size: 13.5px; margin: 0; }

/* Linha com ícone + título + chevron (ListRowChevron do app) */
.row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.row:active { transform: scale(.99); }
.row__ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--navy-tint);
    color: var(--navy);
}
.row__ic--danger { background: #FDE7E7; color: var(--red); }
.row__ic--round { border-radius: 50%; }
.row__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row__body small { color: var(--text-soft); font-size: 12px; font-weight: 400; }
.row__chevron { color: var(--text-soft); flex: none; }

/* Estados */
.loading-box { display: grid; place-items: center; padding: 48px 0; }
.spinner {
    width: 28px; height: 28px;
    border: 3px solid rgba(15, 31, 61, .18);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin .9s linear infinite;
}
.spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.spinner--light { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(1turn); } }

.empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}
.retry { display: grid; justify-items: center; gap: 12px; padding: 32px 20px; text-align: center; }

/* ─────────── Home ─────────── */
.hi { font-size: 26px; font-weight: 800; margin: 6px 0 0; }
.hi b { color: var(--orange); }
.hi + p { margin: 0; color: var(--text-soft); font-size: 14px; }
.hi + p b { color: var(--orange); font-weight: 400; }

.emblem-wrap { display: grid; place-items: center; padding: 18px 0; }
/* Botão-emblema do SOS: bezel prata → círculo com o logotipo real (carro + SOS CAR)
   recortado em círculo e anel laranja da marca por cima. */
.emblem {
    position: relative;
    width: 168px; height: 168px;
    padding: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F7F8FA, #CFD4DB);
    box-shadow: 0 14px 30px rgba(10, 21, 41, .32);
    cursor: pointer;
    /* Pulso de emergência: anel laranja que expande + batida de escala, para o
       botão de SOS chamar atenção mesmo parado. */
    animation: sos-pulse 1.1s ease-out infinite;
}
@keyframes sos-pulse {
    0%   { transform: scale(1);     box-shadow: 0 14px 30px rgba(10, 21, 41, .32), 0 0 0 0 rgba(242, 107, 29, .65); }
    45%  { transform: scale(1.05); }
    70%  {                          box-shadow: 0 14px 30px rgba(10, 21, 41, .32), 0 0 0 26px rgba(242, 107, 29, 0); }
    100% { transform: scale(1);     box-shadow: 0 14px 30px rgba(10, 21, 41, .32), 0 0 0 0 rgba(242, 107, 29, 0); }
}
/* O anel laranja da borda também pisca junto, mais intenso. */
.emblem__disc::after { animation: sos-ring 1.1s ease-in-out infinite; }
@keyframes sos-ring {
    0%, 100% { border-color: var(--orange); opacity: .85; }
    50%      { border-color: #FF8A3D; opacity: 1; box-shadow: inset 0 0 12px rgba(242, 107, 29, .7); }
}
.emblem__disc {
    position: relative;
    display: block;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #041D46; /* navy do próprio ícone: o entorno do logo continua invisível */
}
.emblem__disc img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.16); /* aproxima o carro/wordmark das bordas do círculo */
    display: block;
}
.emblem__disc::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--orange);
    pointer-events: none;
}
.emblem:active { transform: scale(.97); }

.plan-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    box-shadow: 0 10px 24px rgba(10, 21, 41, .3);
    color: #fff;
    text-align: left;
}
.plan-banner__ic {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--orange);
    flex: none;
}
.plan-banner__body { flex: 1; min-width: 0; }
.plan-banner b { font-size: 15px; }
.plan-banner small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.plan-banner em { font-style: normal; color: var(--orange); }

.active-call {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--navy);
    color: #fff;
    text-align: left;
}
.active-call__ic {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: var(--orange);
    flex: none;
}
.active-call b { font-size: 13px; display: block; }
.active-call small { font-size: 12px; color: rgba(255, 255, 255, .85); }
.active-call span:last-child { color: var(--orange); font-size: 13px; font-weight: 700; }

.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.shortcut {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
    text-align: center;
}
.shortcut__ic {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--orange);
}
.shortcut b { font-size: 11.5px; }
.shortcut small { font-size: 9px; color: var(--text-soft); line-height: 1.25; }
.shortcut i { width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }

.support-card { display: flex; align-items: center; gap: 10px; padding: 14px 12px; }
.support-card__shield {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    color: var(--navy);
    flex: none;
}
.support-card__shield span {
    position: absolute;
    color: var(--orange);
    font-size: 17px;
    font-weight: 800;
}
.support-card__shield span small { font-size: 11px; }
.support-card__body { flex: 1; min-width: 0; }
.support-card__body b { font-size: 15px; }
.support-card__body small { display: block; font-size: 11.5px; color: var(--text-soft); }
.support-card__body em {
    display: block;
    font-style: normal;
    font-size: 10px;
    color: var(--orange);
    font-weight: 500;
    margin-top: 2px;
}
.support-card__call {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    flex: none;
}
.support-card__call .ic { color: var(--orange); }

/* ─────────── Barra inferior ─────────── */
.tabbar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    height: 70px;
    margin-top: -70px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .12);
}
.tabbar[hidden] { display: none; }
.tab {
    display: grid;
    justify-items: center;
    gap: 2px;
    flex: 1;
    padding-top: 10px;
    color: var(--text-soft);
    font-size: 10px;
}
.tab.is-on { color: var(--orange); font-weight: 600; }
.tab i {
    width: 16px; height: 2.5px;
    border-radius: 3px;
    background: transparent;
}
.tab.is-on i { background: var(--orange); }
.tab--gap { pointer-events: none; }

.tab-sos {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    box-shadow: 0 10px 20px rgba(10, 21, 41, .45);
    z-index: 2;
    /* Mesmo pulso do emblema, na escala do botão da barra. */
    animation: sos-pulse-sm 1.1s ease-out infinite;
}
@keyframes sos-pulse-sm {
    0%   { box-shadow: 0 10px 20px rgba(10, 21, 41, .45), 0 0 0 0 rgba(242, 107, 29, .6); }
    70%  { box-shadow: 0 10px 20px rgba(10, 21, 41, .45), 0 0 0 14px rgba(242, 107, 29, 0); }
    100% { box-shadow: 0 10px 20px rgba(10, 21, 41, .45), 0 0 0 0 rgba(242, 107, 29, 0); }
}
.tab-sos::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1.5px solid var(--orange);
}
.tab-sos .wordmark { font-size: 13px; color: #fff; }
.tab-sos:active { transform: translateX(-50%) scale(.94); }

/* ─────────── Drawer ─────────── */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 21, 41, .45);
    animation: fade .2s var(--ease);
}
.drawer__sheet {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(310px, 82vw);
    padding: max(12px, env(safe-area-inset-top)) 0 20px;
    background: #fff;
    overflow-y: auto;
    animation: slide-in .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }

.drawer__head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.drawer__avatar {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--navy-tint);
    color: var(--navy);
    flex: none;
}
.drawer__head b { font-size: 15px; display: block; }
.drawer__head small { color: var(--text-soft); font-size: 12px; word-break: break-all; }
.drawer__sep { height: 1px; margin: 8px 0; background: #EEE; }
.drawer__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    color: var(--text);
}
.drawer__item .ic { color: var(--navy); flex: none; }
.drawer__item:active { background: var(--surface); }
.drawer__item--danger .ic { color: var(--red); }

/* ─────────── Modais (AlertDialog) ─────────── */
.modal-root:empty { display: none; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 21, 41, .45);
    animation: fade .18s var(--ease);
}
.modal__box {
    width: 100%;
    max-width: 400px;
    max-height: 88dvh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    animation: pop .2s var(--ease);
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal__box h2 { margin: 0 0 10px; font-size: 18px; }
.modal__box p { margin: 0 0 12px; color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 18px;
}
.modal__box--wide { max-width: 520px; }
.modal__box--plain { background: transparent; box-shadow: none; padding: 0; }

/* Diálogo do plano (paywall) */
.paywall__crown {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--orange-tint);
    color: var(--orange);
}

/* ─────────── Toast ─────────── */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 95;
    max-width: min(440px, 90vw);
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--navy);
    color: #fff;
    font-size: 13.5px;
    box-shadow: var(--shadow-lift);
    animation: toast-in .22s var(--ease);
}
.toast[hidden] { display: none; }
.toast--error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ─────────── Splash ─────────── */
.splash {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 22px;
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    transition: opacity .35s var(--ease);
}
.splash.is-out { opacity: 0; pointer-events: none; }
.splash__emblem { display: grid; justify-items: center; gap: 6px; }
.splash__sos { font-size: 54px; color: #fff; }
.splash__car {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .3em;
    color: var(--orange);
}
.splash__car i { width: 18px; height: 2px; background: var(--orange); }
.splash__bar {
    width: 120px; height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}
.splash__bar span {
    display: block;
    width: 40%; height: 100%;
    border-radius: 3px;
    background: var(--orange);
    animation: slide 1.1s ease-in-out infinite;
}
@keyframes slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

/* ─────────── Login ─────────── */
.auth { display: grid; gap: 14px; padding: 24px 4px 40px; }
.auth__brand { display: grid; justify-items: center; gap: 4px; margin-bottom: 8px; }
.auth__logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-card); }
.auth__tagline { color: var(--text-soft); font-size: 13.5px; text-align: center; }
.auth h1 { margin: 6px 0 0; font-size: 21px; }
.auth__switch { text-align: center; color: var(--text-soft); font-size: 14px; }
.auth__switch button { color: var(--navy); font-weight: 700; }

/* ─────────── Serviços / SOS ─────────── */
.sos-intro { display: grid; gap: 4px; margin-bottom: 4px; }
.sos-intro h2 { margin: 0; font-size: 19px; }

/* ─────────── Mapa ─────────── */
.map {
    position: relative;
    flex: 1;
    min-height: 240px;
    background: #EAF0F6;
}
.map--rounded { border-radius: 16px; overflow: hidden; margin: 0 12px; }
.leaflet-container { font: inherit; background: #EAF0F6; }
.map__hint {
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 26, 26, .85);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}
.map__locate {
    position: absolute;
    right: 12px; bottom: 12px;
    z-index: 500;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-card);
}
.pin-marker { font-size: 34px; line-height: 34px; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }

.sheet-bottom {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(16, 24, 40, .16);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip-btn {
    flex: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.chip-btn.is-on {
    background: var(--navy-tint);
    color: var(--navy);
    font-weight: 700;
}

/* ─────────── Escolha do veículo antes do pagamento ─────────── */
.pick-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}
.pick-row:has(input:checked) {
    border-color: var(--navy);
    background: var(--navy-tint);
}
.pick-row input { accent-color: var(--navy); }
.pick-row b { display: block; font-size: 14px; }
.pick-row small { display: block; font-size: 12px; }

/* ─────────── Acompanhamento ─────────── */
.track-head { margin: 0 12px; padding: 12px; }
.track-head h2 { margin: 0; font-size: 15px; }
.track-head small { display: block; color: var(--text-soft); font-size: 11px; }
.track-eta { margin-top: 6px; color: var(--navy); font-size: 12.5px; font-weight: 600; }

.track-action {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--navy-tint);
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.track-action .badge {
    display: grid;
    place-items: center;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}
.code-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--navy-tint);
}
.code-box.is-done { background: var(--orange-tint); }
.code-box small { display: block; color: var(--text-soft); font-size: 10.5px; }
.code-box b {
    margin-left: auto;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--navy);
}
.code-box.is-done b { color: var(--orange); }

.searching {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    flex: 1;
    margin: 0 12px;
    padding: 30px 20px;
    border-radius: 16px;
    background: var(--navy-tint);
    text-align: center;
}
.searching__radar {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--orange);
}
.searching__radar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 31, 61, .35);
    animation: radar 1.8s ease-out infinite;
}
@keyframes radar {
    from { transform: scale(1); opacity: .35; }
    to { transform: scale(2.6); opacity: 0; }
}
.searching b { font-size: 15px; }
.searching small { color: var(--text-soft); font-size: 12.5px; }

.timeline-bar { display: flex; gap: 6px; }
.timeline-bar i {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: var(--border);
}
.timeline-bar i.done { background: var(--navy); }
.timeline-bar i.now { background: var(--orange); }
.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9.5px;
    color: var(--text-soft);
}

/* ─────────── Chat ─────────── */
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    overflow-y: auto;
}
.msg {
    max-width: 78%;
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: var(--shadow-card);
}
.msg small { display: block; margin-top: 3px; font-size: 10px; opacity: .7; }
.msg--them { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.msg--me {
    align-self: flex-end;
    background: var(--navy);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.chat__form {
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -4px 14px rgba(16, 24, 40, .08);
}
.chat__form input {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px;
    border: 1.4px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
}
.chat__form input:focus { outline: none; border-color: var(--navy); }
.chat__send {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    flex: none;
}

/* ─────────── Histórico / notificações ─────────── */
.hist { display: flex; gap: 12px; padding: 12px 14px; }
.hist__ic {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--navy-tint);
    color: var(--navy);
    flex: none;
}
.hist__body { flex: 1; min-width: 0; }
.hist__body b { font-size: 14px; }
.hist__body small { display: block; color: var(--text-soft); font-size: 12px; }
.hist .pill { align-self: center; flex: none; }
.hist .iconbtn { align-self: center; flex: none; color: var(--red); }
.stars { color: var(--orange); font-size: 13px; letter-spacing: 1px; }
.notif--unread { border-left: 3px solid var(--orange); }

/* ─────────── Planos ─────────── */
.plan-card { padding: 18px; display: grid; gap: 12px; }
.plan-card--hot { box-shadow: 0 0 0 2px var(--orange), var(--shadow-card); }
.plan-card__head { display: flex; align-items: center; gap: 12px; }
.plan-card__ic {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--navy-tint);
    color: var(--navy);
    flex: none;
}
.plan-card h3 { margin: 0; font-size: 17px; }
.plan-card__price { color: var(--navy); font-size: 20px; font-weight: 800; }
.plan-card__price small { font-size: 12px; font-weight: 500; color: var(--text-soft); }
.benefit {
    display: grid;
    grid-template-columns: 21px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14px;
    line-height: 1.4;
}
.benefit__ic {
    display: grid;
    place-items: center;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--orange-tint);
    color: var(--orange);
}

/* Pix */
.pix-qr {
    width: 200px; height: 200px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: #fff;
}
.pix-code {
    padding: 10px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 11px;
    word-break: break-all;
}
.pix-wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--text-soft);
    font-size: 13px;
}

/* ─────────── Portão da Taxa de Adesão ─────────── */
.gate {
    flex: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 32px 20px 40px;
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    color: #fff;
}
.gate__brand { font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.gate__brand .wordmark { font-size: 30px; }
.gate__tagline { margin: 4px 0 22px; color: rgba(255, 255, 255, .72); font-size: 13px; }
.gate__card {
    width: 100%;
    max-width: 380px;
    padding: 22px;
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    color: var(--text);
}
.gate__ic {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--orange-tint);
    color: var(--orange);
}
.gate__card h2 { margin: 0; font-size: 20px; }
.gate__card p { margin: 0; }
.gate__price { color: var(--navy); font-size: 32px; font-weight: 800; line-height: 1; }
.gate__card .stack { width: 100%; text-align: left; }
.gate__card .btn-fill { margin-top: 4px; }
.gate__link { margin-top: 16px; color: #fff; font-size: 14px; font-weight: 600; }
.gate__link--quiet { color: rgba(255, 255, 255, .7); font-weight: 500; }

/* Carteirinha do clube */
.member-card {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: #fff;
}
.member-card__top { display: flex; align-items: center; gap: 10px; }
.member-card__top .wordmark { font-size: 22px; color: #fff; }
.member-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .6);
}
.member-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin-top: 16px;
}
.member-card__grid span { display: block; font-size: 9px; letter-spacing: .15em; color: rgba(255, 255, 255, .5); }
.member-card__grid b { font-size: 13px; }
.member-card__name { margin-top: 18px; }
.member-card__name b { font-size: 19px; }

/* Rodapé de tela com botão único */
.screen-foot { padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
