/* =====================================================================
   BEAUTY SKIN — Pop-ups: prova social/escassez (toast) + roleta de saída
   (notificações são fictícias mas funcionais; cupom da roleta é real)
   ===================================================================== */

/* ---------- TOASTS (prova social / escassez) ---------- */
.bs-toast-wrap {
  position: fixed; left: 18px; bottom: 18px; z-index: 95;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.bs-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid rgba(74,99,64,0.18);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(46,64,40,0.18);
  padding: 10px 14px 10px 10px; max-width: 340px;
  transform: translateX(-130%); opacity: 0;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.bs-toast.show { transform: translateX(0); opacity: 1; }
.bs-toast-img {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(160deg,#EFF4EA,#E0E8D7); border: 1px solid rgba(74,99,64,0.12);
}
.bs-toast-body { font-size: 12.5px; line-height: 1.38; color: #1E2A18; flex: 1; }
.bs-toast-body strong { font-weight: 600; }
.bs-toast-meta { display: block; margin-top: 2px; color: #5E7150; font-size: 10.5px; }
.bs-toast-meta .bs-check { color: #5E7E50; }
.bs-toast-stock { color: #B0552E; font-weight: 600; }
.bs-toast-close {
  background: none; border: none; cursor: pointer; color: #9aa792; font-size: 16px;
  align-self: flex-start; line-height: 1; padding: 0 0 0 4px;
}
.bs-toast-close:hover { color: #5E7150; }

@media (max-width: 540px) {
  .bs-toast-wrap { left: 10px; right: 10px; bottom: 86px; }
  .bs-toast { max-width: none; }
}

/* ---------- ROLETA (exit-intent / inatividade) ---------- */
.bs-modal {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(30,42,24,0.55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.bs-modal.show { opacity: 1; pointer-events: auto; }
.bs-spin-card {
  position: relative; width: 100%; max-width: 440px;
  background: linear-gradient(170deg,#FBFCF8 0%,#EEF3E8 55%,#F6EEDB 100%);
  border: 1px solid var(--gold-muted, #8A7A55); border-radius: 28px;
  padding: 38px 30px 30px; text-align: center;
  box-shadow: 0 30px 80px rgba(46,64,40,0.38), inset 0 0 0 1px rgba(255,255,255,0.6);
  transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.bs-spin-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 66px; height: 4px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--gold,#C9A86C), #F2D584, var(--gold,#C9A86C));
}
.bs-modal.show .bs-spin-card { transform: none; }
.bs-spin-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: #8a9580; }
.bs-spin-close:hover { color: #4A6340; }
.bs-spin-card .bs-eyebrow { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-muted,#8A7A55); font-weight: 600; }
.bs-spin-card h3 { font-family: var(--font-display, Georgia, serif); font-size: 30px; font-weight: 400; margin: 8px 0 6px; color: #1E2A18; }
.bs-spin-card p { font-size: 13.5px; color: #4A6340; font-weight: 300; margin-bottom: 18px; }

.bs-wheel-wrap { position: relative; width: 250px; height: 250px; margin: 4px auto 22px; }
.bs-wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 6px solid #fff;
  background:
    conic-gradient(from 0deg,
      #F7F1E3 0deg 45deg, #E7EDE0 45deg 90deg, #F1D78C 90deg 135deg, #F7F1E3 135deg 180deg,
      #E7EDE0 180deg 225deg, #F1D78C 225deg 270deg, #F7F1E3 270deg 315deg, #E7EDE0 315deg 360deg);
  box-shadow:
    0 16px 44px rgba(46,64,40,0.32),
    0 0 0 2px var(--gold,#C9A86C),
    0 0 0 10px rgba(201,168,108,0.16),
    inset 0 0 26px rgba(46,64,40,0.10);
  transition: transform 4.8s cubic-bezier(.12,.78,.2,1); transform: rotate(0deg);
  position: relative; overflow: hidden;
}
/* divisórias douradas finas entre os 8 segmentos */
.bs-wheel::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: repeating-conic-gradient(from 0deg, transparent 0 44.3deg, rgba(138,122,85,0.5) 44.3deg 45deg);
}
.bs-wheel-label {
  position: absolute; left: 50%; top: 50%; transform-origin: 0 0; z-index: 2;
  font-size: 11.5px; font-weight: 700; color: #3a2f12; white-space: nowrap;
  letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}
.bs-wheel-pointer {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 4;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--gold, #C9A86C);
  filter: drop-shadow(0 3px 3px rgba(46,64,40,0.35));
}
.bs-wheel-pointer::after {
  content: ''; position: absolute; top: -31px; left: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FBE8BE, #C49A45); border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(46,64,40,0.3);
}
.bs-wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #FCEBC4 0%, #E3BB60 48%, #C49A45 100%);
  border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display, serif); font-size: 21px; font-weight: 600; color: #4A3A12;
  box-shadow: 0 5px 16px rgba(46,64,40,0.32), inset 0 1px 2px rgba(255,255,255,0.6);
}
.bs-spin-btn { width: 100%; }
.bs-spin-disclaimer { font-size: 10.5px; color: #8a9580; margin-top: 12px; font-weight: 300; }

.bs-reward { display: none; }
.bs-reward.show { display: block; animation: bsRewardIn .45s ease; }
@keyframes bsRewardIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: none; } }
.bs-coupon {
  display: inline-block; border: 2px dashed var(--gold-muted,#8A7A55); border-radius: 14px;
  padding: 14px 30px; margin: 8px 0 16px; cursor: pointer;
  font-family: var(--font-display, serif); font-size: 30px; letter-spacing: .14em; color: #6b5417;
  background: linear-gradient(135deg, rgba(242,213,132,0.35), rgba(201,168,108,0.18));
}
.bs-coupon:hover { background: linear-gradient(135deg, rgba(242,213,132,0.55), rgba(201,168,108,0.30)); }
.bs-reward .bs-reward-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .bs-toast { transition: opacity .3s; transform: none; }
  .bs-wheel { transition: transform 1.2s ease; }
}
