/* Ingressos (Meus Ingressos, o ingresso com QR, e o check-in) */

.ing-wrap { max-width: 900px; margin: 0 auto; padding: 34px 40px 60px; }

/* ── Abas ── */
.ing-tabs { display: inline-flex; background: #fff; border-radius: 50px; padding: 5px; box-shadow: var(--shadow-card); margin-bottom: 26px; }
.ing-tab {
  border: none; background: none; border-radius: 50px; padding: 9px 22px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--color-text-muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.ing-tab.on { background: var(--color-orange); color: #fff; }

/* ── Grid de cards ── */
.ing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ing-card {
  display: flex; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07); cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.ing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(180, 120, 220, 0.22); }
.ing-card.usado { opacity: 0.72; }

.ing-card-data {
  width: 78px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 8px;
}
.ing-card-mes { font-size: 11px; font-weight: 700; opacity: 0.9; letter-spacing: 0.05em; }
.ing-card-dia { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.ing-card-dow { font-size: 10px; font-weight: 600; opacity: 0.85; margin-top: 3px; }

/* Perfuração (o recorte do ingresso) */
.ing-perf { width: 0; border-left: 2px dashed rgba(132, 153, 183, 0.3); margin: 12px 0; position: relative; }
.ing-perf-top, .ing-perf-bot { position: absolute; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-cream); }
.ing-perf-top { top: -18px; }
.ing-perf-bot { bottom: -18px; }

.ing-card-body { flex: 1; min-width: 0; padding: 15px 16px; }
.ing-selo { background: linear-gradient(135deg, #ddb1f7, #ff6e1f); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; border-radius: 50px; padding: 3px 9px; }
.ing-card-nome { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--color-text); margin: 9px 0 8px; line-height: 1.15; }
.ing-card-meta { font-size: 12.5px; color: var(--color-text-secondary); margin-bottom: 12px; }
.ing-card-btn { background: var(--color-orange); color: #fff; border-radius: 50px; padding: 8px; text-align: center; font-size: 13px; font-weight: 600; }
.ing-card.usado .ing-card-btn { background: var(--color-cream); color: var(--color-text-muted); }

.ing-vazio { padding: 48px 24px; text-align: center; }
.ing-vazio-tit { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.ing-vazio-sub { font-size: 14px; color: var(--color-text-muted); }

/* ══════════ O ingresso (tela do QR) ══════════ */
.tk-page { max-width: 440px; margin: 0 auto; padding: 24px 20px 60px; }
.tk { background: #fff; border-radius: 26px; box-shadow: 0 20px 60px rgba(180, 120, 220, 0.28); overflow: hidden; position: relative; }

.tk-cover { position: relative; height: 150px; }
.tk-cover-bg { position: absolute; inset: 0; }
.tk-cover-selo { position: absolute; left: 20px; top: 16px; background: linear-gradient(135deg, #ddb1f7, #ff6e1f); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; border-radius: 50px; padding: 4px 12px; z-index: 1; }
.tk-cover-nome { position: absolute; left: 20px; right: 20px; bottom: 14px; z-index: 1; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; line-height: 1.1; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

.tk-girly { display: flex; align-items: center; gap: 14px; padding: 18px 22px 12px; }
.tk-girly-nome { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--color-text); line-height: 1.1; }
.tk-frase { font-size: 12.5px; color: #9b59d6; font-weight: 500; margin-top: 3px; }

.tk-info { display: flex; gap: 10px; padding: 4px 22px 8px; }
.tk-info-card { flex: 1; background: var(--color-cream); border-radius: 14px; padding: 12px 14px; }
.tk-info-lbl { font-size: 10px; color: var(--color-text-muted); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 5px; }
.tk-info-val { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--color-text); }
.tk-local { padding: 0 22px 6px; font-size: 12.5px; color: var(--color-text-secondary); }
/* Botão "Ver evento" no topo-direito da capa (o nome ocupa o rodapé; o selo, o topo-esquerdo). */
.tk-cover-verevento {
  position: absolute; right: 16px; top: 14px; z-index: 1;
  background: rgba(255, 255, 255, 0.92); color: var(--color-text);
  font-size: 11.5px; font-weight: 600; text-decoration: none;
  padding: 5px 11px; border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.tk-cover-verevento:hover { background: #fff; }
/* Endereço clicável → Google Maps. */
.tk-local-link { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-local-ir { color: var(--color-orange); font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.tk-comprovante { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--color-orange); text-decoration: none; }

/* ── Comprovante (recibo próprio, printável — BlankLayout) ── */
.comp-page { max-width: 520px; margin: 0 auto; padding: 24px 16px 48px; }
.comp-acoes { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.comp-card { background: #fff; border-radius: var(--radius-modal); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); padding: 28px 26px; }
.comp-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px dashed rgba(132, 153, 183, 0.35); margin-bottom: 18px; }
.comp-logo { width: 120px; height: auto; }
.comp-titulo { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-text); }
.comp-sec { margin-bottom: 16px; }
.comp-lbl { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 700; margin-bottom: 4px; }
.comp-val { font-size: 15px; color: var(--color-text); }
.comp-val-forte { font-weight: 700; }
.comp-sub { font-size: 12.5px; color: var(--color-text-secondary); margin-top: 2px; }
.comp-linhas { border-top: 1px solid rgba(132, 153, 183, 0.18); margin-top: 6px; }
.comp-linha { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(132, 153, 183, 0.15); font-size: 14px; }
.comp-linha > span:first-child { color: var(--color-text-secondary); flex-shrink: 0; }
.comp-linha > span:last-child { color: var(--color-text); text-align: right; min-width: 0; word-break: break-word; }
.comp-mono { font-family: ui-monospace, "Roboto Mono", monospace; font-size: 12.5px; }
.comp-rodape { margin-top: 20px; font-size: 11.5px; color: var(--color-text-muted); text-align: center; line-height: 1.5; }
@media print {
  .no-print { display: none !important; }
  .comp-page { padding: 0; max-width: none; }
  .comp-card { box-shadow: none; border-radius: 0; padding: 12px; }
}

.tk-perf { position: relative; height: 34px; display: flex; align-items: center; }
.tk-perf-l, .tk-perf-r { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--color-cream); }
.tk-perf-l { left: -13px; }
.tk-perf-r { right: -13px; }
.tk-perf-line { flex: 1; margin: 0 16px; border-top: 2px dashed rgba(132, 153, 183, 0.35); }

.tk-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 22px 26px; }
.tk-qr-box { background: #fff; border: 1.5px solid rgba(132, 153, 183, 0.18); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-card); }
.tk-qr-box img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.tk-qr-load { width: 228px; height: 228px; display: flex; align-items: center; justify-content: center; }
.tk-codigo { font-size: 11px; color: var(--color-text-muted); letter-spacing: 0.06em; font-weight: 600; }

/* Overlay "Entrada liberada" (ingresso já usado, e reusado no check-in) */
.tk-validado { position: absolute; inset: 0; z-index: 20; background: linear-gradient(160deg, #b4b536, #8fa02f); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 32px; overflow: hidden; cursor: pointer; animation: tkValidadoIn .25s ease-out; }
@keyframes tkValidadoIn { from { opacity: 0; } to { opacity: 1; } }
/* Dica de que dá pra tocar pra fechar (a animação também some sozinha em ~4,5s). */
.tk-validado-hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 11px; color: rgba(255, 255, 255, 0.85); }
/* Selo compacto de "validado" no ingresso, depois que o overlay sai. */
.tk-validado-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(180, 181, 54, 0.16); color: #5c5e00; font-size: 12px; font-weight: 600; border-radius: 50px; padding: 5px 12px; }
.tk-conf { position: absolute; font-size: 20px; animation: tkFloat 2.2s ease-out infinite; }
@keyframes tkFloat { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-150px) rotate(40deg); opacity: 0; } }
.tk-check-ring { width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; animation: tkPop .5s ease-out; }
.tk-check-in { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
@keyframes tkPop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.tk-validado-tit { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; }
.tk-validado-sub { font-size: 14px; color: rgba(255, 255, 255, 0.92); margin-top: 6px; }
.tk-validado-hora { background: rgba(255, 255, 255, 0.2); border-radius: 50px; padding: 7px 16px; font-size: 12px; color: #fff; font-weight: 600; }

/* ══════════ Check-in (admin, na porta) ══════════ */
.chk-wrap { max-width: 440px; margin: 0 auto; padding: 24px 20px 60px; }
.chk-camera { position: relative; aspect-ratio: 1; background: #2b2318; border-radius: 20px; overflow: hidden; margin-bottom: 14px; }
.chk-camera video { width: 100%; height: 100%; object-fit: cover; display: none; }
.chk-camera video.on { display: block; }
.chk-camera-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chk-mira { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, 0.7); border-radius: 20px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25); pointer-events: none; }
.chk-manual { display: flex; gap: 8px; margin-bottom: 16px; }
.chk-manual .input { flex: 1; }

.chk-result { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow-card-elevated); }
.chk-result.ok { border: 2px solid var(--color-olive, #b4b536); }
.chk-result.usado { border: 2px solid var(--color-slate, #8499b7); }
.chk-result.erro { border: 2px solid var(--color-danger, #e8473f); }
.chk-pessoa { display: flex; align-items: center; gap: 14px; }
.chk-nome { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-text); }
.chk-sub { font-size: 13px; color: var(--color-text-secondary); }
.chk-msg { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: #4a5e72; }
.chk-msg-erro { text-align: center; font-size: 15px; font-weight: 600; color: var(--color-danger); padding: 8px 0; }

/* Popup full-screen do scan (item 6) — escurece tudo, centraliza o resultado. */
.chk-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(43, 35, 24, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.15s ease;
}
.chk-pop {
  width: 100%; max-width: 360px;
  background: #fff; border-radius: 24px; padding: 28px 24px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: scaleIn 0.2s ease;
}
/* Verde de "entrou" (OK consumido) */
.chk-pop.ok { background: linear-gradient(160deg, #b4b536, #8fa02f); }
.chk-pop.ok .chk-pop-tit { color: #fff; }
.chk-pop.ok .chk-pop-sub { color: rgba(255, 255, 255, 0.92); }
.chk-pop.ok .btn { background: rgba(255, 255, 255, 0.24); color: #fff; }

.chk-pop-tit { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--color-text); margin-top: 10px; }
.chk-pop-sub { font-size: 14px; color: var(--color-text-secondary); margin-top: 4px; }
.chk-pop-nome { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--color-text); }
.chk-pop-contato { font-size: 13px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 4px; }
.chk-pop-usado { font-size: 15px; font-weight: 600; color: #4a5e72; margin: 8px 0; }
.chk-pop-erro-ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(232, 71, 63, 0.12); color: var(--color-danger); font-size: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.chk-pop-erro { font-size: 16px; font-weight: 600; color: var(--color-danger); }
.chk-pop.usado { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(132, 153, 183, 0.4); }

/* Atalho de check-in no aside do detalhe */
.det-checkin-card {
  padding: 16px 18px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: transform .15s;
}
.det-checkin-card:hover { transform: translateY(-1px); }

/* ── Mobile ── */
@media (max-width: 820px) {
  .ing-wrap { padding: 20px 16px 40px; }
  .ing-grid { grid-template-columns: 1fr; }
  .tk-page, .chk-wrap { padding: 16px 16px 40px; }
}

/* ── Tela de retorno do pagamento (Checkout Pro back_urls) ── */
.pgto-ret-shell {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 16px 40px;
}
.pgto-ret-card {
  width: 100%; max-width: 440px; padding: 40px 32px; text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.pgto-ret-emoji { font-size: 52px; line-height: 1; margin-bottom: 14px; }
.pgto-ret-spinner {
  width: 34px; height: 34px; margin: 4px auto 0; border-radius: 50%;
  border: 3px solid rgba(255, 110, 31, 0.2); border-top-color: var(--color-orange);
  animation: pgto-ret-spin 0.8s linear infinite;
}
@keyframes pgto-ret-spin { to { transform: rotate(360deg); } }
