/* =====================================================
   MELODIA — features.css
   Estilos para: Chat | Rastreamento | Avaliações
   Indicação | Recibo | Compartilhamento | WhatsApp
   ===================================================== */

/* ── WhatsApp Flutuante ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 9000;
  text-decoration: none;
  transition: all .25s;
  animation: waFloat 2s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
}
@keyframes waFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Banner de Desconto (Referral) ────────────────── */
.ref-banner {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #6B21A8, #9333EA);
  color: #fff; text-align: center;
  padding: 10px 48px;
  font-size: 14px; z-index: 9999;
  box-shadow: 0 2px 12px rgba(107,33,168,.4);
}
.ref-banner code {
  background: rgba(255,255,255,.2);
  padding: 2px 8px; border-radius: 4px;
  font-weight: 700; letter-spacing: 1px;
}

/* ── Widget de Avaliação ──────────────────────────── */
.aval-widget {
  background: #1a1a2e;
  border: 1px solid rgba(107,33,168,.3);
  border-radius: 16px; padding: 24px;
  text-align: center; margin: 24px 0;
}
.aval-widget h3 { font-size: 18px; margin-bottom: 6px; }
.aval-widget p  { color: #9ca3af; font-size: 14px; margin-bottom: 16px; }
.aval-estrelas  { font-size: 42px; cursor: pointer; margin-bottom: 16px; display: flex; justify-content: center; gap: 6px; }
.estrela { color: #444; transition: color .15s; user-select: none; }
.aval-widget textarea {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(107,33,168,.3); border-radius: 10px;
  color: #fff; padding: 12px; font-size: 14px; resize: none;
  margin-bottom: 12px; font-family: inherit;
}
.aval-btn {
  background: linear-gradient(135deg, #6B21A8, #9333EA);
  color: #fff; border: none; border-radius: 10px;
  padding: 12px 32px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.aval-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,33,168,.4); }
.aval-obrigado {
  background: rgba(34,197,94,.1); border: 1px solid #22c55e;
  border-radius: 10px; padding: 14px; color: #4ade80; font-size: 15px;
}

/* ── Widget de Compartilhamento ───────────────────── */
.comp-widget { text-align: center; margin: 20px 0; }
.comp-widget p { color: #9ca3af; font-size: 14px; margin-bottom: 12px; }
.comp-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.comp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.comp-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.comp-wa { background: #25D366; }
.comp-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.comp-tw { background: #1DA1F2; }
.comp-fb { background: #1877F2; }

/* ── Widget de Indicação (Referral) ───────────────── */
.ref-widget {
  background: #1a1a2e; border: 1px solid rgba(245,158,11,.3);
  border-radius: 16px; padding: 24px; margin: 24px 0;
}
.ref-widget h3 { font-size: 18px; color: #F59E0B; margin-bottom: 6px; }
.ref-widget p  { color: #9ca3af; font-size: 14px; margin-bottom: 16px; }
.ref-link-box  { display: flex; gap: 8px; margin-bottom: 14px; }
.ref-link-box input {
  flex: 1; background: rgba(255,255,255,.06);
  border: 1px solid rgba(107,33,168,.3); border-radius: 8px;
  color: #aaa; padding: 10px 12px; font-size: 13px;
  font-family: monospace; outline: none;
}
.ref-copiar-btn {
  background: #6B21A8; color: #fff; border: none;
  border-radius: 8px; padding: 10px 16px; font-size: 13px;
  font-weight: 700; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.ref-copiar-btn:hover { background: #9333EA; }
.ref-sociais { display: flex; gap: 10px; flex-wrap: wrap; }
.ref-btn-ws {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff; padding: 10px 18px;
  border-radius: 10px; text-decoration: none; font-size: 14px;
  font-weight: 600; transition: all .2s;
}
.ref-btn-ig {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(45deg,#f09433,#dc2743,#bc1888);
  color: #fff; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; font-size: 14px; font-weight: 600; transition: all .2s;
}
.ref-btn-ws:hover,.ref-btn-ig:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ── Rastreamento de Pedido ───────────────────────── */
.rastr-card {
  background: #1a1a2e; border: 1px solid rgba(107,33,168,.3);
  border-radius: 20px; padding: 28px; max-width: 560px;
  margin: 0 auto; box-shadow: 0 0 40px rgba(107,33,168,.2);
}
.rastr-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.rastr-logo { font-size: 20px; font-weight: 800; color: #F59E0B; }
.rastr-status {
  border: 1px solid; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; font-weight: 700;
}
.rastr-info { margin-bottom: 24px; }
.rastr-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px;
}
.rastr-row span { color: #9ca3af; }
.rastr-row strong { color: #fff; }
.rastr-timeline {
  display: flex; align-items: center; justify-content: center;
  margin: 20px 0; flex-wrap: wrap; gap: 0;
}
.rastr-step { text-align: center; flex: 1; min-width: 60px; }
.rastr-step-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 2px solid #333;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin: 0 auto 6px;
  transition: all .3s;
}
.rastr-step.ativo .rastr-step-icon { background: rgba(107,33,168,.3); border-color: #6B21A8; }
.rastr-step.atual .rastr-step-icon { background: #6B21A8; border-color: #F59E0B; animation: pulse 1.5s infinite; }
.rastr-step-label { font-size: 11px; color: #666; }
.rastr-step.ativo .rastr-step-label { color: #ccc; }
.rastr-step.atual .rastr-step-label { color: #F59E0B; font-weight: 700; }
.rastr-linha { flex: 1; height: 2px; background: #333; transition: background .3s; }
.rastr-linha.ativa { background: #6B21A8; }
.rastr-entregue {
  background: rgba(34,197,94,.1); border: 1px solid #22c55e;
  border-radius: 10px; padding: 12px; color: #4ade80;
  text-align: center; font-size: 14px; margin-top: 12px;
}
.rastr-aviso {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  border-radius: 10px; padding: 12px; color: #FCD34D;
  text-align: center; font-size: 14px; margin-top: 12px;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(107,33,168,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(107,33,168,0); }
}

/* ── Botão de Recibo PDF ──────────────────────────── */
.btn-recibo {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(107,33,168,.2); border: 1px solid #6B21A8;
  color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-recibo:hover { background: #6B21A8; transform: translateY(-2px); }

/* ── Responsivo ───────────────────────────────────── */
@media (max-width: 480px) {
  .comp-btns { flex-direction: column; }
  .ref-link-box { flex-direction: column; }
  .rastr-timeline { gap: 4px; }
  .rastr-step-label { font-size: 10px; }
}

/* ================================================================
   CARROSSEL DE VÍDEOS — Seção de Reações e Músicas Empresariais
   ================================================================ */

.section-videos {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0015 0%, #100022 100%);
  overflow: hidden;
}

.video-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.video-tab-btn {
  background: transparent;
  border: 2px solid #4c1d95;
  color: #a78bfa;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all .25s ease;
}
.video-tab-btn:hover,
.video-tab-btn.active {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
  transform: translateY(-2px);
}

.video-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 0 4px;
}

.video-carousel {
  display: flex;
  gap: 20px;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  will-change: transform;
}

.video-slide {
  flex: 0 0 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e, #16082a);
  border: 1px solid #3b1a6b;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(124,58,237,.3);
  border-color: #7c3aed;
}

/* Placeholder enquanto não há vídeo real */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e0840, #2d1060);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,.2), transparent 70%);
}
.video-placeholder-inner {
  text-align: center;
  z-index: 1;
  padding: 16px;
}
.video-placeholder-icon {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(167,139,250,.6));
}
.video-placeholder-title {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
}
.video-placeholder-sub {
  color: #9ca3af;
  font-size: 12px;
  margin: 0 0 12px;
}
.video-placeholder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ff0000;
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s, opacity .2s;
}
.video-placeholder-link:hover { transform: scale(1.05); opacity: .9; }

/* Quando houver iframe de YouTube real */
.video-slide iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.video-caption {
  padding: 14px 16px 16px;
}
.video-caption-title {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
}
.video-caption-sub {
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 8px;
  font-style: italic;
}
.video-stars { font-size: 14px; color: #f59e0b; }

/* Botões de navegação */
.video-nav {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(124,58,237,.2);
  border: 2px solid #7c3aed;
  color: #a78bfa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  z-index: 2;
}
.video-nav:hover {
  background: #7c3aed;
  color: #fff;
  transform: scale(1.1);
}

/* Dots indicadores */
.video-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4c1d95;
  cursor: pointer;
  transition: all .25s ease;
}
.video-dot.active {
  background: #7c3aed;
  width: 24px;
  border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
  .video-slide { flex: 0 0 260px; }
  .video-nav { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .video-slide { flex: 0 0 85vw; }
}

/* ================================================================
   MELHORIAS NO MODAL PIX (QR Code via API)
   ================================================================ */

#pix-mp-area {
  animation: fadeInUp .4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

#pix-qr-img {
  transition: opacity .3s;
}
#pix-qr-img[src=""] {
  opacity: 0;
}

#btn-gerar-pix:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Sandbox warning para Mercado Pago */
.mp-sandbox-notice {
  background: rgba(245,158,11,.1);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  color: #fcd34d;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}
