@font-face {
  font-family: "Zisel";
  src: url("../assets/fonts/Zisel-Thin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zisel";
  src: url("../assets/fonts/Zisel-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zisel";
  src: url("../assets/fonts/Zisel-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zisel";
  src: url("../assets/fonts/Zisel-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Identidade Milhas na Prática 360: degradê azul → #1E1E1E no fundo da tela inteira,
   blocos em vidro bem transparente e todo o texto em branco por cima. */
:root {
  color-scheme: dark;

  --azul-principal: #0047ab;
  --azul-secundario: #3c77bc;
  --azul-claro: #8db8ff;
  --quase-preto: #1e1e1e;
  --cinza-claro: #efefef;
  --cinza-medio: #d3d3d3;
  --branco: #ffffff;

  --texto: #ffffff;
  --texto-2: rgba(255, 255, 255, 0.7);
  --texto-3: rgba(255, 255, 255, 0.5);
  --linha: rgba(255, 255, 255, 0.12);

  --verde-sucesso: #8fe3b0;
  --verde-sucesso-bg: rgba(120, 220, 160, 0.16);
  --ambar: #f2b33d;
  --ambar-alerta: #f7c766;
  --ambar-alerta-bg: rgba(242, 179, 61, 0.16);
  --vermelho-erro: #ff8a80;
  --vermelho-erro-bg: rgba(255, 110, 100, 0.16);

  --fonte-display: "Zisel", "Montserrat", system-ui, sans-serif;
  --fonte: "Montserrat", system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --largura-menu: 256px;

  /* Vidro: o mesmo material em todos os blocos */
  --vidro-bg: rgba(255, 255, 255, 0.08);
  --vidro-bg-elevado: rgba(255, 255, 255, 0.13);
  --vidro-borda: rgba(255, 255, 255, 0.16);
  --vidro-desfoque: 22px;
  --vidro-realce: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --vidro-sutil: rgba(255, 255, 255, 0.05);

  /* Modais e gaveta do menu precisam ser quase opacos pra leitura de formulário */
  --superficie: rgba(20, 26, 38, 0.94);
  --campo-bg: rgba(255, 255, 255, 0.07);
  --campo-borda: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--fonte);
  background: #101418;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Fundo fixo numa camada própria (background-attachment: fixed falha no celular) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/fundo-360.jpg") center / cover no-repeat;
}

a,
button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: var(--azul-claro);
}

:focus-visible {
  outline: 3px solid var(--azul-claro);
  outline-offset: 2px;
  border-radius: 6px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand-thin {
  font-weight: 300;
}

.brand-bold {
  font-weight: 900;
}

/* ---------- Cabeçalho (só no celular) ---------- */

.app-header {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 50;
  margin: max(12px, env(safe-area-inset-top)) 12px 0;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(20, 24, 30, 0.45);
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(var(--vidro-desfoque));
  -webkit-backdrop-filter: blur(var(--vidro-desfoque));
  box-shadow: var(--vidro-realce);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  text-decoration: none;
}

.brand img {
  height: 24px;
  width: auto;
  display: block;
}

.brand-name {
  font-family: var(--fonte-display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.app-header-espaco {
  width: 36px;
  flex: none;
}

.btn-menu,
.btn-fechar-menu {
  background: none;
  border: none;
  color: var(--texto);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.btn-menu {
  width: 36px;
  height: 36px;
}

.btn-menu svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.btn-fechar-menu {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border: 1px solid var(--vidro-borda);
}

/* ---------- Menu lateral ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.menu-overlay.visivel {
  opacity: 1;
  pointer-events: auto;
}

.menu-lateral {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 300px);
  background: var(--superficie);
  backdrop-filter: blur(var(--vidro-desfoque));
  -webkit-backdrop-filter: blur(var(--vidro-desfoque));
  border-right: 1px solid var(--linha);
  z-index: 201;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
  padding: max(22px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}

.menu-lateral.aberta {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.28s ease;
}

.menu-lateral-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.menu-lateral-topo .brand img {
  height: 28px;
}

.menu-lateral-topo .brand-name {
  font-size: 1.35rem;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-grupo {
  margin: 16px 14px 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.menu-lateral a,
.menu-rodape button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--texto-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.menu-lateral a:hover,
.menu-rodape button:hover {
  color: var(--texto);
  background: var(--vidro-sutil);
}

.menu-lateral a.ativo {
  background: var(--branco);
  color: var(--quase-preto);
  font-weight: 600;
}

.menu-lateral-topo a.brand,
.menu-lateral-topo a.brand:hover {
  background: none;
  padding: 0;
  min-height: 0;
  color: var(--texto);
}

.icone-menu {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-rodape {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--linha);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-rodape a,
.menu-rodape button {
  font-size: 0.8rem;
  min-height: 38px;
}

@media (prefers-reduced-motion: reduce) {
  .menu-lateral {
    transition: transform 0.01s linear, visibility 0s linear 0.01s;
  }
  .menu-lateral.aberta {
    transition: transform 0.01s linear;
  }
  .menu-overlay {
    transition: opacity 0.01s linear;
  }
}

/* No computador: menu fixo na esquerda, sem caixa, direto sobre o degradê */
@media (min-width: 1024px) {
  .app {
    padding-left: var(--largura-menu);
  }

  .app-header,
  .menu-overlay,
  .btn-fechar-menu {
    display: none;
  }

  .menu-lateral,
  .menu-lateral.aberta {
    width: var(--largura-menu);
    transform: none;
    visibility: visible;
    transition: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 28px 18px 18px;
    gap: 26px;
  }
}

/* ---------- Conteúdo ---------- */

.app-content {
  flex: 1;
  padding: 28px 16px 40px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .app-content {
    padding: 44px 48px 56px;
    margin: 0;
  }
}

.link-voltar {
  display: inline-block;
  color: var(--azul-claro);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.link-voltar:hover {
  text-decoration: underline;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.page-header h2 {
  margin: 0;
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--texto);
}

/* ---------- Relatórios ---------- */

.relatorio-total {
  position: relative;
  overflow: hidden;
  background: url("../assets/asa.jpg") center 40% / cover;
  border: 1px solid var(--vidro-borda);
  color: var(--texto);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin: 20px 0;
}

.relatorio-total::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 60, 0.25), rgba(5, 12, 30, 0.82));
}

.relatorio-total > * {
  position: relative;
}

.relatorio-total-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--texto-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.relatorio-total-valor {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.relatorio-total-sub {
  font-size: 0.8rem;
  color: var(--texto-2);
}

.relatorio-duas-colunas {
  display: flex;
  gap: 12px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.relatorio-mini-total {
  flex: 1;
  min-width: 140px;
  background: var(--vidro-bg);
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(var(--vidro-desfoque));
  -webkit-backdrop-filter: blur(var(--vidro-desfoque));
  box-shadow: var(--vidro-realce);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.relatorio-mini-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--texto-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.relatorio-mini-valor {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--texto);
  font-variant-numeric: tabular-nums;
}

.relatorio-subtitulo {
  font-family: var(--fonte-display);
  font-weight: 400;
  color: var(--texto);
  font-size: 1.3rem;
  margin: 28px 0 12px;
}

.relatorio-meses {
  background: var(--vidro-bg);
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(var(--vidro-desfoque));
  -webkit-backdrop-filter: blur(var(--vidro-desfoque));
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.relatorio-mes-linha {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--linha);
}

.relatorio-mes-linha:last-child {
  border-bottom: none;
}

.relatorio-mes-linha strong {
  color: var(--texto);
  font-variant-numeric: tabular-nums;
}

.relatorio-pontos-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--linha);
}

.relatorio-pontos-linha:last-child {
  border-bottom: none;
}

.relatorio-pontos-valores {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.relatorio-pontos-valores strong {
  color: var(--texto);
}

.relatorio-pontos-valores small {
  color: var(--texto-3);
  font-size: 0.72rem;
}

/* PDF do relatório: sempre papel branco com texto preto, independente do tema da tela */
.relatorio-impressao {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 800px;
  background: #fff;
  color: #000;
  padding: 24px;
  color-scheme: light;
}

.relatorio-impressao * {
  color: #000;
  background: none;
  border-color: #ddd;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.relatorio-impressao-cabecalho h1 {
  color: var(--azul-principal);
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.relatorio-impressao-cabecalho p {
  margin: 2px 0;
  font-size: 0.85rem;
}

@media print {
  body {
    background: #fff;
  }

  body::before {
    display: none;
  }

  .app,
  .modal-overlay,
  .menu-lateral,
  .menu-overlay {
    display: none !important;
  }

  .relatorio-impressao {
    position: static;
    left: auto;
    top: auto;
    width: auto;
  }
}

.tag-aereo {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-claro);
  background: rgba(141, 184, 255, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Botões ---------- */

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fonte);
  transition: transform 0.1s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-primary {
  background: var(--branco);
  border-color: var(--branco);
  color: var(--quase-preto);
}

.btn-primary:hover {
  background: #e9eef7;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--texto);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 138, 128, 0.55);
  color: var(--vermelho-erro);
}

.btn-danger:hover {
  background: var(--vermelho-erro-bg);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.78rem;
}

/* ---------- Filtros e abas ---------- */

.filtros-expansiveis {
  background: var(--vidro-bg);
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(var(--vidro-desfoque));
  -webkit-backdrop-filter: blur(var(--vidro-desfoque));
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.filtros-expansiveis summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--texto);
  list-style: none;
}

.filtros-expansiveis summary::-webkit-details-marker {
  display: none;
}

.filtros-expansiveis summary::after {
  content: "▾";
  float: right;
  color: var(--texto-2);
  transition: transform 0.15s ease;
}

.filtros-expansiveis[open] summary::after {
  transform: rotate(180deg);
}

.filtros-expansiveis .campo-linha {
  margin-top: 14px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--vidro-bg);
  border: 1px solid var(--vidro-borda);
}

.tab {
  background: none;
  border: none;
  color: var(--texto-2);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
}

.tab:hover {
  color: var(--texto);
}

.tab.ativo {
  background: var(--branco);
  color: var(--quase-preto);
}

/* ---------- Cards / listas ---------- */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vidro,
.card {
  background: var(--vidro-bg);
  backdrop-filter: blur(var(--vidro-desfoque));
  -webkit-backdrop-filter: blur(var(--vidro-desfoque));
  border: 1px solid var(--vidro-borda);
  box-shadow: var(--vidro-realce);
}

.card {
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.32s ease, margin 0.32s ease, padding 0.32s ease, border-color 0.2s ease, background 0.2s ease;
}

a.card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

a.card:hover {
  background: var(--vidro-bg-elevado);
  transform: translateY(-1px);
}

/* Feedback de "salvo com sucesso" antes do card recolher e sair da lista (usado no import por IA) */
.card--sucesso {
  border-color: var(--verde-sucesso);
  box-shadow: 0 0 0 2px var(--verde-sucesso-bg), var(--vidro-realce);
}

.card--sucesso .btn[data-acao="salvar"] {
  background: var(--verde-sucesso);
  border-color: var(--verde-sucesso);
  color: var(--quase-preto);
}

.card--saindo {
  opacity: 0;
  transform: scale(0.96);
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: opacity 0.12s linear, max-height 0.12s linear;
  }
  .card--saindo {
    transform: none;
  }
}

/* Sem suporte a desfoque (ou com transparência reduzida): vidro vira bloco escuro sólido */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vidro,
  .card,
  .app-header {
    background: rgba(24, 32, 46, 0.92);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .vidro,
  .card,
  .app-header {
    background: rgba(24, 32, 46, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.card-info h3 {
  margin: 0 0 4px;
  color: var(--texto);
  font-size: 1rem;
  font-weight: 600;
}

.card-info p {
  margin: 3px 0;
  color: var(--texto-2);
  font-size: 0.85rem;
}

.card-info strong {
  color: var(--texto);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-basis: 100%;
}

.reservas-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Cabeçalho clicável dos cards agrupados por cliente (Viagens/Hotéis) —
   mostra só o nome até a pessoa clicar pra expandir as reservas daquele cliente. */
.toggle-grupo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--texto);
}

.toggle-grupo h3 {
  margin: 0;
  color: var(--texto);
  font-size: 1rem;
  font-weight: 600;
}

.toggle-seta {
  color: var(--texto-2);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  flex: none;
}

.toggle-grupo[aria-expanded="true"] .toggle-seta {
  transform: rotate(180deg);
}

.painel-ia,
.reserva-hotel,
.card-dependente {
  border: 1px solid var(--linha);
  background: var(--vidro-sutil);
}

.painel-ia {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.painel-ia textarea {
  width: 100%;
}

.reserva-hotel {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.reserva-hotel-info h4 {
  margin: 0 0 4px;
  color: var(--texto);
  font-size: 0.92rem;
  font-weight: 600;
}

.reserva-hotel-info p {
  margin: 3px 0;
  color: var(--texto-2);
  font-size: 0.83rem;
}

.card-dependente {
  margin-left: 24px;
  margin-top: -6px;
  box-shadow: none;
}

.tag-parentesco {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(141, 184, 255, 0.14);
  color: var(--azul-claro);
  vertical-align: middle;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 4px;
}

.status-pendente {
  background: var(--ambar-alerta-bg);
  color: var(--ambar-alerta);
}

.status-emitida,
.status-reservado {
  background: var(--verde-sucesso-bg);
  color: var(--verde-sucesso);
}

.empty-state {
  text-align: center;
  color: var(--texto-2);
  padding: 40px 16px;
  background: var(--vidro-bg);
  border: 1px solid var(--vidro-borda);
  border-radius: var(--radius);
}

.empty-state a {
  color: var(--azul-claro);
}

/* ---------- Formulários / Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 300;
}

.escondido {
  display: none !important;
}

.modal {
  background: var(--superficie);
  border: 1px solid var(--vidro-borda);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), var(--vidro-realce);
  color: var(--texto);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin-top: 0;
  font-family: var(--fonte-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--texto);
}

.modal p {
  color: var(--texto-2);
}

.modal-cabecalho {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  /* Fixo no topo ao rolar o conteúdo do modal — a margem/padding negativos cancelam
     o padding do .modal pra encostar de verdade no topo em vez de ficar colado 24px
     abaixo dele. */
  position: sticky;
  top: -24px;
  z-index: 1;
  background: #161c28;
  margin: -24px -24px 16px;
  padding: 24px 24px 0;
}

.modal-cabecalho h3 {
  flex: 1;
}

.modal-fechar {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--vidro-borda);
  background: none;
  color: var(--texto);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campo {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto);
}

.campo-dica {
  margin: 0;
  font-size: 0.75rem;
  color: var(--texto-3);
}

.campo input,
.campo textarea,
.campo select,
.cliente-pendente select,
.painel-ia textarea,
.painel-ia input,
.painel-ia select {
  padding: 10px 12px;
  background: var(--campo-bg);
  border: 1px solid var(--campo-borda);
  border-radius: 12px;
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 0.9rem;
}

.campo input::placeholder,
.campo textarea::placeholder,
.painel-ia textarea::placeholder {
  color: var(--texto-3);
}

.campo input:focus,
.campo textarea:focus,
.campo select:focus,
.painel-ia textarea:focus {
  outline: none;
  border-color: var(--azul-claro);
  background: rgba(255, 255, 255, 0.1);
}

/* A lista aberta do select é desenhada pelo sistema — garante fundo escuro e texto claro */
option,
optgroup {
  background: #1b2230;
  color: #fff;
}

.campo textarea {
  resize: vertical;
  min-height: 60px;
}

.campo input[readonly] {
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  color: var(--azul-claro);
  font-weight: 700;
  cursor: default;
}

.checklist-clientes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--campo-borda);
  background: var(--campo-bg);
  border-radius: 12px;
  padding: 10px 12px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--texto);
}

.checklist-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--azul-claro);
}

