/* BProud Pro Markets */
:root { --bpx-bg: #ffffff; --bpx-text: #1a1030; --bpx-muted: #6f6787; --bpx-line: rgba(26,16,48,.12); --bpx-main: #7c3aed; --bpx-hover: rgba(124,58,237,.08); }
html.s-dark { --bpx-bg: #0f0b1a; --bpx-text: #ece9f6; --bpx-muted: #9a93b3; --bpx-line: rgba(255,255,255,.1); --bpx-main: #a78bfa; --bpx-hover: rgba(167,139,250,.12); }

/* Search palette */
.bpx-pal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(8,5,16,.55); backdrop-filter: blur(3px); }
.bpx-pal.open { display: flex; }
html.bpx-pal-lock { overflow: hidden; }
.bpx-pal-box { width: 100%; max-width: 620px; background: var(--bpx-bg); color: var(--bpx-text); border: 1px solid var(--bpx-line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; font-family: inherit; }
.bpx-pal-box input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--bpx-line); background: transparent; color: var(--bpx-text); font-size: 17px; padding: 16px 18px; outline: none; }
.bpx-pal-box ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.bpx-pal-box li { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.bpx-pal-box li.on, .bpx-pal-box li:hover { background: var(--bpx-hover); }
.bpx-pal-s { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; color: var(--bpx-main); }
.bpx-pal-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpx-pal-t { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--bpx-muted); }
.bpx-pal-empty { display: block !important; color: var(--bpx-muted); cursor: default !important; }
.bpx-pal-foot { margin: 0; padding: 8px 14px; border-top: 1px solid var(--bpx-line); font-size: 12px; color: var(--bpx-muted); }
.bpx-pal-foot kbd { font-family: inherit; font-size: 11px; border: 1px solid var(--bpx-line); border-radius: 4px; padding: 1px 5px; margin-right: 3px; }

