/* =========================================================
   Seção: notificações em tempo real + mini vídeo
   ========================================================= */
.realtime {
  max-width: 1200px;
  margin: 140px auto 120px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Feed ---------- */
.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 16px;
}
.feed-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 1.6s infinite;
}
.feed-total {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.feed-total.bump { animation: bump .7s cubic-bezier(.34,1.56,.64,1); }

.feed {
  height: 420px;
  overflow: hidden;
  padding: 6px 4px 0;
  perspective: 900px;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.notif {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  max-height: 120px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transform-origin: top center;
  transition:
    max-height .55s ease, padding .55s ease, margin .55s ease,
    opacity .55s ease, transform .75s cubic-bezier(.34,1.56,.64,1),
    border-color 1.2s ease, box-shadow 1.2s ease, background 1.2s ease;
}
.notif.enter {
  max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0;
  opacity: 0;
  transform: translateY(-46px) rotateX(-40deg) scale(.9);
}
.notif.leaving {
  max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0;
  opacity: 0;
  transform: translateY(24px) scale(.95);
}

/* destaque da venda mais nova */
.notif.fresh {
  background: rgba(3, 157, 252, 0.06);
  border-color: rgba(3, 157, 252, 0.5);
  box-shadow: 0 12px 40px -12px rgba(3, 157, 252, .55);
}
.notif.fresh::after { /* brilho que passa pelo card */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: shine 1.2s .3s ease-out forwards;
  pointer-events: none;
}

.notif-icon {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(3, 157, 252, 0.08);
  border: 1px solid rgba(3, 157, 252, 0.15);
}
.notif.fresh .notif-icon::before { /* anel pulsando */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  animation: ping 1.1s ease-out 2;
  opacity: 0;
}
.notif-logo { width: 30px; height: auto; }
.notif.fresh .notif-logo { animation: logo-pop .7s cubic-bezier(.34,1.56,.64,1) both; }

.notif-check {
  position: absolute;
  right: -5px; bottom: -5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #050505;
  display: grid;
  place-items: center;
}
.notif-check svg {
  width: 10px; height: 10px;
  fill: none; stroke: #fff; stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.notif.fresh .notif-check { animation: pop .5s .45s cubic-bezier(.34,1.56,.64,1) both; }

.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notif-body strong {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-body .amt { font-variant-numeric: tabular-nums; transition: color 1s; }
.notif.fresh .amt { color: var(--accent-2); }
.notif-body > span { font-size: .9rem; color: var(--text-muted); }

.notif-time {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color .4s, background .4s, border-color .4s;
}
.notif-time.now {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}
.notif-time.now::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-green 1.4s infinite;
}

/* ---------- Vídeo de campanha ---------- */
.player {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #0d1219 0%, #07090d 60%, #050608 100%);
}

.stage {
  position: relative;
  height: 460px;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 48px 44px 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.scene.active { opacity: 1; pointer-events: auto; }
.scene.leaving { opacity: 0; }

/* animação dos elementos */
.scene .a { opacity: 0; }
.scene.leaving .a { opacity: 1; }
.scene.active .a {
  animation: var(--anim, rise) .9s cubic-bezier(.2,.75,.2,1) var(--d, 0s) both;
}
.scene .a.drop { --anim: drop; }

/* layouts */
.scene-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.scene-split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.copy { display: flex; flex-direction: column; align-items: flex-start; }

/* tipografia de campanha */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tier, var(--accent-2));
}
.scene-split .kicker::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
}
.headline {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 420px;
}
.headline em {
  font-style: normal;
  color: var(--accent-2);
}
.value {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--tier-strong, #fff);
}
.value-sub {
  margin-top: 6px;
  font-size: .95rem;
  color: var(--text-muted);
}
.sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 300px;
}
.scene-split .sub {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 1.05rem;
}

/* cores de cada nível */
.tier-blue   { --tier: #5cc4ff; --tier-strong: #fff; }
.tier-silver { --tier: #c9d1dc; --tier-strong: #fff; }
.tier-gold   { --tier: #e2bb63; --tier-strong: #f3d58c; }

/* produto: placas */
.product { position: relative; }
.plaque img {
  display: block;
  height: 350px;
  width: auto;
}
.scene .plaque { --anim: plaque-in; }
.scene.active .plaque { animation-duration: 1.2s; }
.scene.active .plaque img { animation: float 6s ease-in-out 1.4s infinite; }

/* produto: pulseiras */
.bands {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 150px;
  margin-bottom: 18px;
}
.band { position: absolute; top: 0; width: 56%; height: auto; }
.band-black { left: 0; }
.band-white { right: 0; top: 18px; }
.scene .band-black { --anim: from-left; }
.scene .band-white { --anim: from-right; }

/* abertura */
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  margin-bottom: 26px;
  text-align: left;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.toast img { width: 32px; }
.toast div { display: flex; flex-direction: column; gap: 2px; }
.toast strong { font-size: .92rem; }
.toast span { font-size: .8rem; color: #4ade80; }

/* final */
.outro-logo { width: 84px; margin-bottom: 10px; }
.scene .btn { margin-top: 14px; }

/* assinatura da marca */
.signature {
  position: absolute;
  left: 44px; bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  pointer-events: none;
}
.signature img { width: 18px; opacity: .8; }
.signature b { color: rgba(92, 196, 255, .75); }

/* fora da tela: congela as animações */
.player.offscreen .stage * { animation-play-state: paused !important; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes plaque-in {
  from { opacity: 0; transform: perspective(1200px) translateX(40px) rotateY(-18deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes from-left  { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: none; } }
@keyframes from-right { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* usados pelo feed de vendas */
@keyframes pop   { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(110%); } }
@keyframes ping  { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
@keyframes logo-pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bump  { 40% { transform: scale(1.12); color: var(--accent-2); } }
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .realtime { grid-template-columns: 1fr; gap: 48px; margin-top: 100px; }
  .feed { height: 380px; }
}
@media (max-width: 560px) {
  .stage { height: 560px; }
  .scene { padding: 56px 22px 60px; }
  .scene-split {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 18px;
  }
  .scene-split .product { order: -1; }
  .plaque img { height: 250px; }
  .copy { align-items: center; text-align: center; }
  .scene-split .sub { margin-top: 14px; padding-top: 12px; }
  .signature { left: 22px; }
  .notif { padding: 14px; gap: 12px; }
  .notif-time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .notif, .scene { transition-duration: .01s; }
  .scene.active .a { animation-duration: .01s; animation-delay: 0s !important; }
  .scene.active .plaque img { animation: none; }
}
