/* ===== MODAL INSTRUÇÕES — CSS ESTÁVEL ===== */

/* Overlay */
.instrucoes-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.9);
  display: none; /* fica oculto até abrir */
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.instrucoes-modal-overlay.show {
  display: flex;
  opacity: 1;
}

/* Card */
.instrucoes-modal-content {
  background: #0a0a0f;
  border: 2px solid #5e17eb;
  border-radius: 24px;
  width: min(96vw, 650px);
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
  padding: 28px;
  position: relative;
  box-shadow: 0 10px 40px rgba(94, 23, 235, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  -webkit-overflow-scrolling: touch;
  padding-bottom: 56px; /* para não colidir com chat flutuante */
}

/* Header */
.instrucoes-header {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.importante-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff0080, #ff4444);
  font-weight: 800;
  font-size: 12px;
}
.instrucoes-header h2 {
  margin: 12px 0 0 0;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #5e17eb, #ff0080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Vídeo */
.instrucoes-video-container {
  /* 🔄 ALTERADO: removido position:relative pois não precisa mais ancorar a seta */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 28px;
}
.video-wrapper {
  width: 360px;
  height: 640px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  border-radius: 12px;
}

/* 🗑️ REMOVIDO COMPLETAMENTE - CSS DA SETA:
.instrucoes-scroll-hint{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:-14px; z-index:5; pointer-events:none;
  display:flex; align-items:center; justify-content:center;
}
.instrucoes-scroll-hint .arrow{
  width:26px; height:26px; opacity:.9;
  filter:drop-shadow(0 0 6px rgba(255,255,255,.35));
  animation:bounceDown 1.2s infinite ease-in-out;
}
@keyframes bounceDown{ 0%,100%{transform:translateY(0);opacity:.9} 50%{transform:translateY(6px);opacity:.6} }
*/

/* Confirmação */
.instrucoes-confirm-container {
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 14px;
  margin-top: 22px;
}
.confirm-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}
.confirm-checkbox input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #5e17eb;
}
.confirm-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.6;
}
.confirm-checkbox .arrow-animate {
  width: 18px;
  height: 18px;
  animation: arrowNudge 1.1s infinite ease-in-out;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
}
@keyframes arrowNudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-4px);
    opacity: 0.75;
  }
}

/* Ações */
.instrucoes-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.instrucoes-btn-secondary,
.instrucoes-btn-primary {
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  cursor: pointer;
  transition: 0.2s ease;
}
.instrucoes-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.instrucoes-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
.instrucoes-btn-primary {
  background: linear-gradient(135deg, #5e17eb, #ff0080);
  color: #fff;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.instrucoes-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.instrucoes-btn-primary:not(:disabled):hover {
  transform: translateY(-2px);
}

/* Ordem dos botões */
@media (min-width: 769px) {
  .instrucoes-actions {
    flex-direction: row;
  }
  .instrucoes-btn-secondary {
    order: 1;
  } /* Voltar à esquerda */
  .instrucoes-btn-primary {
    order: 2;
  } /* Continuar à direita */
}
@media (max-width: 768px) {
  .instrucoes-actions {
    flex-direction: column;
  }
  .instrucoes-btn-primary {
    order: 1;
    width: 100%;
  }
  .instrucoes-btn-secondary {
    order: 2;
    width: 100%;
  }
}

/* Aviso */
.instrucoes-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  padding: 12px;
  margin-top: 14px;
  text-align: center;
}
.instrucoes-warning p {
  color: #ffc107;
  margin: 0;
  font-size: 14px;
}

/* Mobile video sizes */
@media (max-width: 768px) {
  .instrucoes-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 8px 4px;
  }
  .instrucoes-modal-content {
    max-height: none;
    border-radius: 18px;
    padding: 16px 12px;
  }
  .instrucoes-header h2 {
    font-size: 20px;
  }
  .video-wrapper {
    width: 300px;
    height: 520px;
  }
  .confirm-checkbox label {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .video-wrapper {
    width: 270px;
    height: 480px;
  }
}
@media (max-width: 360px) {
  .video-wrapper {
    width: 240px;
    height: 426px;
  }
}

/* Scrollbar */
.instrucoes-modal-content::-webkit-scrollbar {
  width: 4px;
}
.instrucoes-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #5e17eb, #ff0080);
  border-radius: 10px;
}
