:root {
  --bg: #0b0f19;
  --panel: #111827;
  --panel-2: #161f33;
  --line: #1f2a44;
  --text: #e6edf7;
  --muted: #8b97ad;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --teal: #2dd4bf;
  --blue: #3b82f6;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #14203a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 8px);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; position: sticky; top: 0; z-index: 5;
  background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; display: inline-block;
  background:
    linear-gradient(135deg, rgba(45,212,191,.25), rgba(59,130,246,.15)),
    url("icons/icon-192.png") center/cover;
  box-shadow: inset 0 0 0 1px var(--line);
}
.brand h1 { font-size: 17px; margin: 0; letter-spacing: .2px; }
.subtitle { margin: 0; font-size: 11px; color: var(--muted); }

.head-right { display: flex; align-items: center; gap: 10px; }
.gear {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  width: 34px; height: 34px; border-radius: 10px; font-size: 16px; cursor: pointer;
}
.conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center;
  justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
}
.modal.hidden { display: none; }
.modal-card {
  width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
}
.modal-card h3 { margin: 0 0 6px; font-size: 17px; }
.modal-sub { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.modal-card label { font-size: 12px; color: var(--muted); }
.modal-card input {
  width: 100%; margin-top: 6px; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 12px; font-size: 14px; outline: none;
}
.modal-card input:focus { border-color: var(--teal); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions button { flex: 1; padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; }
.btn-ghost { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.btn-primary { background: linear-gradient(180deg, var(--teal), #14b8a6); border: none; color: #04201c; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px currentColor; }
.dot.live { background: var(--green); }
.dot.down { background: var(--red); }

.banner {
  margin: 10px 16px 0; padding: 11px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(239, 68, 68, .12); border: 1px solid rgba(239,68,68,.4); color: #fecaca;
}
.banner.hidden { display: none; }

/* ── Sticky live-price ticker (selected pair + current price) ──────── */
.live-price {
  position: sticky;
  top: 60px;                              /* hemen topbar'ın altında kalır */
  z-index: 4;                             /* topbar (5) altında */
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 16px;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.live-price.hidden { display: none; }
.lp-pair {
  font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--muted);
}
.lp-pair b { color: var(--text); font-weight: 900; }
.lp-price {
  font-size: 20px; font-weight: 900; color: var(--teal);
  transition: color .25s ease, transform .25s ease;
}
.lp-price.up { color: var(--green); }
.lp-price.dn { color: var(--red); }
.lp-price .arrow { font-size: 14px; margin-right: 2px; opacity: .85; }
.lp-flash { animation: lpflash .55s ease; }
@keyframes lpflash {
  0%   { transform: scale(1.06); filter: brightness(1.35); }
  100% { transform: scale(1);    filter: brightness(1); }
}
.lp-loading { font-size: 13px; font-weight: 700; color: var(--muted); }

/* ── Watch panel — aktif takip listesi (live-price altında sticky) ── */
.watch-panel {
  position: sticky; top: 102px;        /* live-price'ın altında */
  z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 11.5px;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.watch-panel::-webkit-scrollbar { display: none; }
.watch-panel.hidden { display: none; }
.wp-label {
  flex: 0 0 auto; color: var(--muted); font-weight: 700; margin-right: 4px;
}
.wp-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 4px 3px 9px;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.45);
  color: var(--green); border-radius: 999px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wp-chip .wp-tt { color: var(--muted); font-weight: 600; }
.wp-chip-x {
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; padding: 2px 6px; border-radius: 50%; font-size: 11px;
}
.wp-chip-x:hover { background: rgba(239,68,68,.2); color: var(--red); }
.wp-clear {
  margin-left: auto; flex: 0 0 auto; border: none; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700;
  padding: 3px 6px; border-radius: 6px;
}
.wp-clear:hover { color: var(--red); }

/* ── Setup Toast (sağ alt köşede sticky) ──────────────────────────── */
.toast-area {
  position: fixed; right: 12px; bottom: 12px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  max-width: calc(100vw - 24px); width: 340px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,.04);
  animation: toast-enter .35s ease;
}
@keyframes toast-enter {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.toast-leave { animation: toast-leave .25s ease forwards; }
@keyframes toast-leave {
  to { transform: translateY(20px) scale(.96); opacity: 0; }
}
.toast-setup.toast-long  { border-color: rgba(34,197,94,.55); }
.toast-setup.toast-short { border-color: rgba(239,68,68,.55); }
.toast-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.toast-title { font-weight: 900; font-size: 15px; letter-spacing: .3px; }
.toast-x {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-size: 14px; padding: 2px 6px; border-radius: 6px;
}
.toast-x:hover { color: var(--red); background: rgba(239,68,68,.1); }
.toast-row {
  display: flex; justify-content: space-between; font-size: 12.5px;
  padding: 3px 0; border-bottom: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}
.toast-row:last-child { border-bottom: none; }
.toast-row span { color: var(--muted); }
.toast-row b { color: var(--text); font-weight: 800; }
.toast-foot {
  margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center;
}

/* ── Journal Modal ────────────────────────────────────────────────── */
.journal-card { max-width: 540px; max-height: 80vh; display: flex; flex-direction: column; }
.journal-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px;
}
.js-tile {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; text-align: center;
}
.js-k { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .3px; }
.js-v { font-size: 16px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 2px; }
.js-win { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.4); }
.js-win .js-v { color: var(--green); }
.js-breakdown {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 11px; color: var(--muted); margin-top: 4px;
}
.js-bd {
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.journal-tabs {
  display: flex; gap: 4px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 10px;
}
.jt-btn {
  flex: 1; padding: 7px; border: none; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 12px; cursor: pointer; border-radius: 8px;
}
.jt-btn.active { background: var(--panel); color: #fff; box-shadow: var(--shadow); }
.journal-list { flex: 1; overflow-y: auto; min-height: 200px; max-height: 50vh; }
.journal-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px;
}
.journal-item:last-child { margin-bottom: 0; }
.ji-go    { border-color: rgba(34,197,94,.35); }
.ji-stop  { border-color: rgba(239,68,68,.35); }
.ji-mid   { border-color: var(--line); }
.ji-stage { border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.06); }
.ji-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 12px; margin-bottom: 3px;
}
.ji-pair { font-weight: 900; font-size: 13px; }
.ji-grade {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.ji-status {
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.ji-go .ji-status { color: var(--green); background: rgba(34,197,94,.12); }
.ji-stop .ji-status { color: var(--red); background: rgba(239,68,68,.12); }
.ji-mid .ji-status { color: var(--amber); background: rgba(245,158,11,.12); }
.ji-stage .ji-status { color: var(--teal); background: rgba(45,212,191,.14); }
.ji-trail {
  color: var(--teal); font-weight: 800;
  background: rgba(45,212,191,.10); padding: 1px 6px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.ji-stage:not(.ji-status) { /* dummy to differentiate selector */ }
.journal-item .ji-stage {
  color: var(--teal); font-weight: 700; font-size: 10.5px;
  background: rgba(45,212,191,.10); padding: 1px 6px; border-radius: 6px;
}
.ji-body {
  font-size: 11px; color: var(--muted); line-height: 1.5;
  display: flex; flex-wrap: wrap; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.ji-body span { color: var(--text); }
.ji-result { margin-top: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.ji-pct { font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.ji-pct.up { color: var(--green); background: rgba(34,197,94,.12); }
.ji-pct.dn { color: var(--red); background: rgba(239,68,68,.12); }
.ji-close { color: var(--muted); margin-left: 6px; }
.js-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 0; }

/* Binance tab — positions, orders, history */
.bin-section-title {
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  color: var(--text); margin: 8px 0 6px;
  padding: 6px 10px; background: rgba(11,15,25,.55);
  border-radius: 8px; border: 1px solid var(--line);
}
.bin-pos, .bin-ord, .bin-hist {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px;
}
.bin-pos.ji-go { border-color: rgba(34,197,94,.35); }
.bin-pos.ji-stop { border-color: rgba(239,68,68,.35); }
.bin-pos-head, .bin-ord-head, .bin-hist-head {
  display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 3px;
  flex-wrap: wrap;
}
.bin-pos-sym { font-weight: 900; font-size: 13px; }
.bin-pos-dir { font-size: 11px; font-weight: 800; margin-left: auto; }
.bin-pos-body, .bin-ord-body, .bin-hist-body {
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.bin-pos-body b, .bin-ord-body b, .bin-hist-body b { color: var(--text); font-weight: 800; }
.bin-hist.ji-go { border-color: rgba(34,197,94,.35); }
.bin-hist.ji-stop { border-color: rgba(239,68,68,.35); }

@media (max-width: 420px) {
  .journal-stats { grid-template-columns: repeat(2, 1fr); }
  .toast-area { width: calc(100vw - 24px); }
}

.controls { padding: 14px 16px 4px; }

.search { position: relative; margin-bottom: 12px; }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .7; }
.search input {
  width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 38px 12px 36px; font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--teal); }
.search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 12px;
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 280px; overflow-y: auto;
}
.search-results.hidden, .search-clear.hidden { display: none; }
.result {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--line);
}
.result:last-child { border-bottom: none; }
.result:hover, .result.kbd { background: var(--panel-2); }
.result .q { color: var(--muted); font-size: 12px; }
.result-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  transition: all .15s ease;
}
.chip.active { color: #fff; border-color: var(--teal); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); }

.balance { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.balance label { font-size: 12px; color: var(--muted); }
.balance input {
  flex: 1; max-width: 160px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 9px 12px; font-size: 14px; outline: none;
}

.risk-line {
  margin-top: 6px; font-size: 11px; color: var(--muted);
  letter-spacing: .02em; font-variant-numeric: tabular-nums;
}

.modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.mode-btn {
  background: transparent; border: none; color: var(--muted); font-weight: 700;
  font-size: 13px; padding: 9px; border-radius: 9px; cursor: pointer; transition: all .15s;
}
.mode-btn.active { background: var(--panel-2); color: #fff; box-shadow: var(--shadow); }

.trade-types {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.tt-btn {
  background: transparent; border: none; color: var(--muted); font-weight: 700;
  font-size: 12px; padding: 8px 4px; border-radius: 9px; cursor: pointer;
  transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.tt-btn small {
  font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .3px;
}
.tt-btn.active { background: var(--panel-2); color: #fff; box-shadow: var(--shadow); }
.tt-btn.active small { color: var(--teal); }

.tag.tt-scalp { color: var(--amber); border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.tag.tt-day { color: var(--blue); border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.08); }
.tag.tt-swing { color: var(--teal); border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.08); }

/* ── Leverage bar (5 buton — 1x/3x/5x/10x/20x) ──────────────────── */
.leverage-bar {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 4px 4px 4px 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
}
.lb-label { font-size: 11px; color: var(--muted); font-weight: 700; flex: 0 0 auto; }
.lev-btn {
  flex: 1; background: transparent; border: none; color: var(--muted);
  font-weight: 800; font-size: 12px; padding: 7px 6px; border-radius: 9px;
  cursor: pointer; transition: all .15s;
}
.lev-btn.active {
  background: var(--panel-2); color: var(--amber);
  box-shadow: 0 0 10px rgba(245,158,11,.25);
}

/* ── Auto-Watchlist Modal ────────────────────────────────────────── */
.aw-card { max-width: 540px; max-height: 80vh; display: flex; flex-direction: column; }
.aw-header {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 10px; font-size: 11.5px;
}
.aw-h-row { display: flex; justify-content: space-between; padding: 2px 0; }
.aw-h-k { color: var(--muted); font-weight: 600; }
.aw-h-v { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.aw-h-v.go { color: var(--green); }
.aw-h-v.stop { color: var(--red); }

.aw-tabs {
  display: flex; gap: 4px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 10px;
}
.aw-tab {
  flex: 1; padding: 7px; border: none; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 12px; cursor: pointer; border-radius: 8px;
}
.aw-tab.active { background: var(--panel); color: #fff; box-shadow: var(--shadow); }

.aw-list { flex: 1; overflow-y: auto; min-height: 200px; max-height: 50vh; }
.aw-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 0; }

.aw-pair {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px;
}
.aw-pair.aw-go   { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.04); }
.aw-pair.aw-warn { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.04); }
.aw-pair.aw-mid  { border-color: var(--line); }
.aw-pair.aw-stop { border-color: rgba(100,100,120,.25); opacity: .7; }
.aw-pair-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13px; margin-bottom: 3px;
}
.aw-pair-sym { font-weight: 900; }
.aw-pair-grade {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.aw-pair-stage { font-size: 11px; font-weight: 700; }
.aw-pair-body {
  font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.aw-pair-body b { color: var(--text); font-weight: 800; }
.aw-pair-body .aw-go { color: var(--green); }
.aw-pair-body .aw-stop { color: var(--red); }
.aw-pair-body .aw-mid { color: var(--muted); }

.aw-rot {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px;
}
.aw-rot-head {
  display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px;
}
.aw-rot-head span:first-child { font-weight: 800; color: var(--teal); }
.aw-rot-ago { color: var(--muted); font-size: 11px; }
.aw-rot-body { display: flex; flex-direction: column; gap: 3px; }
.aw-rot-row {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.aw-rot-out { color: var(--red); font-weight: 800; }
.aw-rot-arr { color: var(--muted); }
.aw-rot-in  { color: var(--green); font-weight: 800; }
.aw-rot-summary {
  font-size: 11px; color: var(--muted); margin-top: 4px;
  border-top: 1px dashed var(--line); padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ── 1. Karar Kutusu (AL / SAT / BEKLE) ────────────────────────────── */
.karar-card { padding: 18px 18px 16px; border-width: 2px; }
.karar-go   { background: linear-gradient(180deg, rgba(34,197,94,.22), rgba(34,197,94,.08)); border-color: rgba(34,197,94,.55); }
.karar-mid  { background: linear-gradient(180deg, rgba(59,130,246,.22), rgba(59,130,246,.08)); border-color: rgba(59,130,246,.55); }
.karar-warn { background: linear-gradient(180deg, rgba(245,158,11,.22), rgba(245,158,11,.08)); border-color: rgba(245,158,11,.55); }
.karar-stop { background: linear-gradient(180deg, rgba(239,68,68,.22), rgba(239,68,68,.08)); border-color: rgba(239,68,68,.55); }
.karar-pair { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .4px; }
.karar-head {
  font-size: 28px; font-weight: 900; letter-spacing: .5px; margin: 4px 0 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.karar-go   .karar-head { color: var(--green); }
.karar-mid  .karar-head { color: var(--blue); }
.karar-warn .karar-head { color: var(--amber); }
.karar-stop .karar-head { color: var(--red); }
.karar-sub { font-size: 13px; color: var(--text); opacity: .85; margin-bottom: 12px; font-weight: 600; }
.karar-checks { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 380px) { .karar-checks { grid-template-columns: 1fr 1fr; } }
.kc {
  display: flex; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.3;
  padding: 6px 10px; border-radius: 10px;
  background: rgba(11,15,25,.45); border: 1px solid var(--line);
}
.kc.ok { color: var(--green); border-color: rgba(34,197,94,.35); }
.kc.no { color: #fecaca; border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); }
.kc-mark { font-weight: 900; font-size: 14px; }

/* SMC sinyallerinin rozetleri (Reversal, Premium/Discount) */
.karar-smc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.smc-badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid;
  font-variant-numeric: tabular-nums;
}
.smc-rev {
  color: var(--teal); background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.5);
  box-shadow: 0 0 10px rgba(45,212,191,.25);
}
.smc-ok {
  color: var(--green); background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.4);
}
.smc-warn {
  color: var(--amber); background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.4);
}
.smc-mid {
  color: var(--muted); background: var(--panel-2); border-color: var(--line);
}

/* Tahmini Setup mini card */
.proj-setup {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(11,15,25,.55); border: 1px dashed var(--line); border-radius: 10px;
}
.proj-setup.proj-long { border-color: rgba(34,197,94,.45); }
.proj-setup.proj-short { border-color: rgba(239,68,68,.45); }
.proj-head { font-size: 12px; font-weight: 800; color: var(--teal); letter-spacing: .3px; }
.proj-body {
  display: flex; gap: 8px; font-size: 12px; color: var(--muted);
  margin: 4px 0 6px; font-variant-numeric: tabular-nums;
}
.proj-body span:first-child { color: var(--text); font-weight: 800; }
.proj-levels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; font-size: 11.5px;
}
.proj-levels .k { font-size: 10px; color: var(--muted); display: block; }
.proj-levels .v { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.proj-note { font-size: 11px; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ── 2. Güven Skoru gradient bar ───────────────────────────────────── */
.guven-card { padding: 14px 16px 14px; }
.guven-title { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .4px; margin-bottom: 6px; }
.guven-row { display: flex; align-items: baseline; justify-content: space-between; }
.guven-num { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.guven-num.guven-go   { color: var(--green); }
.guven-num.guven-mid  { color: var(--amber); }
.guven-num.guven-stop { color: var(--red); }
.guven-thr { font-size: 11px; color: var(--muted); font-weight: 600; }
.guven-track {
  position: relative; height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(239,68,68,.20) 0%, rgba(245,158,11,.20) 60%, rgba(34,197,94,.20) 100%);
  border: 1px solid var(--line); overflow: visible; margin: 8px 0 4px;
}
.guven-fill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  transition: width .4s ease;
}
.guven-threshold {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: rgba(255,255,255,.55); transform: translateX(-1px);
  box-shadow: 0 0 6px rgba(255,255,255,.4);
}
.guven-marker {
  position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
}
.guven-scale {
  display: flex; justify-content: space-between; font-size: 10px; color: var(--muted);
  font-variant-numeric: tabular-nums; margin-top: 4px;
}
.guven-thr-lbl { color: var(--text); font-weight: 700; }

/* ── 3. Yapay Zeka Yorumu ──────────────────────────────────────────── */
.ai-card { padding: 14px 16px; }
.ai-title { font-size: 13px; font-weight: 800; color: var(--teal); margin-bottom: 6px; letter-spacing: .3px; }
.ai-body { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.55; }

/* ── 4. Piyasa Sağlığı 4'lü grid ──────────────────────────────────── */
.health-card { padding: 14px 16px; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hg-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
}
.hg-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 6px currentColor; }
.hg-go   { border-color: rgba(34,197,94,.35); }
.hg-go   .hg-dot { background: var(--green); color: var(--green); }
.hg-mid  { border-color: rgba(245,158,11,.35); }
.hg-mid  .hg-dot { background: var(--amber); color: var(--amber); }
.hg-stop { border-color: rgba(239,68,68,.35); }
.hg-stop .hg-dot { background: var(--red); color: var(--red); }
.hg-k { font-size: 11px; color: var(--muted); font-weight: 600; }
.hg-v { font-size: 13px; color: var(--text); font-weight: 800; margin-top: 1px; }
.hg-sub { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ── Takibe Al butonu ─────────────────────────────────────────────── */
.watch-btn {
  display: block; width: 100%; margin-top: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(11,15,25,.55); border: 1px solid var(--line); color: var(--text);
  font-weight: 800; font-size: 13px; cursor: pointer; letter-spacing: .3px;
  transition: all .15s;
}
.watch-btn:hover { background: var(--panel); }
.watch-btn.active {
  background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.55); color: var(--green);
}

/* ── 5. Beklenen Şartlar (Long/Short senaryoları + setup) ─────────── */
.bs-card { padding: 14px 16px 16px; }
.bs-block {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px;
}
.bs-block:last-child { margin-bottom: 0; }
.bs-up { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.05); }
.bs-dn { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.05); }
.bs-setup { border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.07); }
.bs-setup.bs-long { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.bs-setup.bs-short { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.07); }
.bs-stop { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.09); }
.bs-head {
  font-size: 13px; font-weight: 800; letter-spacing: .3px; margin-bottom: 6px;
}
.bs-up .bs-head { color: var(--green); }
.bs-dn .bs-head { color: var(--red); }
.bs-setup .bs-head { color: var(--teal); }
.bs-stop .bs-head { color: var(--red); }
.bs-body { font-size: 13px; color: var(--text); line-height: 1.5; }
.bs-body b { font-variant-numeric: tabular-nums; color: var(--text); }
.bs-setup-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 12px;
}
.bs-setup-grid .k { font-size: 10px; color: var(--muted); font-weight: 700; }
.bs-setup-grid .v {
  font-size: 14px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.bs-reasons { margin: 0; padding-left: 18px; }
.bs-reasons li { font-size: 13px; color: var(--text); margin-bottom: 4px; line-height: 1.5; }

/* ── 6. Destek / Direnç insan dili ────────────────────────────────── */
.dd-card { padding: 14px 16px 12px; }
.dd-section { margin-bottom: 10px; }
.dd-section:last-child { margin-bottom: 0; }
.dd-head {
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; margin-bottom: 6px;
}
.dd-head-up { color: var(--red); }   /* "engeller yukarıda" → kırmızı uyarı */
.dd-head-dn { color: var(--green); } /* "destekler aşağıda" → yeşil güvence */
.dd-list { list-style: none; margin: 0; padding: 0; }
.dd-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); margin-bottom: 4px;
}
.dd-row:last-child { margin-bottom: 0; }
.dd-main { flex: 1; min-width: 0; }
.dd-price {
  font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text);
}
.dd-label {
  font-size: 11.5px; color: var(--muted); margin-top: 1px; line-height: 1.3;
  display: flex; align-items: center; gap: 6px;
}
.dd-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
  font-size: 9px; font-weight: 700; cursor: help;
}
.dd-delta {
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; padding: 2px 7px; border-radius: 999px;
}
.dd-delta.up { color: var(--red); background: rgba(239,68,68,.10); }
.dd-delta.dn { color: var(--green); background: rgba(34,197,94,.10); }
.dd-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }

