/*
  اعلان امضای سازنده (Ctrl+K).
  در هر دو محیط سایت و پنل مدیریت بارگذاری می‌شود، پس همه‌ی رنگ‌ها اینجا
  صریح نوشته شده‌اند و به متغیرهای قالب وابسته نیستند.
*/

.tb-credit-toast {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-credit-toast.is-in {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.tb-credit-card {
  position: relative;
  overflow: hidden;
  direction: rtl;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #eef2f5;
  padding: 22px 34px;
  border-radius: 18px;
  border: 1px solid rgba(53, 224, 161, 0.35);
  background: rgba(14, 19, 26, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 26px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 44px -14px rgba(53, 224, 161, 0.4);
  transform: translateY(14px) scale(0.94);
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tb-credit-toast.is-in .tb-credit-card {
  transform: none;
}

/* هاله‌ی نرمی که آرام می‌چرخد */
.tb-credit-card::before {
  content: '';
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(53, 224, 161, 0.16) 60deg,
    transparent 140deg,
    rgba(255, 171, 94, 0.12) 220deg,
    transparent 300deg
  );
  animation: tb-credit-halo 7s linear infinite;
  pointer-events: none;
}
.tb-credit-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.tb-credit-heart {
  color: #ff5d7a;
  font-size: 19px;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
  animation: tb-credit-beat 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 93, 122, 0.6));
}

.tb-credit-name {
  background: linear-gradient(100deg, #35e0a1, #7ef0c6, #ffab5e, #35e0a1);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 900;
  animation: tb-credit-shift 5s ease-in-out infinite;
}

/* متن جایگزین برای صفحه‌خوان‌ها */
.tb-credit-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* جرقه‌هایی که از پایین کارت بالا می‌روند */
.tb-credit-spark {
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #35e0a1;
  box-shadow: 0 0 10px #35e0a1;
  opacity: 0;
  animation: tb-credit-rise 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes tb-credit-halo {
  to { transform: rotate(360deg); }
}
@keyframes tb-credit-beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.3); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.18); }
  48%      { transform: scale(1); }
}
@keyframes tb-credit-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes tb-credit-rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), -70px) scale(1.1); }
}

@media (max-width: 480px) {
  .tb-credit-card { font-size: 15px; padding: 18px 22px; }
  .tb-credit-line { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-credit-card,
  .tb-credit-card::before,
  .tb-credit-heart,
  .tb-credit-name,
  .tb-credit-spark {
    animation: none !important;
    transition-duration: 0.001ms !important;
    transform: none !important;
  }
  .tb-credit-name {
    -webkit-text-fill-color: #35e0a1;
    color: #35e0a1;
    background: none;
  }
  .tb-credit-spark { display: none; }
}
