/* ==========================================
   OTAKU TV - FRIENDS PANEL & CHAT STYLES
   ========================================== */

/* === دکمه دایره‌ای شناور === */
.friends-panel-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5), 0 0 60px rgba(217, 70, 239, 0.2);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.friends-panel-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.7), 0 0 80px rgba(217, 70, 239, 0.4);
}

.friends-panel-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  opacity: 0.3;
  z-index: -1;
  animation: friendsPulse 2s ease-in-out infinite;
}

@keyframes friendsPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0; }
}

.fp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #08060f;
  animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* === پنل کشویی === */
.friends-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 92vw;
  height: 100vh;
  background: linear-gradient(180deg, #14102b 0%, #0a0817 100%);
  border-left: 1px solid rgba(139, 92, 246, 0.2);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
}

.friends-panel.open { right: 0; }

.fp-header {
  padding: 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
}

.fp-header h3 {
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.fp-header h3 i {
  color: var(--purple-light);
}

.fp-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.fp-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: rotate(90deg);
}

.fp-tabs {
  display: flex;
  padding: 0 8px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  gap: 2px;
}

.fp-tab {
  flex: 1;
  padding: 14px 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.fp-tab i {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}

.fp-tab span {
  display: block;
}

.fp-tab:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.05);
}

.fp-tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple-700);
}

.fp-tab-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === Search Bar === */
.fp-search-bar {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  position: relative;
}

.fp-search-bar input {
  width: 100%;
  padding: 11px 38px 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  text-align: right;
  direction: rtl;
}

.fp-search-bar input:focus {
  border-color: var(--purple-700);
  background: rgba(139, 92, 246, 0.06);
}

.fp-search-bar > i {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple-light);
  font-size: 13px;
  pointer-events: none;
}

/* === Content === */
.fp-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.fp-content::-webkit-scrollbar { width: 6px; }
.fp-content::-webkit-scrollbar-track { background: transparent; }
.fp-content::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }

.fp-loading {
  text-align: center;
  padding: 80px 20px;
  font-size: 32px;
  color: var(--purple-700);
}

.fp-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.fp-empty i {
  font-size: 50px;
  opacity: 0.3;
  display: block;
  margin-bottom: 14px;
}

.fp-empty p {
  line-height: 1.7;
}

.fp-empty small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}

/* === Row === */
.fp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.fp-row:hover {
  background: rgba(139, 92, 246, 0.08);
  transform: translateX(-3px);
}

.fp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.fp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-info { flex: 1; min-width: 0; }
.fp-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.fp-chat-btn,
.fp-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fp-chat-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--purple-light);
}
.fp-chat-btn:hover {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
}

.fp-accept {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
}
.fp-accept:hover { background: #22c55e; color: #fff; }

.fp-reject {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.fp-reject:hover { background: #ef4444; color: #fff; }

/* === Chat Container === */
.chat-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: #0a0817;
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
}

.chat-container.open { right: 0; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(20, 16, 43, 0.95));
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.chat-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-back-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--purple-700);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  object-fit: cover;
}

.chat-user-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-status {
  font-size: 11px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--purple-light);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-action-btn:hover {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1) rotate(8deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.04), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(217, 70, 239, 0.03), transparent 60%);
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.2); border-radius: 3px; }

.chat-msg {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.chat-msg.theirs .chat-bubble {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 6px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(8, 6, 15, 0.95);
}

.chat-input-bar input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 22px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  text-align: right;
  direction: rtl;
}

.chat-input-bar input:focus {
  border-color: var(--purple-700);
  background: rgba(139, 92, 246, 0.06);
}

.chat-input-bar button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #d946ef);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.chat-input-bar button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.6);
}

/* === Gift Modal === */
.gift-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.gift-modal.open { display: flex; animation: fadeIn 0.3s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gift-content {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(165deg, #14102b 0%, #0a0817 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px;
  padding: 30px 26px 26px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 100px rgba(124, 58, 237, 0.15);
  animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.gift-item {
  padding: 14px 8px;
  background: rgba(139, 92, 246, 0.05);
  border: 2px solid rgba(139, 92, 246, 0.15);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.gift-item:hover {
  border-color: var(--purple-700);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-3px);
}

.gift-item.selected {
  border-color: var(--pink-accent);
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.2), rgba(124, 58, 237, 0.15));
  box-shadow: 0 8px 25px rgba(217, 70, 239, 0.35);
  transform: scale(1.05);
}

.gift-item.selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--pink-accent);
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-emoji {
  font-size: 36px;
  margin-bottom: 4px;
  line-height: 1;
}

.gift-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.gift-cost {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.quick-amount {
  flex: 1;
  padding: 10px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-amount:hover {
  background: var(--gradient-main);
  border-color: transparent;
  transform: translateY(-2px);
}

/* === Privacy Settings === */
.privacy-settings {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.privacy-settings-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--purple-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-row {
  margin-bottom: 14px;
}

.privacy-row-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.privacy-row-label i {
  color: var(--purple-light);
  font-size: 11px;
}

.privacy-options {
  display: flex;
  gap: 6px;
}

.privacy-opt {
  flex: 1;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.privacy-opt i {
  font-size: 13px;
}

.privacy-opt:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
}

.privacy-opt.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(217, 70, 239, 0.15));
  border-color: var(--pink-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.2);
}

/* === Top Donors Section === */
.top-donors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s;
}

.donor-row:hover {
  background: rgba(139, 92, 246, 0.06);
  transform: translateX(-3px);
}

.donor-row.gold {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.05));
  border-color: rgba(251, 191, 36, 0.3);
}

