:root {
  --azul: #007bff;
  --azul-escuro: #0056b3;
  --laranja: #ff5722;
  --fundo: #f0f2f5;
  --cartao: #ffffff;
  --texto: #1f2933;
  --suave: #616e7c;
  --borda: #d9dee4;
  --erro: #d93025;
  --ok: #1e8e3e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 16px;
}

.hidden { display: none !important; }

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--azul);
  color: #fff;
}
.marca { font-weight: 700; font-size: 18px; }
.link { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; text-decoration: underline; }

.conteudo { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }

h1 { font-size: 24px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 6px; }
.sub { color: var(--suave); margin: 0 0 20px; line-height: 1.45; }

.cartao, .modal-caixa {
  background: var(--cartao);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 14px; }
input[type="password"], input:not([type]), input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  font: inherit;
}
input:focus { outline: 2px solid var(--azul); outline-offset: 1px; border-color: transparent; }

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--azul);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--azul-escuro); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.pequeno { width: auto; margin: 0; padding: 10px 16px; flex-shrink: 0; }
.btn.secundario { background: #e4e7eb; color: var(--texto); }
.btn.perigo { background: var(--laranja); }
.btn.perigo:hover { background: #e64a19; }

.erro { color: var(--erro); min-height: 1em; margin: 12px 0 0; font-size: 14px; }
.sucesso { color: var(--ok); font-weight: 700; margin: 0 0 12px; }
.sucesso:empty { display: none; }
.aviso {
  background: #fff4e5;
  color: #8a4b00;
  border: 1px solid #ffd8a8;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  line-height: 1.4;
}
.btn.pequeno:disabled { background: #c4cbd3; cursor: not-allowed; opacity: 1; }
.dica { color: var(--suave); font-size: 13px; margin: 6px 0 0; }
.vazio { color: var(--suave); text-align: center; padding: 24px 0; }

.lista { display: grid; gap: 12px; }
.ingresso {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--cartao);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.ingresso-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ingresso-info strong { overflow-wrap: anywhere; }
.tipo { color: var(--azul); font-weight: 700; font-size: 14px; }
.codigo { color: var(--suave); font-size: 12px; }
.selo {
  flex-shrink: 0;
  max-width: 45%;
  text-align: right;
  font-size: 12px;
  color: var(--suave);
}
.selo.usado { color: var(--erro); font-weight: 700; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}
.modal-caixa { position: relative; width: 100%; max-width: 440px; }
.fechar {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--suave);
}
.resumo { color: var(--suave); margin: 0 0 6px; }

.destino-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  margin-top: 12px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  background: #f7f9fb;
}
.destino-card span { font-size: 13px; color: var(--suave); }
.destino-card strong { font-size: 18px; }
.destino-card small { color: var(--suave); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.4; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

.acoes { display: flex; gap: 10px; }
.acoes .btn { flex: 1; }
