/* FluxoBus - identidade visual
   Navy profissional + azul de ação. Fonte Manrope local (funciona offline). */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope.woff2') format('woff2-variations');
}

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --brand: #0369a1;
  --brand-d: #075985;
  --brand-soft: #e0f2fe;
  --bg: #eef2f6;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  /* Vermelho de "tem dinheiro a receber" (poltrona e etiqueta "resta"). Separado do --danger,
     que é de ação destrutiva - as duas coisas são vermelhas, mas não são a mesma conversa. */
  --red: #dc2626;
  --red-bg: #fee2e2;
  --other: #7c3aed;
  --free: #f8fafc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .08), 0 10px 24px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 300px at 50% -80px, rgba(3, 105, 161, .10), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 64px;
}
.hidden { display: none !important; }
svg.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

/* ---------- Topbar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%, #24405e 100%);
  color: #fff;
  padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top));
  box-shadow: 0 2px 12px rgba(15, 23, 42, .25);
}
#topbar .title { font-weight: 800; font-size: 17px; flex: 1; letter-spacing: .01em; }
#topbar .user {
  font-size: 12px; font-weight: 600; opacity: .95;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .15);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
#topbar button.ghost {
  background: rgba(255, 255, 255, .10); border: none; color: #fff;
  font-size: 22px; line-height: 1; padding: 4px 12px 6px; border-radius: 10px;
}
#topbar button.ghost:active { background: rgba(255, 255, 255, .22); }

main { padding: 16px; max-width: 640px; margin: 0 auto; }
.loading { text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }
.loading::before {
  content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 10px;
  border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* spinner pequeno dentro de botão (ex.: "Entrando…") */
