/* ==========================================================================
   DT Check-in - Estilos da Página de Check-in Mobile (Participante)
   ========================================================================== */

.checkin-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.checkin-container {
  width: 100%;
  max-width: 480px;
  position: relative;
}

/* Cabeçalho do App */
.brand-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  position: relative;
}

.brand-icon-wrapper svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.store-badge-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.brand-header h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Card Principal de Check-in */
.checkin-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.checkin-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title-row h2 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-row h2 svg {
  color: var(--accent-cyan);
}

/* Alertas & Mensagens */
.alert-box {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.alert-error {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #ff85a2;
}

/* Estado de Confirmação e Ticket Digital */
.success-card {
  text-align: center;
  display: none;
  animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0.5rem auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f59b 0%, #00a86b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 245, 155, 0.45);
  animation: bounceCheck 0.6s ease-out;
}

.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
  color: #052014;
}

@keyframes bounceCheck {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Ticket de Entrada Gamer */
.ticket-badge {
  background: rgba(10, 13, 20, 0.85);
  border: 1px dashed rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ticket-badge::after {
  content: 'DRAGON TOWER';
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255, 77, 0, 0.05);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ticket-code {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(0, 240, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.ticket-detail-item {
  margin-bottom: 0.65rem;
}

.ticket-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ticket-event-highlight {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Rodapé / Link do Admin */
.checkin-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Botão Discreto de Redirecionamento ao Painel no Rodapé */
.btn-discrete-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: 0.65rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-discrete-admin:hover {
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.15);
}

.btn-discrete-admin svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}

.btn-discrete-admin:hover svg {
  opacity: 1;
}

/* Spinner de envio */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
