/* Bitcoin Farm — Markets tab (markets.js). Binance / OKX style list on the theme-pro palette. */
#mainDashboard.on-markets .dashboard-header,
#mainDashboard.on-markets .spot-hero,
#mainDashboard.on-markets .announcement-banner,
#mainDashboard.on-markets .verification-banner { display: none !important; }

#pageMarkets, .mk-sheet-ov { --mk-up: #0ecb81; --mk-dn: #f6465d; }
#pageMarkets { padding-bottom: 90px; }
.mk-head { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
.mk-title { font-size: 1.35rem; font-weight: 700; color: var(--pb-t1); }
.mk-live { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 600; color: var(--pb-t3); }
.mk-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pb-t3); }
.mk-live.on { color: var(--mk-up); } .mk-live.on i { background: var(--mk-up); animation: mkPulse 1.6s infinite; }
@keyframes mkPulse { 0% { box-shadow: 0 0 0 0 rgba(14,203,129,.6); } 70% { box-shadow: 0 0 0 7px rgba(14,203,129,0); } 100% { box-shadow: 0 0 0 0 rgba(14,203,129,0); } }
.mk-count { margin-inline-start: auto; font-size: .72rem; color: var(--pb-t3); }

.mk-search { display: flex; align-items: center; gap: 10px; background: var(--pb-card); border-radius: 999px; padding: 10px 16px; margin-bottom: 12px; border: 1px solid transparent; }
.mk-search:focus-within { border-color: var(--pb-line2); }
.mk-search i { color: var(--pb-t3); font-size: .85rem; }
.mk-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--pb-t1); font-size: .9rem; font-family: inherit; }

