/* ResinApp - Popup tutorial inicial (v1)
   Arquivo isolado para não interferir no app principal nem no popup de feedback. */
.ra-welcome-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 9, 16, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ra-welcome-tutorial-modal {
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid rgba(93, 70, 255, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #161728;
}

.ra-welcome-tutorial-head {
  position: relative;
  padding: 24px 62px 16px 26px;
  text-align: center;
}

.ra-welcome-tutorial-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #151528;
}

.ra-welcome-tutorial-subtitle {
  margin: 10px auto 0;
  max-width: 620px;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.45;
  color: #5d6072;
  font-weight: 600;
}

.ra-welcome-tutorial-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 16, 28, 0.08);
  color: #26263a;
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ra-welcome-tutorial-close:hover {
  transform: scale(1.04);
  background: rgba(16, 16, 28, 0.13);
}

.ra-welcome-tutorial-video-wrap {
  padding: 0 22px 22px;
}

.ra-welcome-tutorial-video-box {
  overflow: hidden;
  border-radius: 18px;
  background: #080910;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.ra-welcome-tutorial-video {
  display: block;
  width: 100%;
  max-height: 62vh;
  background: #080910;
}

.ra-welcome-tutorial-foot {
  padding: 0 22px 24px;
  display: flex;
  justify-content: center;
}

.ra-welcome-tutorial-ok {
  border: 0;
  border-radius: 14px;
  padding: 13px 22px;
  min-width: 210px;
  background: linear-gradient(135deg, #6548ff, #ec2fa9);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(101, 72, 255, 0.25);
}

@media (max-width: 640px) {
  .ra-welcome-tutorial-overlay {
    padding: 12px;
    align-items: center;
  }

  .ra-welcome-tutorial-modal {
    width: 100%;
    border-radius: 18px;
  }

  .ra-welcome-tutorial-head {
    padding: 22px 52px 14px 18px;
  }

  .ra-welcome-tutorial-video-wrap {
    padding: 0 12px 16px;
  }

  .ra-welcome-tutorial-video {
    max-height: 58vh;
  }

  .ra-welcome-tutorial-foot {
    padding: 0 12px 18px;
  }

  .ra-welcome-tutorial-ok {
    width: 100%;
  }
}


/* Ajuste v4: botões inferiores mais separados e com botão de tutoriais em verde */
.ra-welcome-tutorial-foot {
  padding: 4px 22px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ra-welcome-tutorial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px;
  padding: 14px 22px;
  min-width: 235px;
  min-height: 52px;
  background: #ffffff;
  color: #059669 !important;
  text-decoration: none !important;
  font-weight: 900;
  font-size: 15px;
  border: 2px solid #10b981;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.14);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.ra-welcome-tutorial-link::before {
  content: "📖";
  font-size: 20px;
  line-height: 1;
}

.ra-welcome-tutorial-link:hover {
  transform: translateY(-1px);
  background: #ecfdf5;
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.20);
}

.ra-welcome-tutorial-ok {
  min-height: 52px;
  padding: 14px 24px;
  min-width: 235px;
}

@media (min-width: 641px) {
  .ra-welcome-tutorial-foot::before {
    content: "";
    width: 1px;
    height: 38px;
    background: rgba(22, 23, 40, .18);
    order: 2;
  }

  .ra-welcome-tutorial-link { order: 1; }
  .ra-welcome-tutorial-ok { order: 3; }
}

@media (max-width: 640px) {
  .ra-welcome-tutorial-foot {
    padding: 0 12px 18px;
    gap: 12px;
    flex-direction: column;
  }

  .ra-welcome-tutorial-link,
  .ra-welcome-tutorial-ok {
    width: 100%;
    min-width: 0;
  }
}
