/* ============================================================
   Stakewinz — Withdrawal Success Toast
   Dark/green/yellow design system. Premium, non-intrusive.
   ============================================================ */

.sw-payout-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1300;
  width: min(400px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.sw-payout-toast-host[hidden] { display: none; }

.sw-payout-toast {
  pointer-events: auto;
  position: relative;
  background: linear-gradient(180deg, var(--sw-surface), var(--sw-bg-deep));
  border: 1px solid var(--sw-green);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5), 0 0 22px rgba(0, 199, 100, .16);
  padding: 16px;
  color: var(--sw-text);
  min-width: 0;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}
.sw-payout-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.sw-payout-toast.is-leaving {
  transform: translateY(10px);
  opacity: 0;
}

.sw-payout-toast__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.sw-payout-toast__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sw-green);
  color: #052313;
}
.sw-payout-toast__titlebox { flex: 1 1 auto; min-width: 0; }
.sw-payout-toast__title {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--sw-green);
  line-height: 1.2;
}
.sw-payout-toast__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sw-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.sw-payout-toast__close:hover { background: rgba(255, 255, 255, .08); color: var(--sw-text); }

.sw-payout-toast__amount {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--sw-yellow);
  line-height: 1.1;
  margin: 2px 0 8px;
}
.sw-payout-toast__message {
  margin: 0;
  color: var(--sw-text);
  font-size: 14px;
  line-height: 1.5;
}
.sw-payout-toast__ref {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--sw-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sw-payout-toast__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 5px;
  background: var(--sw-yellow);
  color: #101820;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: filter .15s ease;
}
.sw-payout-toast__view:hover { filter: brightness(1.04); }

/* ---- Mobile: sit above the fixed bottom navigation ---- */
@media (max-width: 575px) {
  .sw-payout-toast-host {
    left: 12px;
    right: 12px;
    bottom: calc(62px + env(safe-area-inset-bottom) + 12px);
    width: auto;
  }
  .sw-payout-toast { padding: 14px; }
  .sw-payout-toast__amount { font-size: 22px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .sw-payout-toast {
    transition: none;
    transform: none;
  }
}