.secao-titulo {
  margin: 18px 0 6px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--texto-2);
  border-top: 1px solid var(--linha);
  padding-top: 16px;
}

.aviso-sensivel {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: var(--ambar-alerta);
  background: var(--ambar-alerta-bg);
  padding: 9px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.clientes-pendentes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.cliente-pendente {
  font-size: 0.78rem;
  color: var(--ambar-alerta);
  background: var(--ambar-alerta-bg);
  padding: 9px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cliente-pendente select {
  width: 100%;
}

.aviso-opcional {
  margin: -4px 0 16px;
  font-size: 0.8rem;
  color: #c4d9ff;
  background: rgba(141, 184, 255, 0.12);
  padding: 9px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.modal .aviso-opcional {
  color: #c4d9ff;
}

.aviso-opcional a {
  color: var(--texto);
}

.campo-linha {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .campo-linha {
    grid-template-columns: 1fr 1fr;
  }
}

.campo-linha .campo,
.campo-linha > div {
  margin-bottom: 0;
}

.campo-linha label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto);
  display: block;
  margin-bottom: 6px;
}

.campo-senha {
  position: relative;
}

.campo-senha input {
  padding-right: 42px;
}

.campo-senha .btn-mostrar {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
}

.campo-senha .btn-mostrar.ativo {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.campo-senha-copiavel input {
  padding-right: 76px;
}

.campo-senha-copiavel .btn-mostrar {
  right: 40px;
}

.campo-senha-copiavel .btn-copiar {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
}

.campo-senha-copiavel .btn-copiar:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.link-mostrar-senha {
  border: none;
  background: none;
  color: var(--azul-claro);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.campo-busca-cliente {
  margin-bottom: 14px;
}

.lista-compartilhados {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.compartilhado-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  background: var(--vidro-sutil);
  border: 1px solid var(--linha);
  padding: 8px 12px;
  border-radius: 12px;
}

.compartilhado-item button {
  border: none;
  background: transparent;
  color: var(--vermelho-erro);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- Início (dashboard) ---------- */

.inicio {
  position: relative;
}

.inicio-globo {
  position: absolute;
  right: -30px;
  top: -34px;
  width: 410px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.inicio > :not(.inicio-globo) {
  position: relative;
  z-index: 1;
}

.rotulo {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.inicio-data {
  color: var(--texto-2);
}

.inicio-titulo {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 3.9rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 14px 0 10px;
}

.inicio-sub {
  margin: 0;
  color: var(--texto-2);
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
}

.inicio-acoes {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.kpis {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  margin: 38px 0 18px;
}

.kpi {
  border-radius: 28px;
  padding: 24px 26px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: var(--texto);
  text-decoration: none;
}

.kpi-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.kpi .rotulo {
  color: var(--texto-2);
  font-size: 0.62rem;
}

.kpi-icone {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  flex: none;
}

.kpi-valor {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: 4.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

.kpi-nota {
  font-size: 0.82rem;
  color: var(--texto-2);
  margin-top: 8px;
}

.kpi-economia {
  background: url("../assets/asa.jpg") center 40% / cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kpi-economia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 60, 0.1), rgba(5, 12, 30, 0.82));
}

.kpi-economia > * {
  position: relative;
}

.kpi-economia .kpi-valor {
  font-size: 3.2rem;
}

.kpi-economia .kpi-valor small {
  font-size: 1.5rem;
  font-weight: 300;
  margin-right: 6px;
}

.kpi-barra {
  display: flex;
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 14px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.kpi-barra .voos {
  background: var(--azul-claro);
}

.kpi-barra .hoteis {
  background: var(--branco);
}

.kpi-legenda {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  margin-top: 8px;
  color: var(--texto-2);
}

.kpi-legenda b {
  color: var(--texto);
  font-weight: 600;
}

.kpi-legenda i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.pendencias {
  display: grid;
  gap: 18px;
}

.painel {
  border-radius: 28px;
  padding: 26px 28px;
}

.painel-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.painel h2 {
  margin: 0;
  font-family: var(--fonte-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contador {
  font-family: var(--fonte);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--branco);
  color: var(--quase-preto);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0;
}

.painel-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--texto);
  opacity: 0.8;
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.painel-link:hover {
  opacity: 1;
}

.painel-sub {
  color: var(--texto-3);
  font-size: 0.6rem;
}

.pendencia {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--linha);
}

.pendencia:first-of-type {
  border-top: 0;
  margin-top: 8px;
}

.pendencia-dia {
  width: 56px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pendencia-dia b {
  font-family: var(--fonte-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
}

.pendencia-dia small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--texto-2);
  margin-top: 3px;
}

.pendencia-dia.urgente {
  background: var(--ambar);
  color: var(--quase-preto);
}

.pendencia-dia.urgente small {
  color: rgba(30, 30, 30, 0.7);
}

.pendencia-dia.sem-data small {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
}

.pendencia-info {
  min-width: 0;
}

.pendencia-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.pendencia-info p {
  margin: 3px 0 0;
  font-size: 0.82rem;
  color: var(--texto-2);
}

.pendencia-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ambar);
  margin-left: 8px;
  white-space: nowrap;
}

.pendencia .btn {
  margin-left: auto;
  flex: none;
}

.pendencia .btn svg,
.painel-link svg,
.inicio-acoes svg,
.kpi-icone svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kpi-icone svg {
  width: 18px;
  height: 18px;
}

.pendencias-vazio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 4px;
  color: var(--texto-2);
  font-size: 0.88rem;
}

.pendencias-vazio b {
  display: block;
  color: var(--texto);
  font-weight: 600;
  margin-bottom: 2px;
}

.pendencias-vazio-icone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: var(--verde-sucesso-bg);
  color: var(--verde-sucesso);
  display: grid;
  place-items: center;
}

.pendencias-vazio-icone svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.so-celular {
  display: none;
}

@media (max-width: 1023px) {
  .inicio-globo {
    width: 104px;
    right: 6px;
    top: -2px;
  }

  .inicio-titulo,
  .inicio-sub {
    max-width: calc(100% - 110px);
  }
}

@media (max-width: 719px) {
  .so-computador {
    display: none;
  }

  .so-celular {
    display: inline;
  }

  .inicio-sub {
    font-size: 0.88rem;
  }

  .inicio-acoes .btn {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 26px 0 12px;
  }

  .kpi-economia {
    grid-column: 1 / -1;
    min-height: 180px;
  }

  .kpi {
    min-height: 140px;
    padding: 18px;
    border-radius: 22px;
  }

  .kpi-valor {
    font-size: 3.1rem;
  }

  .kpi-economia .kpi-valor {
    font-size: 2.4rem;
  }

  .kpi-economia .kpi-valor small {
    font-size: 1.2rem;
  }

  .pendencias {
    gap: 12px;
  }

  .painel {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .painel h2 {
    font-size: 1.3rem;
  }

  .painel-link span {
    display: none;
  }

  .painel-link {
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--vidro-borda);
  }

  .pendencia {
    gap: 12px;
  }

  .pendencia .btn {
    padding: 10px;
  }

  .pendencia .btn span {
    display: none;
  }
}
