/* ================= چارت و خریدارها (مثلِ DexIQ) ================= */
.board {
  /* از ستونِ باریکِ ۴۸۰ بیرون می‌زند تا چارت جا داشته باشد */
  margin: 22px calc(50% - min(560px, 50vw - 12px)) 0;
  display: grid; gap: 14px;
}
.board.reveal { animation-delay: .45s; }
.panel {
  background: rgba(12,17,28,.78); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 16px; backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  min-width: 0;
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h2 { font-size: 15px; margin: 4px 0 0; font-family: "Space Grotesk", Inter, sans-serif; }
.pair { font-size: 13px; line-height: 1.3; } .pair b { font-size: 15px; margin-right: 5px; } .pair span { color: var(--muted); }
.ch-nums { display: flex; align-items: baseline; gap: 10px; line-height: 1.2; margin-top: 4px; }
.ch-nums strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 26px; font-variant-numeric: tabular-nums; }
.ch-nums em { font-style: normal; font-size: 12.5px; font-weight: 600; }
.panel-head small { font-size: 11.5px; }
.muted { color: var(--muted); }

.seg { display: flex; gap: 2px; background: var(--pane); border: 1px solid var(--line-soft); border-radius: 11px; padding: 3px; }
.seg button {
  background: none; border: 0; color: var(--muted); font: 600 12px Geist, Inter, sans-serif;
  padding: 5px 11px; border-radius: 8px; cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button.on { background: #16223a; color: #6cc8ff; box-shadow: inset 0 0 0 1px rgba(42,163,255,.25); }

.chart { height: 320px; margin: 0 -6px; }
.ch-legend { display: flex; gap: 14px; font-size: 11px; color: var(--muted); margin: 4px 2px 0; }
.ch-legend .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.sw.gram { background: #2aa3ff; } .sw.usdt { background: #17d1a0; }
.ch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ch-stats div { background: var(--pane); border: 1px solid var(--line-soft); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.ch-stats small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ch-stats b { display: block; font: 600 15px "Space Grotesk", Inter, sans-serif; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .ch-stats { grid-template-columns: repeat(2, 1fr); } }
.panel-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; margin-top: 8px; flex-wrap: wrap; }
.demo-note { color: var(--warn); }
.panel-foot a.tv { color: inherit; text-decoration: none; opacity: .7; } .panel-foot a.tv:hover { opacity: 1; }
.ch-when { color: #6cc8ff; margin-left: 6px; }
#chart { cursor: crosshair; }

@media (min-width: 980px) {
  .board { grid-template-columns: 1.15fr 1fr; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .buyers tr.fresh { animation: none; } }
@media (min-width: 980px) { .chart { height: 400px; } }

/* ---------- فهرستِ خریدارها: همان زبانِ کارت‌های سوآپ ---------- */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  margin-right: 8px; vertical-align: middle; animation: ping 1.8s infinite;
}
.feed {
  display: grid; gap: 8px; max-height: 452px; overflow-y: auto; padding-right: 2px;
  scrollbar-width: thin; scrollbar-color: #1e2941 transparent;
  mask-image: linear-gradient(#000 88%, transparent); -webkit-mask-image: linear-gradient(#000 88%, transparent);
}
.buy {
  display: flex; align-items: center; gap: 11px;
  background: var(--pane); border: 1px solid var(--line-soft); border-radius: 15px;
  padding: 10px 13px; transition: border-color .2s, background .2s;
}
.buy:hover { border-color: #2a3750; background: #101828; }
.ava {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background:
    radial-gradient(circle at 30% 25%, hsl(var(--h) 90% 72% / .9), transparent 55%),
    linear-gradient(135deg, hsl(var(--h) 80% 45%), hsl(calc(var(--h) + 25) 70% 28%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.who { flex: 1; min-width: 0; line-height: 1.35; }
.who b { font-weight: 600; font-size: 13.5px; }
.who small { display: block; color: var(--muted); font-size: 11.5px; }
.who a { color: var(--muted); text-decoration: none; } .who a:hover { color: #6cc8ff; }
.got { text-align: right; line-height: 1.35; }
.got strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 15px; color: var(--mint); font-variant-numeric: tabular-nums; }
.got strong span { font-size: 11.5px; opacity: .8; }
.got small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.got .coin { width: 14px; height: 14px; }
.whale {
  margin-left: 7px; font: 600 10px Geist, sans-serif; vertical-align: 1px;
  color: var(--warn); background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.22);
  padding: 1px 7px; border-radius: 999px;
}
.buy.fresh { animation: fresh-in .6s cubic-bezier(.2,.8,.2,1), fresh 1.8s ease-out; }
@keyframes fresh-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fresh { from { border-color: rgba(23,209,160,.55); background: rgba(23,209,160,.08); } }
.feed .empty { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .buy.fresh, .live-dot { animation: none; } }
.got strong { display: block; white-space: nowrap; }
.got small { display: flex; justify-content: flex-end; white-space: nowrap; }
.who b { white-space: nowrap; }

/* ---------- نوارِ سقفِ پیش‌فروش ---------- */
.cap {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(14,20,33,.8); border: 1px solid var(--line-soft); border-radius: 17px;
}
.cap-top, .cap-bot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cap-top { font-size: 13px; color: var(--muted); }
.cap-top b { color: var(--text); font-family: "Space Grotesk", Inter, sans-serif; font-size: 16px; font-variant-numeric: tabular-nums; }
.cap-top > b { color: #6cc8ff; }
.cap-bar { height: 10px; margin: 10px 0 8px; background: var(--pane); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-soft); }
.cap-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #1f7fe0, #6cc8ff);
  box-shadow: 0 0 14px rgba(42,163,255,.6);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.cap-bar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: skel 2.4s infinite; transform: translateX(-100%);
}
.cap-bot { font-size: 11.5px; color: var(--muted); }
.cap.reveal { animation-delay: .26s; }
@media (prefers-reduced-motion: reduce) { .cap-bar i::after { animation: none; } }

/* ---------- بقیهٔ توکن‌های کیف در مودال ---------- */
.opt-jettons { max-height: 46vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: #1e2941 transparent; }
.opt-head { font-size: 12px; color: var(--muted); margin: 12px 2px 8px; }
.opt-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 4px 2px; line-height: 1.5; }
.opt em { text-align: right; line-height: 1.3; }
.opt em small { font-size: 11px; opacity: .8; }
.coin img { background: #fff1; }

