﻿.reward-toast-region {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2200;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.reward-toast {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 22px;
  border: 1px solid rgba(223, 229, 240, 0.96);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 15px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reward-toast::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
}

.reward-toast[data-source="welcome_bonus"]::before {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95) 0%, rgba(251, 191, 36, 0.95) 100%);
}

.reward-toast[data-source="reward"]::before,
.reward-toast[data-source="referral_bonus"]::before {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95) 0%, rgba(52, 211, 153, 0.95) 100%);
}

.reward-toast[data-source="refund"]::before {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95) 0%, rgba(56, 189, 248, 0.95) 100%);
}

.reward-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reward-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

.reward-toast__head {
  display: flex;
  align-items: start;
  gap: 12px;
}

.reward-toast__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: linear-gradient(180deg, rgba(238, 243, 255, 0.96) 0%, rgba(247, 250, 255, 0.96) 100%);
  border: 1px solid rgba(var(--color-primary-rgb),0.18);
}

.reward-toast[data-source="welcome_bonus"] .reward-toast__icon {
  color: #d97706;
  background: linear-gradient(180deg, rgba(255, 247, 224, 0.98) 0%, rgba(255, 252, 242, 0.96) 100%);
  border-color: rgba(252, 211, 77, 0.55);
}

.reward-toast[data-source="reward"] .reward-toast__icon,
.reward-toast[data-source="referral_bonus"] .reward-toast__icon {
  color: #059669;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98) 0%, rgba(247, 254, 249, 0.96) 100%);
  border-color: rgba(110, 231, 183, 0.6);
}

.reward-toast[data-source="refund"] .reward-toast__icon {
  color: #0284c7;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.98) 0%, rgba(247, 252, 255, 0.96) 100%);
  border-color: rgba(125, 211, 252, 0.6);
}

.reward-toast__icon svg {
  width: 20px;
  height: 20px;
}

.reward-toast__body {
  min-width: 0;
  flex: 1;
}

.reward-toast__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7b8798;
}

.reward-toast__eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.reward-toast__title {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #121a28;
}

.reward-toast__message {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6677;
}

.reward-toast__footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-toast__amount {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(206, 216, 238, 0.94);
  background: rgba(247, 249, 253, 0.96);
  color: #1d2735;
  font-size: 13px;
  font-weight: 700;
}

.reward-toast__source {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8b97a8;
}

@media (max-width: 720px) {
  .reward-toast-region {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .reward-toast {
    padding: 13px 14px;
    border-radius: 20px;
  }
}

