@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
  --verde: #25D366;
  --verde-dark: #128C7E;
  --verde-light: #DCF8C6;
  --verde-bg: #f0fdf4;
  --verde-mid: #1aab52;
  --azul: #2196F3;
  --azul-dark: #1565C0;
  --azul-bg: #E3F2FD;
  --preto: #111b21;
  --texto: #1a1a1a;
  --texto2: #54656f;
  --texto3: #aaa;
  --bg: #f0f2f5;
  --white: #fff;
  --border: #e9edef;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; font-family: 'Roboto', sans-serif; background: var(--bg); color: var(--texto); }

/* ── APP SHELL ─────────────────────────────────────────── */
#app {
  max-width: 430px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ── TELAS ─────────────────────────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  position: absolute;
  width: 100%;
  background: var(--bg);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.screen.active { display: flex; }

/* ── STATUS BAR ────────────────────────────────────────── */
.status-bar {
  background: var(--verde-dark);
  padding: 8px 18px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.status-bar span { color: rgba(255,255,255,0.9); font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }

/* ── APP HEADER ────────────────────────────────────────── */
.app-header {
  background: var(--verde);
  padding: 13px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.app-header h1 { color: #fff; font-size: 18px; font-weight: 700; flex: 1; letter-spacing: 0.1px; }
.back-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; border-radius: 50%;
  transition: background 0.15s;
}
.back-btn:active { background: rgba(255,255,255,0.2); }

/* ── CONTENT SCROLL ────────────────────────────────────── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.content::-webkit-scrollbar { display: none; }

/* ── BOTÕES MATERIAL ───────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, opacity 0.15s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.20);
}
.btn:active { box-shadow: 0 1px 2px rgba(0,0,0,0.15); opacity: 0.92; }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-mid); box-shadow: 0 4px 8px rgba(37,211,102,0.35); }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 2px 4px rgba(33,150,243,0.30); }
.btn-azul:hover { background: var(--azul-dark); box-shadow: 0 4px 8px rgba(33,150,243,0.35); }
.btn-outline { background: transparent; color: var(--verde); border: 2px solid var(--verde); box-shadow: none; }
.btn-ghost { background: var(--border); color: var(--texto2); box-shadow: none; }
.btn-whatsapp { background: #25D366; color: #fff; font-size: 15px; min-height: 52px; }
.btn + .btn { margin-top: 10px; }

/* Ripple effect */
.btn::after {
  content: '';
  display: block;
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  width: 100px; height: 100px;
  margin-top: -50px; margin-left: -50px;
  top: 50%; left: 50%;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s, opacity 0.4s;
}
.btn:active::after { transform: scale(3); opacity: 0; transition: 0s; }

.btn-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; font-family: 'Roboto', sans-serif;
  min-height: 36px; letter-spacing: 0.3px;
}
.btn-sm-verde { background: var(--verde); color: #fff; }
.btn-sm-outline { background: transparent; color: var(--verde); border: 1.5px solid var(--verde); }

/* ── INPUTS MATERIAL ───────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--texto2); margin-bottom: 6px; display: block; letter-spacing: 0.5px; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px; color: var(--texto);
  background: var(--white);
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  min-height: 52px;
}
.form-input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(37,211,102,0.12); }
textarea.form-input { resize: vertical; min-height: 88px; }

/* ── SECTION TITLE ─────────────────────────────────────── */
.section-title {
  font-size: 11px; font-weight: 700; color: var(--texto3);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px; margin-top: 20px;
}
.section-title:first-child { margin-top: 0; }

/* ── TOGGLE ────────────────────────────────────────────── */
.toggle-wrap {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 16px; border: 1.5px solid var(--border);
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.toggle-info label { font-size: 15px; font-weight: 700; color: var(--texto); display: block; margin-bottom: 2px; }
.toggle-info small { font-size: 12px; color: var(--texto2); }
.toggle {
  width: 52px; height: 30px; border-radius: 15px;
  background: #ccc; position: relative; cursor: pointer;
  transition: background 0.2s; flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.toggle.on { background: #00a04a; }
.toggle::after {
  content: ''; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; position: absolute; top: 3px; left: 3px;
  transition: left 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.toggle.on::after { left: 25px; }

/* ── TELA CAPA ─────────────────────────────────────────── */
#t-capa { background: var(--verde); }
.capa-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 28px 16px;
}
.capa-logo-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 20px;
}
.capa-logo-wrap img {
  width: 160px; height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}
.capa-slogan {
  font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.95);
  text-align: center; line-height: 1.6; margin-bottom: 36px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.capa-difs { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.capa-dif {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.16); border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.capa-dif-icon { font-size: 24px; flex-shrink: 0; }
.capa-dif span { font-size: 15px; color: #fff; font-weight: 600; line-height: 1.4; }
.capa-footer {
  background: #fff; padding: 22px 20px 32px;
  border-radius: 22px 22px 0 0;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.capa-footer .btn { margin-bottom: 10px; }
.capa-badge { text-align: center; font-size: 11px; color: var(--texto3); margin-top: 10px; }

/* ── ESCOLHA PERFIL ────────────────────────────────────── */
.perfil-intro { margin-bottom: 22px; }
.perfil-intro h2 { font-size: 22px; font-weight: 900; color: var(--texto); margin-bottom: 5px; }
.perfil-intro p { font-size: 14px; color: var(--texto2); }
.perfil-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.perfil-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  cursor: pointer; display: flex; align-items: center; gap: 14px;
  transition: all 0.15s; box-shadow: var(--shadow);
  min-height: 72px;
}
.perfil-card.sel { border-color: var(--verde); background: var(--verde-bg); box-shadow: 0 2px 8px rgba(37,211,102,0.2); }
.perfil-card-icon { font-size: 28px; flex-shrink: 0; }
.perfil-card h3 { font-size: 15px; font-weight: 700; color: var(--texto); margin-bottom: 3px; }
.perfil-card p { font-size: 12px; color: var(--texto2); line-height: 1.4; }

/* ── CADASTRO ──────────────────────────────────────────── */
.step-indicator { display: flex; gap: 6px; margin-bottom: 20px; }
.step-dot { height: 4px; border-radius: 2px; background: var(--border); flex: 1; transition: background 0.2s; }
.step-dot.done { background: var(--verde); }

/* ── TERMO ─────────────────────────────────────────────── */
.termo-box {
  background: #f8f9fa; border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px; border: 1px solid var(--border);
}
.termo-box p { font-size: 13px; color: var(--texto2); line-height: 1.7; margin-bottom: 10px; }
.termo-box p:last-child { margin-bottom: 0; }
.termo-check-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--verde-bg); border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 18px; cursor: pointer;
  border: 1.5px solid transparent; transition: border-color 0.15s;
}
.termo-check-row.checked { border-color: var(--verde); }
.termo-check-box {
  width: 24px; height: 24px; border-radius: 6px;
  border: 2px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.termo-check-row.checked .termo-check-box { background: var(--verde); border-color: var(--verde); }
.termo-check-row span { font-size: 13px; color: var(--texto); font-weight: 500; line-height: 1.5; padding-top: 2px; }

/* ── VEÍCULO / TRECHOS ─────────────────────────────────── */
.veiculo-btn {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 8px; font-size: 14px; font-weight: 500;
  color: var(--texto2); text-align: center; cursor: pointer;
  background: var(--white); transition: all 0.15s; font-family: 'Roboto', sans-serif;
  line-height: 1.3; min-height: 48px;
}
.veiculo-btn.sel { border-color: var(--verde); background: var(--verde); color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(37,211,102,0.3); }

.trecho-list { display: flex; flex-direction: column; gap: 8px; }
.trecho-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.15s; min-height: 52px;
  box-shadow: var(--shadow);
}
.trecho-item.sel { border-color: var(--verde); background: var(--verde-bg); }
.trecho-item-txt span { font-size: 14px; font-weight: 600; color: var(--texto); display: block; margin-bottom: 2px; }
.trecho-item-txt small { font-size: 12px; color: var(--texto2); }
.trecho-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--white); flex-shrink: 0;
  transition: all 0.15s;
}
.trecho-item.sel .trecho-circle { background: var(--verde); border-color: var(--verde); box-shadow: inset 0 0 0 3px var(--white); }

/* ── HOME HEADER ───────────────────────────────────────── */
.home-header {
  background: var(--verde);
  padding: 14px 16px 16px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.home-header-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.home-saudacao { color: #fff; font-size: 18px; font-weight: 700; }
.notif-wrap { display: flex; align-items: center; gap: 12px; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ff3b30; border: 1.5px solid var(--verde);
}
.status-disponivel { font-size: 13px; color: rgba(255,255,255,0.95); font-weight: 500; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 5px; }
.status-dot.off { background: rgba(255,255,255,0.45); }

/* ── ABAS ──────────────────────────────────────────────── */
.tabs-bar {
  display: flex; background: var(--white);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tab-btn {
  flex: 1; padding: 14px 8px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--texto3);
  cursor: pointer; border: none; background: none; font-family: 'Roboto', sans-serif;
  border-bottom: 3px solid transparent; transition: all 0.15s;
  text-transform: uppercase; letter-spacing: 0.5px; min-height: 48px;
}
.tab-btn.active { color: var(--verde); border-bottom-color: var(--verde); }

/* ── NAV BAR MATERIAL ──────────────────────────────────── */
.nav-bar {
  display: flex; background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 0 max(10px, env(safe-area-inset-bottom));
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; padding: 6px 0;
  border: none; background: none; font-family: 'Roboto', sans-serif;
  min-height: 48px;
}
.nav-btn svg { width: 24px; height: 24px; color: var(--texto3); transition: color 0.15s; }
.nav-btn span { font-size: 10px; color: var(--texto3); font-weight: 700; transition: color 0.15s; letter-spacing: 0.3px; text-transform: uppercase; }
.nav-btn.active svg, .nav-btn.active span { color: var(--verde); }

/* ── STATS CARDS ───────────────────────────────────────── */
.stats-row { display: flex; gap: 10px; margin-bottom: 16px; }
.stat-card {
  flex: 1; background: var(--white); border-radius: var(--radius);
  padding: 14px 12px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.stat-num { font-size: 28px; font-weight: 900; color: var(--verde-dark); display: block; letter-spacing: -0.5px; }
.stat-label { font-size: 11px; color: var(--texto2); font-weight: 500; margin-top: 2px; line-height: 1.3; }

/* ── FRETE CARD ────────────────────────────────────────── */
.frete-card {
  background: var(--white); border-radius: var(--radius);
  margin-bottom: 10px; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.12s, box-shadow 0.12s;
  border: 1px solid var(--border); overflow: hidden;
}
.frete-card:active { transform: scale(0.98); box-shadow: none; }

/* ── PUB CARD ──────────────────────────────────────────── */
.pub-card {
  background: var(--white); border-radius: var(--radius);
  padding: 15px; margin-bottom: 10px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.pub-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pub-card-rota { font-size: 15px; font-weight: 700; color: var(--texto); }
.pub-card-sub { font-size: 13px; color: var(--texto2); margin-bottom: 10px; }
.pub-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }

/* ── BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge-verde { background: var(--verde-bg); color: var(--verde-dark); }
.badge-cinza { background: var(--border); color: var(--texto2); }
.badge-azul { background: var(--azul-bg); color: var(--azul-dark); }

/* ── DETALHE FRETE ─────────────────────────────────────── */
.detalhe-rota-banner {
  background: var(--verde-bg); padding: 20px 16px;
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.detalhe-cidade { flex: 1; }
.detalhe-cidade span { font-size: 18px; font-weight: 900; color: var(--texto); display: block; }
.detalhe-cidade small { font-size: 12px; color: var(--texto2); }
.info-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-item-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--verde-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item-icon svg { width: 20px; height: 20px; color: var(--verde); }
.info-item-txt label { font-size: 11px; color: var(--texto3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.info-item-txt span { font-size: 15px; font-weight: 600; color: var(--texto); line-height: 1.4; }
.detalhe-footer { padding: 14px 16px 24px; flex-shrink: 0; background: var(--white); border-top: 1px solid var(--border); }

/* ── PERFIL ────────────────────────────────────────────── */
.perfil-header {
  background: var(--verde); padding: 24px 16px 28px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.perfil-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.25); color: #fff;
  font-size: 28px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; border: 2px solid rgba(255,255,255,0.4);
}
.perfil-nome { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 3px; }
.perfil-sub { font-size: 13px; color: rgba(255,255,255,0.85); }
.menu-list { background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background 0.12s;
  min-height: 60px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--verde-bg); }
.menu-ico { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--verde-bg); flex-shrink: 0; }
.menu-ico svg { width: 20px; height: 20px; color: var(--verde); }
.menu-item-txt { flex: 1; }
.menu-item-txt span { font-size: 15px; font-weight: 600; color: var(--texto); display: block; }
.menu-item-txt small { font-size: 12px; color: var(--texto2); }
.menu-arr svg { width: 18px; height: 18px; color: var(--texto3); }
.menu-item.danger .menu-ico { background: #fef2f2; }
.menu-item.danger .menu-ico svg { color: #ef4444; }
.menu-item.danger .menu-item-txt span { color: #ef4444; }

/* ── EMPTY STATE ───────────────────────────────────────── */
.fretes-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center;
}
.fretes-empty h3 { font-size: 16px; font-weight: 700; color: var(--texto2); margin-bottom: 6px; }
.fretes-empty p { font-size: 13px; color: var(--texto3); line-height: 1.6; }

/* ── TOAST MATERIAL ────────────────────────────────────── */
.toast {
  position: absolute; bottom: 80px; left: 12px; right: 12px;
  background: #323232; border-radius: var(--radius-sm);
  padding: 14px 18px; z-index: 9999;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-title { font-size: 14px; color: #fff; font-weight: 700; margin-bottom: 2px; }
.toast-body { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ── LOADING SPINNER ───────────────────────────────────── */
.loading { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--verde);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DIÁLOGO CONFIRMAÇÃO ───────────────────────────────── */
.dialog-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.dialog-overlay.show { display: flex; }
.dialog-box {
  background: #fff; border-radius: var(--radius);
  padding: 24px; width: 100%; max-width: 340px;
  box-shadow: var(--shadow-lg); animation: dialogIn 0.2s ease;
}
@keyframes dialogIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog-title { font-size: 18px; font-weight: 700; color: var(--texto); margin-bottom: 10px; }
.dialog-body { font-size: 14px; color: var(--texto2); margin-bottom: 24px; line-height: 1.5; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-btn {
  flex: 1; padding: 12px; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Roboto', sans-serif; min-height: 48px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.dialog-btn-cancel { background: var(--bg); color: var(--texto2); }
.dialog-btn-confirm { background: #ef4444; color: #fff; }

/* ── MODAL FILTRO ──────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 9998;
  align-items: flex-end; justify-content: center;
}
.modal-sheet {
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 24px; width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.modal-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 20px; display: block;
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

/* ── VERIFICAÇÃO SMS ───────────────────────────────────── */
.sms-digits {
  display: flex; gap: 10px; justify-content: center; margin: 20px 0;
}
.sms-digit {
  width: 48px; height: 60px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 24px; font-weight: 700;
  text-align: center; font-family: 'Roboto', sans-serif;
  color: var(--texto); background: var(--white); transition: border-color 0.2s;
}
.sms-digit:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(37,211,102,0.12); }

/* ── TEMPO RESTANTE ────────────────────────────────────── */
.expiry-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--texto3); font-weight: 500;
}
.expiry-badge.urgente { color: #ef4444; }

/* ── UTILITÁRIOS ───────────────────────────────────────── */
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ── SPLASH ────────────────────────────────────────────── */
#t-splash { padding: 0; }

/* ── AUTOCOMPLETE ───────────────────────────────────────── */
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); z-index: 999; max-height: 200px; overflow-y: auto; box-shadow: var(--shadow-md); }
.autocomplete-item { padding: 12px 16px; font-size: 14px; cursor: pointer; border-bottom: 0.5px solid #f0f0f0; color: var(--texto); min-height: 48px; display: flex; align-items: center; }
.autocomplete-item:hover, .autocomplete-item:active { background: var(--verde-bg); color: #0F6E56; }

/* ── VEICULO BTN SEL ─────────────────────────────────── */
.veiculo-btn.sel { background: var(--verde); color: #fff; border-color: var(--verde); }

/* ── ENCERRAR BTN ────────────────────────────────────── */
.btn-encerrar {
  background: #fef2f2; color: #ef4444;
  border: 1.5px solid #fecaca; border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Roboto', sans-serif;
  min-height: 40px; letter-spacing: 0.3px;
}
