:root {
  --bg: #0f1117;
  --surface: #1a1d2e;
  --border: #2a2d3e;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --green-strong: #00c853;
  --green: #4caf50;
  --red: #f44336;
  --red-strong: #b71c1c;
  --neutral: #607d8b;
  --accent: #3b82f6;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; min-height: 100vh; }
.container { max-width: 960px; margin: 0 auto; padding: 16px; }
nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 6px; transition: all .15s; }
nav a.active, nav a:hover { color: var(--text); background: var(--border); }
nav .brand { font-weight: 700; color: var(--accent); margin-right: auto; font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.signal-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.STRONG_BUY  { background: #00c85322; color: var(--green-strong); border: 1px solid var(--green-strong); }
.BUY         { background: #4caf5022; color: var(--green);        border: 1px solid var(--green); }
.NEUTRAL     { background: #607d8b22; color: var(--neutral);      border: 1px solid var(--neutral); }
.SELL        { background: #f4433622; color: var(--red);          border: 1px solid var(--red); }
.STRONG_SELL { background: #b71c1c22; color: var(--red-strong);   border: 1px solid var(--red-strong); }
.positive { color: var(--green); }
.negative { color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
input[type="text"], input[type="number"], input[type="password"] { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: 8px; font-size: 14px; width: 100%; outline: none; }
input:focus { border-color: var(--accent); }
button { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: opacity .15s; }
button:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: white; }
.btn-danger  { background: var(--red); color: white; }
.btn-success { background: var(--green); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.score-bar { height: 8px; border-radius: 4px; background: var(--border); margin: 6px 0; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.loading { text-align: center; padding: 48px; color: var(--text-muted); font-size: 15px; }
.error { color: var(--red); padding: 12px; background: #f4433611; border-radius: 8px; border: 1px solid #f4433633; }
h1 { font-size: 20px; margin-bottom: 16px; }
h2 { font-size: 14px; margin-bottom: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.price-big { font-size: 28px; font-weight: 700; }
.symbol-label { font-size: 15px; color: var(--text); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 8px 6px; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 500; }
td { padding: 8px 6px; border-bottom: 1px solid var(--border)22; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.flex-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ml-auto { margin-left: auto; }
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .price-big { font-size: 22px; }
  .container { padding: 8px; }
  .card { padding: 12px; }
  nav { padding: 8px 10px; gap: 4px; }
  nav a { padding: 4px 8px; font-size: 12px; }
  nav .brand { font-size: 14px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { padding: 6px 5px; font-size: 12px; }
  .signal-badge { font-size: 11px; padding: 3px 7px; }
  h1 { font-size: 17px; }
  h2 { font-size: 12px; }
  .flex-row { gap: 8px; }
  input[type="text"], input[type="number"], input[type="password"] { font-size: 16px; }
}
