/* Markets Desk theme: deep navy, azure accent, sentence-case labels. Loaded last, overrides the base styles. */
:root {
  --bg: #0c0918;
  --panel: #161029;
  --panel-2: #211838;
  --line: #2e2350;
  --line-2: #44357a;
  --text: #f3eefc;
  --muted: #a79dc4;
  --accent: #ffc857;
  --accent-2: #ffdf8f;
  --on-accent: #1a1000;
  --violet: #a77bff;
  --pink: #ff7ab8;
  --teal: #3ed6e0;
  --up: #34e0a1;
  --down: #ff6b9a;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Instrument Sans", system-ui, sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
  --glass: linear-gradient(160deg, #1d1538 0%, #130e25 100%);
}
html { scroll-padding-top: 112px; }
body { background: var(--bg); font-size: 16px; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(47,123,255, .22), transparent 70%),
    radial-gradient(700px 480px at -6% 12%, rgba(90,160,255, .12), transparent 70%),
    var(--bg);
}

/* labels: sentence case, no tracking, body face */
html body :is(.tag, .eyebrow, .chips, .qc .qn span, .qc .qs, .qc .qch, .lv small, .res span, .rec span, .fg label, .ins span, .mc span, .sc .tm, .sc .loc, .pill, .legend, .meta, .stat, .clock, .tag2, .bcard h4, .btcd .lv span, .prob .lab, .credit, .fallback, nav a, .btn, .tb, .brand, h1, h2, h3, .feed .label, .sample, .upd time) {
  text-transform: none; letter-spacing: 0;
}
html body :is(.qc .qp, .lv b, .rec b, .res b, .px, .btcd .px, .btcd .lv b, .trow, .auto b, .clock, .row2, .mc b, .pi, .it, .stat b, .ins b, .upd time, .fg input, .fg select, .sc .cd, .sc .tm, .bcard .auto, .tf b) {
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}

