@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { --bg:#0b1017; --panel:#111a24; --panel-2:#172330; --line:#263644; --text:#f3f6f4; --muted:#8b9ba5; --cyan:#57e2c2; --gold:#ffd166; --red:#ff7180; --blue:#9da8ff; --shadow:0 20px 55px rgba(0,0,0,.24); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:var(--bg); color:var(--text); font-family:'Space Grotesk',system-ui,sans-serif; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; background:linear-gradient(120deg,rgba(87,226,194,.035),transparent 36%), repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0 1px,transparent 1px 90px); mask-image:linear-gradient(to bottom,black,transparent 82%); }
button,input,select { font:inherit; }
button { cursor:pointer; }
.app-shell { width:min(1320px,calc(100% - 48px)); margin:0 auto; position:relative; z-index:1; }
.topbar { min-height:82px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:11px; color:var(--text); text-decoration:none; letter-spacing:.01em; }
.brand strong { color:var(--cyan); font-weight:600; }
.brand-mark { width:34px; height:34px; border:1px solid var(--cyan); color:var(--cyan); display:grid; place-items:center; font:500 11px 'DM Mono',monospace; letter-spacing:-.08em; }
.brand-mark.large { width:48px; height:48px; font-size:14px; margin-bottom:26px; }
.topbar-actions { display:flex; align-items:center; gap:20px; }
.update-stamp,.muted { color:var(--muted); font-size:13px; }
.button { border:1px solid transparent; min-height:42px; padding:0 16px; display:inline-flex; align-items:center; justify-content:center; gap:8px; color:var(--text); background:transparent; transition:background .2s,border-color .2s,color .2s,transform .2s; }
.button:focus-visible,.icon-button:focus-visible,.text-button:focus-visible,.card-menu:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
.button:hover { transform:translateY(-1px); }
.button-quiet { color:var(--muted); padding-inline:8px; }
.button-quiet:hover { color:var(--text); }
.button-primary { background:var(--cyan); color:#07120f; font-weight:700; }
.button-primary:hover { background:#76f0d4; }
.button.full { width:100%; margin-top:10px; }
main { padding:62px 0 80px; }
.intro-row { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; padding-bottom:48px; }
.eyebrow { margin:0 0 13px; color:var(--cyan); font:500 11px 'DM Mono',monospace; letter-spacing:.15em; }
h1,h2,p { margin-top:0; }
h1 { max-width:780px; margin-bottom:16px; font-size:clamp(38px,6vw,78px); line-height:.98; letter-spacing:-.045em; font-weight:600; }
h1 span { color:var(--gold); }
.lede { max-width:560px; margin-bottom:0; color:var(--muted); font-size:16px; line-height:1.65; }
.status-chip { display:flex; align-items:center; gap:9px; padding:9px 12px; border:1px solid var(--line); color:var(--muted); font:500 12px 'DM Mono',monospace; white-space:nowrap; }
.status-chip i { width:7px; height:7px; border-radius:50%; background:var(--gold); box-shadow:0 0 0 4px rgba(255,209,102,.1); }
.status-chip.ready i { background:var(--cyan); box-shadow:0 0 0 4px rgba(87,226,194,.1); }
.status-chip.error i { background:var(--red); box-shadow:0 0 0 4px rgba(255,113,128,.1); }
.summary-strip { display:grid; grid-template-columns:repeat(4,1fr); border-block:1px solid var(--line); margin-bottom:70px; }
.summary-strip div { padding:17px 0; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:7px; }
.summary-strip div:not(:first-child) { padding-left:22px; }
.summary-strip div:last-child { border-right:0; }
.summary-strip span { color:var(--muted); font-size:12px; }
.summary-strip strong { font-size:18px; font-weight:500; }
.section-heading { display:flex; align-items:end; justify-content:space-between; margin-bottom:22px; }
.section-heading.compact { margin-bottom:16px; }
h2 { margin:0; font-size:26px; letter-spacing:-.03em; }
.market-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.market-card { min-height:286px; background:var(--panel); border:1px solid var(--line); padding:22px; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:border-color .2s,transform .2s; }
.market-card:hover { border-color:#3f5969; transform:translateY(-2px); }
.card-top,.card-bottom,.price-line { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.asset-identity { display:flex; align-items:center; gap:11px; }
.coin-badge { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--panel-2); color:var(--cyan); font:500 13px 'DM Mono',monospace; }
.asset-identity strong,.asset-identity span { display:block; }
.asset-identity strong { font-size:16px; }
.asset-identity span { margin-top:4px; color:var(--muted); font-size:12px; }
.card-menu { border:0; background:none; color:#657985; padding:6px 0; font-size:12px; }
.card-menu:hover { color:var(--red); }
.price-line { align-items:baseline; margin-top:29px; }
.asset-price { font:500 clamp(25px,3vw,34px) 'DM Mono',monospace; letter-spacing:-.06em; }
.change-pill { font:500 12px 'DM Mono',monospace; color:var(--cyan); }
.change-pill.negative { color:var(--red); }
.spark-wrap { flex:1; min-height:80px; margin:16px -4px 10px; }
.sparkline { width:100%; height:80px; overflow:visible; }
.sparkline polyline { fill:none; stroke:var(--cyan); stroke-width:2; vector-effect:non-scaling-stroke; }
.sparkline polyline.negative { stroke:var(--red); }
.card-bottom { padding-top:15px; border-top:1px solid var(--line); }
.market-meta { color:#718590; font:11px 'DM Mono',monospace; }
.text-button { border:0; background:none; color:var(--gold); padding:8px 0; font-size:12px; }
.text-button:hover { color:#fff0b7; }
.alerts-section { margin-top:75px; }
.alerts-list { border-top:1px solid var(--line); }
.alert-row { min-height:63px; display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr auto; gap:14px; align-items:center; border-bottom:1px solid var(--line); font-size:13px; }
.alert-asset { display:flex; align-items:center; gap:10px; }
.alert-asset b { font-weight:600; }.alert-asset span { color:var(--muted); }
.alert-condition { font-family:'DM Mono',monospace; }.alert-condition.above { color:var(--cyan); }.alert-condition.below { color:var(--red); }
.alert-state { color:var(--muted); font-size:12px; }.alert-state.active { color:var(--gold); }
.alert-actions { display:flex; gap:8px; justify-content:flex-end; }.alert-actions button { border:0; background:none; color:#718590; font-size:12px; padding:8px 0 8px 10px; }.alert-actions button:hover { color:var(--red); }
.empty { border:1px dashed var(--line); padding:32px; text-align:center; color:var(--muted); font-size:13px; }
.overlay { position:fixed; inset:0; background:rgba(6,10,14,.8); z-index:5; display:grid; place-items:center; padding:20px; }.hidden { display:none !important; }
.login-card,.dialog { width:min(420px,100%); background:var(--panel); border:1px solid var(--line); box-shadow:0 30px 90px rgba(0,0,0,.5); padding:32px; }
.login-card h1 { font-size:40px; margin-bottom:12px; }.login-card .muted { line-height:1.6; margin-bottom:27px; }
label { display:block; margin:18px 0 8px; color:#b9c6ca; font-size:12px; }
input,select { width:100%; height:46px; border:1px solid var(--line); background:#0d151e; color:var(--text); padding:0 12px; border-radius:0; outline:none; }
input:focus,select:focus { border-color:var(--cyan); box-shadow:0 0 0 2px rgba(87,226,194,.12); }
.form-error { min-height:18px; margin:10px 0 0; color:var(--red); font-size:12px; }
.dialog { border-radius:0; color:var(--text); }.dialog::backdrop { background:rgba(6,10,14,.8); }.dialog-head { display:flex; align-items:flex-start; justify-content:space-between; }.dialog h2 { margin-bottom:20px; }
.dialog .muted { line-height:1.55; }.icon-button { border:0; background:none; color:var(--muted); font-size:25px; line-height:1; padding:0 0 10px 10px; }.icon-button:hover { color:var(--text); }.field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }code { color:var(--gold); font-family:'DM Mono',monospace; }
@media (max-width: 900px) { .market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.intro-row { align-items:flex-start; flex-direction:column; }.status-chip { align-self:flex-start; }.alert-row { grid-template-columns:1.3fr 1fr 1fr auto; }.alert-state { display:none; } }
@media (max-width: 620px) { .app-shell { width:min(100% - 28px,1320px); }.topbar { min-height:68px; }.topbar-actions { gap:8px; }.update-stamp { display:none; }.button-quiet { padding-inline:6px; }.intro-row { padding:42px 0 34px; }.summary-strip { grid-template-columns:repeat(2,1fr); margin-bottom:48px; }.summary-strip div:nth-child(2) { border-right:0; }.summary-strip div:nth-child(3),.summary-strip div:nth-child(4) { border-top:1px solid var(--line); }.summary-strip div:not(:first-child) { padding-left:14px; }.market-grid { grid-template-columns:1fr; }.market-card { min-height:270px; }.section-heading { align-items:flex-start; gap:16px; flex-direction:column; }.section-heading .button { align-self:stretch; }.alert-row { grid-template-columns:1fr auto; gap:4px 12px; padding:13px 0; }.alert-condition { grid-column:1; }.alert-actions { grid-column:2; grid-row:1 / span 2; }.alert-state { display:block; grid-column:1; }.field-row { grid-template-columns:1fr; gap:0; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }
