/* Madar Swap — نفس هوية الموقع الرسمي (أسود وفضي بلمسة ذهبية، 2026-10-10). الخطوط محفوظة داخل الموقع فقط. */
/* الخط العربي (IBM Plex Sans Arabic, OFL) — للحروف العربية فقط؛ الإنجليزي يبقى بخط النظام. */
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Madar Arabic"; src: url("fonts/IBMPlexSansArabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:root {
  --bg: #050506; --bg-2: #09090b; --panel: #101012; --field: #0a0a0c;
  --line: rgba(215, 220, 230, 0.14); --line-2: rgba(215, 220, 230, 0.28);
  --text: #f1f2f4; --muted: #9b9ea6; --blue: #ffc857; --indigo: #e9a23b; --teal: #ffd98a;
  --good: #34d399; --warn: #fbbf24; --bad: #f87171;
  --grad: linear-gradient(120deg, #fff1c7, #ffc857 50%, #e9a23b);
  --gold-btn: linear-gradient(180deg, #ffe7a8 0%, #ffc857 50%, #e9a23b 100%);
  --font: "Madar Arabic", "Segoe UI", system-ui, -apple-system, Tahoma, "Noto Sans Arabic", "Geeza Pro", sans-serif;
  --mono: Consolas, "Cascadia Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

/* الخلفية: وهج ومدارات هادئة */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(255, 200, 87, 0.09), transparent 60%),
    radial-gradient(700px 480px at -10% 35%, rgba(230, 233, 240, 0.10), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(255, 200, 87, 0.048), transparent 60%),
    var(--bg); }
.sky::before, .sky::after { content: ""; position: absolute; border: 1px solid rgba(230, 233, 240, 0.10); border-radius: 50%; animation: drift 40s linear infinite; }
.sky::before { width: 1100px; height: 420px; top: 90px; right: -320px; transform: rotate(-18deg); }
.sky::after { width: 1500px; height: 560px; top: 40px; right: -520px; border-color: rgba(230, 233, 240, 0.06); animation-duration: 60s; animation-direction: reverse; }
@keyframes drift { from { transform: rotate(-18deg); } to { transform: rotate(342deg); } }

/* الترويسة */
header { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); background: rgba(12, 12, 14, 0.72); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.beta { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; color: var(--teal); border: 1px solid rgba(230, 233, 240, .4); background: rgba(230, 233, 240, .1); border-radius: 999px; padding: 1px 7px; margin-inline-start: 2px; }
.links { display: flex; gap: 4px; }
.links a { color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: 14px; transition: color .2s, background .2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.pill { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); border-radius: 999px; padding: 7px 14px; font-size: 14px; transition: border-color .2s, background .2s, transform .15s; }
.pill:hover { border-color: rgba(230, 233, 240, .5); }
.pill.primary { background: var(--gold-btn); color: #1a1205; border-color: transparent; font-weight: 600; box-shadow: 0 6px 24px rgba(255, 200, 87, 0.105); }
.pill.ok { border-color: rgba(52, 211, 153, .45); display: inline-flex; align-items: center; gap: 7px; }
.pill.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }

/* البطل */
.hero { text-align: center; padding: 46px 0 22px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.2; margin: 16px 0 8px; letter-spacing: -.5px; }
[dir="rtl"] h1 { letter-spacing: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); margin: 0; font-size: 16px; }

