:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #21262d;
  --border: #30363d;
  --accent: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #e3b341;
  --text: #e6edf3;
  --muted: #8b949e;
  --radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; min-height: 100vh; }
.header { display:flex; align-items:center; justify-content:space-between; padding:12px 24px; background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.header-logo { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:700; color:var(--accent); }
.header-right { display:flex; align-items:center; gap:16px; }
.status-badge { display:flex; align-items:center; gap:6px; padding:4px 10px; border-radius:20px; font-size:12px; font-weight:600; background:var(--surface2); border:1px solid var(--border); }
.status-dot { width:8px; height:8px; border-radius:50%; background:var(--muted); }
.status-dot.live { background:var(--green); animation:pulse 2s infinite; }
.status-dot.bot-on { background:var(--accent); animation:pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.layout { display:grid; grid-template-columns:260px 1fr; height:calc(100vh - 53px); overflow:hidden; }
.sidebar { background:var(--surface); border-right:1px solid var(--border); overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:16px; }
.card { background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius); padding:14px; }
.card-title { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:8px 14px; border-radius:var(--radius); border:none; font-size:13px; font-weight:600; cursor:pointer; transition:opacity .15s,transform .1s; width:100%; margin-bottom:6px; }
.btn:active { transform:scale(.98); }
.btn:disabled { opacity:.4; cursor:not-allowed; }
.btn-start { background:var(--green); color:#000; }
.btn-stop { background:var(--red); color:#fff; }
.btn-close { background:var(--surface); color:var(--text); border:1px solid var(--border); width:auto; padding:4px 10px; font-size:12px; margin:0; }
.stat-row { display:flex; justify-content:space-between; align-items:center; padding:4px 0; border-bottom:1px solid var(--border); }
.stat-row:last-child { border-bottom:none; }
.stat-label { color:var(--muted); font-size:12px; }
.stat-value { font-weight:600; font-size:13px; }
.pos { color:var(--green); }
.neg { color:var(--red); }
.main { overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:16px; }
.pair-card { background:var(--surface2); border:1px solid var(--border); border-radius:var(--radius); padding:14px; transition:border-color .2s; }
.pair-card:hover { border-color:var(--accent); }
.pair-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.pair-symbol { font-size:15px; font-weight:700; color:var(--accent); }
.pair-meta { display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; margin-bottom:10px; }
.meta-item { background:var(--surface); border-radius:6px; padding:6px 10px; text-align:center; }
.meta-label { font-size:10px; color:var(--muted); margin-bottom:2px; }
.meta-val { font-size:13px; font-weight:600; }
.pnl-bar-wrap { height:6px; background:var(--surface); border-radius:3px; overflow:hidden; margin-bottom:6px; }
.pnl-bar { height:100%; border-radius:3px; transition:width .5s ease,background .3s; }
.pnl-bar.pos { background:var(--green); }
.pnl-bar.neg { background:var(--red); }
.pnl-bar-labels { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.coin-list { display:flex; flex-direction:column; gap:6px; }
.coin-row { display:flex; align-items:center; justify-content:space-between; padding:6px 10px; background:var(--surface); border-radius:6px; border:1px solid var(--border); }
.coin-rank { color:var(--muted); font-size:11px; width:18px; }
.coin-sym { font-weight:600; flex:1; padding:0 8px; }
.coin-score { font-size:12px; padding:2px 8px; border-radius:4px; background:rgba(88,166,255,.1); color:var(--accent); }
.log-wrap { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:10px; height:220px; overflow-y:auto; font-family:'Courier New',monospace; font-size:12px; }
.log-line { padding:2px 0; border-bottom:1px solid rgba(48,54,61,.5); display:flex; gap:8px; }
.log-time { color:var(--muted); flex-shrink:0; }
.log-msg.info { color:var(--text); }
.log-msg.success { color:var(--green); }
.log-msg.danger { color:var(--red); }
.log-msg.warning { color:var(--yellow); }
.empty-state { text-align:center; color:var(--muted); padding:40px 20px; }
.empty-state-icon { font-size:40px; margin-bottom:12px; }
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--surface); }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
@media (max-width:768px) { .layout { grid-template-columns:1fr; } .sidebar { border-right:none; border-bottom:1px solid var(--border); height:auto; } }
