/* BitofBits Predictions */
:root {
  --pm-bg: #07080c;
  --pm-panel: #0f1219;
  --pm-panel2: #141924;
  --pm-panel3: #1b2130;
  --pm-line: rgba(255,255,255,0.07);
  --pm-line2: rgba(255,255,255,0.13);
  --pm-text: #eef1f6;
  --pm-muted: #8b94a7;
  --pm-dim: #5d6577;
  --pm-gold: #f7c948;
  --pm-gold2: #e3a21a;
  --pm-goldgrad: linear-gradient(180deg, #ffe08a 0%, #f7c948 45%, #e09b16 100%);
  --pm-yes: #27c281;
  --pm-yes-bg: rgba(39,194,129,0.13);
  --pm-no: #ff5468;
  --pm-no-bg: rgba(255,84,104,0.13);
  --pm-cyan: #00d4ff;
  --pm-radius: 14px;
  --pm-top: calc(var(--bob-bar-h, 48px) + 14px);
  --pm-cond: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --pm-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body.pm {
  margin: 0;
  background:
    radial-gradient(1200px 520px at 50% -140px, rgba(247,201,72,0.10), transparent 70%),
    radial-gradient(900px 600px at 100% 0%, rgba(39,194,129,0.05), transparent 60%),
    var(--pm-bg);
  background-attachment: fixed;
  color: var(--pm-text);
  font: 400 14px/1.45 var(--pm-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.pm button { font-family: inherit; cursor: pointer; color: inherit; }
.pm a { color: inherit; text-decoration: none; }
.pm-ico { width: 18px; height: 18px; flex: none; }
.pm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.pm-num { font-variant-numeric: tabular-nums; }
.pm-up { color: var(--pm-yes); }
.pm-down { color: var(--pm-no); }

/* ---------- header ---------- */
.pm-head {
  position: sticky; top: var(--bob-bar-h, 48px); z-index: 50;
  background: rgba(7,8,12,0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pm-line);
}
.pm-head-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.pm-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.pm-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(247,201,72,0.4), 0 4px 16px rgba(247,201,72,0.2); }
.pm-brand b { display: block; font: 800 21px/1 var(--pm-cond); letter-spacing: 0.06em; text-transform: uppercase; }
.pm-brand b span { background: var(--pm-goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-brand small { display: block; color: var(--pm-muted); font-size: 11px; letter-spacing: 0.04em; margin-top: 2px; }
.pm-search { flex: 1 1 auto; max-width: 520px; position: relative; }
.pm-search input {
  width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--pm-line2);
  background: var(--pm-panel); color: var(--pm-text); padding: 0 14px 0 40px; font: 500 14px var(--pm-sans);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.pm-search input::placeholder { color: var(--pm-dim); }
.pm-search input:focus { border-color: rgba(247,201,72,0.55); box-shadow: 0 0 0 3px rgba(247,201,72,0.12); }
.pm-search svg { position: absolute; left: 13px; top: 11px; color: var(--pm-dim); }
.pm-tabs { display: flex; gap: 4px; margin-left: auto; flex: none; }
.pm-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent;
  background: none; color: var(--pm-muted); font: 600 14px var(--pm-sans);
}
.pm-tab:hover { color: var(--pm-text); background: rgba(255,255,255,0.04); }
.pm-tab.on { color: var(--pm-text); background: var(--pm-panel2); border-color: var(--pm-line2); }
.pm-wallet { display: flex; gap: 14px; align-items: center; flex: none; padding-left: 14px; border-left: 1px solid var(--pm-line); }
.pm-wallet div { text-align: right; line-height: 1.15; }
.pm-wallet small { display: block; color: var(--pm-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pm-wallet b { font: 700 16px var(--pm-sans); font-variant-numeric: tabular-nums; }
.pm-wallet .pm-cash b { color: var(--pm-cyan); }

/* ---------- category bar ---------- */
.pm-cats { border-bottom: 1px solid var(--pm-line); background: rgba(7,8,12,0.6); }
.pm-cats-in { display: flex; align-items: center; gap: 6px; height: 50px; overflow-x: auto; scrollbar-width: none; }
.pm-cats-in::-webkit-scrollbar { display: none; }
.pm-cat {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid transparent; background: none;
  color: var(--pm-muted); font: 600 13.5px var(--pm-sans); white-space: nowrap;
}
.pm-cat:hover { color: var(--pm-text); }
.pm-cat.on { color: #15120a; background: var(--pm-goldgrad); box-shadow: 0 4px 16px rgba(247,201,72,0.25); }
.pm-cat .pm-ico { width: 15px; height: 15px; }
.pm-cat-sep { flex: none; width: 1px; height: 22px; background: var(--pm-line2); margin: 0 6px; }

/* ---------- ticker ---------- */
.pm-ticker { display: flex; gap: 10px; padding: 14px 0 0; overflow-x: auto; scrollbar-width: none; }
.pm-ticker::-webkit-scrollbar { display: none; }
.pm-tick {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  background: var(--pm-panel); border: 1px solid var(--pm-line); border-radius: 999px; font-size: 12.5px;
}
.pm-tick i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--pm-sans); font-style: normal; color: #fff; }
.pm-tick b { font-weight: 700; }
.pm-tick span { color: var(--pm-muted); }
.pm-tick-note { flex: none; align-self: center; color: var(--pm-dim); font-size: 11.5px; padding-left: 4px; }

/* ---------- main ---------- */
.pm-main { padding: 18px 0 40px; min-height: 60vh; }
.pm-section-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.pm-section-h h2 { margin: 0; font: 800 26px/1 var(--pm-cond); letter-spacing: .04em; text-transform: uppercase; }
.pm-section-h h2 small { font: 600 13px var(--pm-sans); color: var(--pm-muted); letter-spacing: 0; text-transform: none; margin-left: 10px; }
.pm-sort { display: flex; gap: 8px; align-items: center; }
.pm-select {
  height: 34px; border-radius: 9px; border: 1px solid var(--pm-line2); background: var(--pm-panel);
  color: var(--pm-text); font: 600 13px var(--pm-sans); padding: 0 30px 0 12px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b94a7' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.pm-seg { display: inline-flex; padding: 3px; background: var(--pm-panel); border: 1px solid var(--pm-line2); border-radius: 10px; }
.pm-seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--pm-muted); font: 600 12.5px var(--pm-sans); }
.pm-seg button.on { background: var(--pm-panel3); color: var(--pm-text); }

/* ---------- hero ---------- */
.pm-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.pm-feat {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(247,201,72,0.10), transparent 70%),
    linear-gradient(180deg, var(--pm-panel2), var(--pm-panel));
  border: 1px solid var(--pm-line2); border-radius: 18px; padding: 22px 24px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.pm-feat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--pm-goldgrad); opacity: .8; }
.pm-feat-top { display: flex; align-items: flex-start; gap: 14px; }
.pm-feat-q { flex: 1; min-width: 0; }
.pm-feat-q h3 { margin: 4px 0 0; font: 700 24px/1.2 var(--pm-sans); letter-spacing: -0.01em; cursor: pointer; }
.pm-feat-q h3:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(247,201,72,.5); text-underline-offset: 4px; }
.pm-feat-p { text-align: right; flex: none; }
.pm-feat-p b { display: block; font: 800 44px/1 var(--pm-cond); letter-spacing: .01em; }
.pm-feat-p small { color: var(--pm-muted); font-weight: 600; font-size: 12px; }
.pm-feat-chart { height: 230px; margin: 10px -6px 6px; }
.pm-feat-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pm-feat-foot .pm-meta { margin-right: auto; }
.pm-feat-dots { position: absolute; top: 22px; right: 24px; display: none; }
.pm-feat-nav { display: flex; gap: 6px; }
.pm-feat-nav button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--pm-line2); background: var(--pm-panel); display: grid; place-items: center; color: var(--pm-muted); }
.pm-feat-nav button:hover { color: var(--pm-text); border-color: rgba(247,201,72,.5); }
.pm-pips { display: flex; gap: 5px; margin-left: 6px; }
.pm-pips i { width: 6px; height: 6px; border-radius: 50%; background: var(--pm-dim); }
.pm-pips i.on { background: var(--pm-gold); width: 18px; border-radius: 4px; }
.pm-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pm-box { background: var(--pm-panel); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 14px 16px; }
.pm-box-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pm-box-h h4 { margin: 0; font: 700 12px var(--pm-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pm-muted); display: flex; gap: 8px; align-items: center; }
.pm-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--pm-line); cursor: pointer; }
.pm-mini:first-of-type { border-top: 0; }
.pm-mini:hover .pm-mini-q { color: #fff; }
.pm-mini-q { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; line-height: 1.3; color: #d9dde6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-mini-p { flex: none; text-align: right; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.pm-mini-p small { display: block; font-size: 11.5px; font-weight: 700; }

/* ---------- badges & meta ---------- */
.pm-badge {
  flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font: 800 14px/1 var(--pm-sans); color: #fff; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 16px rgba(0,0,0,0.35);
  background-image: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
}
.pm-badge.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 11.5px; }
.pm-badge.lg { width: 64px; height: 64px; border-radius: 15px; font-size: 20px; }
.pm-badge.xs { width: 26px; height: 26px; border-radius: 7px; font-size: 10px; }
.pm-kicker { display: flex; align-items: center; gap: 8px; color: var(--pm-muted); font: 700 11.5px var(--pm-sans); letter-spacing: .08em; text-transform: uppercase; }
.pm-kicker .pm-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pm-dim); }
.pm-live { display: inline-flex; align-items: center; gap: 6px; color: var(--pm-yes); }
.pm-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pm-yes); box-shadow: 0 0 0 0 rgba(39,194,129,.6); animation: pmPulse 2s infinite; }
@keyframes pmPulse { 0% { box-shadow: 0 0 0 0 rgba(39,194,129,.55); } 70% { box-shadow: 0 0 0 8px rgba(39,194,129,0); } 100% { box-shadow: 0 0 0 0 rgba(39,194,129,0); } }
.pm-meta { display: flex; align-items: center; gap: 12px; color: var(--pm-muted); font-size: 12.5px; font-weight: 500; flex-wrap: wrap; }
.pm-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pm-meta .pm-ico { width: 14px; height: 14px; }
.pm-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11px var(--pm-sans); letter-spacing: .03em; }
.pm-pill.auto { color: var(--pm-cyan); background: rgba(0,212,255,0.09); border: 1px solid rgba(0,212,255,0.22); }
.pm-pill.closed { color: var(--pm-gold); background: rgba(247,201,72,0.1); border: 1px solid rgba(247,201,72,0.25); }
.pm-pill.yes { color: var(--pm-yes); background: var(--pm-yes-bg); border: 1px solid rgba(39,194,129,0.3); }
.pm-pill.no { color: var(--pm-no); background: var(--pm-no-bg); border: 1px solid rgba(255,84,104,0.3); }
.pm-pill.void { color: var(--pm-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--pm-line2); }
.pm-pill.new { color: #15120a; background: var(--pm-goldgrad); }

/* ---------- market cards ---------- */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pm-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--pm-panel2), var(--pm-panel));
  border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 15px 15px 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s; cursor: pointer; min-height: 196px;
}
.pm-card:hover { border-color: rgba(247,201,72,0.35); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.4), 0 0 0 1px rgba(247,201,72,0.06); }
.pm-card-top { display: flex; gap: 12px; align-items: flex-start; }
.pm-card-q { flex: 1; min-width: 0; font: 650 15px/1.32 var(--pm-sans); font-weight: 650; color: #f2f4f8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pm-gauge { flex: none; width: 66px; text-align: center; margin-top: -2px; }
.pm-gauge svg { display: block; width: 66px; height: 38px; }
.pm-gauge b { display: block; font: 800 17px/1 var(--pm-sans); margin-top: -14px; font-variant-numeric: tabular-nums; }
.pm-gauge small { display: block; color: var(--pm-muted); font-size: 10.5px; font-weight: 600; margin-top: 2px; }
.pm-card-mid { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.pm-spark { flex: 1; height: 30px; }
.pm-chg { flex: none; font: 700 12.5px var(--pm-sans); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 2px; }
.pm-card-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-bb {
  height: 38px; border-radius: 9px; border: 1px solid transparent; font: 700 14px var(--pm-sans);
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s, transform .1s;
}
.pm-bb:active { transform: scale(.98); }
.pm-bb.yes { background: var(--pm-yes-bg); color: var(--pm-yes); border-color: rgba(39,194,129,.22); }
.pm-bb.yes:hover { background: var(--pm-yes); color: #04170e; }
.pm-bb.no { background: var(--pm-no-bg); color: var(--pm-no); border-color: rgba(255,84,104,.22); }
.pm-bb.no:hover { background: var(--pm-no); color: #200409; }
.pm-bb small { font-weight: 600; opacity: .85; }
.pm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--pm-muted); font-size: 12px; font-weight: 500; border-top: 1px solid var(--pm-line); padding-top: 10px; margin-top: auto; }
.pm-card-foot span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pm-card-foot .pm-ico { width: 13px; height: 13px; }
.pm-card.resolved .pm-card-btns { display: none; }
.pm-resolved-bar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; border-radius: 9px; font-weight: 700; }
.pm-resolved-bar.yes { background: var(--pm-yes-bg); color: var(--pm-yes); }
.pm-resolved-bar.no { background: var(--pm-no-bg); color: var(--pm-no); }
.pm-resolved-bar.void { background: rgba(255,255,255,.05); color: var(--pm-muted); }
.pm-mine { position: absolute; top: -8px; left: 14px; height: 18px; padding: 0 7px; border-radius: 5px; background: var(--pm-cyan); color: #04131a; font: 800 10px/18px var(--pm-sans); letter-spacing: .06em; text-transform: uppercase; }

.pm-empty { text-align: center; color: var(--pm-muted); padding: 60px 20px; border: 1px dashed var(--pm-line2); border-radius: var(--pm-radius); }
.pm-empty b { display: block; color: var(--pm-text); font-size: 16px; margin-bottom: 6px; }
.pm-skel { background: linear-gradient(90deg, var(--pm-panel) 0%, var(--pm-panel2) 50%, var(--pm-panel) 100%); background-size: 200% 100%; animation: pmSk 1.3s infinite; border-radius: var(--pm-radius); border: 1px solid var(--pm-line); }
@keyframes pmSk { to { background-position: -200% 0; } }

/* ---------- detail ---------- */
.pm-detail { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 22px; align-items: start; }
.pm-crumb { display: flex; align-items: center; gap: 8px; color: var(--pm-muted); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pm-crumb a:hover { color: var(--pm-text); }
.pm-dh { display: flex; gap: 16px; align-items: flex-start; }
.pm-dh h1 { margin: 6px 0 8px; font: 750 28px/1.2 var(--pm-sans); font-weight: 750; letter-spacing: -0.015em; }
.pm-dprob { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.pm-dprob b { font: 800 46px/1 var(--pm-cond); letter-spacing: .01em; }
.pm-dprob span { color: var(--pm-muted); font-weight: 600; }
.pm-chartbox { background: var(--pm-panel); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 12px 10px 8px; margin-top: 10px; }
.pm-chart { height: 320px; position: relative; }
.pm-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pm-chart-tip { position: absolute; top: 4px; pointer-events: none; background: rgba(15,18,25,0.96); border: 1px solid var(--pm-line2); border-radius: 8px; padding: 5px 9px; font-size: 12px; white-space: nowrap; transform: translateX(-50%); display: none; box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.pm-chart-tip b { font-size: 14px; }
.pm-chart-tip span { color: var(--pm-muted); margin-left: 6px; }
.pm-ranges { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 0; }
.pm-ranges .pm-seg button { height: 26px; padding: 0 10px; }
.pm-ranges small { color: var(--pm-dim); font-size: 11.5px; }
.pm-panel { background: var(--pm-panel); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); margin-top: 16px; }
.pm-panel-h { padding: 14px 16px 0; display: flex; align-items: center; justify-content: space-between; }
.pm-panel-h h3 { margin: 0; font: 700 16px var(--pm-sans); }
.pm-panel-b { padding: 10px 16px 16px; color: #c9cfdb; line-height: 1.6; }
.pm-panel-b p { margin: 0 0 10px; }
.pm-kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--pm-line); border-radius: 10px; overflow: hidden; border: 1px solid var(--pm-line); margin-top: 10px; }
.pm-kv div { background: var(--pm-panel2); padding: 10px 12px; }
.pm-kv small { display: block; color: var(--pm-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pm-kv b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pm-src { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--pm-panel2); border: 1px solid var(--pm-line); border-radius: 10px; margin-top: 6px; font-size: 13px; }
.pm-src .pm-ico { color: var(--pm-gold); }
.pm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pm-table th { text-align: left; color: var(--pm-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--pm-line); white-space: nowrap; }
.pm-table td { padding: 10px; border-bottom: 1px solid var(--pm-line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-table .r { text-align: right; }
.pm-table tr.me td { background: rgba(0,212,255,0.04); }
.pm-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pm-who i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex: none; }
.pm-side-tag { font-weight: 800; font-size: 12px; }
.pm-side-tag.yes { color: var(--pm-yes); }
.pm-side-tag.no { color: var(--pm-no); }
.pm-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; margin-top: 16px; font-weight: 600; }
.pm-banner.yes { background: var(--pm-yes-bg); border: 1px solid rgba(39,194,129,.3); }
.pm-banner.no { background: var(--pm-no-bg); border: 1px solid rgba(255,84,104,.3); }
.pm-banner.void, .pm-banner.closed { background: rgba(247,201,72,.07); border: 1px solid rgba(247,201,72,.25); }
.pm-banner small { display: block; color: var(--pm-muted); font-weight: 500; margin-top: 2px; }

/* ---------- trade panel ---------- */
.pm-trade { position: sticky; top: calc(var(--pm-top) + 64px); background: linear-gradient(180deg, var(--pm-panel2), var(--pm-panel)); border: 1px solid var(--pm-line2); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.pm-trade-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.pm-trade-h .pm-trade-q { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-trade-x { display: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--pm-line2); background: none; place-items: center; color: var(--pm-muted); }
.pm-mode { display: flex; gap: 18px; padding: 12px 16px 0; border-bottom: 1px solid var(--pm-line); }
.pm-mode button { background: none; border: 0; padding: 8px 0 10px; color: var(--pm-muted); font: 700 14px var(--pm-sans); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pm-mode button.on { color: var(--pm-text); border-color: var(--pm-gold); }
.pm-trade-b { padding: 14px 16px 16px; }
.pm-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-sidebtn { height: 48px; border-radius: 10px; border: 1px solid var(--pm-line2); background: var(--pm-panel3); color: var(--pm-muted); font: 700 15px var(--pm-sans); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; }
.pm-sidebtn b { font-variant-numeric: tabular-nums; }
.pm-sidebtn.yes.on { background: var(--pm-yes); border-color: var(--pm-yes); color: #04170e; box-shadow: 0 6px 20px rgba(39,194,129,.28); }
.pm-sidebtn.no.on { background: var(--pm-no); border-color: var(--pm-no); color: #200409; box-shadow: 0 6px 20px rgba(255,84,104,.28); }
.pm-sidebtn:not(.on):hover { color: var(--pm-text); border-color: rgba(255,255,255,.25); }
.pm-amt { margin-top: 16px; }
.pm-amt-h { display: flex; justify-content: space-between; align-items: baseline; color: var(--pm-muted); font-size: 12.5px; font-weight: 600; }
.pm-amt-h b { color: var(--pm-text); font-variant-numeric: tabular-nums; }
.pm-amt-in { position: relative; margin-top: 8px; }
.pm-amt-in input { width: 100%; height: 56px; border-radius: 12px; border: 1px solid var(--pm-line2); background: #0a0d13; color: var(--pm-text); font: 800 26px var(--pm-sans); text-align: right; padding: 0 16px 0 40px; outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pm-amt-in input::-webkit-outer-spin-button, .pm-amt-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pm-amt-in input:focus { border-color: rgba(247,201,72,.55); box-shadow: 0 0 0 3px rgba(247,201,72,.12); }
.pm-amt-in span { position: absolute; left: 16px; top: 16px; color: var(--pm-dim); font: 700 20px var(--pm-sans); }
.pm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.pm-quick button { height: 30px; border-radius: 8px; border: 1px solid var(--pm-line2); background: var(--pm-panel3); color: #cfd5e0; font: 700 12.5px var(--pm-sans); }
.pm-quick button:hover { border-color: rgba(247,201,72,.5); color: var(--pm-text); }
.pm-sum { margin-top: 14px; border-top: 1px dashed var(--pm-line2); padding-top: 12px; display: grid; gap: 7px; font-size: 13px; }
.pm-sum div { display: flex; justify-content: space-between; color: var(--pm-muted); }
.pm-sum div b { color: var(--pm-text); font-variant-numeric: tabular-nums; font-weight: 700; }
.pm-sum .pm-win { align-items: baseline; padding-top: 4px; }
.pm-sum .pm-win span { color: var(--pm-text); font-weight: 600; }
.pm-sum .pm-win b { font-size: 22px; color: var(--pm-yes); }
.pm-go { width: 100%; height: 50px; margin-top: 14px; border: 0; border-radius: 12px; font: 800 16px var(--pm-sans); letter-spacing: .01em; transition: filter .15s, transform .1s; }
.pm-go.yes { background: linear-gradient(180deg, #34d892, #20a96f); color: #03140c; box-shadow: 0 10px 26px rgba(39,194,129,.28); }
.pm-go.no { background: linear-gradient(180deg, #ff6b7c, #e63e53); color: #1f0307; box-shadow: 0 10px 26px rgba(255,84,104,.28); }
.pm-go:hover:not(:disabled) { filter: brightness(1.07); }
.pm-go:active:not(:disabled) { transform: scale(.99); }
.pm-go:disabled { background: var(--pm-panel3); color: var(--pm-dim); box-shadow: none; cursor: not-allowed; }
.pm-terms { margin-top: 10px; color: var(--pm-dim); font-size: 11.5px; text-align: center; line-height: 1.45; }
.pm-msg { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--pm-no); min-height: 0; text-align: center; }
.pm-pos { margin: 0 16px 16px; padding: 12px; border-radius: 12px; background: rgba(0,212,255,0.05); border: 1px solid rgba(0,212,255,0.18); font-size: 13px; }
.pm-pos h5 { margin: 0 0 8px; font: 700 11px var(--pm-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pm-cyan); }
.pm-pos-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.pm-pos-row span:last-child { font-weight: 700; }

/* ---------- portfolio ---------- */
.pm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pm-stat { background: linear-gradient(180deg, var(--pm-panel2), var(--pm-panel)); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 16px 18px; }
.pm-stat small { display: block; color: var(--pm-muted); font: 700 11px var(--pm-sans); letter-spacing: .1em; text-transform: uppercase; }
.pm-stat b { display: block; font: 800 30px/1.15 var(--pm-cond); letter-spacing: .02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pm-stat span { font-size: 12.5px; font-weight: 600; }
.pm-stat.gold { border-color: rgba(247,201,72,.3); background: radial-gradient(400px 120px at 0 0, rgba(247,201,72,.12), transparent 70%), linear-gradient(180deg, var(--pm-panel2), var(--pm-panel)); }
.pm-ptabs { display: flex; gap: 22px; border-bottom: 1px solid var(--pm-line); margin: 26px 0 0; }
.pm-ptabs button { background: none; border: 0; padding: 10px 0 12px; color: var(--pm-muted); font: 700 15px var(--pm-sans); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pm-ptabs button.on { color: var(--pm-text); border-color: var(--pm-gold); }
.pm-ptabs button i { font-style: normal; margin-left: 6px; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--pm-panel3); color: var(--pm-muted); }
.pm-ptable { background: var(--pm-panel); border: 1px solid var(--pm-line); border-top: 0; border-radius: 0 0 var(--pm-radius) var(--pm-radius); overflow-x: auto; }
.pm-ptable .pm-table td:first-child { min-width: 260px; }
.pm-mkt { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.pm-mkt b { font-weight: 650; line-height: 1.3; display: block; }
.pm-mkt small { color: var(--pm-muted); font-size: 12px; }
.pm-mkt:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247,201,72,.5); }
.pm-sellbtn { height: 30px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--pm-line2); background: var(--pm-panel3); font: 700 12.5px var(--pm-sans); white-space: nowrap; }
.pm-sellbtn:hover:not(:disabled) { border-color: var(--pm-gold); color: var(--pm-gold); }
.pm-sellbtn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- modal ---------- */
.pm-modal-bg { position: fixed; inset: 0; z-index: 10070; background: rgba(0,0,0,.62); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.pm-modal-bg.on { display: flex; }
.pm-modal { width: 100%; max-width: 420px; background: var(--pm-panel2); border: 1px solid var(--pm-line2); border-radius: 16px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.pm-modal h3 { margin: 0 0 4px; font: 750 18px var(--pm-sans); }
.pm-modal p { margin: 0 0 12px; color: var(--pm-muted); }
.pm-modal-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }
.pm-btn2 { height: 44px; border-radius: 10px; border: 1px solid var(--pm-line2); background: var(--pm-panel3); font: 700 14px var(--pm-sans); }
.pm-btn-gold { height: 44px; border-radius: 10px; border: 0; background: var(--pm-goldgrad); color: #15120a; font: 800 14px var(--pm-sans); box-shadow: 0 8px 22px rgba(247,201,72,.25); }
.pm-btn-gold:disabled { opacity: .5; }

/* ---------- toasts ---------- */
.pm-toasts { position: fixed; z-index: 10080; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.pm-toast { pointer-events: auto; min-width: 260px; max-width: 380px; background: rgba(20,25,36,.98); border: 1px solid var(--pm-line2); border-left: 3px solid var(--pm-cyan); border-radius: 12px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); font-weight: 600; font-size: 13.5px; animation: pmIn .25s ease-out; }
.pm-toast small { display: block; color: var(--pm-muted); font-weight: 500; margin-top: 2px; }
.pm-toast.ok { border-left-color: var(--pm-yes); }
.pm-toast.win { border-left-color: var(--pm-gold); background: radial-gradient(300px 80px at 0 0, rgba(247,201,72,.16), transparent 70%), rgba(20,25,36,.98); }
.pm-toast.err { border-left-color: var(--pm-no); }
.pm-toast.out { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes pmIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.pm-foot { border-top: 1px solid var(--pm-line); margin-top: 40px; padding: 22px 0 40px; color: var(--pm-dim); font-size: 12.5px; line-height: 1.6; }
.pm-foot b { color: var(--pm-muted); }
.pm-age { display: inline-grid; place-items: center; width: 30px; height: 20px; border-radius: 5px; border: 1px solid var(--pm-dim); color: var(--pm-muted); font: 800 10.5px var(--pm-sans); margin-right: 8px; vertical-align: 1px; }

/* ---------- mobile bar ---------- */
.pm-mbar { display: none; }
.pm-sheet-bg { display: none; }

@media (max-width: 1100px) {
  .pm-hero { grid-template-columns: 1fr; }
  .pm-side { flex-direction: row; }
  .pm-side .pm-box { flex: 1; min-width: 0; }
  .pm-detail { grid-template-columns: minmax(0, 1fr) 340px; }
  .pm-wallet .pm-pv { display: none; }
}
@media (max-width: 900px) {
  .pm-head-in { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px 12px; }
  .pm-search { order: 5; flex: 1 1 100%; max-width: none; }
  .pm-tabs { margin-left: auto; }
  .pm-wallet { padding-left: 0; border-left: 0; }
  .pm-detail { grid-template-columns: 1fr; }
  .pm-trade { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 10065; border-radius: 18px 18px 0 0; max-height: 88vh; overflow: auto; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  .pm-trade.open { transform: none; }
  .pm-trade-x { display: grid; }
  .pm-sheet-bg { position: fixed; inset: 0; z-index: 10064; background: rgba(0,0,0,.55); }
  .pm-sheet-bg.on { display: block; }
  .pm-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,8,12,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--pm-line2); }
  .pm-mbar .pm-bb { height: 46px; font-size: 15px; }
  body.pm-has-mbar .pm-foot { padding-bottom: 90px; }
  .pm-toasts { left: 12px; right: 12px; bottom: 80px; align-items: stretch; }
  .pm-toast { max-width: none; }
  .pm-stats { grid-template-columns: 1fr 1fr; }
  .pm-kv { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pm-wrap { padding: 0 14px; }
  .pm-brand small { display: none; }
  .pm-brand b { font-size: 19px; }
  .pm-tab { padding: 0 10px; font-size: 13px; }
  .pm-tab .pm-ico { display: none; }
  .pm-wallet { display: none; }
  .pm-side { flex-direction: column; }
  .pm-feat { padding: 16px 16px 14px; border-radius: 16px; }
  .pm-feat-q h3 { font-size: 18px; }
  .pm-feat-p b { font-size: 34px; }
  .pm-feat-chart { height: 170px; }
  .pm-grid { grid-template-columns: 1fr; gap: 12px; }
  .pm-section-h { flex-wrap: wrap; }
  .pm-section-h h2 { font-size: 22px; }
  .pm-dh h1 { font-size: 21px; }
  .pm-badge.lg { width: 52px; height: 52px; font-size: 16px; }
  .pm-dprob b { font-size: 38px; }
  .pm-chart { height: 230px; }
  .pm-stat b { font-size: 24px; }
  .pm-stat { padding: 12px 14px; }
  .pm-ptable .pm-table td:first-child { min-width: 200px; }
  .pm-table th, .pm-table td { padding: 8px; }
  .pm-hide-sm { display: none; }
}

/* ---------- v8 additions ---------- */
.pm-feat { display: flex; flex-direction: column; }
.pm-feat-chart { flex: 1 1 auto; min-height: 230px; position: relative; }
.pm-feat-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 1100px) { .pm-feat-chart { flex: none; height: 230px; } }
@media (max-width: 640px) { .pm-feat-chart { height: 170px; min-height: 170px; } }
.pm-feat-foot .pm-card-btns { width: 260px; max-width: 100%; }
@media (max-width: 640px) { .pm-feat-foot .pm-card-btns { width: 100%; order: 3; } }
.pm-card-q { font-size: 14.5px; }
.pm-kicker { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 640px) {
  .pm-dprob > span:last-child[style] { margin-left: 0 !important; flex-basis: 100%; }
  .pm-ranges small { display: none; }
  .pm-pill.auto .pm-auto-src { display: none; }
}
