:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --border: #2d3f56;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(34, 197, 94, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header p {
  color: var(--muted);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.titulo-venda {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.55rem;
}

.titulo-evento {
  font-size: 1.55rem;
  font-weight: 800;
  color: #00ff00;
  margin-top: 0.25rem;
}

@media (max-width: 520px) {
  .titulo-venda {
    font-size: 1.2rem;
  }
  .titulo-evento {
    font-size: 1.35rem;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group label .req {
  color: var(--error);
}

input[type="text"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.payment-option:hover {
  border-color: var(--accent);
}

.payment-option input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.upload-area {
  margin-top: 1rem;
  padding: 1.25rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.upload-area.hidden {
  display: none;
}

.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}

.upload-area input[type="file"] {
  display: none;
}

.upload-area .upload-label {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-area .upload-label strong {
  color: var(--accent);
}

.upload-area .file-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--success);
  word-break: break-all;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Admin */
.admin-wrap {
  max-width: 1100px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-pix { background: #0ea5e920; color: #38bdf8; }
.badge-debito { background: #a855f720; color: #c084fc; }
.badge-dinheiro { background: #22c55e20; color: #4ade80; }

.link-comprovante {
  color: var(--accent);
  text-decoration: none;
}

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

.login-box {
  max-width: 360px;
  margin: 4rem auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.stat-card .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-card .lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.filter-tab-pix.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.filter-tab-debito.active {
  background: #a855f7;
  border-color: #a855f7;
}

.filter-tab-dinheiro.active {
  background: #22c55e;
  border-color: #22c55e;
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.filter-tab:not(.active) .filter-count {
  background: var(--surface2);
  color: var(--text);
}

.filter-resumo {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.filter-resumo strong {
  color: var(--text);
}

.export-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.export-bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.export-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-export {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.btn-export-csv {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.btn-export-csv:hover {
  background: rgba(34, 197, 94, 0.22);
}

.btn-export-xlsx {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

.btn-export-xlsx:hover {
  background: rgba(59, 130, 246, 0.22);
}

.export-bar-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form-excluir {
  margin: 0;
}

.btn-excluir {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  cursor: pointer;
}

.btn-excluir:hover {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}

.unidade-box {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: var(--radius);
}

.unidade-box.hidden {
  display: none;
}

.unidade-aviso {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fde047;
  margin-bottom: 1rem;
}

.unidade-dica {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.comprovante-titulo {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.comprovante-titulo .req {
  color: var(--error);
}

.valor-resumo {
  margin: 0.25rem 0 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius);
}

.valor-resumo-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.valor-resumo-preco {
  color: var(--text);
  font-weight: 500;
}

.valor-resumo-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.valor-resumo-total strong {
  font-size: 1.5rem;
  color: #60a5fa;
  font-weight: 700;
}

.valor-resumo--um .valor-resumo-total strong {
  font-size: 2rem;
  color: #38bdf8;
}

.valor-resumo--um {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.12);
}

.valor-resumo-detalhe {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* PIX */
.pix-acoes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
}

.pix-acoes.hidden {
  display: none;
}

.btn-pix-abrir {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #0ea5e9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-pix-abrir:hover {
  background: #0284c7;
}

.btn-link-pix {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

.btn-link-pix:hover {
  text-decoration: underline;
}

.modal-pix {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-pix.hidden {
  display: none;
}

.modal-pix-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-pix-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-pix-fechar {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-pix-fechar:hover {
  color: var(--text);
}

.modal-pix-body {
  padding: 1.25rem 1.25rem 0.5rem;
}

.modal-pix-body .pix-painel {
  border: none;
  box-shadow: none;
  padding: 0;
}

.modal-pix-rodape {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-pix-fechar-rodape {
  width: 100%;
  padding: 0.7rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.pix-painel .pix-titulo {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
  border: none;
  padding: 0;
}

.pix-valor-destaque {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 8px;
}

.pix-valor-destaque span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pix-valor-destaque strong {
  display: block;
  font-size: 1.75rem;
  color: #38bdf8;
  margin-top: 0.25rem;
}

.pix-valor-destaque--fixo strong {
  font-size: 2.25rem;
  color: #fff;
}

.pix-valor-destaque--fixo {
  background: rgba(14, 165, 233, 0.25);
  border-color: #0ea5e9;
}

.pix-valor-fixo-badge {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #bae6fd;
}

.pix-instrucao {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
}

.pix-qrcode-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pix-qrcode-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 0.5rem;
}

.pix-qrcode-placeholder {
  width: 260px;
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.pix-chave-box label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.pix-chave-linha {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.pix-chave-valor {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  word-break: break-all;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.btn-pix-copiar {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.pix-copiado-msg {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #4ade80;
}

.pix-aviso {
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 0.85rem;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 8px;
  color: #fde047;
}

/* QR Code e validação */
.acompanhantes-box { margin: 1rem 0; padding: 1rem 1.15rem; background: rgba(59,130,246,.08); border:1px solid rgba(59,130,246,.35); border-radius: var(--radius); }
.acompanhantes-box.hidden { display:none; }
.btn-qr, .btn-download, .btn-checkin { display:inline-block; padding:.38rem .65rem; margin:.15rem; border-radius:6px; font-size:.75rem; font-weight:700; text-decoration:none; border:1px solid var(--border); cursor:pointer; font-family:inherit; }
.btn-qr { color:#bae6fd; background:rgba(14,165,233,.16); border-color:rgba(14,165,233,.45); }
.btn-download { color:#86efac; background:rgba(34,197,94,.14); border-color:rgba(34,197,94,.45); }
.btn-checkin { color:#fde68a; background:rgba(234,179,8,.14); border-color:rgba(234,179,8,.45); }
.qr-mini { width:72px; height:72px; background:#fff; padding:4px; border-radius:6px; display:block; margin-top:.4rem; }
.badge-entrada-sim { background:#22c55e20; color:#4ade80; }
.badge-entrada-nao { background:#ef444420; color:#fca5a5; }
.checkin-box { max-width:560px; }
#reader { width:100%; max-width:420px; margin:1rem auto; overflow:hidden; border-radius:12px; background:#000; }
.resultado-checkin { margin-top:1rem; padding:1rem; border-radius:12px; border:1px solid var(--border); background:var(--surface); }
.resultado-ok { border-color:rgba(34,197,94,.55); background:rgba(34,197,94,.12); }
.resultado-erro { border-color:rgba(239,68,68,.55); background:rgba(239,68,68,.12); }
.resultado-alerta { border-color:rgba(234,179,8,.55); background:rgba(234,179,8,.12); }
.acoes-admin { display:flex; flex-wrap:wrap; gap:.25rem; align-items:center; }

/* Melhorias do painel admin - cards responsivos, sem barra lateral */
.admin-wrap-wide {
  max-width: 1180px;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.admin-top-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-top-links a {
  color: var(--accent);
  font-size: .9rem;
}

.admin-top-links .link-checkin {
  color: #fde047;
  font-weight: 700;
}

.admin-top-links .link-muted {
  color: var(--muted);
}

.compact-card {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.admin-list-card {
  padding: 1.25rem;
}

.ingressos-lista {
  display: grid;
  gap: .9rem;
}

.ingresso-card {
  display: grid;
  grid-template-columns: 1.15fr 2.5fr 145px 160px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.ingresso-main {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.ingresso-id {
  flex: 0 0 auto;
  min-width: 42px;
  height: 42px;
  padding: .2rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--accent);
  font-weight: 800;
}

.ingresso-aluno {
  min-width: 0;
}

.ingresso-aluno strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
}

.ingresso-aluno span,
.ingresso-info-grid span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ingresso-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: .75rem 1rem;
}

.ingresso-info-grid strong {
  display: block;
  margin-top: .15rem;
  font-size: .88rem;
  color: var(--text);
  word-break: break-word;
}

.ingresso-info-grid small {
  display: block;
  margin-top: .2rem;
  color: var(--text);
  font-size: .78rem;
  font-weight: 500;
}

.ingresso-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 112px;
}

.qr-mini-card {
  width: 92px;
  height: 92px;
  margin-top: .45rem;
}

.acoes-admin-card {
  justify-content: flex-end;
  align-items: stretch;
}

.acoes-admin-card .btn-qr,
.acoes-admin-card .btn-download,
.acoes-admin-card .btn-checkin,
.acoes-admin-card .btn-excluir {
  width: 100%;
  text-align: center;
  margin: 0;
}

.acoes-admin-card .form-excluir {
  width: 100%;
}

@media (max-width: 1050px) {
  .ingresso-card {
    grid-template-columns: 1fr 140px;
  }
  .ingresso-info-grid {
    grid-column: 1 / 2;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
  .ingresso-qr-box {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .acoes-admin-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-wrap-wide {
    padding-left: .75rem;
    padding-right: .75rem;
  }
  .admin-list-card {
    padding: 1rem;
  }
  .stats-admin {
    grid-template-columns: 1fr;
  }
  .ingresso-card {
    grid-template-columns: 1fr;
  }
  .ingresso-info-grid {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ingresso-qr-box {
    grid-column: auto;
    grid-row: auto;
    align-items: flex-start;
    text-align: left;
    min-height: auto;
  }
  .acoes-admin-card {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .ingresso-info-grid,
  .acoes-admin-card {
    grid-template-columns: 1fr;
  }
  .ingresso-main {
    align-items: flex-start;
  }
}


/* Cupons */
.cupom-box {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius);
}
.cupom-box.hidden { display: none; }
.cupom-linha { display: flex; gap: .6rem; align-items: stretch; }
.cupom-linha input { flex: 1; text-transform: uppercase; }
.btn-cupom {
  padding: 0 .9rem;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  background: #22c55e;
  cursor: pointer;
}
.btn-cupom:disabled { opacity: .65; cursor: not-allowed; }
.cupom-msg { margin-top: .55rem; font-size: .85rem; color: var(--muted); }
.cupom-msg-ok { color: #86efac; }
.cupom-admin-form { margin-bottom: 1rem; }
.cupom-card .acoes-admin form { margin: 0; }
@media (max-width: 520px) { .cupom-linha { flex-direction: column; } .btn-cupom { padding: .75rem; } }

/* Configurações do evento / PIX */
.config-evento-card input[type="file"] {
  width: 100%;
  margin-top: .75rem;
  padding: .75rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.config-pix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.config-pix-box {
  padding: 1rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.config-pix-box h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}
.config-pix-box p {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.config-pix-box code {
  color: #86efac;
  word-break: break-all;
}
.config-pix-box img {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: .75rem auto;
  background: #fff;
  padding: .4rem;
  border-radius: 8px;
}
@media (max-width: 700px) {
  .config-pix-grid {
    grid-template-columns: 1fr;
  }
}

.config-gerar-pix-auto {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius);
}
.config-gerar-pix-auto h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: #86efac;
}
.config-gerar-pix-auto p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}
.btn-pix-gerar-auto {
  background: #16a34a;
  margin-top: 1rem;
}
.btn-pix-gerar-auto:hover:not(:disabled) {
  background: #15803d;
}
