/* Profil → balans kartı: ilk artırış x2 hədiyyə (yan menyudakı .sm-gift-in əkizi, tünd bənövşəyi fon üçün).
   Markup: pages/profile.html #pfGift, göstərmə: profile-dashboard.js (first_topup_bonus_available). */
.pf .pf-gift {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  width: 100%; margin: 4px 0 12px; padding: 12px 12px 12px 10px;
  border: 0; border-radius: 16px;
  background: transparent; color: #fff;
  text-align: left; font: inherit; cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(236, 72, 153, .9);
  transition: transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.pf .pf-gift[hidden] { display: none !important; }
/* fırlanan parlaq çərçivə */
.pf .pf-gift::before {
  content: ""; position: absolute; inset: -80%; z-index: -2;
  background: conic-gradient(from 0deg, #FBBF24, #EC4899, #A78BFA, #22D3EE, #FBBF24);
  animation: pfgSpin 4s linear infinite;
}
.pf .pf-gift::after {
  content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: 14.5px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(236, 72, 153, .35), transparent 55%),
    linear-gradient(135deg, #3B0764, #4C1D95 60%, #5B21B6);
}
.pf .pf-gift:active { transform: scale(.98); }
.pf .pf-gift:focus-visible { outline: 2px solid #FCD34D; outline-offset: 3px; }

.pf .pf-gift-ico {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #F472B6, #F59E0B);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .9);
}
.pf .pf-gift-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pf .pf-gift-lid { transform-box: fill-box; transform-origin: 50% 100%; animation: pfgLid 3.2s ease-in-out infinite; }
.pf .pf-spark {
  position: absolute; width: 7px; height: 7px; background: #FDE047;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0; animation: pfgTwinkle 3.2s ease-in-out infinite;
}
.pf .pf-spark.s1 { top: -3px; left: 6px; }
.pf .pf-spark.s2 { top: 2px; right: -3px; width: 9px; height: 9px; background: #fff; animation-delay: .25s; }
.pf .pf-spark.s3 { bottom: 4px; left: -4px; width: 6px; height: 6px; background: #22D3EE; animation-delay: .5s; }

.pf .pf-gift-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf .pf-gift-txt b {
  font-size: 16px; font-weight: 800; line-height: 1.2;
  background: linear-gradient(90deg, #FDE68A, #F9A8D4, #FDE68A);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pfgFlow 4s linear infinite;
}
.pf .pf-gift-txt > span { font-size: 12.5px; color: #E9DDFE; line-height: 1.3; }
.pf .pf-gift-eq { height: 18px; overflow: hidden; margin-top: 2px; }
.pf .pf-gift-eq-in {
  display: block; font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .35s;
}
.pf .pf-gift-eq-in em { font-style: normal; color: #FCD34D; }
.pf .pf-gift-eq-in.is-out { transform: translate3d(0, -100%, 0); opacity: 0; }
.pf .pf-gift-eq-in.is-in { transform: translate3d(0, 100%, 0); opacity: 0; transition: none; }

.pf .pf-gift-badge {
  align-self: start;
  padding: 4px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B, #EC4899);
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 6px 12px -6px rgba(236, 72, 153, .9);
  animation: pfgBadge 2.4s ease-in-out infinite;
}
.pf .pf-gift-note { margin: -6px 2px 12px; font-size: 11.5px; color: #CDBDF5; line-height: 1.35; }
.pf .pf-gift-note[hidden] { display: none; }

/* bonus varkən "Balans artır" düyməsi nəbz edir, ümumi ipucu gizlənir */
.pf .wallet.has-gift .wallet__hint { display: none; }
.pf .wallet.has-gift .btn--glass { position: relative; }
.pf .wallet.has-gift .btn--glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: pfgPulse 2s ease-out infinite;
}

.pf .pf-gift:not([hidden]) { animation: pfgIn .7s .2s cubic-bezier(.22, 1, .36, 1) both; }

@keyframes pfgSpin { to { transform: rotate(360deg); } }
@keyframes pfgLid { 0%, 62%, 100% { transform: none; } 70% { transform: translateY(-5px) rotate(-10deg); } 78% { transform: translateY(-3px) rotate(6deg); } 86% { transform: none; } }
@keyframes pfgTwinkle { 0%, 60%, 100% { opacity: 0; transform: scale(0) rotate(0); } 72% { opacity: 1; transform: scale(1) rotate(90deg); } 88% { opacity: 0; transform: scale(.4) rotate(160deg); } }
@keyframes pfgFlow { to { background-position: -200% 0; } }
@keyframes pfgBadge { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }
@keyframes pfgPulse { 0% { box-shadow: 0 0 0 0 rgba(252, 211, 77, .55); } 100% { box-shadow: 0 0 0 12px rgba(252, 211, 77, 0); } }
@keyframes pfgIn { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 60% { opacity: 1; transform: translateY(-2px) scale(1.01); } 100% { transform: none; } }

@media (hover: hover) and (pointer: fine) {
  .pf .pf-gift:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .pf .pf-gift, .pf .pf-gift::before, .pf .pf-gift *, .pf .wallet.has-gift .btn--glass::after { animation: none !important; }
  .pf .pf-spark { display: none; }
}