.mk-tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--pb-line); margin-bottom: 4px; }
.mk-tabs::-webkit-scrollbar { display: none; }
.mk-tabs button { flex: none; background: none; border: 0; color: var(--pb-t2); font-family: inherit; font-size: .88rem; font-weight: 600; padding: 9px 0; cursor: pointer; position: relative; white-space: nowrap; }
.mk-tabs button i { color: #f0b90b; font-size: .75rem; }
.mk-tabs button.on { color: var(--pb-t1); }
.mk-tabs button.on::after { content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 3px; border-radius: 3px; background: var(--pb-t1); }

.mk-cols, .mk-row { display: grid; grid-template-columns: 1fr 108px 78px; align-items: center; gap: 10px; }
.mk-cols { font-size: .7rem; color: var(--pb-t3); padding: 8px 2px 4px; }
.mk-cols span:nth-child(2) { text-align: end; }
.mk-cols span:last-child { text-align: end; }
.mk-row { grid-template-columns: auto auto 1fr 108px 78px; padding: 11px 2px; border-bottom: 1px solid var(--pb-line); cursor: pointer; }
.mk-row:active { background: var(--pb-card); }
.mk-star { background: none; border: 0; padding: 2px; color: var(--pb-t3); font-size: .8rem; cursor: pointer; width: 18px; }
.mk-star.on { color: #f0b90b; }
.mk-ic { width: 28px; height: 28px; border-radius: 50%; position: relative; display: grid; place-items: center; overflow: hidden; flex: none;
  background: hsl(var(--h), 45%, 32%); color: #fff; font-size: .78rem; font-weight: 700; }
.mk-ic img { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--pb-bg); }
.mk-ic-l { width: 40px; height: 40px; font-size: 1rem; }
.mk-nm { display: flex; flex-direction: column; min-width: 0; }
.mk-nm b { font-size: .92rem; color: var(--pb-t1); font-weight: 700; direction: ltr; text-align: start; }
html[dir="rtl"] .mk-nm b { text-align: right; }
.mk-nm b small { color: var(--pb-t3); font-weight: 500; font-size: .72rem; }
.mk-nm > small { font-size: .7rem; color: var(--pb-t3); }
.mk-pr { font-family: var(--pb-num, inherit); font-size: .92rem; font-weight: 600; color: var(--pb-t1); text-align: end; direction: ltr; border-radius: 4px; padding: 1px 3px; }
.mk-pr.fu { animation: mkUp .9s; } .mk-pr.fd { animation: mkDn .9s; }
@keyframes mkUp { 0% { color: var(--mk-up); background: rgba(14,203,129,.16); } 100% { background: transparent; } }
@keyframes mkDn { 0% { color: var(--mk-dn); background: rgba(246,70,93,.16); } 100% { background: transparent; } }
.mk-ch { justify-self: end; width: 78px; text-align: center; border-radius: 8px; padding: 7px 0; font-family: var(--pb-num, inherit); font-size: .8rem; font-weight: 700; color: #fff; direction: ltr; }
.mk-ch.up { background: var(--mk-up); } .mk-ch.dn { background: var(--mk-dn); }
.mk-empty { text-align: center; color: var(--pb-t2); padding: 48px 10px; font-size: .85rem; line-height: 1.8; }
.mk-retry { margin-top: 10px; background: var(--pb-t1) !important; color: #000 !important; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; font-family: inherit; cursor: pointer; }

/* coin detail sheet */
.mk-sheet-ov { position: fixed; inset: 0; z-index: 10003; background: rgba(0,0,0,.65); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.mk-sheet-ov.show { opacity: 1; }
.mk-sheet { width: 100%; max-width: 520px; background: var(--pb-card); color: var(--pb-t1); border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .34s cubic-bezier(.32,.72,0,1); will-change: transform; font-family: var(--pb-font, inherit); }
.mk-sheet-ov.show .mk-sheet { transform: none; }
.mk-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--pb-line2); margin: 0 auto 12px; }
.mk-dh { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.mk-dh small { color: var(--pb-t3); font-size: .8rem; font-weight: 500; }
.mk-dp { font-family: var(--pb-num, inherit); font-size: 1.9rem; font-weight: 700; margin: 12px 0 14px; direction: ltr; text-align: start; }
html[dir="rtl"] .mk-dp { text-align: right; }
.mk-dp span { font-size: .95rem; margin-inline-start: 8px; }
.mk-dp.up span { color: var(--mk-up); } .mk-dp.dn span { color: var(--mk-dn); }
.mk-dg { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: .85rem; }
.mk-dg span { color: var(--pb-t2); } .mk-dg b { text-align: end; font-family: var(--pb-num, inherit); font-weight: 600; direction: ltr; }
.mk-trade { width: 100%; margin-top: 18px; background: var(--mk-up) !important; color: #fff !important; border: 0; border-radius: 999px; padding: 13px; font-weight: 700; font-size: .95rem; font-family: inherit; cursor: pointer; }
.mk-acts { display: flex; gap: 10px; margin-top: 18px; }
.mk-acts button { flex: 1; border: 0; border-radius: 999px; padding: 13px; font-weight: 700; font-size: .95rem; font-family: inherit; cursor: pointer; color: #fff !important; }
.mk-buy { background: var(--mk-up) !important; } .mk-sell { background: var(--mk-dn) !important; }
.mk-acts + .mk-trade { margin-top: 10px; background: var(--pb-card2, #1e2329) !important; }
.mk-tag { font-style: normal; font-size: .58rem; font-weight: 700; border-radius: 4px; padding: 1px 5px; margin-inline-start: 5px; vertical-align: 2px; letter-spacing: 0; }
.mk-tag.new { background: rgba(240,185,11,.16); color: #f0b90b; }
.mk-tag.okx { background: rgba(255,255,255,.08); color: var(--pb-t2); }
.mk-dh .mk-tag { font-size: .7rem; vertical-align: 0; }
.mk-note { margin-top: 16px; font-size: .78rem; line-height: 1.6; color: var(--pb-t2); background: var(--pb-card2, #1e2329); border-radius: 12px; padding: 10px 12px; }
.mk-tabs button i.fa-fire { color: #f6465d; }
