:root {
  --bg: #0b0b0d;
  --panel: #141418;
  --panel-2: #1b1b21;
  --line: #2a2a32;
  --text: #ecebe6;
  --muted: #9a9aa3;
  --gold: #d4af5a;
  --gold-2: #f1d89a;
  --silver: #c3c7cf;
  --up: #57c08a;
  --down: #e06c6c;
  --watch: #e0a94f;
  --radius: 14px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 16px; line-height: 1.45; }
a { color: var(--gold); }
button, input, textarea, select { font: inherit; color: inherit; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; background: rgba(11,11,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.mark { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.mark.mono { display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .5px; color: #111;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #9c7a2e); }
.word { font-size: 20px; letter-spacing: .3px; }
.word { font-family: Georgia, "Times New Roman", serif; letter-spacing: 1.5px; text-transform: uppercase; font-size: 18px; }
.word b { color: var(--silver); font-weight: 400; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 24px; }
h1 { font-size: 24px; margin: 6px 0 4px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 26px 0 10px; font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 10px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.tile .v { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .n { color: var(--muted); font-size: 12px; margin-top: 2px; }
.up { color: var(--up); } .down { color: var(--down); }

.note { display: flex; gap: 12px; align-items: flex-start; }
.note .dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--silver); }
.note.watch .dot { background: var(--watch); }
.note.good .dot { background: var(--up); }
.note h3 { margin: 0 0 2px; font-size: 16px; }
.note p { margin: 0; color: var(--muted); }

.rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }
a.row:active { background: var(--panel-2); }
.row .main { flex: 1; min-width: 0; }
.row .t { font-weight: 600; }
.row .d { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  background: var(--panel-2); color: var(--silver); border: 1px solid var(--line); min-width: 44px; text-align: center; }
.badge.buy { color: var(--gold); border-color: #4a3d1e; }
.badge.sell { color: var(--up); border-color: #1f4433; }
.jdot { width: 9px; height: 9px; border-radius: 50%; background: var(--watch); flex: 0 0 9px; }
.jdot.done { background: var(--up); }
.day { color: var(--muted); font-size: 13px; padding: 14px 4px 6px; }

.bar { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.filters { display: flex; gap: 8px; margin: 4px 0 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 7px 13px; cursor: pointer; color: var(--silver); }
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); background: #1d1810; }

label { display: block; font-weight: 600; margin: 18px 0 6px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 88px; resize: vertical; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px;
  font-weight: 700; cursor: pointer; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #a8842f); color: #141008; }
.btn.block { width: 100%; margin-top: 22px; }
.btn.ghost { background: var(--panel-2); color: var(--silver); border: 1px solid var(--line); }
.btn[disabled] { opacity: .6; cursor: default; }

.msg { margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.msg.err { border-color: #5a2a2a; color: #f2b3b3; }
.msg.ok { border-color: #1f4433; color: #a9e4c5; }

.auth { max-width: 420px; margin: 6vh auto 0; }
.tagline { color: var(--gold-2); font-size: 15px; letter-spacing: .3px; margin: 0 0 22px; }
.switch { margin-top: 16px; color: var(--muted); text-align: center; }

.drop { display: block; border: 1.5px dashed #4a4a55; border-radius: var(--radius); padding: 26px 16px; text-align: center; cursor: pointer;
  color: var(--muted); background: var(--panel); }
.drop strong { display: block; color: var(--text); margin-bottom: 4px; }
.drop input { display: none; }
ol.steps { padding-left: 20px; color: var(--muted); margin: 8px 0 0; }
ol.steps li { margin: 4px 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.back { display: inline-block; margin-bottom: 6px; text-decoration: none; color: var(--muted); }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around;
  background: rgba(14,14,17,.96); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
.tabs a { flex: 1; text-align: center; color: var(--muted); text-decoration: none; padding: 9px 4px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.tabs a.on { color: var(--gold-2); background: #1d1810; }
.saved { color: var(--up); margin-left: 10px; font-weight: 600; }
[hidden] { display: none !important; }
.hero-logo { display: block; width: 100%; max-width: 360px; margin: 0 auto 6px; border-radius: 12px; }
