:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: #11151d;
  --panel-2: #171c26;
  --line: #242b38;
  --text: #f4f7fb;
  --muted: #8f9bad;
  --green: #3ddc97;
  --red: #ff6b7d;
  --amber: #f8c45c;
  --blue: #65a9ff;
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #172033 0, var(--bg) 34%); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(9,11,16,.84); backdrop-filter: blur(18px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.35rem, 4vw, 2rem); letter-spacing: -.035em; }
h2 { font-size: 1.05rem; letter-spacing: -.01em; }
p { color: var(--muted); line-height: 1.5; }
.eyebrow { color: var(--blue); font-size: .67rem; font-weight: 800; letter-spacing: .15em; margin-bottom: 4px; }
.header-actions, .button-row, .filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.layout { width: min(1240px, 100%); margin: 0 auto; padding: 22px 18px 60px; display: grid; gap: 18px; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric, .panel { border: 1px solid var(--line); background: linear-gradient(155deg, rgba(23,28,38,.96), rgba(13,16,23,.98)); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.metric { min-height: 118px; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.metric span, .metric small { color: var(--muted); }
.metric strong { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.04em; }
.panel { border-radius: var(--radius); padding: 18px; }
.controls-panel, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-heading { margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .75rem; font-weight: 750; border: 1px solid var(--line); }
.badge.good { color: var(--green); background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.25); }
.badge.bad { color: var(--red); background: rgba(255,107,125,.08); border-color: rgba(255,107,125,.25); }
.badge.neutral { color: var(--muted); background: rgba(255,255,255,.035); }
button { padding: 10px 13px; border-radius: 11px; font-weight: 750; transition: transform .15s ease, opacity .15s ease; }
button:active { transform: scale(.97); }
.primary { color: #06120d; background: var(--green); }
.secondary { color: var(--text); background: #273248; }
.warning { color: #1b1304; background: var(--amber); }
.danger { color: white; background: #b63448; }
.ghost, .filter { color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.filter.active { color: var(--text); border-color: #52637f; background: #273248; }
.full { width: 100%; }
.cards { display: grid; gap: 10px; }
.signal-card, .trade-card { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 14px; padding: 15px; }
.signal-top, .trade-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.symbol { font-size: 1.05rem; font-weight: 850; }
.subline { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.score { font-size: 1.1rem; font-weight: 850; }
.data-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.data-cell { padding: 9px; border-radius: 10px; background: rgba(255,255,255,.03); min-width: 0; }
.data-cell span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.data-cell strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.reasons { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .85rem; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.empty-state { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 11px 15px; border-radius: 12px; background: #242c3a; color: white; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.login-body { display: grid; place-items: center; padding: 20px; }
.login-card { width: min(390px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--green); color: #06120d; font-weight: 900; margin-bottom: 18px; }
.login-card p { margin: 5px 0 22px; }
.login-card label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 7px; }
.login-card input { width: 100%; padding: 13px; margin-bottom: 12px; border-radius: 11px; border: 1px solid var(--line); background: #0b0e14; color: var(--text); outline: none; }
.login-card input:focus { border-color: var(--blue); }
@media (max-width: 900px) { .status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .data-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 620px) { .topbar { align-items: flex-start; } .layout { padding-inline: 12px; } .status-grid { gap: 8px; } .metric { min-height: 105px; padding: 14px; } .panel { padding: 14px; } .controls-panel, .panel-heading { align-items: stretch; flex-direction: column; } .button-row button { flex: 1; } .data-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .header-actions .ghost { display: none; } }
