/* Social-proof earn toasts — thin single-line pill, one at a time */

#toast-container.fx-earn-toast-container {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: var(--app-width, 430px) !important;
  padding: 0 16px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 10060 !important;
  pointer-events: none;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
}

#toast-container.fx-earn-toast-container > div {
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  opacity: 1 !important;
}

#toast-container.fx-earn-toast-container > div + div {
  display: none !important;
}

#toast-container.fx-earn-toast-container .toast {
  width: auto !important;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 1;
  overflow: visible;
}

#toast-container.fx-earn-toast-container .toast-message {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
}

#toast-container.fx-earn-toast-container .toast::before,
#toast-container.fx-earn-toast-container .toast::after,
#toast-container.fx-earn-toast-container .toast-progress {
  display: none !important;
}

.fx-earn-toast-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: 999px;
  background: color-mix(in srgb, var(--fx-card, #ffffff) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.28);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: fx-earn-toast-in 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fx-earn-toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fx-earn-toast-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.fx-earn-toast-msg {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fx-ink-soft, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-earn-toast-msg strong,
.fx-earn-toast-msg .fx-earn-toast-amt {
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-earn-toast-amt {
  color: #059669 !important;
  font-variant-numeric: tabular-nums;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-toast-card {
  border-color: var(--fx-line, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--fx-card, #121820) 88%, transparent);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.55);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-toast-msg {
  color: var(--fx-muted, #94a3b8);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-toast-msg strong,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-toast-msg .fx-earn-toast-amt {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-toast-amt {
  color: #34d399 !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-earn-toast-dot {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.fx-game-page #toast-container.fx-earn-toast-container,
.fx-admin-page #toast-container.fx-earn-toast-container {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fx-earn-toast-card {
    animation: none !important;
  }
}
