/* SocialPerps identity. Every page loads this first.
   Warm black, hairlines, one signal colour (orange) used sparingly, white for the primary action,
   green / red only for long / short and PnL. Geist for text and display (mid weight, tight at large
   sizes, lowercase), Geist Mono for numbers, labels and tags. Square-ish corners, solid surfaces,
   no gradients, no glows, no blur. */
/* Geist is linked from each page's head (a stylesheet import would wait for this file to parse first). */

:root {
  --bg: #0b0b0a; --bg2: #0f0f0e; --panel: #131312; --panel2: #191917; --hover: #1f1f1c;
  --line: #1e1e1b; --line2: #2a2a26; --line3: #3b3b35;
  --fg: #f3f2ed; --fg2: #c9c7bf; --mute: #86847c; --faint: #78766e;
  --up: #3ddc84; --dn: #ff4d5e; --upbg: rgba(61,220,132,.10); --dnbg: rgba(255,77,94,.10);
  --acc: #ff5a1f; --acc2: #ff7a47; --accbg: rgba(255,90,31,.12);
  --gold: #f2c94c; --blue: #7fb2ff;
  --paper: #f3f2ed; --ink: #14140f; --ink2: #4d4c46; --paperline: #dad8cf;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: Geist, "Helvetica Neue", Arial, sans-serif;
  --r: 4px; --r2: 3px;
  color-scheme: dark;
}
::selection { background: var(--fg); color: var(--bg); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line3); }

/* type */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.display { font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.up { color: var(--up); } .dn { color: var(--dn); } .mute { color: var(--mute); } .faint { color: var(--faint); } .acc { color: var(--acc); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; color: var(--fg); white-space: nowrap; }
.brand i { width: 9px; height: 9px; background: var(--acc); display: inline-block; flex: none; }
.brand span { color: var(--mute); font-weight: 400; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line3); background: transparent; color: var(--fg); font-weight: 500; font-size: 13px; white-space: nowrap; transition: background .12s, border-color .12s, color .12s, transform .06s; }
.btn:hover { background: var(--panel2); border-color: var(--fg2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary, .btn.gold { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary:hover, .btn.gold:hover { background: #fff; border-color: #fff; }
.btn.acc { background: var(--accbg); border-color: rgba(255,90,31,.45); color: var(--acc); }
.btn.acc:hover { background: var(--acc); color: var(--bg); border-color: var(--acc); }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { border-color: var(--line3); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn.long { color: var(--up); border-color: rgba(61,220,132,.5); } .btn.long:hover { background: var(--up); color: #06110b; border-color: var(--up); }
.btn.short { color: var(--dn); border-color: rgba(255,77,94,.5); } .btn.short:hover { background: var(--dn); color: #1a0509; border-color: var(--dn); }

/* tags and pills */
.pill, .tag { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: var(--r2); font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg2); background: transparent; border: 1px solid var(--line2); white-space: nowrap; }
.pill.fomo { color: var(--acc); border-color: rgba(255,90,31,.4); }
.pill.pump { color: #8fe3b2; border-color: rgba(143,227,178,.35); }
.pill.ok { color: var(--up); border-color: rgba(61,220,132,.35); }
.pill.warn { color: var(--gold); border-color: rgba(242,201,76,.35); }
.pill.bad { color: var(--dn); border-color: rgba(255,77,94,.4); }
.pill.gold { color: var(--bg); background: var(--acc); border-color: var(--acc); font-weight: 600; }
.pill.solid { background: var(--panel2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.dot.live { color: var(--up); box-shadow: 0 0 0 3px rgba(61,220,132,.15); }
kbd { font: 11px var(--mono); color: var(--mute); border: 1px solid var(--line2); border-radius: 3px; padding: 1px 5px; background: var(--bg2); }

/* inputs */
input, select, textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r2); padding: 8px 10px; outline: none; color: var(--fg); }
input::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--fg2); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2386847c' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }

/* segmented control */
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r); padding: 2px; gap: 2px; }
.seg button { height: 24px; padding: 0 10px; border-radius: 3px; color: var(--mute); font-weight: 500; font-size: 12px; transition: background .12s, color .12s; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--fg); color: var(--bg); }

/* avatars */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); object-fit: cover; flex: none; display: inline-block; }
.avatar.sm { width: 24px; height: 24px; }
.avatar.lg { width: 44px; height: 44px; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.t th { position: sticky; top: 0; background: var(--bg); text-align: right; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.t tr:hover td { background: rgba(255,255,255,.02); }
table.t .tok { display: flex; align-items: center; gap: 9px; }
table.t .tok img, table.t .tok .ph { width: 22px; height: 22px; border-radius: 50%; background: var(--panel2); flex: none; }
table.t .tok b { font-weight: 500; }
table.t .tok small { color: var(--faint); margin-left: 6px; font-family: var(--mono); font-size: 10.5px; }
table.t .side { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .06em; }
table.t a.tx { color: var(--acc); font-family: var(--mono); }
table.t a.tx:hover { text-decoration: underline; }
.bar { display: inline-block; height: 3px; border-radius: 2px; background: var(--fg2); opacity: .7; vertical-align: middle; margin-right: 8px; }

/* states */
.empty { padding: 28px 16px; text-align: center; color: var(--faint); font-size: 12.5px; }
.skel { position: relative; overflow: hidden; background: var(--panel2); border-radius: var(--r2); color: transparent !important; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: sh 1.4s infinite; }
@keyframes sh { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes flashUp { from { color: var(--up); } }
@keyframes flashDn { from { color: var(--dn); } }
.flash-up { animation: flashUp 1.1s ease-out; } .flash-dn { animation: flashDn 1.1s ease-out; }

/* valuation breakdown bar, shared by the landing page, the terminal and the method page */
.bkd { display: flex; height: 8px; overflow: hidden; background: var(--panel2); gap: 2px; border-radius: 2px; }
.bkd span { display: block; height: 100%; }
.bkd .liquid { background: var(--up); } .bkd .overtime { background: var(--blue); } .bkd .thin { background: var(--gold); } .bkd .nothing { background: var(--dn); } .bkd .pending { background: var(--line3); }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; vertical-align: middle; border-radius: 1px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--r2); font: 400 11px var(--mono); border: 1px solid var(--line2); margin: 2px 4px 2px 0; color: var(--fg2); }
.chip.depth { border-color: rgba(255,90,31,.45); } .chip.flow { border-color: rgba(127,178,255,.45); }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.toast { background: var(--panel); border: 1px solid var(--line3); border-radius: var(--r); padding: 10px 14px; font-size: 12.5px; box-shadow: 0 16px 40px rgba(0,0,0,.5); max-width: 380px; animation: tin .18s ease-out; display: flex; gap: 10px; align-items: center; }
.toast.ok { border-color: var(--up); } .toast.bad { border-color: var(--dn); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* focus */
:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }

