/* ---------- خریدارهای اخیر (۲۰۲۶-۱۰-۲۷، طرحِ دوم؛ هم‌خانوادهٔ باکسِ موجودی و دعوت) ----------
   ردیف‌ها دیگر کارتِ جدا نیستند: یک فهرستِ یک‌دست با خطِ جداکننده، آواتارِ گرد با نشانِ
   شبکه، و قابِ گرادیانیِ مثلِ بقیهٔ کارت‌های تازه. این فایل بعد از board.css بار می‌شود. */
.buyers-panel {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: 18px 18px 8px; border: 0; border-radius: 24px;
  background: linear-gradient(180deg, rgba(19,27,43,.95), rgba(10,15,25,.96));
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.buyers-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(23,209,160,.45), rgba(30,41,65,.55) 35%, rgba(30,41,65,.55) 70%, rgba(52,162,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.buyers-panel .panel-head { align-items: center; margin-bottom: 12px; }
.bp-title { line-height: 1.25; }
.bp-title h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.bp-title small { display: block; margin: 3px 0 0 15px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.bp-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.bp-filters::-webkit-scrollbar { display: none; }
.bp-filters button {
  flex: none; padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 12.5px Geist, Inter, sans-serif; color: var(--muted);
  background: rgba(7,11,18,.55); box-shadow: inset 0 0 0 1px var(--line-soft);
  transition: color .16s ease, background-color .16s ease, transform .16s var(--ease-out);
}
.bp-filters button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .bp-filters button:hover { color: var(--text); } }
.bp-filters button.on { color: #04211a; background: linear-gradient(135deg, #3ee6b8, var(--mint)); box-shadow: none; }

.buyers-panel .feed {
  display: block; gap: 0; padding-right: 0; margin: 0 -18px; max-height: 470px;
  mask-image: linear-gradient(#000 85%, transparent); -webkit-mask-image: linear-gradient(#000 85%, transparent);
}
.buyers-panel .buy {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; border: 0; border-radius: 0; background: none;
  border-top: 1px solid rgba(30,41,65,.55);
  transition: background-color .2s ease;
}
.buyers-panel .buy:first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .buyers-panel .buy:hover { background: rgba(52,162,255,.05); border-color: rgba(30,41,65,.55); } }

/* آواتارِ گرد با دو رنگِ همان کیف، و نشانِ کوچکِ شبکه گوشه‌اش */
.buyers-panel .ava {
  position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.45), transparent 42%),
    conic-gradient(from 210deg, hsl(var(--h1) 75% 55%), hsl(var(--h2) 70% 42%), hsl(var(--h1) 75% 55%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 12px -6px hsl(var(--h1) 80% 50% / .7);
}
.buyers-panel .ava .chain {
  position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; background: #0d1320; padding: 1.5px;
}
.buyers-panel .ava .chain svg { width: 100%; height: 100%; display: block; }

.buyers-panel .who { line-height: 1.3; }
.buyers-panel .who b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.005em; }
.buyers-panel .who small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.buyers-panel .whale { margin: 0; padding: 0; border: 0; background: none; color: var(--warn); font: inherit; font-weight: 600; }

.buyers-panel .got { line-height: 1.3; }
.buyers-panel .got strong { font: 700 15px "Space Grotesk", Inter, sans-serif; color: var(--mint); letter-spacing: -.01em; }
.buyers-panel .got strong span { font-size: 12px; font-weight: 600; color: rgba(23,209,160,.7); opacity: 1; }
.buyers-panel .got small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; text-align: right; }

/* خریدِ درشت کمی گرم‌تر */
.buyers-panel .buy.is-whale { background: linear-gradient(90deg, rgba(255,176,32,.06), transparent 60%); }

/* خریدِ تازه: از بالا می‌آید و نوارِ سبزی کنارش کمی می‌ماند */
.buyers-panel .buy.fresh { animation: bp-in .45s var(--ease-out); }
.buyers-panel .buy.fresh::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--mint); box-shadow: 0 0 10px rgba(23,209,160,.8); animation: bp-bar 2.2s ease-out forwards;
}
@keyframes bp-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes bp-bar { 70% { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .buyers-panel .buy.fresh, .buyers-panel .buy.fresh::before { animation: none; } }

/* دسکتاپ: فهرست هم‌قدِ چارت، بی‌جای خالی پایین */
@media (min-width: 980px) {
  .board { align-items: stretch; }
  /* contain:size قدِ ردیف‌ها را از اندازهٔ ستون بیرون می‌گذارد؛ فهرست فقط تا قدِ چارت کش می‌آید */
  .buyers-panel .feed { flex: 1 1 0; min-height: 0; max-height: none; contain: size; overflow-y: auto; }
}

/* بالای چارت: درصدِ تغییرِ قیمت؛ منفی قرمز (۲۰۲۶-۱۰-۲۹) */
.ch-nums em.down { color: var(--bad); }
.sim-tag { margin-left: 8px; vertical-align: 1px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px Geist, Inter, sans-serif; color: var(--warn); background: rgba(255,176,32,.12); box-shadow: inset 0 0 0 1px rgba(255,176,32,.35); pointer-events: none; }
