/* Client / spot toasts — Bloomberg-style article UI (black stroke, editorial sans) */
.bn-notify {
  --bn-notify-bg: #ffffff;
  --bn-notify-ink: #121212;
  --bn-notify-muted: #363636;
  --bn-notify-border: #121212;
  --bn-notify-accent: #2800d7;
  --bn-notify-link-hover: #3366cc;
  --bn-notify-profit: #0b6e3b;
  --bn-notify-profit-soft: #e8f5ee;
  --bn-notify-visible: 4s;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: min(360px, calc(100vw - 32px));
  font-family: var(--phx-font-core-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  pointer-events: none;
}

@keyframes bn-notify-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.bn-notify__card {
  pointer-events: auto;
  background: var(--bn-notify-bg);
  color: var(--bn-notify-ink);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-top: 3px solid var(--bn-notify-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 12px 40px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(calc(100% + 24px), 0, 0);
  transition:
    opacity 0.55s cubic-bezier(0.25, 0.1, 0.28, 1),
    transform 0.65s cubic-bezier(0.22, 0.94, 0.32, 1);
  will-change: opacity, transform;
}

.bn-notify__card--profit {
  border-top-color: var(--bn-notify-profit);
  background: linear-gradient(180deg, var(--bn-notify-profit-soft) 0%, #ffffff 42%);
}

.bn-notify__progress {
  height: 3px;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(11, 110, 59, 0.35), rgba(40, 0, 215, 0.75));
  animation: bn-notify-progress var(--bn-notify-visible) linear forwards;
}

.bn-notify__progress--spot {
  background: linear-gradient(90deg, rgba(40, 0, 215, 0.2), rgba(40, 0, 215, 0.85));
}

.bn-notify__card--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.bn-notify__card--spot {
  border-left: 4px solid var(--bn-notify-accent);
  background: linear-gradient(180deg, #f4f2ff 0%, #ffffff 45%);
}

.bn-notify__eyebrow {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bn-notify-muted);
  padding: 10px 14px 0;
}

.bn-notify__body {
  padding: 12px 16px 14px;
}

.bn-notify__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.bn-notify__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.06);
}

.bn-notify__avatar.bn-notify__avatar--hidden {
  display: none;
}

.bn-notify__text {
  flex: 1;
  min-width: 0;
}

.bn-notify__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.bn-notify__meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bn-notify-muted);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.bn-notify__detail {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
  color: var(--bn-notify-ink);
}

.bn-notify__detail--profit {
  color: var(--bn-notify-profit);
  font-weight: 600;
}

.bn-notify__trend {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  margin-right: 6px;
  vertical-align: -0.05em;
  color: var(--bn-notify-profit);
}

.bn-notify__detail--withdraw {
  color: var(--bn-notify-muted);
  font-weight: 500;
}

.bn-notify__spot-inner {
  padding: 14px 16px 16px;
}

.bn-notify__spot-title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bn-notify__spot-sub {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
  color: var(--bn-notify-muted);
}

.bn-notify__spot-sub strong {
  color: var(--bn-notify-ink);
  font-weight: 600;
}

.bn-notify__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--bn-notify-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.bn-notify__close:hover {
  color: var(--bn-notify-ink);
}

.bn-notify__card {
  position: relative;
}

.bn-notify a.bn-notify__cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bn-notify-accent);
  text-decoration: underline;
  text-decoration-color: #767676;
  text-underline-offset: 0.2em;
}

.bn-notify a.bn-notify__cta:hover {
  color: var(--bn-notify-link-hover);
  text-decoration-color: #000;
}

@media (max-width: 480px) {
  .bn-notify {
    right: 12px;
    left: 12px;
    width: auto;
  }
}
