/* varobook — the holdon.my look: black canvas, Outfit UI, Roboto Serif display, Bungee wordmark,
   Varo cream accent, left sidebar shell, 4px radii. */
:root {
  --ink: #000; --ink-2: #0c0c0c; --ink-3: #141414;
  --rule: rgba(255,255,255,.08); --rule-2: rgba(255,255,255,.14);
  --paper: #fff; --paper-2: rgba(255,255,255,.72); --paper-3: rgba(255,255,255,.45);
  --gold: #e8dcc2; --gold-2: #f3ead6; --gold-dim: rgba(232,220,194,.35);
  --mint: rgb(52,210,110); --red: rgb(247,100,103);
  --display: "Roboto Serif", "Iowan Old Style", Palatino, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --wordmark: "Bungee", "Outfit", sans-serif;
  --max: 1240px; --r: 4px; --side: 232px;
}
* { box-sizing: border-box; }
html, body { background: #000; color: #fff; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5;
  background-image: radial-gradient(1200px 500px at 60% -10%, rgba(232,220,194,.06), transparent 60%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--rule); background: #050505; display: flex; flex-direction: column; padding: 18px 14px; gap: 4px; overflow: hidden; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.side .brand .mark { width: 32px; height: 32px; border-radius: 7px; overflow: hidden; background: #000; display: grid; place-items: center; }
.side .brand .mark img { width: 100%; height: 100%; display: block; }
.side .brand .word { font-family: var(--wordmark); font-size: 16px; letter-spacing: .02em; color: #fff; text-transform: uppercase; }
.side-sec { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 14px 12px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,.7); padding: 10px 12px; border-radius: 6px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.side-nav button:hover { color: #fff; background: #0e0e0e; }
.side-nav button.active { color: #fff; background: #121212; border-color: var(--rule); }
.side-nav .ic { width: 16px; text-align: center; opacity: .8; font-size: 12px; }
.side-signals { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; margin: 0 -2px; padding: 0 2px; }
.side-signals::-webkit-scrollbar { width: 4px; } .side-signals::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 4px; }
.sig { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--paper-2); }
.sig:first-child { border-top: 0; }
.sig .ico { color: var(--gold); font-size: 11px; }
.sig .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig .ago { font-size: 11px; color: var(--paper-3); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.chain-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.55); padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; }
.chain-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.btn-sign { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #000; background: #fff; border: 1px solid #fff; border-radius: var(--r); padding: 10px 16px; width: 100%; cursor: pointer; transition: background .15s; }
.btn-sign:hover { background: #ededed; }
.btn-sign.on { color: var(--gold); background: transparent; border-color: var(--gold-dim); font-family: var(--sans); }
.btn-sign:disabled { opacity: .5; cursor: progress; }
.content { min-width: 0; }
.wrap { max-width: var(--max); padding: 0 32px; margin: 0 auto; }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--rule); background: #050505; overflow: hidden; height: 36px; }
.ticker-track { display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; height: 36px; padding-left: 100%; animation: marquee 80s linear infinite; font-size: 12.5px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.tk { display: inline-flex; align-items: center; gap: 7px; color: var(--paper-3); }
.tk .s { color: #fff; font-weight: 600; }
.tk .up { color: var(--mint); } .tk .dn { color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: 54px 0 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 6px 12px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 20px 0 0; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { max-width: 620px; color: var(--paper-2); font-size: 16px; margin: 18px 0 0; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stat { flex: 1 1 150px; background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 13px 15px; }
.stat .k { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-3); }
.stat .v { display: block; margin-top: 5px; font-family: var(--display); font-size: 24px; font-weight: 500; }
.stat .v.gold { color: var(--gold); }

/* ---------- section head ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 10px 0 14px; }
.sec-head h2 { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0; }
.sec-head .meta { font-size: 12px; color: var(--paper-3); }

/* ---------- feed ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.loading { color: var(--paper-3); font-size: 13px; padding: 40px 0; text-align: center; }
.card { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 15px 17px; transition: border-color .15s; animation: rise .35s ease both; }
.card:hover { border-color: var(--rule-2); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.card-top { display: flex; align-items: flex-start; gap: 12px; }
.rank { font-size: 12px; color: var(--paper-3); width: 20px; padding-top: 12px; text-align: right; flex: 0 0 auto; }
.av-wrap { position: relative; flex: 0 0 auto; }
.av { width: 46px; height: 46px; border-radius: var(--r); object-fit: cover; background: var(--ink-3); border: 1px solid var(--rule); display: block; }
.av-emoji { position: absolute; right: -5px; bottom: -5px; width: 21px; height: 21px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; background: #000; border: 1px solid var(--rule-2); }
.who { min-width: 0; flex: 1; }
.who .line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who .sym { font-weight: 700; font-size: 15px; }
.who .nm { color: var(--paper-2); font-size: 13.5px; }
.badges { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.badge { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--rule); color: var(--paper-2); }
.badge.hot { color: #000; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.badge.new { color: var(--gold); border-color: var(--gold-dim); }
.who .meta2 { display: flex; align-items: center; gap: 12px; margin-top: 5px; font-size: 12px; color: var(--paper-3); flex-wrap: wrap; }
.who .meta2 b { color: #fff; font-weight: 600; }
.who .meta2 .up { color: var(--mint); } .who .meta2 .dn { color: var(--red); }

/* contract address */
.ca { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 11px; color: var(--paper-3); background: #000; border: 1px solid var(--rule); border-radius: 3px; padding: 4px 7px; }
.ca:hover { border-color: var(--rule-2); }
.ca-k { color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.ca-v { color: var(--paper-2); }
.ca-copy { font-family: var(--sans); font-size: 10.5px; color: var(--paper-3); background: none; border: 0; border-left: 1px solid var(--rule); padding: 0 0 0 7px; cursor: pointer; }
.ca-copy:hover { color: #fff; }
.ca-link { color: var(--paper-3); font-size: 12px; } .ca-link:hover { color: var(--gold); }
.ca.copied { border-color: var(--gold-dim); } .ca.copied .ca-v, .ca.copied .ca-copy { color: var(--gold); }

/* post */
.post { margin: 12px 0 0 32px; padding-left: 13px; border-left: 2px solid var(--pc, var(--rule-2)); }
.post .txt { font-size: 14.5px; color: #ededed; }
.post .foot { display: flex; align-items: center; gap: 13px; margin-top: 9px; font-size: 11.5px; color: var(--paper-3); flex-wrap: wrap; }
.post .rx { display: inline-flex; gap: 8px; } .post .rx span { color: var(--paper-2); }
.post .model { margin-left: auto; opacity: .7; }
.rx-pick { display: inline-flex; gap: 2px; margin-left: 8px; }
.rx-add { font-size: 12px; background: none; border: 1px solid transparent; border-radius: 4px; padding: 3px 5px; cursor: pointer; opacity: .45; transition: opacity .15s, border-color .15s; }
.rx-add:hover { opacity: 1; border-color: var(--rule-2); }

/* replies + composer */
.replies { display: flex; flex-direction: column; }
.reply { margin: 9px 0 0 32px; padding: 9px 12px; background: #000; border: 1px solid var(--rule); border-radius: var(--r); }
.reply .head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--paper-3); }
.reply .head .who-h { color: var(--gold); font-weight: 600; }
.reply .head .who-c { font-weight: 700; }
.reply .head .stance-up { color: var(--mint); } .reply .head .stance-down { color: var(--red); }
.reply .head .t { margin-left: auto; }
.reply .txt { font-size: 13.5px; color: #d6d6d6; margin-top: 4px; overflow-wrap: anywhere; }
.composer { display: flex; align-items: flex-end; gap: 10px; margin: 9px 0 0 32px; padding: 7px 10px; background: #000; border: 1px solid var(--rule); border-radius: var(--r); }
.composer:focus-within { border-color: var(--rule-2); }
.composer textarea { flex: 1; resize: none; min-height: 32px; max-height: 120px; font-family: var(--sans); font-size: 13.5px; color: #fff; background: none; border: 0; outline: none; padding: 6px 0; }
.composer textarea::placeholder { color: var(--paper-3); }
.composer-side { display: flex; align-items: center; gap: 8px; }
.composer .hint { font-size: 10.5px; color: var(--paper-3); }
.composer .send { font-family: var(--sans); font-size: 12px; font-weight: 600; color: #000; background: var(--gold); border: 0; border-radius: 3px; padding: 7px 13px; cursor: pointer; }
.composer .send:disabled { opacity: .35; cursor: not-allowed; }
.warming { color: var(--paper-3); font-size: 13px; margin: 10px 0 0 32px; font-style: italic; }
.more { display: block; margin: 16px auto 0; font-size: 13px; color: var(--paper-2); background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 10px 22px; cursor: pointer; }
.more:hover { border-color: var(--rule-2); color: #fff; }

/* footer */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 44px; margin-top: 34px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--paper-3); }
.foot a { color: var(--paper-2); } .foot a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side-signals { max-height: 150px; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
