.gift-badge {
  position: absolute; top: -4px; right: -4px; background: #e74c3c; color: #fff;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px;
  border-radius: 50%; text-align: center; z-index: 5; pointer-events: none;
}
.dropdown-item .gift-count-badge {
  display: inline-block; background: #e74c3c; color: #fff; font-size: 10px;
  font-weight: 700; min-width: 16px; height: 16px; line-height: 16px;
  border-radius: 50%; text-align: center; margin-left: 6px;
}
.gift-inv-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.gift-inv-overlay.active { display: flex; }
.gift-inv-panel {
  background: rgba(20,20,40,0.97); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; width: 90%; max-width: 480px;
  max-height: 80vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.gift-inv-panel h3 { margin: 0 0 16px; font-size: 18px; color: #fff; }
.gift-card {
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); margin-bottom: 12px;
  transition: all .3s;
}
.gift-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.gift-card-preview {
  width: 100%; height: 140px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
}
.gift-card-preview img { width: 100%; height: 100%; object-fit: cover; }
.gift-card-preview-empty { background: rgba(255,255,255,0.04); }
.gift-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 0; }
.gift-card-name {
  font-size: 14px; font-weight: 700; color: #fff;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.gift-card-type { font-size: 12px; font-weight: 500; color: rgba(165,180,252,0.85); }
.gift-card-sender {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.gift-sender-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.gift-sender-info { min-width: 0; }
.gift-sender-name { font-size: 13px; font-weight: 600; color: #fff; }
.gift-sender-id   { font-size: 11px; color: rgba(255,255,255,0.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-card-timer  { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,180,50,0.9); margin-bottom: 10px; }
.gift-hourglass { display: inline-block; animation: hourglassSpin 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes hourglassSpin {
  0%,100% { transform: rotate(0deg) scale(1); }
  45%     { transform: rotate(0deg) scale(1); }
  50%     { transform: rotate(180deg) scale(1.15); }
  95%     { transform: rotate(180deg) scale(1); }
}
.gift-card-actions { display: flex; gap: 8px; }
.gift-btn-accept {
  flex: 1; padding: 8px 0; border-radius: 8px; border: none; font-size: 12px;
  background: rgba(46,204,113,0.2); color: #2ecc71; cursor: pointer; font-weight: 600;
}
.gift-btn-accept:hover { background: rgba(46,204,113,0.35); }
.gift-btn-reject {
  flex: 1; padding: 8px 0; border-radius: 8px; border: none; font-size: 12px;
  background: rgba(231,76,60,0.2); color: #e74c3c; cursor: pointer; font-weight: 600;
}
.gift-btn-reject:hover { background: rgba(231,76,60,0.35); }
.gift-empty { text-align: center; padding: 30px; color: rgba(255,255,255,0.3); font-size: 14px; }
.gift-inv-close {
  float: right; background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.gift-inv-close:hover { color: #fff; }
body.light-theme .gift-inv-panel { background: rgba(255,255,255,0.97); border-color: rgba(0,0,0,0.1); }
body.light-theme .gift-inv-panel h3 { color: #333; }
body.light-theme .gift-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
body.light-theme .gift-card:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.12); }
body.light-theme .gift-card-preview { background: rgba(0,0,0,0.04); }
body.light-theme .gift-card-name { color: #1e293b; border-color: rgba(0,0,0,0.06); }
body.light-theme .gift-card-type { color: rgba(79,70,229,0.8); }
body.light-theme .gift-sender-name { color: #1e293b; }
body.light-theme .gift-sender-id   { color: rgba(0,0,0,0.4); }
body.light-theme .gift-card-timer  { color: rgba(180,100,0,0.85); }
body.light-theme .gift-empty { color: rgba(0,0,0,0.3); }
body.light-theme .gift-inv-close { color: rgba(0,0,0,0.4); }
body.light-theme .gift-inv-close:hover { color: #333; }
body.light-theme .gift-sender-avatar { border-color: rgba(0,0,0,0.12); }

/* ── Gift Rain Animation ───────────────────────────────── */
#gift-rain-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9997;
}
.gift-rain-particle {
  position: absolute;
  top: -32px;
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
  animation: giftFallDown var(--fall-dur) var(--fall-delay) linear forwards;
}
@keyframes giftFallDown {
  0%   { transform: translateY(0) rotate(var(--rot-a)); opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(var(--fall-dist)) rotate(var(--rot-b)); opacity: 0; }
}

/* -- Bildirim Animasyonları (koyu ve açık temada aynı) -------------------- */

/* HEDİYE: Dış kırmızı halka — outline, overflow:hidden'dan etkilenmez */
@keyframes giftRing {
  0%, 100% { outline: 2px solid rgba(220,38,38,0.9); outline-offset: 2px; }
  50%       { outline: 2px solid rgba(220,38,38,0.1); outline-offset: 11px; }
}

/* TALEP: İç indigo dolum — inset shadow, arka planı bozmaz */
@keyframes supportFill {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(99,102,241,0); }
  50%       { box-shadow: inset 0 0 24px 8px rgba(99,102,241,0.65); }
}

/* Hediye: dış kırmızı ring */
.header-user-toggle.has-gifts              { animation: giftRing 2s ease-in-out infinite !important; }
.header-user-toggle.has-gifts img          { border: 2px solid rgba(220,38,38,0.85); }

/* Talep: iç indigo dolum */
.header-user-toggle.has-support            { animation: supportFill 1.6s ease-in-out infinite !important; }
.header-user-toggle.has-support img        { border: 2px solid rgba(99,102,241,0.8); }

/* İkisi birden: ring + dolum aynı anda */
.header-user-toggle.has-gifts.has-support  {
  animation: giftRing 2s ease-in-out infinite, supportFill 1.6s ease-in-out infinite !important;
}
.header-user-toggle.has-gifts.has-support img { border: 2px solid rgba(220,38,38,0.8); }