.donor-row.silver {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.12), rgba(107, 114, 128, 0.05));
  border-color: rgba(156, 163, 175, 0.3);
}

.donor-row.bronze {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(146, 64, 14, 0.05));
  border-color: rgba(180, 83, 9, 0.3);
}

.donor-rank {
  width: 32px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  flex-shrink: 0;
}

.donor-rank-medal {
  font-size: 22px;
  width: 32px;
  text-align: center;
}

.donor-info { flex: 1; min-width: 0; }
.donor-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
}

.donor-amount {
  font-size: 11.5px;
  color: #fbbf24;
  font-weight: 700;
  margin-top: 2px;
}

/* === Mobile === */
@media (max-width: 768px) {
  .friends-panel-btn {
    bottom: 90px;
    right: 16px;
    width: 54px;
    height: 54px;
    font-size: 20px;
  }

  .friends-panel,
  .chat-container {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  .gift-content { padding: 24px 18px 20px; }
  .gift-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gift-item { padding: 10px 6px; }
  .gift-emoji { font-size: 30px; }
  .gift-name { font-size: 11px; }
}

/* ========================================
   🎁 GIFT EXPLOSION EFFECT
   ======================================== */

.gift-fx-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background:
    radial-gradient(circle at center,
      rgba(124, 58, 237, 0.4) 0%,
      rgba(217, 70, 239, 0.3) 30%,
      rgba(0, 0, 0, 0.6) 70%);
  animation: giftBgFade 3s ease-out forwards;
  overflow: hidden;
}

@keyframes giftBgFade {
  0% { opacity: 0; }
  10%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

/* رینگ‌های متحرک */
.gift-fx-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.gift-fx-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border: 4px solid rgba(217, 70, 239, 0.6);
  border-radius: 50%;
  animation: giftRingExpand 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.6);
}

.gift-fx-ring:nth-child(1) { animation-delay: 0s; border-color: rgba(217, 70, 239, 0.8); }
.gift-fx-ring:nth-child(2) { animation-delay: 0.4s; border-color: rgba(124, 58, 237, 0.8); }
.gift-fx-ring:nth-child(3) { animation-delay: 0.8s; border-color: rgba(251, 191, 36, 0.8); }

@keyframes giftRingExpand {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(5); opacity: 0; }
}

/* ایموجی مرکزی */
.gift-fx-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gift-fx-emoji {
  font-size: 180px;
  line-height: 1;
  filter:
    drop-shadow(0 25px 60px rgba(217, 70, 239, 0.7))
    drop-shadow(0 0 80px rgba(251, 191, 36, 0.5));
  animation: giftEmojiSpin 3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

@keyframes giftEmojiSpin {
  0% { transform: scale(0) rotate(0deg); }
  20% { transform: scale(1.4) rotate(180deg); }
  40% { transform: scale(1) rotate(360deg); }
  60%, 75% { transform: scale(1.1) rotate(360deg); }
  100% { transform: scale(0.4) rotate(720deg); opacity: 0; }
}

.gift-fx-text {
  margin-top: 24px;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24 0%, #ec4899 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
  animation: giftTextFadeIn 3s ease-out;
  white-space: nowrap;
}

.gift-fx-amount {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.15));
  border: 2px solid rgba(251, 191, 36, 0.6);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
  animation: giftAmountSlide 3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes giftTextFadeIn {
  0%, 30% { transform: translateY(20px); opacity: 0; }
  40% { transform: translateY(0); opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes giftAmountSlide {
  0%, 40% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  60% { transform: scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.9); }
}

/* ایموجی‌های پرنده */
.gift-fx-fly {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
  animation: giftFlyOut 2.2s var(--delay, 0ms) cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

@keyframes giftFlyOut {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -50%) scale(1.5) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
      scale(0.4) rotate(var(--rotate, 720deg));
    opacity: 0;
  }
}

/* ستاره‌های درخشان */
.gift-fx-sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  animation: giftSparkle 2s var(--delay, 0ms) ease-in-out infinite;
}

.gift-fx-sparkle::before,
.gift-fx-sparkle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fbbf24, #ec4899);
  border-radius: 50%;
  box-shadow:
    0 0 20px #fbbf24,
    0 0 40px rgba(217, 70, 239, 0.6);
}

.gift-fx-sparkle::after {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff, #fbbf24);
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
}

@keyframes giftSparkle {
  0%, 100% { transform: scale(0) rotate(0); opacity: 0; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
}

/* بالنک‌های زیر صفحه */
.gift-fx-confetti {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 16px;
  pointer-events: none;
  animation: giftConfetti 3s var(--delay, 0ms) ease-in forwards;
}

@keyframes giftConfetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ========================================
   💰 DONATE GOLD RAIN EFFECT
   ======================================== */

.donate-fx-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: radial-gradient(circle at center,
    rgba(251, 191, 36, 0.25) 0%,
    rgba(0, 0, 0, 0.5) 70%);
  animation: giftBgFade 2.5s ease-out forwards;
  overflow: hidden;
}

.donate-fx-coin {
  position: absolute;
  top: -50px;
  font-size: 36px;
  pointer-events: none;
  filter: drop-shadow(0 5px 12px rgba(251, 191, 36, 0.6));
  animation: coinFall 2s var(--delay, 0ms) cubic-bezier(0.5, 0, 0.5, 1) forwards;
}

@keyframes coinFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.donate-fx-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: donateCenterPop 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes donateCenterPop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  60% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

.donate-fx-amount {
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 10px 30px rgba(251, 191, 36, 0.6));
}

.donate-fx-label {
  font-size: 24px;
  font-weight: 800;
  color: #fbbf24;
  margin-top: 8px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
