:root { --bg:#0C0B09; --panel:#1B1815; --border:#2B2621; --text:#D0CABD; --head:#fff; --muted:#8A8274; --accent:#C9A64D; --gold:#FFB300; --teal:#26A69A; --pos:#1FB85C; --neg:#EF5350; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:-apple-system,BlinkMacSystemFont,'Trebuchet MS',Roboto,sans-serif; -webkit-font-smoothing:antialiased; line-height:1.65; }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; }
.brand { display:flex; align-items:center; gap:8px; font-weight:800; color:var(--head); font-size:18px; text-decoration:none; }
.brand img { width:26px; height:26px; image-rendering:pixelated; }
.cta { background:var(--accent); color:#1C1300; text-decoration:none; font-weight:700; font-size:13px; padding:9px 16px; border-radius:6px; white-space:nowrap; }
.cta:hover { background:#E5C158; }
h1 { color:var(--head); font-size:28px; line-height:1.25; margin:0 0 8px; letter-spacing:-0.5px; }
.sub { color:var(--muted); font-size:14px; margin:0 0 28px; }
h2 { color:var(--head); font-size:20px; margin:32px 0 10px; }
h3 { color:var(--head); font-size:15px; margin:20px 0 6px; }
p, li { font-size:14.5px; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
.callout { background:var(--panel); border:1px solid var(--border); border-left:3px solid var(--gold); border-radius:6px; padding:12px 16px; margin:18px 0; font-size:14px; }
.footer { margin-top:48px; padding-top:18px; border-top:1px solid var(--border); color:var(--muted); font-size:12px; }
.big-cta { display:block; text-align:center; background:linear-gradient(90deg,rgba(201,166,77,0.2),rgba(201,166,77,0.06)); border:1px solid rgba(201,166,77,0.5); border-radius:8px; padding:16px; margin:28px 0; color:var(--head); font-weight:700; font-size:16px; text-decoration:none; }
.big-cta:hover { background:linear-gradient(90deg,rgba(201,166,77,0.3),rgba(201,166,77,0.1)); text-decoration:none; }

/* Live top-10 list (high/low-vol margins, biggest losers) */
.live-list { margin-top: 20px; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.live-loading { padding:20px; text-align:center; color:var(--muted); font-size:13.5px; }
.live-row { display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--panel); border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); }
.live-row:last-child { border-bottom:none; }
.live-row:hover { background:#232019; text-decoration:none; }
.lr-rank { color:var(--muted); font-size:12px; width:16px; text-align:right; flex-shrink:0; }
.lr-icon { width:24px; height:24px; object-fit:contain; flex-shrink:0; }
.lr-name { color:var(--head); font-weight:600; font-size:14px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lr-margin { color:var(--pos); font-weight:700; font-size:13.5px; white-space:nowrap; }
.lr-pct { font-weight:700; font-size:13.5px; white-space:nowrap; }
.lr-pct.neg { color:var(--neg); }
.lr-vol { color:var(--muted); font-size:12px; width:64px; text-align:right; flex-shrink:0; }

/* Tab toggle (e.g. All / F2P / Members split on the High Alch calculator) */
.tab-row { display:flex; gap:6px; margin-top:20px; }
.tab-btn { background:var(--panel); border:1px solid var(--border); color:var(--muted); font-size:13px; font-weight:600; padding:7px 14px; border-radius:6px; cursor:pointer; font-family:inherit; }
.tab-btn:hover { color:var(--text); border-color:#3a342c; }
.tab-btn.active { background:var(--accent); color:#1C1300; border-color:var(--accent); }
.tab-row + .live-list { margin-top: 10px; }