/* ── 7. Genel Sonuç ───────────────────────────────────────────────── */
.sonuc-card { padding: 12px 16px; background: var(--panel); }
.sonuc-title { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .4px; }
.sonuc-body { font-size: 13px; color: var(--text); line-height: 1.5; margin-top: 4px; }

/* ── Teknik Detayları Göster accordion ────────────────────────────── */
details.tech-details > summary {
  font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .3px;
}
.inner-card { padding: 14px 16px; margin-top: 10px; box-shadow: none; }

main { padding: 6px 16px 20px; }

.scan-universe { display: flex; gap: 6px; margin: 2px 0 12px; }
.uni-btn {
  flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-weight: 700; font-size: 12px; padding: 9px 6px; border-radius: 10px; cursor: pointer;
  transition: all .15s;
}
.uni-btn.active { color: #fff; border-color: var(--teal); background: var(--panel-2); }

.scan-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; }
.scan-head .t { font-size: 13px; font-weight: 800; }
.scan-head .c { font-size: 12px; color: var(--muted); }
.scan-item {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px;
  cursor: pointer; transition: transform .1s, border-color .15s;
}
.scan-item:active { transform: scale(.99); }
.scan-item.allowed { border-color: rgba(34,197,94,.35); }
.scan-item .badge {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 18px;
}
.scan-item .mid .p { font-size: 15px; font-weight: 800; }
.scan-item .mid .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.scan-item .right { text-align: right; }
.scan-item .right .conf { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.scan-item .right .rr { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dir { font-weight: 800; }
.dir.long { color: var(--green); }
.dir.short { color: var(--red); }
.scan-item.err { opacity: .6; cursor: default; }
.placeholder { text-align: center; color: var(--muted); padding: 60px 0; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}

.signal-head { display: flex; align-items: flex-start; justify-content: space-between; }
.pair { font-size: 22px; font-weight: 800; letter-spacing: .3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.tag.bull { color: var(--green); border-color: rgba(34,197,94,.4); }
.tag.bear { color: var(--red); border-color: rgba(239,68,68,.4); }
.tag.range { color: var(--amber); border-color: rgba(245,158,11,.4); }

.grade {
  min-width: 64px; text-align: center; padding: 10px; border-radius: 14px;
  font-weight: 900; font-size: 24px; line-height: 1;
}
.grade small { display: block; font-size: 10px; font-weight: 700; opacity: .8; margin-top: 4px; }
.g-aplus, .g-a { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.4); }
.g-b { background: rgba(59,130,246,.15); color: var(--blue); border: 1px solid rgba(59,130,246,.4); }
.g-c { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.4); }
.g-no { background: rgba(239,68,68,.13); color: var(--red); border: 1px solid rgba(239,68,68,.35); }

.confidence { margin-top: 14px; }
.confidence .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bar { height: 10px; border-radius: 999px; background: var(--panel); overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width .4s ease; }

.no-trade {
  margin-top: 14px; padding: 14px; border-radius: 14px; text-align: center;
  background: rgba(239,68,68,.08); border: 1px dashed rgba(239,68,68,.4);
}
.no-trade .why { color: #fecaca; font-weight: 700; margin-top: 4px; }

.direction-pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.direction-pill.long { background: rgba(34,197,94,.15); color: var(--green); }
.direction-pill.short { background: rgba(239,68,68,.15); color: var(--red); }

.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.level .k { font-size: 11px; color: var(--muted); }
.level .v { font-size: 16px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.level.entry .v { color: var(--teal); }
.level.sl .v { color: var(--red); }
.level.tp .v { color: var(--green); }
.level.full { grid-column: 1 / -1; }

.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 700; }

.scores { display: grid; gap: 10px; margin-top: 4px; }
.score-row { display: grid; grid-template-columns: 92px 1fr 38px; gap: 10px; align-items: center; font-size: 12px; }
.score-row .lbl { color: var(--muted); }
.score-row .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-bar { height: 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.mini-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--teal)); }

