* { box-sizing: border-box; margin: 0; padding: 0; }
:root { color-scheme: dark; }
body {
  background: #020617; color: #e2e8f0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: #22d3ee; text-decoration: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex-shrink: 0; padding: 16px;
  border-right: 1px solid #1e293b; background: rgba(15,23,42,.4);
  display: flex; flex-direction: column;
}
.brand { font-size: 18px; font-weight: 900; color: #22d3ee; padding: 4px 8px; display: block; }
.badge-paper {
  background: rgba(245,158,11,.15); color: #f59e0b; font-size: 10px;
  font-weight: 700; padding: 2px 6px; border-radius: 4px; vertical-align: middle;
}
.sidebar nav { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #94a3b8; font-weight: 500; transition: background .15s;
}
.nav-link:hover { background: #1e293b; }
.nav-link.active { background: rgba(34,211,238,.1); color: #67e8f9; }
.nav-link.logout { margin-top: auto; color: #64748b; }
.coins-title {
  margin: 24px 0 8px; padding: 0 12px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: #64748b;
}
.coin-list { overflow-y: auto; max-height: 50vh; display: flex; flex-direction: column; gap: 2px; }
.coin-item {
  display: flex; justify-content: space-between; padding: 6px 12px;
  border-radius: 8px; color: #94a3b8; font-size: 13px;
}
.coin-item:hover { background: #1e293b; }
.coin-item .up { color: #34d399; } .coin-item .down { color: #fb7185; }

.main { flex: 1; min-width: 0; padding: 24px; }
.page-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }

.card {
  background: rgba(15,23,42,.6); border: 1px solid #1e293b;
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.card h3 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: #94a3b8; margin-bottom: 12px;
}
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.green { color: #34d399; } .red { color: #fb7185; } .cyan { color: #22d3ee; } .amber { color: #fbbf24; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; color: #64748b; padding: 0 8px 8px 0; }
td { padding: 8px 8px 8px 0; border-top: 1px solid #1e293b; }
.right { text-align: right; }

.badge { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; border: 1px solid; }
.badge.GÜÇLÜ { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); }
.badge.ORTA { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }
.badge.ZAYIF { color: #94a3b8; border-color: rgba(148,163,184,.3); background: rgba(148,163,184,.08); }
.dir { padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.dir.LONG { background: rgba(52,211,153,.15); color: #34d399; }
.dir.SHORT { background: rgba(251,113,133,.15); color: #fb7185; }

.chip { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 11px; margin: 2px 3px 0 0; }
.chip.pos { background: rgba(52,211,153,.1); color: #34d399; }
.chip.neg { background: rgba(251,113,133,.1); color: #fb7185; }

input, select, button, textarea {
  font: inherit; color: inherit; background: #1e293b;
  border: 1px solid #334155; border-radius: 8px; padding: 8px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #22d3ee; }
button.primary {
  background: #0891b2; border-color: #0891b2; color: #fff;
  font-weight: 600; cursor: pointer;
}
button.primary:hover { background: #06b6d4; }
button.primary:disabled { opacity: .4; cursor: default; }
label.field { display: block; }
label.field span { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.checkbox-row input { width: 16px; height: 16px; accent-color: #22d3ee; padding: 0; }
.weight-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.weight-row .wname { width: 170px; font-size: 13px; color: #cbd5e1; }
.weight-row input[type=range] { flex: 1; accent-color: #22d3ee; padding: 0; background: none; border: none; }
.weight-row .wval { width: 34px; text-align: right; color: #94a3b8; font-size: 13px; }
.weight-row input[type=checkbox] { width: 15px; height: 15px; accent-color: #22d3ee; padding: 0; }

.muted { color: #64748b; }
.center { text-align: center; padding: 32px 0; color: #64748b; }
.tf-buttons { display: flex; gap: 6px; }
.tf-buttons button { padding: 6px 12px; cursor: pointer; border-radius: 8px; font-weight: 500; }
.tf-buttons button.active { background: rgba(34,211,238,.15); color: #67e8f9; border-color: rgba(34,211,238,.4); }
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.notice { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); color: #fbbf24; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
  width: 100%; max-width: 360px; background: rgba(15,23,42,.7);
  border: 1px solid #1e293b; border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.login-title { font-size: 22px; font-weight: 900; color: #22d3ee; text-align: center; }
.login-sub { font-size: 13px; color: #64748b; text-align: center; margin-bottom: 8px; }
.login-card button { background: #0891b2; border: none; color: #fff; font-weight: 600; padding: 10px; cursor: pointer; }
.login-error { color: #fb7185; font-size: 13px; }