/* Watchlist star */
.bpx-star { background: none; border: 0; padding: 2px 4px; cursor: pointer; font-size: 16px; line-height: 1; color: var(--bpt-muted, var(--bpx-muted)); }
.bpx-star.on { color: #f5b400; }
.bpt-title .bpx-star { font-size: .7em; vertical-align: middle; }

/* Extra chart indicators */
.bpx-ind-opt { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.bpx-sub { position: relative; height: 110px; margin-top: 6px; border-top: 1px solid var(--bpt-line, var(--bpx-line)); }
.bpx-sub[hidden] { display: none; }
.bpx-sub-c { position: absolute; inset: 0; }
.bpx-sub-l { position: absolute; z-index: 2; top: 4px; left: 6px; font-size: 11px; color: var(--bpt-muted, var(--bpx-muted)); pointer-events: none; font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Pages */
.bpx-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.bpx-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bpx-filters input[type=search], .bpx-filters select, .bpt-card-h select { height: 34px; padding: 0 10px; border: 1px solid var(--bpt-line); border-radius: 8px; background: var(--bpt-card); color: var(--bpt-text); font: inherit; font-size: 13px; }
.bpx-check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--bpt-muted); }
.bpx-table th.bpx-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.bpx-table th[data-dir=asc]::after { content: ' ▲'; font-size: 9px; }
.bpx-table th[data-dir=desc]::after { content: ' ▼'; font-size: 9px; }
.bpx-table td { white-space: nowrap; }
.bpx-table a { color: inherit; text-decoration: none; }
.bpx-table a:hover b { color: var(--bpt-main); }
.bpx-coin { display: inline-flex; align-items: center; gap: 8px; }
.bpx-coin small { color: var(--bpt-muted); font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.bpx-logo { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px; }
.bpx-logo-0 { display: inline-block; background: var(--bpt-line); }
.bpx-muted { color: var(--bpt-muted); }
.bpx-empty { text-align: center; color: var(--bpt-muted); padding: 28px 10px !important; white-space: normal !important; }
.bpx-count { margin: 10px 4px 0; font-size: 12px; color: var(--bpt-muted); }
.bpx-rsi { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bpx-rsi.lo { color: var(--bpt-up); font-weight: 700; }
.bpx-rsi.hi { color: var(--bpt-down); font-weight: 700; }
.bpx-trend { display: inline-flex; gap: 3px; }
.bpx-trend i { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bpx-trend i.u { background: rgba(22,199,132,.15); color: var(--bpt-up); }
.bpx-trend i.d { background: rgba(240,71,90,.13); color: var(--bpt-down); }
.bpx-pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bpt-card-2); color: var(--bpt-muted); }
.bpx-pill.up, .bpx-pill.up2 { background: rgba(22,199,132,.15); color: var(--bpt-up); }
.bpx-pill.up2 { font-weight: 700; }
.bpx-pill.dn, .bpx-pill.dn2 { background: rgba(240,71,90,.13); color: var(--bpt-down); }
.bpx-pill.dn2 { font-weight: 700; }
.bpx-kpis { margin-bottom: 14px; }
.bpx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 860px) { .bpx-two { grid-template-columns: 1fr; } }
.bpx-mlist { display: flex; flex-direction: column; }
.bpx-mrow { display: grid; grid-template-columns: 1fr auto 96px; gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--bpt-line); }
.bpx-mrow:last-child { border-bottom: 0; }
.bpx-ml { font-size: 14px; }
.bpx-ml small { display: block; font-size: 11px; color: var(--bpt-muted); margin-top: 2px; }
.bpx-mv { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 18px; font-weight: 700; color: var(--bpt-strong); }
.bpx-mp { font-size: 11px; color: var(--bpt-muted); text-align: right; line-height: 1.5; }
.bpx-upn { color: var(--bpt-main); }
.bpx-dnn { color: var(--bpt-muted); }
.bpx-howto p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
.bpx-more { font-size: 12px; color: var(--bpt-main); text-decoration: none; white-space: nowrap; }
.bpx-note { font-size: 13px; color: var(--bpt-muted); margin: 6px 0; }
.bpx-tiles { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.bpx-tile { flex: 1 1 auto; min-height: 56px; padding: 8px 10px; border-radius: 8px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: center; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bpx-tile b { font-size: 13px; }
.bpx-tile span { font-size: 12px; opacity: .92; }
.bpx-sv { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bpx-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.bpx-bars i { display: block; width: 3px; background: var(--bpt-main); opacity: .65; border-radius: 1px; }
.bpx-hl td { background: var(--bpx-hover); }
.bpx-sub2 { display: block; font-size: 11px; color: var(--bpt-muted); }
.bpx-src { font-size: 10px; color: var(--bpt-muted); border: 1px solid var(--bpt-line); border-radius: 4px; padding: 0 4px; margin-left: 4px; text-decoration: none; }
.bpx-earn { list-style: none; margin: 0; padding: 0; }
.bpx-earn li { display: grid; grid-template-columns: 64px 64px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bpt-line); font-size: 13px; }
.bpx-earn li:last-child { border-bottom: 0; }
.bpx-earn-d { color: var(--bpt-main); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bpx-h3 { margin: 14px 0 4px; }
.bpx-form { display: flex; flex-direction: column; gap: 10px; }
.bpx-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--bpt-muted); }
.bpx-form input { height: 38px; padding: 0 10px; border: 1px solid var(--bpt-line); border-radius: 8px; background: var(--bpt-card-2, transparent); color: var(--bpt-text); font: inherit; font-size: 14px; }
.bpx-side { display: flex; }
.bpx-side button { flex: 1; }
.bpx-btn { height: 40px; border: 0; border-radius: 8px; background: var(--bpt-main); color: #fff; font-weight: 700; cursor: pointer; font: inherit; }
.bpx-actions { display: flex; gap: 8px; }
.bpx-actions button, .bpx-import { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid var(--bpt-line); border-radius: 6px; background: transparent; color: var(--bpt-text); cursor: pointer; }
.bpx-x { background: none; border: 0; color: var(--bpt-muted); font-size: 18px; cursor: pointer; line-height: 1; }
.bpx-wl { list-style: none; margin: 0; padding: 0; }
.bpx-wl li { display: grid; grid-template-columns: 26px 1fr auto 70px; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bpt-line); font-size: 13px; }
.bpx-wl a { color: inherit; text-decoration: none; }
.bpx-faq { margin: 28px 0 8px; }
.bpx-faq details { border-bottom: 1px solid var(--bpt-line); padding: 12px 2px; }
.bpx-faq summary { cursor: pointer; font-weight: 600; color: var(--bpt-strong); }
.bpx-faq p { margin: 8px 0 0; color: var(--bpt-text); line-height: 1.6; font-size: 14px; }
@media (max-width: 600px) { .bpx-mrow { grid-template-columns: 1fr auto; } .bpx-mp { grid-column: 1 / -1; text-align: left; } .bpx-coin small { display: none; } }

#bpx-ins td, #bpx-ins th, .bpx-table td:first-child { text-align: left; }
#bpx-screener td:nth-child(n+4), #bpx-stocks td:nth-child(n+2) { text-align: right; }

#bpx-screener th:nth-child(-n+3), #bpx-screener td:nth-child(-n+3) { text-align: left; }
#bpx-screener th:nth-child(n+4) { text-align: right; }
#bpx-screener td:nth-child(3) a, #bpx-screener td:nth-child(3) .bpx-coin { display: inline-flex; justify-content: flex-start; }
#bpx-screener td:nth-child(3) .bpx-coin b { min-width: 52px; }
#bpx-screener td:nth-child(2) { width: 36px; }

.bpx-table td { vertical-align: middle; }
.bpx-table td a, .bpx-table td .bpx-coin { vertical-align: middle; }
