/* ============================================================
   EVENTIPO — Check-in & Credenciamento styles
   ============================================================ */

/* QR credential */
.qr-canvas { display: block; border-radius: 10px; }
.cred-modal { max-width: 380px; }
.cred-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.cred-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 28px 30px; gap: 8px; }
.cred-qr { background: #fff; padding: 14px; border-radius: 14px; box-shadow: var(--shadow-md); }
.cred-name { font-size: 19px; color: var(--ink); font-weight: 500; margin-top: 8px; }
.cred-company { font-size: 12px; color: var(--ink-3); }
.cred-table { margin-top: 4px; }
.cred-instr { font-size: 12px; color: var(--ink-4); max-width: 240px; margin: 6px 0 10px; line-height: 1.45; }

/* pre-registration */
.prereg-modal { max-width: 520px; }
.prereg-sub { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.prereg-submit { width: 100%; justify-content: center; margin-top: 18px; }
.prereg-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prereg-check { width: 60px; height: 60px; border-radius: 99px; background: oklch(0.74 0.07 155 / 0.15); border: 1px solid oklch(0.74 0.07 155 / 0.4); display: flex; align-items: center; justify-content: center; color: var(--pos); margin-bottom: 6px; }
.prereg-done h3 { font-size: 19px; color: var(--ink); }
.prereg-done-sub { font-size: 12.5px; color: var(--ink-3); max-width: 320px; line-height: 1.5; }
.prereg-name { font-size: 13px; color: var(--ink); margin-top: 4px; }

/* full-screen check-in */
.ci-overlay { position: fixed; inset: 0; z-index: 200; background: radial-gradient(120% 100% at 50% 0%, #14171e, #08090c); display: flex; flex-direction: column; animation: riseIn .25s ease both; }
.ci-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.ci-event { font-size: 17px; color: var(--ink); font-family: var(--serif); }
.ci-progress { font-size: 13px; color: var(--ink-3); }
.ci-progress-n { font-size: 22px; color: var(--gold); font-weight: 500; }
.ci-progress-l { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.ci-close { flex-shrink: 0; }

.ci-tabs { display: flex; gap: 8px; justify-content: center; padding: 18px; }
.ci-tab { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-surface); border: 1px solid var(--line); color: var(--ink-3); border-radius: 99px; padding: 9px 18px; font-size: 13px; cursor: pointer; transition: all .14s; }
.ci-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.ci-tab[data-active="true"] { background: var(--gold-glow); border-color: var(--gold-line); color: var(--gold); }

.ci-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; min-height: 0; }

.ci-cam-wrap { position: relative; width: min(560px, 92vw); aspect-ratio: 4 / 3; background: #000; border-radius: var(--r-xl); overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.ci-video { width: 100%; height: 100%; object-fit: cover; }
.ci-reticle { position: absolute; width: 62%; aspect-ratio: 1; pointer-events: none; }
.ci-reticle.face { width: 52%; aspect-ratio: 3/4; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,0.35); }
.ci-corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--gold); }
.ci-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.ci-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.ci-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.ci-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.ci-reticle.face .ci-corner { display: none; }
.ci-scanline { position: absolute; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 12px var(--gold); top: 0; animation: ci-scan 2s ease-in-out infinite; }
@keyframes ci-scan { 0%,100% { top: 6%; } 50% { top: 94%; } }
.ci-reticle.face.scanning { animation: ci-pulse 1s ease-in-out infinite; }
@keyframes ci-pulse { 0%,100% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.35), inset 0 0 0 2px var(--gold); } 50% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.45), inset 0 0 0 3px var(--gold-bright); } }

.ci-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: rgba(255,255,255,0.8); text-shadow: 0 1px 4px rgba(0,0,0,0.8); padding: 0 20px; }
.ci-sim { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 11px; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.ci-sim:hover { background: rgba(0,0,0,0.75); }
.ci-face-btn { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); }
.ci-face-note { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 10px; color: rgba(255,255,255,0.6); }
.ci-camerr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--ink-3); font-size: 13px; padding: 40px; max-width: 360px; }

.ci-manual { width: min(560px, 92vw); display: flex; flex-direction: column; gap: 14px; }
.ci-manual-search { height: 48px; font-size: 15px; }
.ci-manual-search input { font-size: 15px; }
.ci-manual-list { display: flex; flex-direction: column; gap: 8px; }
.ci-manual-row { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; }
.ci-manual-name { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.ci-manual-co { font-size: 11px; color: var(--ink-3); }

/* result toast */
.ci-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: radial-gradient(120% 100% at 50% 50%, rgba(10,11,14,0.88), rgba(10,11,14,0.97)); backdrop-filter: blur(8px); animation: riseIn .25s ease both; z-index: 5; }
.ci-result-ic { width: 84px; height: 84px; border-radius: 99px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ci-result-ic.ok { background: oklch(0.74 0.07 155 / 0.18); border: 2px solid var(--pos); color: var(--pos); box-shadow: 0 0 40px oklch(0.74 0.07 155 / 0.4); animation: pop .35s ease both; }
.ci-result-ic.warn { background: var(--gold-glow); border: 2px solid var(--gold); color: var(--gold); }
.ci-result-ic.err { background: oklch(0.66 0.10 28 / 0.18); border: 2px solid var(--neg); color: var(--neg); }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.ci-result-name { font-size: 30px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.ci-result-sub { font-size: 14px; color: var(--ink-3); }

/* launch buttons in Inscrições */
.reg-launch { display: flex; gap: 10px; }
.reg-cred-btn { background: none; border: 0; color: var(--ink-4); cursor: pointer; padding: 6px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all .14s; }
.reg-cred-btn:hover { color: var(--gold); background: var(--gold-glow); }

@media (max-width: 680px) {
  .ci-result-name { font-size: 23px; }
  .ci-bar { padding: 16px 18px; }
}
