/* 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); }

.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; }
.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; }

.chk-sucesso { background: linear-gradient(160deg, #b4b536, #8fa02f); border-radius: 20px; padding: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: var(--shadow-card-elevated); }
.chk-sucesso-tit { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; margin-top: 6px; }
.chk-sucesso-sub { font-size: 14px; color: rgba(255, 255, 255, 0.92); }
.chk-sucesso .btn { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* 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 calc(40px + var(--app-nav-h)); }
  .ing-grid { grid-template-columns: 1fr; }
  .tk-page, .chk-wrap { padding: 16px 16px calc(40px + var(--app-nav-h)); }
}