/* بطاقة التحويل: إطار مضيء متدرّج + وهج */
.card { position: relative; width: min(480px, 100%); margin: 18px auto 0; padding: 18px; border-radius: 24px; border: 1px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(140deg, rgba(255, 216, 138, .55), rgba(230, 233, 240, .08) 45%, rgba(230, 233, 240, .4)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 200, 87, 0.054); animation: rise .6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.card-head b { font-size: 17px; }
select.lang-sel { color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
select.lang-sel option { background: var(--field); color: var(--text); }
select.chain { background: var(--field); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }

.field { background: var(--field); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: rgba(230, 233, 240, .45); box-shadow: 0 0 0 3px rgba(230, 233, 240, .12); }
.field-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.field-top button { background: rgba(230, 233, 240, .12); border: 0; color: var(--teal); padding: 0 8px; margin-inline-start: 6px; border-radius: 6px; font-size: 12px; }
.field-main { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.field-main input, .field-main .out { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 30px; font-weight: 600; direction: ltr; text-align: start; font-family: var(--font); padding: 0; }
.field-main .out { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .2s; }
.field-main .out.dim { color: var(--muted); }
.field-main .out.loading { color: transparent; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(230, 233, 240,.14), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.tok { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 6px 12px 6px 7px; font-weight: 600; white-space: nowrap; transition: border-color .2s, transform .15s; }
.tok:hover { border-color: rgba(230, 233, 240, .55); transform: translateY(-1px); }
.badge { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: #fff; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
img.badge { object-fit: cover; background: #19191b; }
.row .badge { width: 32px; height: 32px; }
.flip { display: flex; justify-content: center; margin: -10px 0; position: relative; z-index: 1; }
.flip button { width: 40px; height: 40px; border-radius: 14px; border: 4px solid var(--panel); background: #19191b; color: var(--teal); font-size: 18px; transition: transform .35s ease, background .2s; }
.flip button:hover { transform: rotate(180deg); background: #262628; }

.details { margin: 14px 4px 2px; font-size: 13px; color: var(--muted); animation: fade .3s ease; }
.details div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.details div[hidden] { display: none; }
.details .fee { color: var(--teal); direction: ltr; unicode-bidi: isolate; }
.details .bad { color: var(--bad); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.slip { display: flex; gap: 6px; align-items: center; }
.slip button { border: 1px solid var(--line-2); background: transparent; border-radius: 8px; padding: 0 8px; font-size: 12px; color: var(--muted); transition: all .15s; }
.slip button.on { border-color: var(--blue); color: var(--text); background: rgba(230, 233, 240, .12); }

.main-btn { position: relative; overflow: hidden; width: 100%; margin-top: 14px; border: 0; border-radius: 18px; padding: 16px; font-size: 16.5px; font-weight: 700; background: var(--gold-btn); color: #1a1205; box-shadow: 0 10px 30px rgba(255, 200, 87, 0.105); transition: transform .15s, box-shadow .2s, filter .2s; }
.main-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s; }
.main-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255, 200, 87, 0.15); }
.main-btn:not(:disabled):hover::after { transform: translateX(120%); }
.main-btn:disabled { background: #1e1e20; color: var(--muted); box-shadow: none; }
.main-btn.danger { background: linear-gradient(120deg, #7f1d1d, #b91c1c); }
.msg { margin-top: 10px; font-size: 13.5px; text-align: center; min-height: 20px; }
.msg.err { color: var(--bad); }
.useown { display: block; width: 100%; margin-bottom: 8px; border: 1px solid rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .07); color: var(--gold, #ffc857); border-radius: 12px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.useown:hover { background: rgba(255, 200, 87, .14); }
.owndest { margin: 0 0 6px; font-size: 13px; color: var(--muted); } .owndest b { color: var(--text); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.linkbtn { display: inline-block; margin: 0 0 8px; border: 0; background: none; padding: 0; color: var(--gold, #ffc857); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.toaddr input[hidden] { display: none !important; }
/* the network fee is missing: what to add, and a ready-made top-up from another network */
.gashelp { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(255, 200, 87, .35); border-radius: 12px; background: rgba(255, 200, 87, .06); font-size: 13px; line-height: 1.7; }
.gashelp p { margin: 0; }
.gashelp-btn { margin-top: 8px; width: 100%; border: 1px solid rgba(255, 200, 87, .55); background: none; color: var(--gold, #ffc857); border-radius: 10px; padding: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.alld { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted, #a9a9b3); }
.alld .linkbtn { margin: 0; font-size: 12.5px; }
.gashelp-btn:hover { background: rgba(255, 200, 87, .1); }
.msg.ok { color: var(--good); animation: pop .35s ease; }
.msg a { color: var(--teal); text-decoration: underline; }
@keyframes pop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lock { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 6px; }

/* الشبكات */
.nets { text-align: center; margin-top: 34px; }
.nets p { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: 13px; direction: ltr; }
.chip i { width: 9px; height: 9px; border-radius: 50%; }
.d-bnb { background: #f3ba2f; } .d-eth { background: #8c9eff; } .d-sol { background: linear-gradient(135deg, #14f195, #9945ff); }
.d-base { background: #0052ff; } .d-arb { background: #28a0f0; } .d-pol { background: #8247e5; }
.d-trx { background: #ff0013; } .d-btc { background: #f7931a; } .d-doge { background: #c2a633; } .d-ltc { background: #8fa3c4; } .d-xrp { background: #9ea3ab; }

/* المزايا */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.features article { background: rgba(16, 16, 18, .7); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: transform .2s, border-color .2s; }
.features article:hover { transform: translateY(-3px); border-color: rgba(230, 233, 240, .35); }
.ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--teal); background: rgba(230, 233, 240, .12); border: 1px solid rgba(230, 233, 240, .25); }
.features h3 { font-size: 16px; margin: 12px 0 4px; }
.features p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.8; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 50px; font-size: 13.5px; color: var(--muted); }
.steps div { display: flex; gap: 10px; align-items: center; }
.steps p { margin: 0; }
.steps span { min-width: 28px; height: 28px; border-radius: 50%; background: var(--gold-btn); color: #1a1205; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

footer { border-top: 1px solid var(--line); background: rgba(12, 12, 14, .6); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 0; color: var(--muted); font-size: 12.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-links a { white-space: nowrap; }
.foot-links a:hover { color: var(--text); }

/* النوافذ */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; animation: fade .2s ease; }
.overlay[hidden] { display: none; }
/* the coin picker drops down from the coin button (owner 2026-10-22): no dim page, anchored, a dark thin scrollbar */
.overlay.drop { background: transparent; backdrop-filter: none; display: block; padding: 0; animation: none; }
.overlay.drop .modal { position: absolute; width: min(380px, calc(100vw - 24px)); max-height: min(440px, 70vh); border-radius: 16px; animation: none; box-shadow: 0 18px 48px rgba(0, 0, 0, .65); }
.overlay.drop .modal-head { padding: 12px 14px 6px; }
.overlay.drop .modal input { margin: 0 12px 8px; padding: 9px 12px; }
.list { scrollbar-width: thin; scrollbar-color: rgba(230, 233, 240, .2) transparent; }
.list::-webkit-scrollbar { width: 6px; } .list::-webkit-scrollbar-thumb { background: rgba(230, 233, 240, .2); border-radius: 3px; } .list::-webkit-scrollbar-track { background: transparent; }
/* a table: coin | network | balance (+ dollars) — the same columns on every row */
.overlay.drop .modal { container-type: inline-size; }
.row.trow3 { display: grid; grid-template-columns: 32px minmax(64px, 1fr) 84px 96px; align-items: center; gap: 10px; }
.row .rcoin small.nt { display: none; }
/* narrow list (the trade panel): coin with its network under the symbol | balance — no squeezed columns */
@container (max-width: 340px) {
  .row.trow3 { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
  .row.trow3 .rnet { display: none; }
  .row .rcoin small.nm { display: none; } .row .rcoin small.nt { display: block; }
}
.row .rcoin { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .rnet { font-style: normal; justify-self: center; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 8px; border-radius: 6px; font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); }
.row .rbal { text-align: end; direction: ltr; font-variant-numeric: tabular-nums; line-height: 1.25; }
.row .rbal b { display: block; color: var(--text); font-weight: 600; font-size: 14.5px; }
.row .rbal small { display: block; color: var(--muted); font-size: 11.5px; }
.tok-note { margin: 0 14px 8px; font-size: 12px; color: var(--muted); }
.tok.locked { cursor: default; } .tok.locked span:last-child { display: none; }
/* the network travels with the coin: no network menus on the card; a small label under the coin's symbol */
.swap-card select.chain { display: none !important; }
.swap-card .card-head:not(.to-head) { display: none; }
.tok .tsym { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.tok .tsym small { font-size: 10px; font-weight: 500; color: var(--muted); }
.list .lhead { position: sticky; top: 0; z-index: 1; background: var(--panel); padding: 8px 10px 4px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; width: 100%; max-width: 420px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .25s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.modal-head button { background: none; border: 0; color: var(--muted); font-size: 22px; }
.modal input { margin: 0 16px 10px; background: var(--field); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); padding: 11px 13px; font: inherit; outline: 0; }
.modal input:focus { border-color: rgba(230, 233, 240, .5); }
.list { overflow-y: auto; padding: 0 8px 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-radius: 12px; padding: 10px; text-align: start; transition: background .15s; }
.row:hover { background: rgba(230, 233, 240, .08); }
.row small { display: block; color: var(--muted); font-size: 12px; }

/* الشروط */
.terms { max-width: 720px; padding: 30px 0 60px; }
.terms h1 { font-size: 30px; }
.terms h2 { font-size: 17px; margin: 24px 0 6px; color: var(--teal); }
.terms p, .terms li { color: var(--muted); line-height: 1.9; }
.terms a { color: var(--teal); }

@media (max-width: 760px) {
  .links { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .field-main input, .field-main .out { font-size: 25px; }
  .card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* محفظة الجوال (WalletConnect) */
.wc-note { margin: 0 18px 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wc-qr { display: block; margin: 0 auto 16px; width: min(260px, calc(100% - 36px)); aspect-ratio: 1; height: auto; background: #fff; border-radius: 14px; image-rendering: pixelated; }
.wc-open { display: block; margin: 0 18px 18px; text-align: center; padding: 11px; border-radius: 12px; background: rgba(230, 233, 240, .15); color: var(--text); text-decoration: none; }
.wc-open[hidden] { display: none; }

/* cross-network transfer (2026-10-11): the receiving network beside «تستلم», the Solana address under it */
select.chain.mini { padding: 2px 8px; font-size: 12px; margin-inline-start: 6px; vertical-align: middle; }
select.chain.mini:disabled { opacity: .55; cursor: not-allowed; }
.toaddr { margin-top: 8px; }
.toaddr input { width: 100%; box-sizing: border-box; background: var(--field); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 13.5px; font-family: ui-monospace, Menlo, Consolas, monospace; outline: 0; }
.toaddr input:focus { border-color: var(--teal); }
/* the hint reads in the page language (an Arabic hint inside a left-to-right address field came out jumbled) */
[dir="rtl"] .toaddr input:placeholder-shown { direction: rtl; font-family: inherit; }
.toaddr input.bad { border-color: #ff6b6b; }
.swap-card.cross .flip button { opacity: .4; cursor: default; }

/* each amount box carries its own network (owner 2026-10-11): label and network on top, amount and token, balance and «الكل» under them */
.field-top { align-items: center; gap: 8px; }
.flabel { font-size: 13px; }
.netpick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
select.chain.net { padding: 4px 26px 4px 10px; font-size: 12.5px; font-weight: 600; background-color: var(--panel); }
[dir="rtl"] select.chain.net { padding: 4px 10px 4px 26px; }
select.chain.net:disabled { opacity: .55; cursor: not-allowed; }
.field-bot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12.5px; min-height: 22px; }
.field-bot .bal { font-variant-numeric: tabular-nums; }
.maxb { background: rgba(255, 200, 87, .12); border: 1px solid rgba(255, 200, 87, .35); color: #ffd56b; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.maxb:hover { background: rgba(255, 200, 87, .2); }
/* the receiving network outside its box, like the paying one in the card head (owner 2026-10-11) */
.flip { margin: -10px 0 0; }
.card-head.to-head { margin: 0 0 10px; }
.card-head.to-head b { font-size: 15px; color: var(--muted); }
select.chain:disabled { opacity: .55; cursor: not-allowed; }
.field-top .maxb { margin-inline-start: 6px; padding: 0 9px; }

/* the cross-network tracker (2026-10-11): four steps, a bar, the time so far and the LI.FI link */
.xtrack { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 200, 87, .35); background: linear-gradient(160deg, rgba(255, 200, 87, .06), transparent 60%), var(--field); animation: fade .3s ease; }
.xhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.xhead b { font-size: 14px; direction: ltr; unicode-bidi: plaintext; }
.xclose { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; padding: 2px 6px; }
.xsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xsteps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.xsteps li i { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; border: 1.5px solid var(--line-2); }
.xsteps li.x-done { color: var(--text); }
.xsteps li.x-done i { background: #2ec27e; border-color: #2ec27e; color: #06120b; }
.xsteps li.x-now { color: var(--text); font-weight: 600; }
.xsteps li.x-now i { border-color: #ffc857; color: #ffc857; animation: xpulse 1.4s ease-in-out infinite; }
.xsteps li.x-bad i { background: #ff6b6b; border-color: #ff6b6b; color: #1a0606; }
@keyframes xpulse { 50% { box-shadow: 0 0 0 5px rgba(255, 200, 87, .18); } }
.xbar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin: 12px 0 8px; }
.xbar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffc857, #ff9b3d); transition: width .6s ease; }
.xbar.ok span { background: #2ec27e; }
.xbar.bad span { background: #ff6b6b; }
.xmeta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.xmeta a { color: var(--teal); }
.xnote { margin: 8px 0 0; font-size: 12.5px; color: #ffd56b; line-height: 1.6; }
.xnote.bad { color: #ff8a80; }
@media (prefers-reduced-motion: reduce) { .xsteps li.x-now i { animation: none; } }
.xhead > div { display: grid; gap: 2px; }
.xhead small { color: var(--muted); font-size: 12.5px; }

/* ---------- Madar Trade (2026-10-21, pro page): black panels, gold accents, TradingView-like colors; no blur, no endless animation ---------- */
[hidden] { display: none !important; }
.views { display: flex; gap: 6px; margin-top: 18px; }
.view-tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted); border-radius: 999px; padding: 7px 18px; font-size: 14.5px; font-weight: 600; transition: color .2s, border-color .2s, background .2s; }
.view-tab:hover { color: var(--text); }
.view-tab.on { color: #1a1205; background: var(--gold-btn); border-color: transparent; }
.tn-badge { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .6px; color: #ffd98a; border: 1px solid rgba(255, 200, 87, .55); background: rgba(255, 200, 87, .12); border-radius: 6px; padding: 1px 6px; direction: ltr; }
.view-tab.on .tn-badge { color: #1a1205; border-color: rgba(26, 18, 5, .4); background: rgba(255, 255, 255, .35); }
.up { color: var(--good); } .down { color: var(--bad); } .gold { color: #ffc857; }
.mono { font-family: var(--mono); }
.mini { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); border-radius: 6px; padding: 2px 9px; font-size: 11.5px; white-space: nowrap; }
.mini:hover { border-color: rgba(255, 200, 87, .55); }
.tr-empty { color: var(--muted); font-size: 13px; text-align: center; margin: 18px 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.seg button { border: 0; background: none; color: var(--muted); border-radius: 7px; padding: 7px 6px; font-weight: 700; font-size: 13px; }
.seg button.on { background: rgba(255, 200, 87, .14); color: #ffc857; }
.tr-field { display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.tr-field:focus-within { border-color: rgba(255, 200, 87, .5); }
.tr-field span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.tr-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; text-align: end; margin: 0; padding: 0; }
.tr-field em { font-style: normal; color: var(--muted); font-size: 12px; }
.tr-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin: 2px 2px 6px; }
.tr-kv { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.tr-kv > div { display: flex; justify-content: space-between; gap: 10px; }
.tr-kv b { color: var(--text); font-weight: 600; text-align: end; }
.tr-kv > div:has(.addr) { flex-direction: column; gap: 2px; }
.tr-kv .addr { font-size: 11.5px; word-break: break-all; text-align: start; direction: ltr; }
.tr-modal { max-width: 460px; }
.tr-modal-body { padding: 0 18px 18px; overflow-y: auto; scrollbar-width: thin; }
.tr-modal-body .tr-kv { margin: 8px 0; }
.tr-modal-body .tr-field { margin-top: 8px; }
.tr-modal-body .tr-field input { margin: 0; border: 0; padding: 0; background: transparent; }
.tr-modal-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 10px; }
.tr-modal-btns .main-btn { margin: 0; padding: 13px; font-size: 15px; border-radius: 12px; }
.tr-modal-btns .main-btn.long { background: #26a69a; color: #04140f; }
.tr-modal-btns .main-btn.short { background: #ef5350; color: #fff; }
.tr-modal-body .msg { min-height: 0; margin: 6px 0 0; }
.tr-note { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 8px 0; }
.tr-note.warn { color: #ffd56b; }
.tr-steps { margin: 4px 0 8px; padding-inline-start: 20px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.7; }
.pro-only { display: none !important; }

/* the page: full window, the site header and footer step aside */
body.pro-on > header, body.pro-on > .views, body.pro-on > footer, body.pro-on > .sky { display: none; }
body.pro-on { background: #060607; }
.pro {
  --up: #26a69a; --dn: #ef5350; --gd: #ffc857; --pp: #0e0e10; --p2: #151518; --ln: rgba(215, 220, 230, .09); --ln2: rgba(215, 220, 230, .18); --m: #8b8f98;
  --mk: 300px; --op: 320px;
  position: relative; display: grid; grid-template-rows: 48px 56px minmax(0, 1fr); grid-template-areas: "top" "stats" "main"; grid-template-columns: minmax(0, 1fr);
  gap: 6px; height: 100vh; height: 100dvh; min-height: 700px; padding: 6px; font-size: 13px; color: #eceef2;
}
.pro .up { color: var(--up); } .pro .down { color: var(--dn); } .pro .gold { color: var(--gd); }
.pro .mono { font-family: "Segoe UI", var(--mono); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.pro .p { background: var(--pp); border: 1px solid var(--ln); border-radius: 10px; min-height: 0; min-width: 0; overflow: hidden; }
.pro button { cursor: pointer; font: inherit; color: inherit; }
.pro .sp { flex: 1; }
/* top bar */
.pro-top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 12px; overflow: visible !important; position: relative; z-index: 6; }
.pro-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; direction: ltr; white-space: nowrap; }
.pro-brand img { width: 26px; height: 26px; }
.pro-brand b { color: var(--gd); }
.pro-link { border: 1px solid var(--ln2); background: none; border-radius: 999px; padding: 4px 12px; color: var(--m); font-size: 12px; white-space: nowrap; }
.pro .pro-link { color: var(--m); }
.pro-link:hover { color: #eceef2; border-color: rgba(255, 200, 87, .5); }
.pro .ic { width: 34px; height: 34px; border: 1px solid var(--ln2); background: none; border-radius: 8px; display: grid; place-items: center; color: var(--m); }
.pro .ic:hover { color: var(--gd); border-color: rgba(255, 200, 87, .45); }
.pro .wb { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ln2); background: none; border-radius: 999px; padding: 7px 14px; white-space: nowrap; font-size: 12.5px; }
.pro .wb:not(.on) { background: var(--gold-btn); color: #1a1205; border-color: transparent; font-weight: 700; font-family: var(--font); }
.pro .wb.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
/* menus */
.pro .pop { position: relative; }
.pro .menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 40; background: #141417; border: 1px solid var(--ln2); border-radius: 10px; padding: 6px; min-width: 190px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); display: grid; gap: 2px; }
.pro .ch .menu { inset-inline-end: auto; inset-inline-start: 0; }
.pro .mitem { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 7px; padding: 7px 10px; text-align: start; color: #d6d8de; font-size: 12.5px; white-space: nowrap; }
.pro .mitem:hover { background: rgba(255, 255, 255, .05); }
.pro .mitem.on { color: var(--gd); background: rgba(255, 200, 87, .08); }
.pro .mitem.chk i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--ln2); display: grid; place-items: center; font-style: normal; font-size: 11px; color: #1a1405; }
.pro .mitem.chk.on i { background: var(--gd); border-color: var(--gd); }
.pro .ly-menu { min-width: 290px; }
.pro .mitem.ly > span { display: grid; gap: 1px; }
.pro .mitem.ly small { color: var(--m); font-size: 11px; white-space: normal; }
.ly-ico { flex: none; width: 34px; height: 24px; border: 1px solid var(--ln2); border-radius: 4px; display: grid; gap: 2px; padding: 2px; }
.ly-ico span { background: rgba(255, 255, 255, .16); border-radius: 1px; }
.mitem.on .ly-ico span { background: rgba(255, 200, 87, .55); }
.ly-ico.ly-classic { grid-template-columns: 2fr 5fr 3fr; }

.ly-ico.ly-bigchart { grid-template-columns: 5fr 2fr; } .ly-ico.ly-bigchart span:nth-child(3) { display: none; }
.ly-ico.ly-vertical { grid-template-rows: 3fr 2fr 1fr; }
.ly-ico.ly-flex { grid-template-columns: 2fr 5fr 2fr; } .ly-ico.ly-flex span:nth-child(2) { outline: 1px dashed rgba(255, 200, 87, .7); }
.pro .set-menu { min-width: 260px; padding: 10px; gap: 10px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--m); font-size: 12.5px; }
/* settings side panel (no blur, no endless animation: the owner runs the page beside video) */
.pro .set-btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font-size: 12.5px; }
.dr-back { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .45); }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 81; width: min(380px, 100vw); background: #141417; border-left: 1px solid var(--ln2); display: flex; flex-direction: column; box-shadow: -18px 0 40px rgba(0, 0, 0, .5); }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.dr-head b { font-size: 15px; color: #eceef2; }
.dr-x { width: 32px; height: 32px; border: 0; background: none; color: var(--m); font-size: 22px; line-height: 1; border-radius: 8px; cursor: pointer; }
.dr-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pro .dr-tabs { display: flex; gap: 4px; padding: 0 12px 8px; border-bottom: 1px solid var(--ln); }
.dr-body { flex: 1; overflow-y: auto; padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgba(215, 220, 230, .2) transparent; }
.dr-body[hidden] { display: none; }
.dr-body h4 { margin: 10px 0 0; font-size: 12px; font-weight: 500; color: var(--m); }
.ly-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ly-cards button { border: 1px solid var(--ln2); background: none; border-radius: 10px; padding: 10px; display: grid; gap: 8px; justify-items: center; color: #d7dbe3; font: inherit; font-size: 12.5px; cursor: pointer; }
.ly-cards button.on { border-color: var(--gd); color: var(--gd); }
.ly-cards .ly-ico { width: 100%; height: 56px; }
.ly-cards small { color: var(--m); font-size: 11px; text-align: center; line-height: 1.4; }
.ly-cards button.on .ly-ico span { background: rgba(255, 200, 87, .55); }
.sw-list { display: grid; gap: 2px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border: 0; background: none; color: #d7dbe3; font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.sw-row small { display: block; color: var(--m); font-size: 11px; margin-top: 2px; }
.sw { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.sw-row[aria-checked="true"] .sw { background: var(--gd); }
.sw-row[aria-checked="true"] .sw::after { inset-inline-start: 17px; }
.dr-reset { margin-top: 14px; border: 1px solid var(--ln2); background: rgba(255, 255, 255, .03); color: #eceef2; border-radius: 9px; padding: 10px; font: inherit; font-size: 13px; cursor: pointer; }
.dr-reset:hover { border-color: rgba(255, 200, 87, .45); }
.drawer .set-row { padding: 6px 0; }
/* hidden panels: their grid columns / rows collapse */
.pro.hide-mk { --mkw: 0px; --s1: 0px; }
.pro.hide-op { --opw: 0px; --s3: 0px; }
.pro.hide-mk .mk, .pro.hide-mk .split[data-split="mk"], .pro.hide-op .op, .pro.hide-op .split[data-split="op"], .pro.hide-bt .bt, .pro.hide-stats .pro-stats { display: none !important; }
.pro.hide-stats { grid-template-rows: 48px minmax(0, 1fr); grid-template-areas: "top" "main"; }
.pro.lay-vertical.hide-stats { grid-template-rows: 48px auto; }
@media (max-width: 760px) { .pro .set-btn span { display: none; } .pro .set-btn { padding: 0; width: 34px; justify-content: center; } }
.set-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.schemes { display: grid; gap: 4px; }
.schemes button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ln2); background: none; color: #d7dbe3; border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 12.5px; cursor: pointer; text-align: start; }
.schemes button.on { border-color: var(--gd); color: var(--gd); }
.schemes i { flex: none; width: 8px; height: 14px; border-radius: 2px; }
.mk-more { display: block; width: calc(100% - 16px); margin: 8px; border: 1px solid var(--ln2); background: none; color: var(--m); border-radius: 8px; padding: 7px; font: inherit; font-size: 12.5px; cursor: pointer; }
.mk-more:hover { color: var(--gd); border-color: rgba(255, 200, 87, .45); }
.set-row select { background: var(--p2); color: #eceef2; border: 1px solid var(--ln2); border-radius: 7px; padding: 4px 8px; font: inherit; }
.pro .slip button { border: 1px solid var(--ln2); background: none; border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--m); }
.pro .slip button.on { border-color: var(--gd); color: var(--gd); }
/* market stats bar */
.pro-stats { grid-area: stats; display: flex; align-items: center; gap: 26px; padding: 0 16px; overflow: hidden; white-space: nowrap; }
.pro .pair { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 19px; font-weight: 700; cursor: pointer; }
.pro .pair .caret { font-style: normal; font-size: 12px; color: var(--m); transition: transform .15s; }
.pro.show-mk .pair .caret { transform: rotate(180deg); }
.pro .pair:hover .caret { color: var(--gd); }
.pro.hide-mk .pair .caret { display: inline; }
.pro:not(.hide-mk) .pair .caret { display: none; }
.pro .px { font-size: 20px; font-weight: 700; }
.pro .st small { display: block; color: var(--m); font-size: 11px; }
.pro .st b { font-weight: 500; font-size: 12.5px; }
/* main row */
.pro-main { grid-area: main; display: grid; min-height: 0; grid-template-columns: var(--mkw, var(--mk)) var(--s1, 6px) minmax(0, 1fr) var(--s3, 6px) var(--opw, var(--op)); grid-template-areas: "mk s1 ch s3 op"; }
/* panels keep the same places in Arabic and English, like every exchange: markets left, order panel right (owner 2026-10-21) */
[dir="rtl"] .pro-main { direction: ltr; }
[dir="rtl"] .pro-main > * { direction: rtl; }
.pro .mk { grid-area: mk; display: flex; flex-direction: column; }
.pro .chcol { grid-area: ch; display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.pro .ch { flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* under the chart: my trades (from this browser) and my balances (this network) */
.pro .bt { flex: none; height: var(--bt, 200px); display: flex; flex-direction: column; }
.bt-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--ln); }
.bt-head .sp { flex: 1; }
.bt-net { color: var(--m); font-size: 11.5px; }
.bt-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(215, 220, 230, .2) transparent; }
.bt-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bt-tbl th { position: sticky; top: 0; background: var(--pp); color: var(--m); font-weight: 500; font-size: 11.5px; text-align: start; padding: 6px 10px; border-bottom: 1px solid var(--ln); }
.bt-tbl td { padding: 6px 10px; border-bottom: 1px solid var(--ln); white-space: nowrap; }
.bt-tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.bt-tbl .num { text-align: end; direction: ltr; }
.bt-tbl a, .bt-tbl button { color: var(--gd); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: none; }
.bt-tbl a:hover, .bt-tbl button:hover { text-decoration: underline; }
.bt-empty { color: var(--m); font-size: 12.5px; text-align: center; margin: 22px 12px; }
.bt-empty button { margin-inline-start: 8px; border: 1px solid rgba(255, 200, 87, .45); background: none; color: var(--gd); border-radius: 999px; padding: 4px 12px; font: inherit; cursor: pointer; }
.bt-foot { color: var(--m); font-size: 11px; margin: 8px 10px; }
.pro .mhd { color: var(--m); font-size: 11px; padding: 6px 8px 2px; }
.pro .mitem .isw { flex: none; width: 10px; height: 3px; border-radius: 2px; }
.pro .op { grid-area: op; display: flex; flex-direction: column; gap: 6px; padding: 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(215, 220, 230, .2) transparent; }
.split[data-split="mk"] { grid-area: s1; } .split[data-split="op"] { grid-area: s3; }
.pro .split { border-radius: 3px; }
.pro.lay-flex .split { cursor: col-resize; touch-action: none; }
.pro.lay-flex .split:hover, .pro .split.drag { background: rgba(255, 200, 87, .35); }
.pro:not(.lay-flex) .split { pointer-events: none; }
.pro.lay-bigchart .pro-main { grid-template-columns: minmax(0, 1fr) var(--s3, 6px) var(--opw, var(--op)); grid-template-areas: "ch s3 op"; }
.pro.lay-bigchart .mk, .pro.lay-bigchart .split[data-split="mk"] { display: none; }
.pro.lay-vertical { height: auto; min-height: 0; grid-template-rows: 48px 56px auto; }
.pro.lay-vertical .pro-main { grid-template-columns: minmax(0, 1fr) 6px var(--op); grid-template-rows: minmax(620px, 76vh) 600px; grid-template-areas: "ch ch ch" "mk s1 op"; row-gap: 6px; }
.pro.lay-vertical .split { display: none; }
/* markets list shown over the page when its column is collapsed */
.pro.show-mk .mk { display: flex !important; position: absolute; z-index: 30; top: 116px; inset-inline-start: 6px; width: min(340px, calc(100% - 12px)); height: min(560px, calc(100% - 130px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); border-color: rgba(255, 200, 87, .35); }
/* toolbars and tabs */
.pro .tb { display: flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 10px; border-bottom: 1px solid var(--ln); flex: none; }
.pro .tabs button, .pro .tfs button, .pro .tbtn { border: 0; background: none; color: var(--m); border-radius: 6px; padding: 4px 8px; font-size: 12.5px; white-space: nowrap; }
.pro .tabs button:hover, .pro .tfs button:hover, .pro .tbtn:hover { color: #eceef2; }
.pro .tabs button.on, .pro .tfs button.on, .pro .tbtn.on { color: var(--gd); background: rgba(255, 200, 87, .1); }
.pro .tabs .mini { color: #eceef2; border: 1px solid var(--ln2); }
.pro .tb .sep { width: 1px; height: 18px; background: var(--ln2); margin: 0 6px; flex: none; }
.pro .tbtn { display: inline-flex; align-items: center; gap: 4px; }
.pro .tbtn .fx { font-style: italic; font-family: Georgia, serif; }
.pro .tfs { display: flex; gap: 2px; direction: ltr; }
/* markets */
.pro .srch { margin: 8px; background: transparent; border: 1px solid var(--ln2); border-radius: 7px; padding: 6px 10px; color: #eceef2; font: inherit; outline: 0; }
.pro .srch:focus { border-color: rgba(255, 200, 87, .5); }
.pro .mk-tabs { display: flex; gap: 2px; padding: 0 6px 6px; border-bottom: 1px solid var(--ln); flex-wrap: wrap; }
.pro .mk-tabs button { font-size: 12px; padding: 3px 7px; }
.pro .mk-list { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(215, 220, 230, .2) transparent; }
/* markets table: fixed columns, always left-to-right like every exchange (coin | price | 24h), numbers right-aligned */
.pro .mk-list { direction: ltr; }
.mhead, .mrow2 { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; --mcols: minmax(0, 1fr) 84px 64px; }
.mhead { grid-template-columns: 24px var(--mcols); position: sticky; top: 0; z-index: 1; background: var(--panel); border-bottom: 1px solid var(--ln); font-size: 11px; color: var(--m); }
.mhead .mh-sym { display: flex; align-items: center; padding-inline-start: 4px; min-width: 0; }
.mhead .mh-sym > span { color: #44474e; white-space: pre; }
.mhead button { background: none; border: 0; padding: 6px 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.mhead .mh-px, .mhead .mh-chg { text-align: end; }
.mhead .mh-chg { padding-inline-end: 10px; }
.mhead button:hover, .mhead button.on { color: #eceef2; }
.mhead button i { font-style: normal; font-size: 8px; margin-inline-start: 2px; color: var(--gd); }
.mrow2.on { background: rgba(255, 200, 87, .06); }
.mrow2 .star { border: 0; background: none; color: #55585f; font-size: 13px; padding: 6px 0; }
.mrow2 .star.on { color: var(--gd); }
.mrow2 .mgo { display: grid; grid-template-columns: var(--mcols); align-items: center; background: none; border: 0; padding: 5px 10px 5px 4px; font-size: 12px; text-align: start; width: 100%; font-variant-numeric: tabular-nums; }
.mrow2 .msym { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mrow2 .mvol { color: #6b6f78; font-size: 10px; }
.mrow2 .mgo:hover { background: rgba(255, 255, 255, .03); }
.mrow2 .mgo > span { text-align: end; }
.mrow2 .mgo > .msym { text-align: start; }
.pro .sym { font-weight: 700; direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro .sym small { color: var(--m); font-weight: 400; }
/* chart */
.ch-bar { flex-wrap: nowrap; overflow: visible; position: relative; z-index: 5; }
.ch-box { position: relative; flex: 1; min-height: 0; background: var(--pp); }
/* TradingView Advanced Charts: its own toolbar and legend replace ours */
.tv-host { position: absolute; inset: 0; }
.ch.tv-on .ch-bar > :not(.eng), .ch.tv-on .ch-leg, .ch.tv-on .ch-nav, .ch.tv-on .pt { display: none; }
.ch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.ch-leg { position: absolute; top: 6px; left: 12px; right: 80px; z-index: 2; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--m); pointer-events: none; direction: ltr; justify-content: flex-start; }
.ch-leg b { color: #eceef2; font-weight: 600; } .ch-leg i { font-style: normal; }
.ch-leg .ma7 { color: #ffc857; } .ch-leg .ma25 { color: #9b8cff; }
.ch-nav { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; direction: ltr; opacity: 0; transition: opacity .15s; }
.ch-box:hover .ch-nav, .ch-nav:focus-within { opacity: 1; }
@media (hover: none) { .ch-nav { opacity: .85; } }
.ch-nav button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--ln2); background: rgba(16, 16, 18, .92); color: #d7dbe3; font: 600 15px/1 "Segoe UI", sans-serif; cursor: pointer; padding: 0; }
.ch-nav button:hover { border-color: rgba(255, 200, 87, .5); color: #fff; }
.ch-msg { position: absolute; inset: 45% 0 auto; text-align: center; color: var(--m); margin: 0; pointer-events: none; }
.pro .tf-menu { grid-template-columns: repeat(2, minmax(84px, 1fr)); min-width: 200px; }
.mrow { display: flex; align-items: center; }
.mrow .lbl { flex: 1; text-align: start; background: none; border: 0; padding: 6px 8px; border-radius: 6px; color: #d6d8de; direction: ltr; }
.mrow .lbl.on { color: var(--gd); } .mrow .lbl:hover { background: rgba(255, 255, 255, .05); }
.mrow .pin { background: none; border: 0; color: #55585f; padding: 4px 6px; } .mrow .pin.on { color: var(--gd); }
.ch:fullscreen { border-radius: 0; }
/* order panel */
.pro .spot { display: flex; flex-direction: column; gap: 6px; }
.pro .ls { display: grid; grid-template-columns: 1fr 1fr; background: var(--p2); border-radius: 8px; padding: 3px; gap: 3px; }
.pro .ls button { border: 0; background: none; text-align: center; padding: 8px 0; border-radius: 6px; font-weight: 700; color: var(--m); }
.pro .ls button.L.on { background: var(--up); color: #04140f; } .pro .ls button.S.on { background: var(--dn); color: #fff; }
.pro .ty { display: flex; gap: 16px; border-bottom: 1px solid var(--ln); align-items: flex-end; }
.pro .ty button { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--m); padding: 0 0 6px; }
.pro .ty button.on { color: var(--gd); font-weight: 700; border-bottom-color: var(--gd); }
.pro .note { color: var(--m); font-size: 11.5px; line-height: 1.6; margin: 0; }
.pro .note.warn { color: #ffd56b; }
.rng { display: grid; gap: 2px; }
.rng input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; padding: 0; border: 0; cursor: pointer; --fill: 0%; }
.rng input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #ffc857 var(--fill), rgba(215, 220, 230, .18) var(--fill)); }
[dir="rtl"] .rng input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to left, #ffc857 var(--fill), rgba(215, 220, 230, .18) var(--fill)); }
.rng input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(215, 220, 230, .18); }
.rng input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: #ffc857; }
.rng input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #060607; border: 2px solid #ffc857; }
.rng input[type="range"]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #060607; border: 2px solid #ffc857; }
.rng input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }
.rng .marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--m); }
.rng .marks button, .rng .marks span { border: 0; background: none; color: var(--m); padding: 0; font-size: 11px; cursor: pointer; font-family: "Segoe UI", sans-serif; }
.rng .marks .on { color: var(--gd); } .rng .marks .off { opacity: .35; cursor: not-allowed; }
/* spot: the swap card of this site, inside the order panel */
.op .pro-only { display: grid !important; }
/* order details stay on screen in the trade page (empty values show a dash until a price arrives) */
.op .swap-card .details[hidden] { display: block !important; }
.op .swap-card .details { margin: 10px 0 2px; padding: 8px 10px; border: 1px solid var(--ln); border-radius: 10px; font-size: 12px; animation: none; }
.op .swap-card .details span:empty::after { content: "—"; }
.op .swap-card .dhead { margin: 0 0 4px; font-size: 11.5px; color: #c9ccd3; font-weight: 600; }
/* cards under the buy / sell panel */
.ocard { border-top: 1px solid var(--ln); padding: 10px 2px 2px; }
.ocard h5 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #c9ccd3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ocard h5 small { font-weight: 400; color: var(--m); font-size: 10.5px; border: 1px solid var(--ln2); border-radius: 999px; padding: 1px 7px; }
.arows { display: grid; gap: 4px; font-size: 12.5px; }
.arows div { display: flex; justify-content: space-between; gap: 8px; }
.arows span { color: var(--m); } .arows b { font-weight: 500; direction: ltr; }
.rbar { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--dn), #5a5d66 50%, var(--up)); direction: ltr; margin: 4px 2px; }
.rbar i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2px solid #0e0e10; left: 50%; }
.rlbl { display: flex; justify-content: space-between; font-size: 11.5px; direction: ltr; margin-top: 6px; }
.rlbl small { color: var(--m); font-family: inherit; } .rlbl b { font-weight: 500; }
.tape .trow { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 6px; font-size: 11.5px; padding: 2px 0; direction: ltr; }
.tape .trow span:nth-child(2) { text-align: center; } .tape .trow span:nth-child(3) { text-align: end; color: var(--m); }
.tape .thead { color: var(--m); font-size: 11px; font-family: inherit; }
.tape .tlist { max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(215, 220, 230, .2) transparent; }
.tape .tlist:empty::after { content: "…"; color: var(--m); font-size: 12px; }
.op .swap-card { width: 100%; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; animation: none; border-radius: 0; }
.op .swap-card .card-head { margin-bottom: 6px; }
.op .swap-card .card-head b { font-size: 12.5px; color: var(--m); font-weight: 500; }
.op .swap-card select.chain { padding: 4px 10px; font-size: 12px; background: var(--p2); }
/* inside the trade page the buy / sell buttons choose the direction on one network: no «تحويل» title, no receiving-network row, no flip */
.op .swap-card .card-head:not(.to-head) b { display: none; }
.op .swap-card .card-head:not(.to-head) select.chain { width: 100%; }
.op .swap-card .to-head, .op .swap-card .flip { display: none !important; } /* the receiving address row shows when the real coin lives on another network (e.g. SOL bought with USDT on Ethereum) */
.op .swap-card #spotPctRow + .flip + .to-head + .field { margin-top: 8px; }
.op .swap-card .field { border-radius: 10px; padding: 9px 11px; background: var(--p2); border-color: var(--ln2); }
.op .swap-card .field-main { margin-top: 4px; gap: 8px; }
.op .swap-card .field-main input, .op .swap-card .field-main .out { font-size: 19px; }
.op .swap-card .tok { padding: 4px 9px 4px 5px; font-size: 12.5px; gap: 6px; }
.op .swap-card .badge { width: 20px; height: 20px; }
.op .swap-card #spotPctRow { margin: 8px 2px 4px; }
.op .swap-card .flip { margin: 0 0 4px; }
.op .swap-card .flip button { width: 30px; height: 30px; border-radius: 10px; border-width: 3px; border-color: var(--pp); font-size: 14px; }
.op .swap-card .details { margin: 8px 2px 0; font-size: 11.5px; }
.op .swap-card .details div { padding: 2px 0; }
.op .swap-card .main-btn { margin-top: 8px; border-radius: 9px; padding: 11px; font-size: 15px; box-shadow: none; }
.op .swap-card .lock { font-size: 10.5px; }
.op .swap-card .msg { font-size: 12px; margin-top: 6px; }

/* narrower desktops */
@media (max-width: 1440px) {
  .pro { --mk: 250px; --op: 300px; }
  .pro-stats { gap: 18px; }
}
@media (max-width: 1100px) {
  .pro.lay-classic .pro-main, .pro.lay-flex .pro-main { grid-template-columns: minmax(0, 1fr) 6px var(--op); grid-template-areas: "ch s3 op"; }
  .pro.lay-classic .mk, .pro.lay-flex .mk, .pro .split[data-split="mk"] { display: none; }
}
/* phones and narrow windows: everything stacked, no sideways scrolling */
@media (max-width: 760px) {
  .pro, .pro.lay-vertical { height: auto; min-height: 0; grid-template-rows: auto auto auto; padding: 4px; }
  .pro-top { gap: 6px; padding: 6px 8px; min-width: 0; }
  .pro .ic { width: 30px; height: 30px; }
  .pro-main, .pro-stats { min-width: 0; }
  .pro-brand span { font-size: 15px; } .pro-link { display: none; }
  .pro .wb { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pro .wb { padding: 6px 10px; font-size: 12px; }
  .pro-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 10px; white-space: normal; }
  .pro .pair { grid-column: 1 / 3; font-size: 17px; } .pro .px { grid-column: 3; font-size: 17px; text-align: end; }
  .pro .st { min-width: 0; } .pro .st b { font-size: 12px; overflow-wrap: anywhere; }
  .pro .pro-main, .pro.lay-bigchart .pro-main, .pro.lay-vertical .pro-main, .pro.lay-classic .pro-main, .pro.lay-flex .pro-main {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 420px; grid-template-areas: "ch" "op" "bt" "mk"; row-gap: 6px; }
  /* phones: buy / sell comes right under the chart, then my trades and balances, then the markets */
  .pro .chcol { display: contents; }
  .pro .ch { grid-area: ch; flex: none; height: auto; } .pro .bt { grid-area: bt; height: auto; max-height: 340px; }
  .pro .mk { display: flex !important; }
  .pro .split { display: none !important; }
  .pro .op { overflow: visible; }
  .ch-bar { overflow-x: auto; scrollbar-width: none; }
  .pro .ch .menu { position: fixed; top: 120px; inset-inline: 8px; }
  .pro .tb .sep { display: none; }
  .ch-leg, [dir="rtl"] .ch-leg { left: 12px; right: 12px; font-size: 10.5px; }
  .pro.show-mk .mk { position: static; width: auto; height: auto; box-shadow: none; }
  .pro .ly-menu { min-width: 250px; }
  .pro .menu { max-width: calc(100vw - 24px); }
}
@media (max-width: 420px) { .pro-brand span { display: none; } }
/* short desktop windows (768 px high laptops): compact mode cards and tables so the order button stays in view */
@media (max-width: 1500px) { #trFull span { display: none; } }
.op .swap-card .main-btn { color: #1a1205; } .op .swap-card .main-btn:disabled { color: var(--muted); } .op .swap-card .main-btn.danger { color: #fff; }

/* the connected wallet's menu (copy / disconnect), 2026-10-23 */
.wmenu { position: fixed; z-index: 90; min-width: 190px; background: #141417; border: 1px solid rgba(215, 220, 230, .18); border-radius: 12px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.wmenu .wm-addr { padding: 6px 10px 8px; font-size: 12px; color: #8b8f98; direction: ltr; text-align: center; border-bottom: 1px solid rgba(215, 220, 230, .09); margin-bottom: 2px; }
.wmenu button { border: 0; background: none; color: #eceef2; font: inherit; font-size: 13.5px; text-align: start; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.wmenu button:hover, .wmenu button:focus-visible { background: rgba(255, 255, 255, .06); }
.wmenu button.out { color: #ef5350; }
.owhy { margin: 6px 0 0; font-size: 12px; color: var(--muted, #8b8f98); line-height: 1.6; }

/* chart switch + chart patterns panel (owner 2026-10-23) */
.pro .eng { display: inline-flex; background: #0b0b0d; border: 1px solid var(--ln); border-radius: 8px; padding: 2px; gap: 2px; }
.pro .eng button { border: 0; background: none; color: var(--m); font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.pro .eng button.on { background: rgba(255, 200, 87, 0.14); color: var(--gd); }
.pro .ch-row { flex: 1; min-height: 0; display: flex; gap: 6px; direction: ltr; }
.pro .ch-row > .ch-box { flex: 1; min-width: 0; }
.pro .pt { flex: none; width: 214px; display: flex; flex-direction: column; min-height: 0; background: var(--pp); direction: rtl; border-inline-end: 1px solid var(--ln); }
[dir="ltr"] .pro .pt { direction: ltr; }
.pro .pt-h { padding: 8px 10px 6px; display: grid; gap: 2px; border-bottom: 1px solid var(--ln); }
.pro .pt-h b { font-size: 13px; color: #eceef2; }
.pro .pt-h small { font-size: 11px; color: var(--m); }
.pro .pt-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; display: grid; gap: 6px; align-content: start; }
.pro .pt-empty { margin: 8px 4px; font-size: 12px; color: var(--m); }
.pro .pt-card { display: grid; gap: 4px; width: 100%; padding: 7px; border-radius: 8px; border: 1px solid var(--ln); background: #121215; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.pro .pt-card:hover { border-color: var(--ln2); }
.pro .pt-card.done { border-color: rgba(255, 200, 87, 0.35); }
.pro .pt-card.forming { border-style: dashed; }
.pro .pt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.pro .pt-top b { font-size: 12.5px; color: #eceef2; }
.pro .pt-tf { font-size: 11px; color: var(--m); white-space: nowrap; }
.pro .pt-mini { display: block; width: 100%; height: 64px; }
.pro .pt-meta { display: flex; justify-content: space-between; font-size: 11px; }
.pro .pt-meta i { font-style: normal; }
.pro .pt-card.done .pt-st { color: var(--gd); } .pro .pt-card.forming .pt-st { color: var(--m); }
.pro .pt-card.up .pt-dir { color: var(--up); } .pro .pt-card.down .pt-dir { color: var(--dn); } .pro .pt-card.both .pt-dir { color: var(--m); }
@media (max-width: 700px) {
  .pro .ch-row { flex-direction: column; }
  /* phones (2026-10-23): the chart keeps a fixed height and the patterns strip sits under it at its own height — no empty band, no cut cards */
  .pro .ch-row { flex: none; }
  .pro .ch-row > .ch-box { flex: none; height: 340px; }
  .pro .pt { width: auto; order: 2; border-inline-end: 0; border-top: 1px solid var(--ln); max-height: none; }
  .pro .pt-h { padding: 6px 8px 4px; }
  .pro .pt-list { display: flex; overflow-x: auto; overflow-y: hidden; }
  .pro .pt-card { min-width: 170px; }
  .pro .pt-mini { height: 46px; }
}
.pro .pt-str { font-size: 10.5px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--ln2); color: var(--m); }
.pro .pt-str.s-high { color: #0e0e10; background: var(--gd); border-color: var(--gd); } .pro .pt-str.s-mid { color: var(--gd); border-color: rgba(255,200,87,.45); }
.pro .pt-goals { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; direction: rtl; } .pro .pt-goals i { font-style: normal; white-space: nowrap; } .pro .pt-tgt { color: var(--up); } .pro .pt-inv { color: var(--dn); }
.pro .pt-out { font-size: 11px; font-weight: 600; } .pro .pt-out.hit { color: var(--up); } .pro .pt-out.cancelled { color: var(--dn); }

/* «النماذج» page (owner 2026-10-23) */
.pat-view { padding-top: 18px; padding-bottom: 40px; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pp-head h2 { margin: 0 0 4px; font-size: 20px; }
.pp-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.pp-btn { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pp-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 14px; }
.pp-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.pp-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; padding: 4px 11px; border-radius: 7px; cursor: pointer; }
.pp-seg button.on { background: rgba(255,200,87,.14); color: #ffc857; }
.pp-status { color: var(--muted); font-size: 12px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pp-empty, .pp-note { color: var(--muted); font-size: 13px; }
.pp-note { margin-top: 14px; }
.pp-card { display: grid; gap: 6px; text-align: start; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #0d0d10; color: inherit; font: inherit; cursor: pointer; }
.pp-card:hover { border-color: rgba(255,200,87,.45); }
.pp-card.forming { border-style: dashed; }
.pp-top, .pp-name { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.pp-top b { font-size: 14px; } .pp-top small { font-size: 12px; color: var(--muted); direction: ltr; } .pp-top i { font-style: normal; }
.pp-top .up { color: #26a69a; } .pp-top .down { color: #ef5350; }
.pp-name b { font-size: 13px; } .pp-name small { font-size: 11.5px; color: var(--muted); }
.pp-card .pt-mini { display: block; width: 100%; height: 64px; }
.pp-card .pt-goals { display: flex; justify-content: space-between; font-size: 11.5px; } .pp-card .pt-goals i { font-style: normal; }
.pp-card .pt-tgt { color: #26a69a; } .pp-card .pt-inv { color: #ef5350; }
.pp-card .pt-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; } .pp-card .pt-meta i { font-style: normal; }
.pp-card.up .pt-dir { color: #26a69a; } .pp-card.down .pt-dir { color: #ef5350; } .pp-card.both .pt-dir { color: var(--muted); }
.pp-card .pt-out.hit { color: #26a69a; font-weight: 600; } .pp-card .pt-out.cancelled { color: #ef5350; font-weight: 600; }
.pp-card .pt-st { color: var(--muted); }
.pp-card .pt-str { font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.pp-card .pt-str.s-high { background: #ffc857; color: #1a1205; border-color: #ffc857; } .pp-card .pt-str.s-mid { color: #ffc857; border-color: rgba(255,200,87,.45); }
@media (max-width: 600px) { .pp-head { flex-direction: column; } .pp-grid { grid-template-columns: 1fr; } }

/* BTC sell panel on the advanced swap (2026-10-24) */
.pro .sl { display: grid; gap: 8px; padding: 4px 2px; }
.pro .sl-h { margin: 0; font-size: 14px; }
.pro .sl-l { display: grid; gap: 4px; font-size: 12px; color: var(--m); }
.pro .sl-in { width: 100%; box-sizing: border-box; background: #0b0b0d; color: #eceef2; border: 1px solid var(--ln); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; }
.pro .sl-line { margin: 0; font-size: 13px; color: #eceef2; }
.pro .sl-btn { border: 0; border-radius: 10px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer; background: var(--gd, #ffc857); color: #1a1205; }
.pro .sl-btn:disabled { opacity: .5; cursor: default; }
.pro .sl-btn.ghost { background: none; border: 1px solid var(--ln2); color: #eceef2; }
.pro .sl-qr { justify-self: center; background: #fff; border-radius: 8px; padding: 6px; }
.pro .sl-addr { word-break: break-all; font-size: 12.5px; margin: 0; }
.pro .sl-st { margin: 0; font-weight: 600; color: var(--gd, #ffc857); }
.pro .sl-pay { display: grid; gap: 8px; }
.pro .sl-pay[hidden] { display: none; }
.pro .sl-sum { display: grid; gap: 4px; border: 1px solid var(--ln); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.pro .sl-sum-r { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.pro .sl-sum-r span { color: var(--m); flex: none; }
.pro .sl-sum-r b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; text-align: end; }
/* Trade page, lighter (owner 2026-10-24, like Hyperliquid): the chart takes the middle; patterns are the first tab under it;
   the market's last trades get their own narrow column beside the chart on wide screens; the 24 h range card goes (the
   figures bar above already shows the day's high and low) */
.pro .op .range { display: none; }
.pro .bt .pt { display: none; }
.pro .bt.pat-on .pt { display: flex; flex: 1; min-height: 0; width: auto; border: 0; background: none; }
.pro .bt.pat-on .bt-body { display: none; }
.pro .bt .pt-h { display: none; }
.pro .bt .pt-list { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 8px; align-items: stretch; }
.pro .bt .pt-card { flex: none; width: 200px; align-content: start; }
.pro .bt .pt-mini { height: 54px; }
.pro .bt .pt-empty { margin: 18px auto; }
.pro .tp { grid-area: tp; display: none; flex-direction: column; min-height: 0; padding: 8px 10px; margin-inline-start: 6px; }
.pro .tp .tape { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pro .tp .tape h5 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #eceef2; }
.pro .tp .tape h5 small { color: var(--m); font-weight: 400; font-size: 11px; }
.pro .tp .tlist { max-height: none; flex: 1; min-height: 0; }
@media (min-width: 1280px) {
  .pro.lay-classic .pro-main, .pro.lay-flex .pro-main { grid-template-columns: var(--mkw, var(--mk)) var(--s1, 6px) minmax(0, 1fr) 236px var(--s3, 6px) var(--opw, var(--op)); grid-template-areas: "mk s1 ch tp s3 op"; }
  .pro.lay-bigchart .pro-main { grid-template-columns: minmax(0, 1fr) 236px var(--s3, 6px) var(--opw, var(--op)); grid-template-areas: "ch tp s3 op"; }
  .pro.lay-classic .tp, .pro.lay-flex .tp, .pro.lay-bigchart .tp { display: flex; }
}
@media (max-width: 760px) {
  /* phones: the market's last trades come back under my trades (they had their place in the order panel before) */
  .pro .pro-main, .pro.lay-bigchart .pro-main, .pro.lay-vertical .pro-main, .pro.lay-classic .pro-main, .pro.lay-flex .pro-main {
    grid-template-rows: auto auto auto 300px 420px; grid-template-areas: "ch" "op" "bt" "tp" "mk"; }
  .pro .tp, .pro.lay-vertical .tp { display: flex; margin: 0; }
}
/* the panel under the chart keeps its places in both languages (owner 2026-10-24): tabs and pattern cards start on the
   right like the Arabic page; the text inside each tab, card and table still reads in the page language */
.pro .bt-head, .pro .bt .pt-list { direction: rtl; }
[dir="ltr"] .pro .bt-head > *, [dir="ltr"] .pro .bt .pt-card { direction: ltr; }
[dir="ltr"] .pro .bt-head .tabs { direction: rtl; }
[dir="ltr"] .pro .bt-head .tabs > button { direction: ltr; }