.section-title { font-size: 13px; font-weight: 800; margin: 2px 0 10px; color: var(--text); }

details.explain { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
details.explain > summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style: none; display: flex; justify-content: space-between; }
details.explain > summary::-webkit-details-marker { display: none; }
details.explain > summary::after { content: "▾"; color: var(--muted); }
details.explain[open] > summary::after { content: "▴"; }
.module { margin-top: 10px; }
.module h4 { margin: 0 0 6px; font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; }
.module ul { margin: 0; padding-left: 16px; }
.module li { font-size: 12px; color: var(--muted); margin-bottom: 3px; line-height: 1.45; }

/* ── Per-module cards inside Karar Gerekçeleri ────────────────────── */
.modules { display: grid; gap: 10px; margin-top: 12px; }
.module-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 12px 10px;
}
.module-card.neg { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.05); }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.mc-head h4 { margin: 0; font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; }
.mc-label {
  font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
}
.mc-label.bull { color: var(--green); border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.08); }
.mc-label.bear { color: var(--red);   border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.08); }
.mc-label.range { color: var(--amber); border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.mc-label.red { color: var(--red); border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.12); }
.mc-summary {
  font-size: 12px; color: var(--text); font-weight: 600;
  padding: 6px 8px; border-radius: 8px; background: var(--panel-2);
  border: 1px solid var(--line); margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.mc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-col {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.mc-col-title {
  font-size: 11px; font-weight: 800; letter-spacing: .4px; margin-bottom: 4px;
}
.pos-col { border-color: rgba(34,197,94,.3); }
.pos-col .mc-col-title { color: var(--green); }
.neg-col { border-color: rgba(239,68,68,.3); }
.neg-col .mc-col-title { color: var(--red); }
.mc-col ul { margin: 0; padding-left: 14px; }
.mc-col li {
  font-size: 11.5px; color: var(--text); margin-bottom: 3px; line-height: 1.4;
  word-break: break-word;
}
.mc-col li em {
  font-style: normal; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums;
}
.mc-empty { font-size: 11.5px; color: var(--muted); padding: 2px 0; }
.mc-notes {
  margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.45;
  border-top: 1px dashed var(--line); padding-top: 6px;
}

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

/* ── Summary card (Genel Yorum) ────────────────────────────────────── */
.summary-card { padding: 14px 16px 16px; }
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sc-head .section-title { margin: 0; }
.sc-price {
  font-size: 20px; font-weight: 900; color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.sc-price small { display: inline; font-size: 10px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .sc-grid { grid-template-columns: 1fr; } }
.sc-block {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  margin-top: 10px;
}
.sc-grid .sc-block { margin-top: 0; }
.sc-block-title {
  font-size: 11px; font-weight: 800; letter-spacing: .4px; margin-bottom: 6px;
  color: var(--text); text-transform: uppercase;
}
.sc-up { border-color: rgba(34,197,94,.3); }
.sc-up .sc-block-title { color: var(--green); }
.sc-dn { border-color: rgba(239,68,68,.3); }
.sc-dn .sc-block-title { color: var(--red); }
.sc-cond .sc-block-title { color: var(--amber); }
.sc-cond { border-color: rgba(245,158,11,.3); }
.sc-levels { list-style: none; margin: 0; padding: 0; }
.sc-levels li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: baseline;
  font-size: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line);
}
.sc-levels li:last-child { border-bottom: none; }
.sc-levels .lv-lbl { color: var(--muted); }
.sc-levels .lv-prc { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.sc-levels .lv-dlt { font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 700; }
.sc-levels .lv-dlt.up { color: var(--green); }
.sc-levels .lv-dlt.dn { color: var(--red); }
.sc-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }
.sc-cond-list { margin: 0; padding-left: 16px; }
.sc-cond-list li {
  font-size: 12px; color: var(--text); margin-bottom: 5px; line-height: 1.5;
}
.sc-cond-list li b { font-variant-numeric: tabular-nums; }
.sc-setup { border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.05); }
.sc-setup.long { border-color: rgba(34,197,94,.4); }
.sc-setup.short { border-color: rgba(239,68,68,.4); }
.sc-setup-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px;
  font-size: 12px; color: var(--muted);
}
.sc-setup-grid b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 800; }
.sc-block-warn { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.06); }
.sc-block-warn .sc-block-title { color: var(--red); }
.sc-line { font-size: 12px; color: var(--text); line-height: 1.5; }
.sc-line.muted { color: var(--muted); margin-top: 4px; }
.sc-ctx {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.sc-ctx b { color: var(--text); }

.footer { display: flex; justify-content: space-between; padding: 6px 18px 4px; font-size: 11px; color: var(--muted); }
