/* =====================================================
   FifaPay — Notification Bubbles
   Efeito: desliza de cima da tela com mola
   ===================================================== */

#notif-ticker {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 92vw);
  z-index: 99999;
  pointer-events: none;
  padding-top: 10px;
}

.notif-bubble {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(4, 24, 14, 0.93);
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: 18px;
  padding: 12px 16px 12px 12px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 500;
  color: #d1fae5;
  line-height: 1.4;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  transform: translateY(-115%);
  transition: opacity 0.3s ease, transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notif-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.notif-bubble.hiding {
  opacity: 0;
  transform: translateY(-115%);
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.55, 0, 1, 0.45);
}

.notif-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.45);
}

.notif-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notif-amount {
  display: inline-block;
  background: rgba(250, 204, 21, 0.18);
  color: #fbbf24;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 2px;
  vertical-align: middle;
}

.notif-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: notif-pulse 1.4s infinite;
}

@keyframes notif-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.7); }
}

/* =====================================================
   Contador de usuários online
   ===================================================== */

#online-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99998;
  pointer-events: none;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 24, 14, 0.90);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 7px 16px 7px 10px;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(52, 211, 153, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 600;
  color: #d1fae5;
  white-space: nowrap;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.online-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
  animation: online-pulse 1.8s infinite;
}

@keyframes online-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34,197,94,0.8); }
  50%       { opacity: 0.6; box-shadow: 0 0 12px rgba(34,197,94,0.4); }
}

.online-count {
  color: #fbbf24;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  transition: opacity 0.2s ease;
}

.online-count.updating {
  opacity: 0.4;
}
