/* ---------- فلشِ برعکس‌کردنِ خرید/فروش (۲۰۲۶-۱۰-۰۶) ---------- */
.arrow.flip { cursor: pointer; }
.arrow.flip svg { transition: transform .3s ease; }
.arrow.flip:hover svg, .arrow.flip:focus-visible svg { transform: rotate(180deg); }
.arrow.flip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* تب‌های قدیمیِ Buy/Sell دیگر در صفحه نیستند */
.trade-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 12px;
  background: var(--pane); border: 1px solid var(--line-soft); border-radius: 16px;
}
.trade-tabs button {
  flex: 1; padding: 9px 0; border: 0; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 14.5px;
}
.trade-tabs button.on { background: var(--pane-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.sell-list { margin-top: 14px; }
.sell-list:empty { display: none; }
a.pill { text-decoration: none; }

/* ---------- باکسِ موجودیِ شما (۲۰۲۶-۱۰-۲۵، طرحِ دوم) ---------- */
.hold {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 16px; padding: 20px; border-radius: 26px;
  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);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
@starting-style { .hold { opacity: 0; transform: translateY(10px); } }
/* لبهٔ گرادیانی: آبی → سبز، فقط دورِ کارت */
.hold::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(135deg, rgba(52,162,255,.55), rgba(30,41,65,.6) 40%, rgba(30,41,65,.6) 60%, rgba(23,209,160,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hold-glow {
  position: absolute; z-index: -1; pointer-events: none; inset: -40% -20% auto auto; width: 75%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(23,209,160,.16), transparent);
}
.hold-head { display: flex; align-items: center; gap: 12px; }
.hold-logo { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 210deg, var(--brand), var(--mint), var(--brand)); }
.hold-logo .coin { width: 100%; height: 100%; border: 2px solid #0d1320; }
.hold-title { flex: 1; min-width: 0; line-height: 1.2; }
.hold-title small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.hold-title b { display: block; margin-top: 3px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hold-title em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }
.hold-gain {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums;
  color: var(--mint); background: rgba(23,209,160,.12); box-shadow: inset 0 0 0 1px rgba(23,209,160,.28);
}
.hold-gain::before { content: ""; border: 4.5px solid transparent; border-bottom: 6px solid currentColor; border-top: 0; }
.hold-gain.down { color: var(--bad); background: rgba(255,107,107,.12); box-shadow: inset 0 0 0 1px rgba(255,107,107,.3); }
.hold-gain.down::before { border-bottom: 0; border-top: 6px solid currentColor; }

.hold-value { margin-top: 20px; line-height: 1.1; }
.hold-value small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.hold-value b {
  display: block; font-size: 40px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #f2fff9 10%, #7ff0cd 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hold-value span { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }

.hold-chart { display: block; width: calc(100% + 40px); height: 70px; margin: 12px -20px 0; overflow: visible; }
.hold-chart circle { filter: drop-shadow(0 0 6px rgba(23,209,160,.9)); }

.hold-compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  margin-top: 4px; padding: 12px 14px; border-radius: 16px;
  background: rgba(7,11,18,.5); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.hold-compare div { line-height: 1.3; }
.hold-compare div.now { text-align: right; }
.hold-compare small { display: block; color: var(--muted); font-size: 11.5px; }
.hold-compare b { font-size: 17px; font-variant-numeric: tabular-nums; }
.hold-compare .now b { color: var(--mint); }
.hold-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--mint); background: rgba(23,209,160,.1); }
.hold-arrow svg { width: 15px; height: 15px; }

.hold-empty { margin: 16px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.hold-step { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.hold-step-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; }
.hold-step-top em { font-style: normal; color: var(--mint); font-size: 12.5px; white-space: nowrap; }
.hold-bar { position: relative; height: 10px; margin-top: 10px; border-radius: 99px; background: var(--pane-2); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; }
.hold-bar i {
  position: relative; display: block; height: 100%; min-width: 10px; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--mint)); box-shadow: 0 0 12px rgba(23,209,160,.55);
  transition: width .8s var(--ease-out); overflow: hidden;
}
/* درخششِ آرامی که روی نوار رد می‌شود (حرکتِ دائم = linear) */
.hold-bar i::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: hold-shine 2.8s linear infinite;
}
@keyframes hold-shine { to { transform: translateX(100%); } }
.hold-step-foot { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .hold-bar i::after { animation: none; } .hold { transition: opacity .3s ease; } }

