:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel2: #1c2330;
  --border: #2a3340;
  --text: #e6edf3;
  --muted: #8b949e;
  --green: #2ea043;
  --red: #f85149;
  --blue: #388bfd;
  --gray: #6e7681;
  --yellow: #d29922;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 18px; margin: 0; font-weight: 600; }
.brand small { color: var(--muted); font-weight: 400; font-size: 13px; }

.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gray); display: inline-block;
  box-shadow: 0 0 0 3px rgba(110,118,129,0.2);
}
.dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(46,160,67,0.25); }

.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 4px 10px; border-radius: 20px; background: var(--panel2);
  border: 1px solid var(--border); font-size: 12px; color: var(--muted);
}

.btn {
  border: none; border-radius: 6px; padding: 8px 14px; cursor: pointer;
  color: #fff; font-weight: 600; font-size: 13px; transition: opacity .15s;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-green { background: var(--green); }
.btn-gray { background: var(--gray); }
.btn-blue { background: var(--blue); }
.btn-red { background: var(--red); }

.banner {
  margin: 12px 22px; padding: 10px 14px; border-radius: 6px;
  background: rgba(248,81,73,0.12); border: 1px solid var(--red); color: #ffb0ab;
}
.banner.warn { background: rgba(210,153,34,0.12); border-color: var(--yellow); color: #f0d089; }
.hidden { display: none; }

/* Sekmeler */
.tabs {
  display: flex; gap: 4px; padding: 0 16px; background: var(--panel);
  border-bottom: 1px solid var(--border); overflow-x: auto; flex-wrap: nowrap;
}
.tab {
  background: none; border: none; color: var(--muted); padding: 12px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--blue); }

.pair-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.pair-head h2 { margin: 0; font-size: 18px; }

.btn.mini { padding: 4px 10px; font-size: 12px; }
.mini-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray); margin-right: 6px; vertical-align: middle; }
.mini-dot.on { background: var(--green); }

#ovTable tbody tr { cursor: pointer; }
#ovTable tbody tr:hover { background: var(--panel2); }

main { padding: 18px 22px; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.card-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.card-value { font-size: 22px; font-weight: 700; }
.card-sub { font-size: 13px; margin-top: 6px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.col { display: flex; flex-direction: column; gap: 18px; }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
}
.panel h2 { font-size: 14px; margin: 0 0 14px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; }

.chart-box { position: relative; height: 240px; width: 100%; }

.decision { line-height: 1.6; }
.decision .action {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-weight: 700; margin-right: 8px;
}
.action.LONG { background: rgba(46,160,67,0.2); color: #56d364; }
.action.SHORT { background: rgba(248,81,73,0.2); color: #ff7b72; }
.action.CLOSE { background: rgba(56,139,253,0.2); color: #79c0ff; }
.action.HOLD { background: rgba(139,148,158,0.2); color: #adbac7; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.side-LONG { color: #56d364; font-weight: 600; }
.side-SHORT { color: #ff7b72; font-weight: 600; }
.side-CLOSE { color: #79c0ff; font-weight: 600; }
.side-LIQ { color: #ff7b72; font-weight: 700; }

.indicators { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.ind-row { display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px solid var(--border); }
.ind-row .k { color: var(--muted); }
.ind-row .v { font-weight: 600; }

.lessons { margin: 0; padding-left: 18px; line-height: 1.7; }
.lessons li { margin-bottom: 6px; }

.pos { color: var(--green); }
.neg { color: var(--red); }
.muted { color: var(--muted); }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }

@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