.btnspin {
  display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
button:disabled { opacity: .75; cursor: default; }

/* ---------- Cartões ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ---------- Botões ---------- */
button {
  font: inherit; cursor: pointer; border-radius: 12px; border: none;
  padding: 13px 16px; font-weight: 700;
  transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
button:focus-visible { outline: 3px solid rgba(3, 105, 161, .4); outline-offset: 1px; }
.btn {
  background: linear-gradient(180deg, #0284c7, var(--brand));
  color: #fff; width: 100%;
  box-shadow: 0 2px 6px rgba(3, 105, 161, .35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { background: var(--brand-d); transform: translateY(1px); box-shadow: 0 1px 3px rgba(3, 105, 161, .3); }
.btn.sec {
  background: #fff; color: var(--brand-d);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.btn.sec:active { background: var(--brand-soft); }
.btn.danger { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
button.ghost { background: transparent; color: var(--brand-d); }
button.small { padding: 6px 12px; font-size: 13px; }
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }
/* Botão lado a lado em tela estreita: texto não quebra em 2 linhas (ficava um botão
   mais alto que o outro); encolhe fonte/padding e reduz o respiro do ícone. */
.row-btns .btn { white-space: nowrap; min-width: 0; padding-left: 8px; padding-right: 8px; gap: 6px; }
@media (max-width: 400px) {
  .row-btns .btn { font-size: 14.5px; }
  .row-btns .btn .ic { width: 18px; height: 18px; flex: none; }
}

/* ---------- Formulários ---------- */
label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .15);
}
textarea { min-height: 60px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Listas ---------- */
.list-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.list-item:active { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .big { font-weight: 800; letter-spacing: -.01em; }
.list-item .meta { color: var(--muted); font-size: 13px; margin-top: 1px; }
.chev { color: #cbd5e1; font-size: 24px; font-weight: 700; }
.item-ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-d);
}
.item-ic svg.ic { width: 22px; height: 22px; }

/* ---------- Cartão de estado da assinatura ---------- */
.lic-card {
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lic-card .big { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.lic-card .meta { font-size: 13px; margin-top: 4px; opacity: .9; }
.lic-card.ok { background: var(--ok-bg); border-color: #bbf7d0; color: var(--ok); }
.lic-card.warn { background: var(--warn-bg); border-color: #fde68a; color: var(--warn); }
.lic-card.bad { background: var(--danger-bg); border-color: #fecaca; color: var(--danger); }

/* ---------- Cartão de viagem (home) ---------- */
.trip-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); cursor: pointer;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.trip-card:active { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.trip-card .top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.trip-card .bus-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; flex: 1; min-width: 0; }
.chip {
  font-size: 12px; font-weight: 700; color: var(--brand-d);
  background: var(--brand-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.chip.gray { background: #f1f5f9; color: var(--muted); }
.route { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.route .pt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route .pt.dest { text-align: right; }
.route .track { flex: 1; display: flex; align-items: center; min-width: 34px; }
.route .track::before, .route .track::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.route .track::before { background: var(--brand); }
.route .track::after { border: 2px solid var(--brand); background: #fff; width: 6px; height: 6px; }
.route .track i { flex: 1; border-top: 2px dashed #bae0f2; margin: 0 3px; }

/* ---------- Login ---------- */
.login-wrap { max-width: 360px; margin: 6vh auto 0; text-align: center; }
.brand-mark {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), #24405e);
  color: #7dd3fc; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .30);
}
.brand-mark svg { width: 42px; height: 42px; }
.login-wrap .logo { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.login-wrap .tg { color: var(--muted); margin: 4px 0 22px; }
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow-lift); text-align: center;
}
.pin-hint { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.8; }
.pin-hint a { color: var(--brand); font-weight: 700; }

/* ---------- Mapa de assentos ---------- */
.seatmap-legend { display: flex; flex-wrap: wrap; gap: 12px 16px; font-size: 13px; color: var(--muted); margin: 6px 2px 12px; }
.seatmap-legend .dot { display: inline-block; width: 14px; height: 14px; border-radius: 5px; vertical-align: -2px; margin-right: 5px; }
.dot.free { background: var(--free); border: 1.5px solid #cbd5e1; }
.dot.mine { background: #bae6fd; border: 1.5px solid #7dd3fc; }
.dot.other { background: #fef08a; border: 1.5px solid #fde047; }
.dot.pend { background: #fff; border: 2px solid var(--red); }

.bus {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 26px 26px var(--radius) var(--radius);
  padding: 14px; box-shadow: var(--shadow);
}
.bus-front {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px dashed var(--line); padding: 2px 4px 10px; margin-bottom: 12px;
}
.bus-front .wheel {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #94a3b8; position: relative;
}
.bus-front .wheel::after {
  content: ''; position: absolute; inset: 4px;
  border-radius: 50%; border: 2px solid #cbd5e1;
}
.seat-row { display: grid; grid-template-columns: 1fr 1fr 20px 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.aisle { }
.seat {
  aspect-ratio: 1 / 1; border-radius: 12px 12px 8px 8px;
  border: 1.5px solid #cbd5e1; border-bottom-width: 4px;
  background: linear-gradient(180deg, #fff, var(--free));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  padding: 2px; line-height: 1.05; color: #475569; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.seat:active { transform: scale(.96); }
/* Nome do passageiro na poltrona: 9px só se lia em mesa, e o mapa é usado em pé, no sol,
   na porta do ônibus. Sem transparência, pelo mesmo motivo. */
.seat .who { font-size: 11px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Poltrona vendida em tom CLARO (azul = minha, roxo = de outro): o assento cheio continua
   diferente do vago, mas para de brigar por atenção com o vermelho de quem deve. */
.seat.occ-mine { background: linear-gradient(180deg, #e0f2fe, #bae6fd); color: var(--brand-d); border-color: #7dd3fc; }
.seat.occ-other { background: linear-gradient(180deg, #fefce8, #fef08a); color: #854d0e; border-color: #fde047; }
/* RESTA PAGAR = contorno vermelho. É a única cor forte do mapa, de propósito: numa olhada,
   quem tem dinheiro a receber salta. */
.seat.pend { border-color: var(--red); box-shadow: inset 0 0 0 3px var(--red), 0 0 0 2px var(--red-bg); }
.seat.empty-slot { visibility: hidden; }

/* ---------- Embarque (Fase 6b) ---------- */
.grp-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 2px 8px; font-weight: 800; font-size: 14px; color: var(--navy);
  text-transform: uppercase; letter-spacing: .03em;
}
.emb-check {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  border: 2px solid #cbd5e1; background: #fff; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.emb-check svg.ic { width: 18px; height: 18px; }
.list-item.done { background: #f6fdf8; }
.list-item.done .emb-check { background: var(--ok); border-color: var(--ok); }
.list-item.done .big { color: var(--ok); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.pago { background: var(--ok-bg); color: var(--ok); }
/* Mesma conversa da poltrona com contorno vermelho: quem deve aparece em vermelho na lista também. */
.badge.resta { background: var(--red-bg); color: var(--danger); }

/* ---------- Resumo ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 12px; box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
}
.stat .n { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
/* rola na horizontal DENTRO do card em telas estreitas (portrait), sem estourar a página */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
table.mini th, table.mini td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.mini td.num, table.mini th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 430px) {
  table.mini { font-size: 12.5px; }
  table.mini th, table.mini td { padding: 8px 5px; }
  .stat .n { font-size: 19px; }
}

/* ================= Painel de vendas e comissões =================
   Duas cores em todo o painel, e só duas: AZUL = dinheiro que entrou,
   VERMELHO = dinheiro que falta entrar. É a mesma leitura da poltrona com
   contorno vermelho no mapa - quem deve aparece em vermelho, em toda tela.
   (Par conferido no validador de paleta: separação boa inclusive pra quem
   não distingue cor.) */

/* Filtro de período: uma linha só, acima de tudo. */
/* quebra em duas linhas em vez de rolar: chip escondido em barra que rola ninguém acha */
.periodo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.periodo button {
  flex: 0 0 auto; background: var(--card); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.periodo button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Datas na mão, pra pergunta específica ("de 10 de abril a 12 de maio"). */
.periodo-datas {
  display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; margin: -4px 0 12px; box-shadow: var(--shadow);
}
.periodo-datas label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.periodo-datas input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; background: #f8fafc; }
.periodo-datas input:focus { outline: none; border-color: var(--brand); background: #fff; }
.periodo-datas button {
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}

/* Número-herói: o painel abre respondendo "quanto entrou". */
.hero-num {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 16px; margin-bottom: 10px;
  border-top: 3px solid var(--brand);
}
.hero-num .rot { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hero-num .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 2px 0 4px; }
.hero-num .meta { font-size: 13px; color: var(--muted); }
.hero-num .falta { color: var(--danger); font-weight: 700; }

/* Legenda: sempre presente quando o gráfico tem 2 séries. */
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.legenda .receb { background: var(--brand); }
.legenda .falta { background: var(--red); }

/* Barra empilhada horizontal (por vendedor). Uma linha por pessoa: nome, barra, valor. */
.barra-linha { margin-bottom: 14px; }
.barra-linha:last-child { margin-bottom: 2px; }
.barra-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.barra-topo .quem { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-topo .val { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.barra-topo .val small { color: var(--muted); font-weight: 600; font-size: 12px; }
.barra {
  display: flex; gap: 2px;                    /* 2px de superfície separando os pedaços */
  height: 12px; background: #eef2f6; border-radius: 6px; overflow: hidden;
}
.barra span { display: block; height: 100%; border-radius: 6px; }
.barra .receb { background: var(--brand); }
.barra .falta { background: var(--red); }
.barra-pe { font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Colunas no tempo (uma por viagem). Rola na horizontal quando tem viagem demais. */
/* altura = 118 da barra + a legenda de data embaixo (o valor do maior vai no texto do card,
   não em cima da coluna: em 46px de largura "R$ 5,7 mil" quebrava em duas linhas) */
.colunas { display: flex; align-items: flex-end; gap: 10px; height: 158px; overflow-x: auto; padding: 4px 2px 0; }
.coluna { flex: 0 0 auto; width: 46px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.coluna .pilha { width: 100%; display: flex; flex-direction: column-reverse; gap: 2px; justify-content: flex-start; }
.coluna .pilha span { display: block; width: 100%; }
.coluna .pilha .receb { background: var(--brand); border-radius: 0 0 4px 4px; }   /* ponta ancorada na base */
.coluna .pilha .falta { background: var(--red); border-radius: 4px 4px 0 0; }
.coluna .topo { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.coluna .pe { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: center; line-height: 1.25; }
.coluna .pe b { display: block; color: var(--ink); font-size: 11.5px; }
.eixo-zero { border-top: 1px solid var(--line); margin-top: 0; }

/* Ocupação: barra fina, só magnitude - sem cor de identidade. */
.ocup-linha { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ocup-linha:last-child { border-bottom: 0; }
.ocup-nome { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocup-nome span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ocup-barra { flex: 0 0 96px; height: 8px; background: #eef2f6; border-radius: 4px; overflow: hidden; }
.ocup-barra i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.ocup-pct { flex: 0 0 62px; text-align: right; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ocup-pct small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }

/* "Ver números" - a tabela continua existindo, recolhida embaixo do gráfico. */
details.tabela { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
details.tabela summary { font-size: 13px; font-weight: 700; color: var(--brand-d); cursor: pointer; list-style: none; }
details.tabela summary::-webkit-details-marker { display: none; }
details.tabela summary::before { content: '▸ '; }
details.tabela[open] summary::before { content: '▾ '; }

@media (max-width: 430px) {
  .hero-num .big { font-size: 29px; }
  .coluna { width: 40px; }
}

/* ---------- Rodapé demo ---------- */
.demo-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; background: #fffbeb; border-top: 1px solid #fde68a;
  color: #92400e; font-size: 12px; font-weight: 600; padding: 8px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 40; max-width: 90%; text-align: center;
  box-shadow: var(--shadow-lift);
}
.toast.err { background: var(--danger); }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 30;
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff; width: 100%; max-width: 640px;
  border-radius: 20px 20px 0 0; padding: 10px 18px 18px;
  max-height: 92vh; max-height: 92dvh; /* dvh: encolhe quando o teclado abre (campo não fica escondido) */
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, .25);
}
.modal::before {
  content: ''; display: block; width: 44px; height: 5px; border-radius: 999px;
  background: var(--line); margin: 2px auto 14px;
}
.modal h3 { margin: 0 0 2px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.modal .seat-tag { color: var(--brand-d); font-weight: 800; }
.sect-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); margin: 22px 0 8px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* Abas da Conferência (embarque / descida / entrega) */
.conf-tabs { display: flex; gap: 6px; margin: 12px 0 10px; }
.conf-tab {
  flex: 1; padding: 9px 6px; border-radius: 10px; font-weight: 700; font-size: 14px;
  background: #fff; color: var(--brand-d); border: 1.5px solid var(--line);
}
.conf-tab.on { background: linear-gradient(180deg, #0284c7, var(--brand)); color: #fff; border-color: var(--brand-d); }
.conf-tab:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