/* header: brand + two join buttons on top, tabs below */
.top { background: var(--topbg); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding-block: 10px 8px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.brand span { color: var(--accent); }
.ctas { display: flex; gap: 8px; align-items: center; }
.ctas a {
  font: 600 13px/1 var(--font-body); text-decoration: none; padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
}
.ctas a#joinBtn { background: var(--accent); color: var(--on-accent); }
.ctas a:hover, .ctas a:focus-visible { filter: brightness(1.1); outline: none; }
.top nav { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a {
  flex: none; white-space: nowrap; font: 500 14px/1 var(--font-body); color: var(--muted);
  padding: 9px 13px; border-radius: 999px; border: 1px solid transparent; background: transparent;
}
.top nav a:hover, .top nav a:focus-visible { color: var(--text); background: var(--panel-2); border-color: var(--line); outline: none; }
@media (max-width: 720px) {
  .top .wrap { flex-wrap: initial; padding-block: 8px 6px; }
  .brand { font-size: 19px; }
  .ctas a { padding: 8px 11px; font-size: 12px; }
  .ctas { gap: 6px; }
  .top nav a { padding: 8px 11px; font-size: 13px; }
}
@media (min-width: 900px) {
  .top .wrap { grid-template-columns: auto 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .top nav { grid-column: 2; grid-row: 1; justify-content: center; }
  .ctas { grid-column: 3; grid-row: 1; }
  html { scroll-padding-top: 76px; }
}

/* hero */
.hero { background: transparent; border-bottom: 1px solid var(--line); padding-block: 40px 26px; }
.hero::after { display: none; }
.eyebrow { background: rgba(37, 214, 154, .08); border: 1px solid rgba(37, 214, 154, .28); color: var(--up); font: 500 13px/1 var(--font-body); padding: 7px 12px; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 8.2vw, 76px); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch; }
h1 em { color: inherit; font-style: normal; }
.lede { color: var(--muted); font-size: 18px; max-width: 54ch; }
.btn { font: 600 15px/1 var(--font-body); padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips { color: var(--muted); font-size: 14px; }
.chips span + span::before { color: var(--line-2); }

/* the memorable part: live quote tiles */
.quotes { gap: 12px; }
.qc { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.qc .qn b { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.qc .qn span { font-size: 13px; color: var(--muted); }
.qc .qp { font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.qc .qch { font-size: 14px; }
.qc .qs { font-size: 12px; opacity: .8; }
@keyframes fu { from { background: rgba(37, 214, 154, .16); } to { background: var(--i5); } }
@keyframes fd { from { background: rgba(255, 92, 122, .16); } to { background: var(--i5); } }

/* sections */
main { gap: 44px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.head { margin-bottom: 14px; align-items: center; }
.tag { font-size: 13px; color: var(--muted); }
.box, .card, .tool, .bcard, .tbl, .tl, .an, .sc, .mc, .rec div, .empty { border-radius: var(--r); }
.box, .card, .tool, .bcard, .tbl, .tl, .an, .sc, .mc, .rec div { background: var(--glass); border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.empty { border-color: var(--line-2); }
.lv, .res div, .pi, .ins div, .tf { background: var(--i1); border-color: var(--line); border-radius: 10px; }
.lv { border: 1px solid var(--line); }
.card .lv b { font-size: 14px; white-space: nowrap; overflow-wrap: normal; }
.card .lv small { font-size: 12px; }
.pair { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.side { font: 600 12px/1 var(--font-body); padding: 5px 10px; border-radius: 999px; }
.card.win { border-color: rgba(37, 214, 154, .6); }
.card.loss { border-color: rgba(255, 92, 122, .6); }
.bar { height: 6px; background: var(--i1); }
.bar i { background: linear-gradient(90deg, var(--violet), var(--accent)); }
.pill.on { background: var(--up); border-color: var(--up); color: #04140d; }
.seg { border-radius: 999px; border-color: var(--line-2); }
.seg button { font: 500 13px/1 var(--font-body); text-transform: none; letter-spacing: 0; padding: 9px 14px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }

/* bitcoin desk */
.bias { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; border-radius: 999px; padding: 6px 16px; text-transform: none; }
.bias.neu { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bcard h4 { font-size: 13px; font-weight: 500; }
.btcd .px { font-size: 40px; letter-spacing: -.03em; }
.tf { border-top-width: 3px; }

/* tools */
.tool h3, .pz h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.fg input, .fg select { background: var(--i1); border-radius: 10px; border-color: var(--line-2); }
.fg input:focus, .fg select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tb { border-radius: 999px; font: 600 14px/1 var(--font-body); padding: 11px 18px; }

/* live feed bar */
.feed { background: var(--i4); border-top: 1px solid var(--line-2); }
.feed .label { background: var(--accent); color: var(--on-accent); font: 700 14px/1 var(--font-body); }
.feed .label .dot { background: var(--on-accent); }
.it { font-size: 13px; }
.it .u { color: var(--accent-2); }

footer { border-top: 1px solid var(--line); }
::selection { background: rgba(47,123,255, .35); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* sessions */
.sc .nm { flex-wrap: wrap; gap: 6px 8px; }
.sc .nm b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-transform: none; }
.pill { font: 500 12px/1 var(--font-body); padding: 5px 9px; }
.sc .cd { font-size: 13px; }
.row2 { font-size: 13px; }
.tag2 { font-size: 11px; }

/* live position panel on open trades */
.live { background: var(--i1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.live .lt { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.live .lp small { display: block; font-size: 12px; color: var(--muted); }
.live .lp b { font-family: var(--font-num); font-weight: 500; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.live .lp.r { text-align: right; }
.live .roe.up { color: var(--up); } .live .roe.down { color: var(--down); }
.live .rt { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,92,122,.35), var(--i6) 50%, rgba(37,214,154,.35)); }
.live .rf { position: absolute; top: 0; bottom: 0; border-radius: 4px; opacity: .9; }
.live .rf.g { background: var(--up); } .live .rf.r { background: var(--down); }
.live .re { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--muted); transform: translateX(-1px); }
.live .rm { position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); transform: translateX(-6px); transition: left .4s ease; box-shadow: 0 0 0 3px rgba(47,123,255,.25); }
.live .rl { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); font-family: var(--font-num); }
.live .rl .dn { color: var(--down); } .live .rl .up { color: var(--up); } .live .rl .pn { color: var(--text); }
.live .ln { margin: 0; font-size: 11px; color: var(--muted); }
.live:not(.on) .mk, .live:not(.on) .roe { opacity: .5; }
.live .lh { display: flex; justify-content: space-between; align-items: center; }
.live .lvx { font: 700 13px/1 var(--font-body); color: var(--on-accent); background: var(--accent); padding: 6px 10px; border-radius: 999px; }
.live .lst { font-size: 12px; color: var(--up); display: inline-flex; align-items: center; gap: 6px; }
.live .lst::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.live .lg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.live .cl { background: var(--i2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.live .cl small { display: block; font-size: 11px; color: var(--muted); }
.live .cl b { font-family: var(--font-num); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.live .cl b.up { color: var(--up); } .live .cl b.down { color: var(--down); }
.live .lp small { font-size: 11px; }
.live .lp.r b { font-size: 24px; }
.card.man .pair::after { content: "CLOSED"; }

/* result card for closed trades */
.card.rcard { gap: 14px; }
.card.rcard.win { background: radial-gradient(420px 160px at 85% 0%, rgba(37,214,154,.18), transparent 70%), var(--glass); }
.card.rcard.loss { background: radial-gradient(420px 160px at 85% 0%, rgba(255,92,122,.16), transparent 70%), var(--glass); }
.card.rcard .pair::after { display: none; }
.hero2 { display: flex; flex-direction: column; gap: 2px; }
.hero2 b { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 1; letter-spacing: -.03em; }
.hero2 b.up { color: var(--up); } .hero2 b.down { color: var(--down); }
.hero2 span { font-size: 13px; color: var(--muted); }
.pnl { font-family: var(--font-num); font-size: 14px; font-weight: 500; }
.pnl.up { color: var(--up); } .pnl.down { color: var(--down); }
.xr { display: flex; align-items: center; gap: 12px; background: var(--i1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.xr small { display: block; font-size: 12px; color: var(--muted); }
.xr b { font-family: var(--font-num); font-weight: 500; font-size: 15px; }
.xr .arw { color: var(--muted); font-size: 18px; }

/* portfolio card */
.pf { background: radial-gradient(520px 200px at 100% 0%, rgba(47,123,255,.22), transparent 70%), var(--glass); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.pf .pt { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pf small { display: block; font-size: 12px; color: var(--muted); }
.pf .pt b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; }
.pf .chg { font-family: var(--font-num); font-size: 14px; }
.pf .up { color: var(--up); } .pf .down { color: var(--down); }
.pf .sp { width: 40%; max-width: 200px; height: 56px; }
.pf .sp svg { width: 100%; height: 100%; display: block; }
.pf .ps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pf .ps div { background: var(--i1); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pf .ps b { font-family: var(--font-num); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.pf .pn { margin: 0; font-size: 12px; color: var(--muted); }
.live .lg4 { grid-template-columns: 1fr 1fr; }
.live .cl b.pd.up { color: var(--up); } .live .cl b.pd.down { color: var(--down); }

/* open vs closed sections */
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.sh h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.sh .cnt { font-size: 13px; color: var(--muted); }
.sh.closedh { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

/* daily market update */
.dcard { background: radial-gradient(520px 200px at 100% 0%, rgba(47,123,255,.16), transparent 70%), var(--glass); border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ddate { font-size: 13px; color: var(--muted); }
.dmood { font: 600 13px/1 var(--font-body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.dmood.up { color: var(--up); border-color: rgba(52,224,161,.5); } .dmood.down { color: var(--down); border-color: rgba(255,107,154,.5); } .dmood.mid { color: var(--accent-2); border-color: rgba(47,123,255,.5); }
.dtitle { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 5vw, 34px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.dsum { margin: 0; font-size: 17px; color: var(--text); max-width: 62ch; }
.dbody { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 4px; }
@media (min-width: 900px) { .dbody { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
.dp { background: var(--i1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.dp h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.dp p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); opacity: .88; max-width: 66ch; }
.dsrc { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.dsrc a { color: var(--accent-2); }
.dnote { margin: 0; font-size: 12px; color: var(--muted); }
.dolder { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dolder h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.dold { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dold summary { cursor: pointer; font-size: 14px; }

/* ---- VIP colour pass: plum-black base, gold + violet + pink accents ---- */
.brand span, h1 em { background: linear-gradient(90deg, var(--accent), var(--pink) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--violet), var(--pink), var(--accent)) 1; }
.ctas a { border-color: var(--accent); color: var(--accent); }
.ctas a#joinBtn { background: linear-gradient(90deg, var(--accent), var(--accent-g)); color: var(--on-accent); border-color: transparent; box-shadow: 0 4px 16px rgba(47,123,255,.25); }
.ctas a#waBtn { border-color: var(--teal); color: var(--teal); }
.top nav a.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-g)); border-color: transparent; box-shadow: 0 6px 20px rgba(47,123,255,.22); }
.btn { border-color: var(--violet); color: var(--text); }
.btn:hover { background: rgba(47,123,255,.15); }
.head h2 { position: relative; padding-left: 14px; }
.head h2::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent), var(--pink), var(--violet)); }
.tag { color: var(--muted); }
.qc { background: var(--glass); border: 1px solid var(--line-2); cursor: pointer; transition: transform .15s, border-color .15s; }
.qc:hover, .qc:focus-visible { transform: translateY(-2px); border-color: var(--accent); outline: none; }
.box { border-color: var(--line-2); }

/* category pills: working links */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chips a {
  font: 600 14px/1 var(--font-body); text-decoration: none; padding: 11px 16px; border-radius: 999px;
  color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); transition: transform .15s, background .15s;
}
.chips a:hover, .chips a:focus-visible { background: color-mix(in srgb, var(--c) 28%, transparent); transform: translateY(-2px); outline: none; }
.chips a:active { transform: scale(.97); }
.chips a.c1 { --c: #ffc857; } .chips a.c2 { --c: #3ed6e0; } .chips a.c3 { --c: #ff9f43; } .chips a.c4 { --c: #a77bff; } .chips a.c5 { --c: #ff7ab8; }
.chips span + span::before { content: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chips a, .qc { transition: none; } }

/* coin icons */
.ico { display: inline-flex; flex: none; border-radius: 50%; overflow: hidden; background: #fff1; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.35); vertical-align: middle; }
.ico img, .ico svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.ico-b { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font: 800 11px/1 var(--font-display); }
.qc .qn { align-items: center; }
.qc .qn .ico { margin-right: 2px; }
.pair { display: flex; align-items: center; gap: 10px; }
.btcl { display: inline-flex; align-items: center; gap: 8px; }

/* key events */
.evbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.evbar .sub { margin: 0; font-size: 13px; color: var(--muted); flex: 1 1 260px; }
.evbar .seg button { font: 600 14px/1 var(--font-body); padding: 10px 14px; }
.evlist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ev { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px 16px; align-items: start; background: var(--glass); border: 1px solid var(--line-2); border-left: 4px solid var(--violet); border-radius: 14px; padding: 14px 16px; }
.ev.high { border-left-color: var(--pink); }
.ev.past { opacity: .5; }
.evw b { display: block; font: 800 20px/1.1 var(--font-display); color: var(--text); }
.evw span { display: block; margin-top: 4px; font: 500 13px/1.3 var(--font-body); color: var(--muted); }
.evt { display: flex; align-items: center; gap: 8px; }
.evf { font-size: 20px; }
.evn { font: 700 17px/1.25 var(--font-body); color: var(--text); }
.eva { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.evx { margin: 8px 0 0; font: 600 13px/1.4 var(--font-body); color: var(--accent); background: rgba(47,123,255,.1); border-radius: 8px; padding: 6px 10px; display: inline-block; }
.evr { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.evi { font: 700 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.evi.high { color: var(--pink); background: rgba(90,160,255,.14); border: 1px solid rgba(90,160,255,.5); }
.evi.med { color: var(--violet); background: rgba(47,123,255,.14); border: 1px solid rgba(47,123,255,.5); }
.evs { font: 600 13px/1.2 var(--font-body); color: var(--muted); white-space: nowrap; }
.evs.next { color: var(--on-accent); background: var(--accent); padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.fullcal { margin-top: 6px; }
.fullcal summary { cursor: pointer; font: 600 15px/1 var(--font-body); color: var(--accent); padding: 12px 2px; list-style: none; }
.fullcal summary::-webkit-details-marker { display: none; }
.fullcal summary::before { content: "\25B8"; display: inline-block; margin-right: 8px; transition: transform .15s; }
.fullcal[open] summary::before { transform: rotate(90deg); }
@media (max-width: 640px) {
  .ev { grid-template-columns: 1fr auto; }
  .evw { grid-column: 1; display: flex; gap: 10px; align-items: baseline; }
  .evw span { margin: 0; }
  .evr { grid-column: 2; grid-row: 1; }
  .evm { grid-column: 1 / -1; }
}

/* language pill, news, bitcoin card header */
.langbtn { font: 600 13px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; cursor: pointer; color: var(--teal); background: rgba(62,214,224,.1); border: 1px solid rgba(62,214,224,.5); white-space: nowrap; }
.langbtn:hover, .langbtn:focus-visible { background: rgba(62,214,224,.22); outline: none; }
.dtop { align-items: center; }
.bhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bhead h4 { margin: 0; display: flex; align-items: center; gap: 8px; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-bottom: 18px; }
.nbar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nbar .sub { margin: 0; color: var(--muted); font-size: 14px; }
.story { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; transition: transform .15s, border-color .15s; }
.story:hover, .story:focus-visible { transform: translateY(-2px); border-color: var(--accent); outline: none; }
.story .sm { display: flex; gap: 10px; align-items: baseline; font: 500 13px/1 var(--font-body); color: var(--muted); }
.story .sm b { color: var(--pink); font-weight: 700; }
.story h4 { margin: 0; font: 700 17px/1.3 var(--font-body); }
.story p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.story .go { margin-top: auto; font: 600 14px/1 var(--font-body); color: var(--accent); }
#newstabs { flex-wrap: wrap; }

/* global market stats */
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.ms { background: var(--glass); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ms .ml { font: 500 13px/1.2 var(--font-body); color: var(--muted); }
.ms .mv { font: 800 22px/1.1 var(--font-num); color: var(--text); }
.ms .mc { font: 600 13px/1.2 var(--font-body); color: var(--muted); }
.ms .mc.up { color: var(--up); } .ms .mc.down { color: var(--down); }
#signout { color: var(--pink); }

/* page-style navigation */
[hidden]{display:none!important}
.hgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:760px){.hgrid{grid-template-columns:repeat(5,1fr)}}
.hgrid a{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:14px;background:var(--panel);border:1px solid var(--line);text-decoration:none;color:var(--text);transition:transform .15s,border-color .15s}
.hgrid a:hover{transform:translateY(-2px);border-color:var(--accent)}
.hgrid a:nth-child(5n+1){border-top:3px solid var(--accent)}.hgrid a:nth-child(5n+2){border-top:3px solid var(--violet)}.hgrid a:nth-child(5n+3){border-top:3px solid var(--pink)}.hgrid a:nth-child(5n+4){border-top:3px solid var(--teal)}.hgrid a:nth-child(5n){border-top:3px solid var(--up)}
.hgrid b{font-size:15px}.hgrid span{font-size:12.5px;color:var(--muted,#a99fc7);line-height:1.35}
main.wrap>section{padding-top:22px;min-height:60vh}

/* upcoming-events ticker */
.evticker{display:flex;align-items:stretch;background:linear-gradient(90deg,#2a1640,#1a1030);border-bottom:1px solid var(--line);cursor:pointer}
.evticker.hot{background:linear-gradient(90deg,#4a1330,#2a1030);border-bottom-color:var(--down)}
.evt-lab{flex:none;display:flex;align-items:center;gap:7px;padding:0 12px;background:var(--pink);color:#1b0a1a;font:700 13px/1 var(--font-body)}
.evt-lab .dot{width:8px;height:8px;border-radius:50%;background:#1b0a1a;animation:evp 1.4s infinite}
@keyframes evp{50%{opacity:.25}}
.evt-view{overflow:hidden;flex:1;min-width:0;padding:9px 0}
.evt-trk{display:flex;width:max-content;animation:evs var(--dur,60s) linear infinite}
.evticker:hover .evt-trk{animation-play-state:paused}
.evt-run{display:flex;align-items:center;white-space:nowrap;font-size:13px;color:var(--text)}
@keyframes evs{to{transform:translateX(-50%)}}
.evt-i{padding:0 14px}
.evt-t{display:inline-block;padding:2px 7px;border-radius:6px;background:var(--accent);color:#1b1200;font-size:11px;margin-right:6px}
.evt-i.hot .evt-t{background:var(--down);color:#fff}
.evt-w{color:var(--teal);margin-left:4px}
.evt-a{color:var(--muted,#b6acd3);margin-left:6px}
.evt-sep{color:var(--violet);font-style:normal;font-size:10px}
@media(prefers-reduced-motion:reduce){.evt-trk{animation:none;overflow-x:auto}}

.evres{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 6px}
.evq{background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:9px 10px;min-width:0}
.evq small{display:block;color:var(--muted);font-size:12px}
.evq b{font-size:14px;word-break:break-word}
.evq.a{border-color:var(--teal)}.evq.a b{color:var(--teal);font-size:17px}
.evv{font-weight:700;margin:4px 0 !important}.evv.better{color:var(--up)}.evv.worse{color:var(--down)}
.evimp{margin-top:10px;padding:11px 12px;border-radius:12px;background:rgba(47,123,255,.10);border:1px solid var(--line-2)}
.evimp b{display:block;margin-bottom:4px;color:var(--violet)}.evimp p{margin:0;line-height:1.55}
.ev.past.hasres,.ev.past.hasres *{opacity:1!important;filter:none!important}
.evimp p{font-size:14px}
