/* =====================================================
   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 {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(28, 28, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px 14px 12px 12px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 0.5px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.05);
  color: #f5f5f7;
  line-height: 1.35;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  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: 38px;
  height: 38px;
  background: #820AD1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(130, 10, 209, 0.45);
}

.notif-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.notif-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(235, 235, 245, 0.6);
  font-weight: 500;
  letter-spacing: 0.1px;
}

.notif-app {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: rgba(235, 235, 245, 0.6);
  font-weight: 600;
}

.notif-time {
  font-size: 11px;
  color: rgba(235, 235, 245, 0.55);
  font-weight: 500;
}

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.notif-text-line {
  font-size: 13px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.92);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-amount {
  display: inline;
  color: #4ade80;
  font-weight: 700;
}

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

#online-counter {
  position: fixed;
  bottom: 38px;
  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;
}
