/* phone.css - the phone terminal replica (design width 393). Measured against real iPhone screenshots of the product (2026-10-18). */
.ph { position: relative; width: 393px; height: var(--ph-h, 852px); border-radius: 52px; overflow: hidden; background: #000; --sb: 44px; }
.ph.flat { --sb: 0px; border-radius: 20px; }
.ph.flat .ph-sb, .ph.flat .ph-island, .ph.flat .ph-home { display: none; }
.ph-sb { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 10px 28px 0 34px; font-size: 15px; font-weight: 600; z-index: 12; }
.ph-sb .tm { display: inline-flex; align-items: center; gap: 6px; } .ph-sb .tm svg { width: 14px; height: 14px; }
.sbi { display: flex; gap: 6px; align-items: center; } .sbi svg { height: 12px; width: auto; }
.ph-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.05); z-index: 13; }
.ph-hd { position: absolute; left: 0; right: 0; top: var(--sb); height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--hair); background: #000; z-index: 6; }
.ph-burger { width: 20px; display: flex; flex-direction: column; gap: 4px; } .ph-burger i { height: 2px; background: var(--tx-2); border-radius: 2px; }
.ph-sw { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: #101015; box-shadow: inset 0 0 0 1px var(--hair-2); position: absolute; left: 68px; }
.ph-sw button { height: 30px; padding: 0 14px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--tx-3); transition: color .16s, background .16s; }
.ph-sw button.on { background: #000; color: #fff; box-shadow: inset 0 0 0 1px var(--hair-2); }
.ph-sw.plain { background: none; box-shadow: none; padding: 0; gap: 0; left: 68px; }
.ph-sw.plain button { height: 30px; padding: 0 14px; background: none; box-shadow: none; font-size: 17px; font-weight: 500; } .ph-sw.plain button.on { color: #fff; font-weight: 650; }
.ph .t-ico { width: 26px; height: 26px; color: var(--tx-2); }

.ph-main { position: absolute; left: 0; right: 0; top: calc(var(--sb) + 42px); bottom: 62px; }
.pg { position: absolute; inset: 0; display: none; flex-direction: column; }
.pg.on { display: flex; animation: fade .26s var(--ease); }
.ph-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ph-scroll::-webkit-scrollbar { display: none; }

/* ---- lists ---- */
.pl-top { display: flex; gap: 8px; padding: 10px 14px 8px; flex: none; }
.ph-search { flex: 1; height: 34px; border-radius: 12px; background: #0b0b0f; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; padding: 0 14px; color: var(--tx-3); font-size: 15px; }
.ph-sortbtn { width: 34px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair-2); background: #0b0b0f; display: flex; align-items: center; justify-content: center; color: var(--tx-1); } .ph-sortbtn .ic { width: 15px; height: 15px; }
.ph-chips { display: flex; gap: 8px; padding: 0 14px 10px; overflow: hidden; flex: none; }
.ph-chip { height: 30px; padding: 0 12px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--hair-2); background: #0b0b0f; font-size: 13.5px; font-weight: 600; color: var(--tx-2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; }
.ph-chip .ic { width: 14px; height: 14px; } .ph-chip i { color: var(--tx-3); font-weight: 500; } .ph-chip .cg { font-size: 14px; }
.ph-chip.on { background: var(--accent-wash); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-b); } .ph-chip.on i { color: var(--accent-text); opacity: .8; }
.ph-chips.plain .ph-chip { color: #fff; font-weight: 600; } .ph-chips.plain .ph-chip i { color: #fff; font-weight: 600; margin-left: -1px; }
.ph-chips.plain .ph-chip.on { background: #14141a; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.ph-seg2 { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 10px; flex: none; }
.ph-seg2 .pills { display: flex; gap: 0; padding: 3px; border-radius: 12px; background: #101015; box-shadow: inset 0 0 0 1px var(--hair); } .ph-seg2 .pills button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--tx-1); } .ph-seg2 .pills button.on { background: #000; box-shadow: inset 0 0 0 1px var(--hair-2); }
.ph-seg2 .filt { height: 32px; padding: 0 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 13.5px; font-weight: 600; }
.pg[data-page="perps-list"] .ph-scroll, .pg[data-page="predict-list"] .ph-scroll { background: #090a0e; }
.ph-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 61px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--hair); text-align: left; transition: background .14s; }
.ph-row:active { background: rgba(255,255,255,.04); }
.coin.ph { width: 36px; height: 36px; } .coin.sq { width: 20px; height: 20px; border-radius: 6px; }
.ph-row .nm { display: flex; flex-direction: column; min-width: 0; } .ph-row .nm b { font-size: 16px; font-weight: 650; line-height: 19px; } .ph-row .nm span { font-size: 11.5px; color: var(--tx-3); line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-row .nm { flex: 1; } .ph-row .spark { width: 66px; height: 22px; flex: none; } .ph-row .pcol { text-align: right; min-width: 76px; } .ph-row .pcol b { display: block; font-size: 16.5px; font-weight: 650; line-height: 19px; }
.pill { display: inline-block; margin-top: 3px; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 6px; font-size: 12.5px; font-weight: 650; } .pill.up { background: var(--long-wash); color: var(--long); } .pill.dn { background: var(--short-wash); color: var(--short-text); }
.ph .pg-h { position: relative; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #0f1015; font-size: 12.5px; color: var(--tx-3); border-bottom: 1px solid var(--hair); border-top: 1px solid var(--hair); }
.ph .pg-h b:first-child { color: #fff; font-size: 14px; font-weight: 650; } .ph .pg-h .clock { color: #fff; font-size: 17px; font-weight: 700; } .ph .pg-h .sp { flex: 1; }
.ph .pg-h .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; } .ph .pg-h .bar u { display: block; height: 100%; background: rgba(255,255,255,.22); transition: width .45s linear; }
.ph-pr { display: flex; align-items: center; gap: 10px; width: 100%; height: 47px; padding: 0 12px; border-bottom: 1px solid var(--hair); text-align: left; }
.ph-pr .coin.ph { width: 28px; height: 28px; }
.ph-pr .nm { display: flex; flex-direction: column; min-width: 0; } .ph-pr .nm b { font-size: 14.5px; font-weight: 650; line-height: 17px; } .ph-pr .nm span { font-size: 11.5px; color: var(--tx-3); line-height: 14px; }
.ph-pr .tn { margin-left: auto; text-align: right; font-size: 12px; line-height: 18px; color: var(--tx-3); } .ph-pr .tn span { display: block; white-space: nowrap; } .ph-pr .tn i { margin-right: 2px; } .ph-pr .tn b { color: #fff; font-weight: 500; font-size: 13px; } .ph-pr .tn b.up { color: var(--long); } .ph-pr .tn b.dn { color: var(--short-text); }
.ph .capsule { height: 36px; width: 96px; margin: 0; flex: none; border-radius: 9px; } .ph .capsule i { font-size: 10.5px; } .ph .capsule b { font-size: 14px; } .ph .capsule span { line-height: 14px; }

/* ---- perps terminal ---- */
.pt-sym { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; flex: none; }
.pt-sym .l { display: flex; align-items: center; gap: 4px; } .pt-sym .l b { white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: -.01em; } .pt-sym .l .ic { width: 14px; height: 14px; color: var(--tx-2); }
.pt-sym .m { display: flex; flex-direction: column; font-size: 11px; line-height: 14px; color: var(--tx-3); white-space: nowrap; } .pt-sym .m i { white-space: nowrap; } .pt-sym .m span { font-size: 13px; font-weight: 600; } .pt-sym .m em { color: var(--tx-3); font-weight: 400; }
.pt-sym .r { margin-left: auto; display: flex; align-items: center; gap: 8px; } .pt-sym .r b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; } .pt-sym .pillchg { height: 26px; line-height: 26px; font-size: 13.5px; padding: 0 9px; border-radius: 8px; }
.pt-tf { display: flex; align-items: center; height: 38px; padding: 0 8px 0 8px; flex: none; }
.pt-tf button { height: 30px; padding: 0 9px; font-size: 13.5px; color: var(--tx-2); border-radius: 9px; font-weight: 500; } .pt-tf button.on { color: #fff; font-weight: 650; box-shadow: inset 0 0 0 1px var(--hair-2); }
.pt-tf .sp { flex: 1; } .pt-tf .chipdot { height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 650; border-radius: 9px; } .pt-tf .menu-ic { width: 30px; height: 28px; border-radius: 9px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); display: inline-flex; align-items: center; justify-content: center; color: #cdbcff; margin-left: 6px; } .pt-tf .menu-ic .ic { width: 14px; height: 14px; }
.ph .chart.pt-chart, .ph .chart.pxch { position: relative; left: auto; top: auto; display: block; width: 393px; flex: none; } .pt-chart { height: 205px; } .pxch { height: 221px; }
.pt-trade { display: flex; gap: 10px; padding: 10px 10px 6px 10px; flex: none; }
.ph .tk { width: 196px; flex: none; display: flex; flex-direction: column; gap: 7px; }
.dd2 { display: flex; gap: 6px; } .dd2 button { flex: 1; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--hair-2); background: #0b0b0f; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; white-space: nowrap; } .dd2 .ic { width: 12px; height: 12px; color: var(--tx-2); } .dd2 button:first-child { flex: .78; } .dd2 button:last-child { flex: 1.22; }
.ph .seg.side { display: flex; padding: 3px; border-radius: 11px; background: #07070a; box-shadow: inset 0 0 0 1px var(--hair); } .ph .seg.side button { flex: 1; height: 29px; border-radius: 8px; font-size: 13.5px; text-align: center; }
.ph .seg.side button.on { background: rgba(14,203,129,.12); color: var(--long); box-shadow: inset 0 0 0 1px var(--long-b); } .ph .seg.side button.short.on { background: var(--short-wash); color: var(--short-text); box-shadow: inset 0 0 0 1px var(--short-b); }
.ph .inp { height: 38px; border-radius: 11px; background: #050508; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; justify-content: space-between; padding: 0 5px 0 11px; font-size: 16px; font-weight: 500; }
.ph .inp .seg { background: #101015; padding: 2px; } .ph .inp .seg button { height: 26px; padding: 0 8px; font-size: 11.5px; }
.ph .slider { margin: 4px 8px 0; height: 26px; } .ph .sl-track, .ph .sl-fill { top: 11px; } .ph .sl-stop { top: 8.5px; } .ph .sl-thumb { top: 1px; width: 24px; height: 24px; margin-left: -12px; box-shadow: 0 0 0 3px #000, 0 0 0 5px rgba(139,92,246,.55); }
.ph .av { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--tx-2); margin-top: -1px; } .ph .av b { color: #fff; font-weight: 650; } .ph .av em { color: var(--tx-3); font-weight: 600; } .ph .av em.on { color: var(--accent-text); }
.ph .card { border-radius: 11px; background: #060609; box-shadow: inset 0 0 0 1px var(--hair-2); padding: 9px 11px 7px; }
.card .c0 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--tx-2); } .card .c0 em { color: var(--tx-2); } .card .c0 u { color: var(--accent-text); font-weight: 650; display: inline-flex; align-items: center; gap: 2px; } .card .c0 u .ic { width: 11px; height: 11px; }
.card .c1 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin: 1px 0 3px; white-space: nowrap; } .card .c1 em { color: var(--tx-3); font-weight: 400; margin: 0 2px; }
.card .c2h, .card .c2 { display: grid; grid-template-columns: 1fr 70px 70px; font-size: 11px; color: var(--tx-3); text-align: right; } .card .c2 { align-items: baseline; padding: 4px 0 6px; border-bottom: 1px solid var(--hair); font-size: 12.5px; } .card .c2 > span:first-child { text-align: left; color: var(--tx-2); } .card .c2 > span:nth-child(2) { color: var(--tx-2); } .card .c2 b { font-weight: 600; } .card .c2 b.warn { color: var(--warn); }
.card .c3 { display: flex; justify-content: space-between; padding: 5px 0 0; font-size: 12.5px; color: var(--tx-2); } .card .c3 b { color: #fff; font-weight: 650; }
.card.flat .c2h, .card.flat .c0 u { display: none; } .card.flat .c2 { grid-template-columns: 1fr 1fr; } .card.flat .c2 > span:nth-child(2) { display: none; }
.ph .cta { height: 40px; font-size: 14.5px !important; border-radius: 12px; }
.ph .bk { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph .bk-head { grid-template-columns: 1fr 1fr; padding: 0 2px; height: 22px; font-size: 11px; white-space: nowrap; display: grid; align-items: center; color: var(--tx-3); } .ph .bk-head span:last-child { text-align: right; }
.ph .bk-row { display: grid; grid-template-columns: 1fr 1fr; padding: 0 2px 0 4px; height: 19px; font-size: 12px; font-weight: 500; align-items: center; } .ph .bk-row span:last-child { text-align: right; }
.ph .bk-row.ask { color: var(--short-text); background: linear-gradient(270deg, rgba(246,70,93,.17) var(--d, 0%), transparent var(--d, 0%)); } .ph .bk-row.bid { color: var(--long); background: linear-gradient(270deg, rgba(14,203,129,.15) var(--d, 0%), transparent var(--d, 0%)); }
.ph .bk-row span:nth-child(2) { color: var(--tx-1); }
.ph .bk-mid { height: 32px; margin: 5px 0; border-radius: 10px; font-size: 15.5px; font-weight: 700; padding: 0 10px; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; justify-content: space-between; }
.ph .bk-mid.up { color: var(--long); background: rgba(14,203,129,.06); box-shadow: inset 0 0 0 1px rgba(14,203,129,.3); } .ph .bk-mid.dn { color: var(--short-text); background: rgba(246,70,93,.06); box-shadow: inset 0 0 0 1px rgba(246,70,93,.3); } .ph .bk-mid span { font-size: 11px; font-weight: 600; opacity: .9; }
.ph .bk-bs { margin: 6px 0 0; border-radius: 8px; height: 22px; font-size: 12px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, rgba(14,203,129,.2) var(--b, 50%), rgba(246,70,93,.2) var(--b, 50%)); font-weight: 650; } .ph .bk-bs span:first-child { color: var(--long); } .ph .bk-bs span:last-child { color: var(--short-text); }
.ph .bk-bs u { display: inline-flex; width: 15px; height: 15px; align-items: center; justify-content: center; border-radius: 4px; box-shadow: inset 0 0 0 1px currentColor; font-size: 9.5px; margin: 0 3px; font-weight: 700; }
.ph .bk-grp { display: flex; gap: 6px; margin-top: 7px; height: auto; padding: 0; } .bk-grp .dd3 { flex: 1; height: 32px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--hair-2); background: #0b0b0f; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 13px; } .bk-grp .dd3 .ic { width: 12px; height: 12px; color: var(--accent-text); } .bk-grp .ic3 { width: 32px; height: 32px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; justify-content: center; } .bk-grp .ic3 .ic { width: 14px; height: 14px; color: var(--tx-2); }
.pt-tabs { display: flex; gap: 18px; align-items: center; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--hair); flex: none; overflow: hidden; }
.pt-tabs button { position: relative; height: 40px; font-size: 14px; font-weight: 600; color: var(--tx-3); white-space: nowrap; } .pt-tabs .on { color: #fff; } .pt-tabs .on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.pt-tabs i { margin-left: 4px; color: var(--tx-3); font-weight: 500; font-size: 13px; } .pt-tabs i:empty { display: none; }
.pt-pane { display: none; } .pt-pane.on { display: block; }
.pt-seg { padding: 8px 14px 4px; } .pt-seg .seg { background: #0b0b0f; box-shadow: inset 0 0 0 1px var(--hair); } .pt-seg .seg button { height: 26px; padding: 0 12px; font-size: 13px; }
.ps-sum { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; } .ps-sum i { display: block; font-size: 12px; color: var(--tx-3); line-height: 15px; } .ps-sum b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; } .ps-sum .btn-out { height: 34px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.ps-cards { padding: 0 12px; }
.pcard { position: relative; border-radius: 18px; background: #08080c; box-shadow: inset 0 0 0 1px var(--hair-2); padding: 14px 14px 14px; animation: rowIn .6s var(--ease); }
.pcard .top { display: flex; justify-content: space-between; align-items: flex-start; padding-right: 0; } .pcard .top > div:first-child > b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pcard .row2 { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 13px; color: var(--tx-2); } .pcard .row2 .tagpill { height: 22px; line-height: 22px; font-size: 11.5px; padding: 0 8px; border-radius: 6px; } .pcard .row2 .ic { width: 12px; height: 12px; }
.pcard .plv { text-align: right; margin-right: 38px; } .pcard .plv b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 25px; } .pcard .plv em { font-size: 13.5px; font-weight: 600; }
.pcard .shbtn { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; align-items: center; justify-content: center; color: var(--tx-1); } .pcard .shbtn .ic { width: 14px; height: 14px; }
.pcard .mx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 14px 0 12px; } .pcard .mx i { display: block; font-size: 12px; color: var(--tx-3); } .pcard .mx b { font-size: 14px; font-weight: 650; display: block; line-height: 19px; } .pcard .mx small { font-size: 11px; color: var(--tx-3); display: block; white-space: nowrap; }
.pcard .tpslrow { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 12px; background: #0b0b0f; box-shadow: inset 0 0 0 1px var(--hair-2); margin-bottom: 10px; font-size: 13px; } .pcard .tpslrow > span { color: var(--tx-2); font-weight: 600; } .pcard .tpslrow > div { margin-left: auto; display: flex; gap: 10px; align-items: center; } .pcard .tpslrow i { font-size: 11px; font-weight: 700; margin-right: 4px; color: var(--tx-3); } .pcard .tpslrow span span { font-weight: 650; } .pcard .tpslrow small { color: var(--tx-3); } .pcard .tpslrow .amb { color: var(--warn); font-weight: 650; display: flex; align-items: center; gap: 5px; } .pcard .tpslrow .amb u { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); } .pcard .tpslrow > .ic { width: 13px; height: 13px; color: var(--tx-2); }
.pcard .bt4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 7px; } .pcard .bt4 .btn-out { height: 40px; padding: 0; border-radius: 12px; font-size: 14px; }
.pn-list { padding: 8px 12px; }
.pn-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; background: #08080c; box-shadow: inset 0 0 0 1px var(--hair-2); margin-bottom: 8px; } .pn-card.fresh { animation: rowIn .7s var(--ease); }
.pn-card .a { display: flex; align-items: center; gap: 8px; } .pn-card .a b { font-size: 15px; font-weight: 700; } .pn-card .a span { font-size: 12px; color: var(--tx-3); } .pn-card .b { grid-column: 1; font-size: 12.5px; color: var(--tx-2); } .pn-card .b em { color: var(--tx-3); margin: 0 3px; }
.pn-card .c { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 10px; } .pn-card .c > div { text-align: right; } .pn-card .c b { display: block; font-size: 16px; font-weight: 700; } .pn-card .c em { font-size: 12.5px; font-weight: 600; } .pn-card .btn-ico { width: 30px; height: 30px; }
.pt-pad { height: 40px; }
.bt-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 90px; color: var(--tx-3); font-size: 12px; } .bt-empty b { color: var(--tx-2); font-size: 13px; }

/* ---- predict terminal ---- */
.px-title { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 12px; flex: none; }
.px-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--long); flex: none; } .px-title b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; } .px-title .dn { color: var(--tx-3); display: inline-flex; } .px-title .dn .ic { width: 11px; height: 11px; }
.px-title .pr1 { font-size: 17px; font-weight: 600; flex: none; } .px-title .pr1.up { color: #5fe0ae; } .px-title .pr1.dn { color: #ff7a8c; } .px-title .pillchg { height: 20px; line-height: 20px; font-size: 12px; padding: 0 6px; flex: none; }
.px-tf { display: flex; align-items: center; height: 36px; padding: 0 12px 0 8px; flex: none; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.px-tf button { position: relative; height: 34px; padding: 0 10px; font-size: 13.5px; color: var(--tx-2); font-weight: 500; } .px-tf button.on { color: #fff; font-weight: 650; } .px-tf button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.px-tf .sp { flex: 1; } .px-tf em { margin-left: 10px; font-size: 12.5px; color: var(--tx-3); font-weight: 600; } .px-tf em.on { color: var(--accent-text); }
.pxsl { display: flex; align-items: center; height: 36px; padding: 0 6px; flex: none; font: 500 10.5px "JetBrains Mono", monospace; letter-spacing: -.04em; color: var(--tx-3); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: rgba(255,255,255,.015); white-space: nowrap; overflow: hidden; }
.pxsl span { flex: 1; text-align: center; position: relative; height: 36px; line-height: 35px; } .pxsl .lb { flex: none; width: 50px; font-family: Inter, sans-serif; font-size: 11.5px; letter-spacing: 0; } .pxsl .vr { width: 1px; height: 14px; background: var(--hair-2); flex: none; }
.pxsl .cur { color: #fff; font-weight: 650; } .pxsl .cur::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; } .pxsl .cur u { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 4px; vertical-align: 2px; } .pxsl .past { opacity: .5; }
.px-trade { display: flex; gap: 12px; padding: 10px 11px 6px 11px; flex: none; }
.ptk { width: 181px; flex: none; display: flex; flex-direction: column; gap: 7px; }
.ptk .dd2.mkt { height: 34px; width: 100%; flex: none; display: flex; border-radius: 10px; background: #0b0b0f; box-shadow: none; padding: 0 12px; font-size: 14px; letter-spacing: .02em; align-items: center; justify-content: space-between; } .ptk .dd2.mkt b { font-weight: 500; }
.ph .ud { display: flex; gap: 8px; } .ph .ud button { flex: 1; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 10px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair); color: var(--tx-3); font-size: 11.5px; font-weight: 600; } .ph .ud .arr { line-height: 11px; text-align: center; letter-spacing: .02em; } .ph .ud b { font-size: 13px; font-weight: 500; }
.ph .ud button.on.up { background: rgba(14,203,129,.1); box-shadow: inset 0 0 0 1px var(--long-b); color: var(--long); } .ph .ud button.on.dn { background: rgba(246,70,93,.1); box-shadow: inset 0 0 0 1px var(--short-b); color: var(--short-text); } .ph .ud button.dn:not(.on) b { color: #ff7a8c; } .ph .ud button.up:not(.on) b { color: var(--long); }
.ph .pin { height: 36px; border-radius: 10px; background: #0b0b0f; display: flex; align-items: center; padding: 0 8px 0 11px; font-size: 18px; font-weight: 500; gap: 8px; } .pin span { flex: 1; } .pin em { color: var(--tx-3); font-size: 15px; } .pin u { color: var(--tx-3); font-size: 12px; font-family: "JetBrains Mono", monospace; } .pin i { width: 22px; text-align: center; color: var(--tx-1); font-size: 17px; }
.pav { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--tx-3); } .pav span { display: inline-flex; align-items: center; gap: 5px; } .pav .ic { width: 12px; height: 12px; } .pav b { color: #fff; font-size: 12.5px; font-weight: 500; }
.psm { padding: 8px 0 4px; } .psm > div { display: flex; justify-content: space-between; align-items: center; height: 21px; font-size: 12.5px; color: var(--tx-3); } .psm b { font-size: 13px; font-weight: 600; color: #fff; } .psm b.g { color: var(--long); } .psm b.vio { color: var(--accent-text); }
.ptk .cta { height: 42px; margin-top: 2px; font-size: 15px !important; letter-spacing: .03em; }
.pbk .bk-head { height: 30px; line-height: 12px; } .pbk .bk-row { font-family: "JetBrains Mono", monospace; font-size: 12px; height: 22px; letter-spacing: -.03em; }
.ph .pbk .bk-row.ask { color: #ff5a6d; } .ph .pbk .bk-row.bid { color: #14d68f; } .pbk .bk-row span:last-child { color: var(--tx-1); }
.pbk .bk-mid { height: 34px; }
.pxrw { padding: 8px 8px 0; }
.pxp { position: relative; padding: 11px 12px 11px 18px; border-radius: 14px; background: #08080c; box-shadow: inset 0 0 0 1px var(--hair-2); overflow: hidden; animation: rowIn .6s var(--ease); font-size: 12px; margin-bottom: 8px; }
.pxp .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--long); }
.pxp .l1 { display: flex; align-items: center; gap: 8px; } .pxp .l1 .sp { flex: 1; }
.pxp .nm { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .pxp .tagpill { height: 20px; line-height: 20px; flex: none; }
.pxp .l2 { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 9px; gap: 8px; }
.pxp .sz b, .pxp .pn b, .pxp .em b { display: block; font-size: 15px; font-weight: 650; line-height: 18px; } .pxp small { display: block; font-size: 11.5px; color: var(--tx-3); line-height: 14px; } .pxp .em { display: flex; align-items: baseline; gap: 5px; } .pxp .em small, .pxp .em i, .pxp .em b { display: inline; font-size: 13px; } .pxp .em i { color: var(--tx-3); } .pxp .pn { text-align: right; } .pxp .pn em { font-size: 12.5px; font-weight: 600; }
.pxp .pcb, .pxp .xb { width: 34px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); font-size: 15px; flex: none; } .pxp .xb { background: #F5475D; color: #fff; } .pxp .xb .ic { width: 14px; height: 14px; }

/* ---- bottom nav (the Terminal tab is a violet tile, as in the product) ---- */
.ph-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; display: flex; align-items: flex-start; padding-top: 4px; border-top: 1px solid var(--hair); background: #000; z-index: 6; }
.ph-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; color: var(--tx-2); font-weight: 500; position: relative; }
.ph-nav i { display: flex; align-items: center; justify-content: center; width: 58px; height: 30px; border-radius: 12px; transition: background .2s, color .2s; } .ph-nav .nv { width: 22px; height: 22px; }
.ph-nav button.sel { color: var(--accent-text); } .ph-nav button.sel i { background: var(--accent-wash); }
.ph-nav button:nth-child(2) i.pill { width: 32px; height: 32px; margin: -2px 0 -1px; border-radius: 10px; background: linear-gradient(180deg, #8a5cf4, #6f40ea); color: #fff; box-shadow: 0 6px 18px -4px rgba(124,77,240,.7), inset 0 1px 0 rgba(255,255,255,.3); position: relative; }
.ph-nav button:nth-child(2) i.pill u { position: absolute; right: -7px; top: -7px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; background: #F5475D; color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #000; }
.ph-nav button:nth-child(2) { color: var(--tx-2); } .ph-nav button:nth-child(2).sel { color: #fff; }

.ph-toast { position: absolute; left: 50%; top: calc(var(--sb) + 52px); transform: translate(-50%, -10px); z-index: 16; display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 8px; border-radius: 13px; background: #17171d; box-shadow: inset 0 0 0 1px var(--hair-2), 0 14px 40px rgba(0,0,0,.6); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); transition: opacity .2s var(--ease), transform .25s var(--ease); }
.ph-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ph-toast i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; } .ph-toast i.ok { background: var(--long-wash); color: var(--long); } .ph-toast i.dn { background: var(--short-wash); color: var(--short-text); } .ph-toast .ic { width: 12px; height: 12px; }
.ph-toast span { padding-right: 4px; overflow: hidden; text-overflow: ellipsis; } .ph-toast button { height: 26px; padding: 0 11px; border-radius: 8px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px var(--accent-b); color: #cdbcff; font-size: 12px; font-weight: 650; flex: none; }
.ph-home { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 130px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.72); z-index: 14; }

/* ---- sheets: Exit plan and Share PnL open from the bottom ---- */
.ph-sheet { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .22s var(--ease); }
.ph-sheet.on { opacity: 1; pointer-events: auto; }
.ph-sheet .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.66); }
.ph-sheet .box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94%; overflow-y: auto; scrollbar-width: none; background: #0C0C10; border-radius: 22px 22px 0 0; box-shadow: inset 0 1px 0 var(--hair-2), 0 -30px 80px rgba(0,0,0,.7); transform: translateY(40px); transition: transform .3s var(--ease); padding-bottom: 6px; }
.ph-sheet .box::-webkit-scrollbar { display: none; }
.ph-sheet.on .box { transform: none; }
.ph-sheet .grab { display: block; width: 38px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); margin: 8px auto 2px; }
.ph-sheet .xp, .ph-sheet .sh { width: auto; padding: 0; }
.ph-sheet .sh .in { padding: 10px 16px 18px; } .ph-sheet .sh .sh-h { margin-bottom: 10px; }
.ph-sheet .xp-th, .ph-sheet .xp-row { grid-template-columns: 1.3fr .8fr 1fr 1fr; }
.ph-sheet .box .sh-h h4 { font-size: 15px; }
.ph-sheet .sh .sh-card { width: 72%; margin: 0 auto; } .ph-sheet .sh .sh-card.tall { width: 46%; } .ph-sheet .sh .sh-hint { margin: 8px 0 6px; } .ph-sheet .sh .sh-dots { margin: 8px 0; } .ph-sheet .sh .sh-fmt { margin-bottom: 8px; }
.ph.flat .ph-sheet .box { max-height: 100%; border-radius: 18px 18px 0 0; }
