/* ================= کارتِ خرید، نسخهٔ کامل ================= */

/* نوارِ قیمتِ بالای کارت */
.pricebar { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.pchip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
  background: var(--pane); border: 1px solid var(--line-soft);
  padding: 5px 11px 5px 6px; border-radius: 999px; line-height: 1;
}
.pchip b { color: var(--text); font-weight: 600; }
.pchip em { font-style: normal; font-weight: 700; color: #6cc8ff; font-variant-numeric: tabular-nums; }
.coin.sm { width: 20px; height: 20px; font-size: 10px; }
.icon-btn {
  margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--pane); border: 1px solid var(--line-soft); border-radius: 11px;
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: #2a3750; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.spin svg { animation: spin360 .7s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* ۲۵ / ۵۰ / ۷۵ / Max */
.pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0 0; }
.pcts button {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--pane); border: 1px solid var(--line-soft); border-radius: 13px;
  padding: 8px 4px; color: var(--text); font-family: inherit; cursor: pointer; line-height: 1.2;
}
.pcts b { font-size: 13.5px; font-weight: 700; }
.pcts small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pcts button:hover { border-color: #2a3750; background: #111a2a; }
.pcts button.on {
  background: linear-gradient(180deg, #45b0ff, #1f8bef); border-color: transparent; color: #031221;
  box-shadow: 0 8px 20px -10px rgba(42,163,255,.9);
}
.pcts button.on small { color: #06233f; }
.usage { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.usage b { color: var(--text); }

/* فاصلهٔ فلش با ردیفِ درصدها */
.pcts:not(.hide) ~ .arrow, .usage:not(.hide) ~ .arrow { margin-top: 6px; }

/* قفلِ نرخ */
.locked { display: inline-flex; align-items: center; gap: 6px; }
.locked svg { width: 13px; height: 13px; color: #6cc8ff; flex: none; }

/* خلاصهٔ سفارش */
.summary {
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: var(--pane); border: 1px solid var(--line-soft);
}
.sum-title { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sum-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.sum-side { display: flex; align-items: center; gap: 9px; min-width: 0; line-height: 1.3; }
.sum-side.r { text-align: right; }
.sum-side small { display: block; font-size: 11px; color: var(--muted); }
.sum-side b { font-family: "Space Grotesk", Inter, sans-serif; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-side .coin { width: 24px; height: 24px; }
.sum-arrow { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 12px; line-height: 1.35; }
.sum-grid small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.sum-grid b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* زیرِ دکمه: کیفِ وصل‌شده و شبکه */
.conn { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.conn b { color: var(--text); font-weight: 600; }
.net-pill {
  display: inline-flex; align-items: center; gap: 5px; color: var(--mint);
  background: rgba(23,209,160,.08); border: 1px solid rgba(23,209,160,.28);
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
}
.net-pill svg { width: 13px; height: 13px; }
.pricebar { flex-wrap: nowrap; gap: 6px; }
.pchip { min-width: 0; white-space: nowrap; font-size: 12px; padding: 4px 9px 4px 5px; gap: 5px; }
@media (max-width: 380px) { .pchip .coin.sm { display: none; } .pchip { padding-left: 9px; } }

/* ---------- موجودیِ کیفِ وصل‌شده ---------- */
.wallet-bals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.wb {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  background: var(--pane); border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 7px 9px; color: var(--text); font: inherit; font-size: 12px; text-align: left;
}
button.wb { cursor: pointer; } button.wb:hover, .wb.on { border-color: rgba(42,163,255,.45); }
.wb b { font-variant-numeric: tabular-nums; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wb small { color: var(--muted); font-size: 10.5px; margin-left: auto; flex: none; }
.wb .coin { flex: none; }

/* ---------- رفرال ---------- */





/* گوشی و تبلت: بلورِ پشتِ کارت‌ها (روی پس‌زمینه) گران است؛ به‌جایش زمینهٔ کدرتر. */
@media (pointer: coarse), (max-width: 820px) {
  * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .aurora span { animation: none; }
  /* تزئینیِ بی‌پایان: شناورشدنِ لوگو، موجِ عنوان و نقطه‌های زنده هر فریم دوباره رنگ
     می‌شدند؛ ثابت‌اند. نورِ دورِ کارت و برقِ دکمه به خواستِ مهدی ماندند: برق فقط
     transform است (ارزان)، و نور با steps روی ۳۰ فریم می‌چرخد به‌جای ۶۰. */
  .grad, .brand img, .live i, .live-dot { animation: none !important; }
  .swap > .beam { animation-timing-function: steps(150); }
}

/* کارتِ سوآپِ ساده (۲۰۲۶-۱۰-۰۲): خلاصهٔ سفارش، دکمه‌های درصد، چیپ‌های موجودی و خط‌های
   اعتماد پنهان‌اند (در DOM می‌مانند تا کد دست نخورد). نرخ و کارمزد یک خطِ زیرِ کارت‌اند. */
.swap .summary, .swap .pcts, .swap .usage, .swap .trust, .swap .wallet-bals { display: none !important; }
.pane-bot .usd { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fees {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 14px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-soft, rgba(255,255,255,.06));
  font-size: 13px; color: var(--muted);
}
.fees b { color: var(--text); font-weight: 600; }
#rate-line { color: var(--text); }

