* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0e1117;
  --panel: #161b22;
  --panel2: #1c2330;
  --border: #2a3140;
  --text: #e6edf3;
  --muted: #8b949e;
  --green: #2ea043;
  --red: #da3633;
  --blue: #2f81f7;
  --gray: #444c56;
}
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 18px; font-weight: 600; }
.logo { font-size: 22px; }
.badge { padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge.on { background: rgba(46,160,67,.2); color: #3fb950; }
.badge.off { background: rgba(218,54,51,.2); color: #f85149; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  padding: 7px 14px; border: none; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-size: 13px; color: #fff; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.blue { background: var(--blue); }
.btn.gray { background: var(--gray); }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.tabs {
  display: flex; gap: 4px; padding: 0 20px; background: var(--panel);
  border-bottom: 1px solid var(--border); position: sticky; top: 57px; z-index: 9;
}
.tab-btn {
  padding: 12px 22px; border: none; background: transparent; color: var(--muted);
  cursor: pointer; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--blue); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.settings-panel { max-width: 720px; margin: 20px; }
.settings-body { padding: 18px; }
.saved-note { color: #3fb950; font-weight: 600; font-size: 13px; align-self: center; }
.saved-note.hidden { display: none; }
.strategies-body { padding: 24px; }
.strat-title { font-size: 15px; margin-bottom: 6px; }
.muted-note { color: var(--muted); font-size: 14px; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tf-chip {
  padding: 10px 18px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 14px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--border);
  transition: all .15s;
}
.tf-chip:hover { border-color: var(--blue); color: var(--text); }
.tf-chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Gosterge cipleri (secilebilir, isaretli = yesil) */
.ind-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ind-chip {
  padding: 9px 16px; border-radius: 18px; cursor: pointer; font-weight: 600; font-size: 13px;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--border);
  transition: all .15s; position: relative; padding-left: 30px;
}
.ind-chip::before {
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--gray);
}
.ind-chip:hover { border-color: var(--green); color: var(--text); }
.ind-chip.on { background: rgba(46,160,67,.18); color: #3fb950; border-color: var(--green); }
.ind-chip.on::before {
  background: var(--green); border-color: var(--green);
  content: "✓"; color: #fff; font-size: 10px; text-align: center; line-height: 12px;
}

/* Pump tespit parametreleri */
.pump-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 18px;
}
.pump-grid label, .strategies-body .strat-actions { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.pump-grid .hint { color: var(--gray); font-size: 11px; font-weight: 400; }
.pump-grid select, .pump-grid input {
  padding: 9px 12px; background: var(--panel2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.strat-actions { flex-direction: row !important; align-items: center; gap: 12px; margin-top: 18px; }

/* Form alt-bolum basliklari (duzenli/profesyonel gruplama) */
.field-section { margin-top: 26px; }
.field-section .sec-title {
  font-size: 12px; color: var(--text); font-weight: 700;
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .05em;
}
.field-section .sec-desc { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.field-section .pump-grid { margin-top: 14px; }

/* Strateji metni */
.strategy-text {
  width: 100%; margin-top: 16px; padding: 14px; resize: vertical; min-height: 400px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: 14px; line-height: 1.6;
}
.strategy-text:focus { outline: none; border-color: var(--blue); }
#tab-strategies .panel { margin-bottom: 16px; }

/* Tehlikeli bolge (Ayarlar) */
.danger-zone {
  margin-top: 28px; padding: 18px; border: 1px solid var(--red);
  border-radius: 10px; background: rgba(218,54,51,.06);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.danger-zone h3 { font-size: 14px; color: #f85149; }
.danger-zone .muted-note { font-size: 13px; }

.stats {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
  padding: 16px 20px;
}
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.stat.btc-status-box {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.stat.btc-status-box:hover {
  border-color: #5aa9e6;
  background: rgba(90, 169, 230, 0.05);
}
.stat .label { color: var(--muted); font-size: 12px; }
.stat .value { font-size: 18px; font-weight: 700; }

main { display: grid; grid-template-columns: 280px 1fr 380px; gap: 16px; padding: 0 20px 20px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 14px; font-weight: 600; }

/* Panel basliginda yan yana sekmeler (Acik / Gecmis islemler) */
.panel-head.sub-tabs { display: flex; gap: 6px; padding: 8px 12px; align-items: center; }
.sub-tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.sub-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.sub-tab.on { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--border); }
.sub-tab-badge {
  background: rgba(255,255,255,.10); color: var(--muted); font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sub-tab.on .sub-tab-badge { background: var(--blue, #3b82f6); color: #fff; }

.table-wrap { overflow-x: auto; max-height: 360px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 12px; text-align: left; white-space: nowrap; font-size: 13px; }
th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--panel); font-size: 12px; }
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: var(--panel2); }
.pos { color: #3fb950; }
.neg { color: #f85149; }
.sym { font-weight: 700; }
.sym a { color: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px dotted rgba(255,255,255,.35); }
.sym a:hover { color: #fff; border-bottom-color: #fff; }
.sym a::after { content: " ↗"; font-size: 10px; color: var(--muted); }
.side-tag { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.side-tag.long { background: rgba(46,160,67,.18); color: #3fb950; }
.side-tag.short { background: rgba(218,54,51,.2); color: #f85149; }
.switch-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--text); }
.switch-label input { width: 16px; height: 16px; cursor: pointer; }
.ai-cell { max-width: 220px; white-space: normal; color: var(--muted); font-size: 12px; }
.mini-btn { padding: 4px 8px; font-size: 11px; background: var(--red); border: none; border-radius: 4px; color: #fff; cursor: pointer; }

/* Sol sutun: ustte (varsa) Binance hesap kutusu, altta kalan alani dolduran islem gunlugu. */
.logcol { position: sticky; top: 110px; align-self: start; height: calc(100vh - 230px); min-height: 400px; }
.logcol .panel { display: flex; flex-direction: column; }
.logcol .logpanel { flex: 1; min-height: 0; }
.logbox { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.log-line, .log-trade, .log-error {
  font-size: 12px; line-height: 1.45; padding: 6px 9px; border-radius: 8px;
  background: var(--panel2); border: 1px solid var(--border); border-left: 3px solid var(--gray);
}
.log-line { color: var(--text); }
.log-trade { color: #79c0ff; border-left-color: var(--blue); }
.log-error { color: #ffa198; border-left-color: var(--red); }
.log-time { display: block; color: #6e7681; font-size: 10px; margin-bottom: 2px; }

/* Binance Hesabim kutusu (yalniz API'si olan giris yapmis kullaniciya gorunur) */
.mybinance { padding: 10px 12px; overflow-y: auto; }
.mb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mb-stats > div { background: var(--panel2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 6px; text-align: center; }
.mb-stats span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.mb-stats b { font-size: 13px; }
.mb-usedfree { margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; }
.mb-usedfree b { color: inherit; }
.mb-pos { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.mb-row { display: flex; flex-direction: column; gap: 3px; font-size: 12px; padding: 5px 8px; background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; }
.mb-main { display: flex; align-items: center; gap: 8px; }
.mb-main .mb-sym { font-weight: 600; flex: 1; }
.mb-sym a { color: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px dotted rgba(255,255,255,.35); }
.mb-sym a:hover { color: #fff; border-bottom-color: #fff; }
.mb-sub { font-size: 10px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.mb-histtime { font-size: 10px; color: var(--muted); white-space: nowrap; }
.mb-histsum { margin-top: 8px; padding: 7px 8px; text-align: center; font-size: 12px; color: var(--muted); background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; }
.mb-histsum b { font-size: 13px; }
.mb-close {
  border: 1px solid rgba(218,54,51,.45); background: transparent; color: #e0655e;
  width: 18px; height: 18px; padding: 0; border-radius: 4px; cursor: pointer; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.mb-close:hover { background: var(--red); color: #fff; }
.mb-close:disabled { opacity: .5; cursor: wait; }
.mb-empty, .mb-err { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; padding: 6px; }
.mb-err { color: var(--red); }

.side { min-width: 0; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 400px; }
.chatbox { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 9px 12px; border-radius: 10px; max-width: 90%; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; }
.msg.assistant { align-self: flex-start; background: var(--panel2); border: 1px solid var(--border); }
.msg.ai { align-self: flex-start; max-width: 92%; background: var(--panel2); border: 1px solid var(--border); border-left: 3px solid var(--blue); }
.act-time { color: #6e7681; margin-right: 6px; font-size: 11px; }
.score { font-weight: 700; }
.score.pos { color: #3fb950; }
.score.warn { color: #d29922; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input textarea { flex: 1; resize: none; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 8px; font-family: inherit; font-size: 13px; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal.hidden { display: none; }
.modal-content { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 24px; width: 460px; max-width: 92vw; }
.modal-content h2 { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.form-grid input { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 8px; font-size: 14px; }
.form-grid select { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 8px; font-size: 14px; width: 100%; }
.form-grid select option { background: var(--panel); color: var(--text); }
.form-grid select:focus, .form-grid input:focus { outline: 1px solid var(--accent, #3b82f6); }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ===== Long/Short: kart + modal tasarimi ===== */
.ls-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ls-topbar .switch-label span { font-size: 16px; font-weight: 700; }
.ls-intro-note { flex: 1; min-width: 220px; font-size: 13px; }

.ls-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; padding: 0 20px 16px;
}
.ls-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px;
  text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; color: var(--text); transition: border-color .15s, transform .1s;
}
.ls-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.ls-card-ic { font-size: 22px; }
.ls-card-title { font-size: 15px; font-weight: 700; }
.ls-card-sum { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ls-card-edit { color: var(--blue); font-size: 12px; font-weight: 600; }

#tab-longshort > .panel { margin: 0 20px 16px; }
#tab-longshort > .ls-intro { margin: 16px 20px; }

/* Canli tarama durum hucresi */
.ls-st { font-size: 11px; font-weight: 600; white-space: nowrap; }
.ls-st-sent { color: #6fd388; }
.ls-st-rej { color: var(--muted); }
.ls-st-dead { color: #c9a227; }
.ls-st-wait { color: #5aa9e6; }

/* Long/Short yon secici (kural setleri) */
.ls-side-switch {
  display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px;
}
.ls-side-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 8px 18px; border-radius: 7px; font-size: 13px; font-weight: 700;
  transition: background .15s, color .15s;
}
.ls-side-btn:hover { color: var(--text); }
.ls-side-btn.on[data-side="long"] { background: rgba(46,160,67,.18); color: #6fd388; }
.ls-side-btn.on[data-side="short"] { background: rgba(218,54,51,.18); color: #f0817e; }

/* Zaman dilimi kartlari */
.ls-tf-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px; margin-top: 14px;
}
.ls-tf-card {
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.ls-tf-card.on { border-color: var(--green); background: rgba(46,160,67,.07); }
.ls-tf-head { display: flex; justify-content: space-between; align-items: center; }
.ls-tf-head .switch-label span { font-size: 14px; font-weight: 700; }
.ls-tf-sum { color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 32px; }
.ls-tf-card.on .ls-tf-sum { color: #9fd6ab; }
.ls-tf-edit { align-self: flex-start; padding: 5px 12px; font-size: 12px; }

/* Modal: kaydirilabilir, genis */
.modal-content { max-height: 88vh; overflow-y: auto; }
#lsTfModal .modal-content, #lsGeneralModal .modal-content,
#lsFilterModal .modal-content { width: 540px; }

/* AI yapilandirma danismani modal'i */
.advisor-content { width: 680px; display: flex; flex-direction: column; }
.advisor-chat {
  flex: 1; min-height: 280px; max-height: 52vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-bottom: 12px;
}
.advisor-chat .msg.ai { white-space: normal; }
.advisor-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto; }
.advisor-input { display: flex; gap: 8px; align-items: flex-end; }
.advisor-input textarea {
  flex: 1; resize: vertical; min-height: 42px; padding: 9px 12px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 13px; font-family: inherit;
}

/* TF kural listesi (modal) */
.ls-rule-list { display: flex; flex-direction: column; gap: 4px; }
.ls-rule-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg);
}
.ls-rule-row.on { border-color: var(--green); background: rgba(46,160,67,.06); }
.ls-rule-toggle span { font-size: 13.5px; font-weight: 600; }
.ls-rule-hint { grid-column: 1 / -1; color: var(--gray); font-size: 11px; }
.info-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 5px;
  border-radius: 50%; background: rgba(255,255,255,.08);
  color: var(--muted); font-size: 10px; font-weight: 700; font-style: normal;
  cursor: help; user-select: none; vertical-align: middle;
}
.info-tip:hover { background: var(--blue, #388bfd); color: #fff; }
.ls-rule-ctrl { display: flex; align-items: center; }
.ls-ctrl-inline { display: inline-flex; align-items: center; gap: 6px; }
.ls-ctrl-sep { color: var(--muted); }
.ls-ctrl-pre { color: var(--muted); font-size: 13px; }
.ls-rule-ctrl input, .ls-rule-ctrl select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; font-size: 13px; width: 76px;
}
.ls-rule-ctrl select { width: auto; min-width: 130px; }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  main { grid-template-columns: 1fr; }
  .chat { height: 500px; }
  .logcol { position: static; height: auto; min-height: 0; }
  .logcol .logpanel { height: 300px; flex: none; }
}

/* ---------- Matrix / DOS terminal panelleri (2026-07-05) ----------
   "Bot Kararlari" (islem gunlugu) + "Yapay Zeka Kararlari" (AI notlari):
   siyah zemin, neon yesil monospace, tarama cizgisi + yanip sonen imlec.
   NOT: panel_theme.css body[data-page="panel"] on ekiyle daha ozgul kurallar icerdigi
   icin buradaki seciciler de ayni on eki tasir — yoksa tema bunlari ezer. */
body[data-page="panel"] .panel.matrix {
  background: #020803;
  border-color: rgba(0, 255, 65, .32);
  box-shadow: 0 0 14px rgba(0, 255, 65, .08), inset 0 0 30px rgba(0, 255, 65, .04);
  position: relative;
}
body[data-page="panel"] .panel.matrix::after { /* CRT tarama cizgileri — tiklamayi engellemez */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(0, 255, 65, .03) 0 1px, transparent 1px 3px);
}
body[data-page="panel"] .panel.matrix .panel-head {
  border-bottom: 1px solid rgba(0, 255, 65, .32); background: rgba(0, 255, 65, .05);
}
body[data-page="panel"] .panel.matrix .panel-head h2 {
  color: #00ff41;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  letter-spacing: 1.5px; text-transform: uppercase;
  text-shadow: 0 0 7px rgba(0, 255, 65, .75);
}
body[data-page="panel"] .panel.matrix .panel-head h2::before { content: "> "; }
body[data-page="panel"] .panel.matrix .panel-head h2::after {
  content: "\25AE"; margin-left: 7px; animation: mxblink 1.1s steps(1) infinite;
}
@keyframes mxblink { 50% { opacity: 0; } }

body[data-page="panel"] .matrix .logbox, body[data-page="panel"] .matrix .chatbox { gap: 3px; }
body[data-page="panel"] .matrix .logbox::-webkit-scrollbar,
body[data-page="panel"] .matrix .chatbox::-webkit-scrollbar { width: 8px; }
body[data-page="panel"] .matrix .logbox::-webkit-scrollbar-thumb,
body[data-page="panel"] .matrix .chatbox::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, .35); border-radius: 4px;
}

/* Bot Kararlari satirlari: kart yok, saf terminal satiri */
body[data-page="panel"] .matrix .log-line,
body[data-page="panel"] .matrix .log-trade,
body[data-page="panel"] .matrix .log-error {
  background: transparent; border: none; border-radius: 0; padding: 2px 2px;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px; line-height: 1.5;
  color: #2fd456; text-shadow: 0 0 4px rgba(0, 255, 65, .35);
}
body[data-page="panel"] .matrix .log-line::before,
body[data-page="panel"] .matrix .log-trade::before,
body[data-page="panel"] .matrix .log-error::before { content: "> "; opacity: .55; }
body[data-page="panel"] .matrix .log-trade {
  color: #7dffa2; font-weight: 600; text-shadow: 0 0 6px rgba(0, 255, 65, .6);
}
body[data-page="panel"] .matrix .log-error {
  color: #ff5c5c; text-shadow: 0 0 6px rgba(255, 60, 60, .55);
}
body[data-page="panel"] .matrix .log-time { display: inline; color: #128a33; font-size: 11px; margin-right: 7px; }
body[data-page="panel"] .matrix .log-time::before { content: "["; }
body[data-page="panel"] .matrix .log-time::after { content: "]"; }

/* Yapay Zeka Kararlari mesajlari: balon yok, terminal blogu */
body[data-page="panel"] .matrix .msg,
body[data-page="panel"] .matrix .msg.ai,
body[data-page="panel"] .matrix .msg.assistant,
body[data-page="panel"] .matrix .msg.user {
  align-self: stretch; max-width: 100%; border-radius: 0;
  background: rgba(0, 255, 65, .045); border: none; border-left: 2px solid rgba(0, 255, 65, .55);
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px; line-height: 1.55; padding: 7px 10px;
  color: #2fd456; text-shadow: 0 0 4px rgba(0, 255, 65, .3);
}
body[data-page="panel"] .matrix .msg.ai { border-left-color: #00ff41; }
body[data-page="panel"] .matrix .act-time { color: #128a33; font-size: 11px; }
body[data-page="panel"] .matrix .act-time::before { content: "["; }
body[data-page="panel"] .matrix .act-time::after { content: "] "; }

/* ---------- Alinanlar (acik) tablosu sikistirma (2026-07-05): bos alan azaltildi ---------- */
body[data-page="panel"] #openTable th, body[data-page="panel"] #openTable td {
  padding: 4px 7px; font-size: 12px;
}
body[data-page="panel"] #openTable th { font-size: 11px; }

/* Binance Hesabim: acik K/Z alt tek satir (2026-07-05) */
.mb-openpnl { margin-top: 8px; padding: 7px 8px; text-align: center; font-size: 12px;
  color: var(--muted); background: var(--panel2); border: 1px solid var(--border); border-radius: 6px; }
.mb-openpnl b { font-size: 13px; }

/* [2026-07-06] Sol kolon: Binance Hesabım paneli ve Bot Kararları paneli sol sütunu adil
   paylaşır (yaklaşık yarı yarıya). Her ikisinin de garantili minimum yüksekliği var; içerik
   sığmazsa panel KENDİ İÇİNDE kaydırılır — biri diğerini asla ezmez/gizlemez. */
.logcol #myBinancePanel { flex: 1 1 0; min-height: 280px; }
.logcol #myBinancePanel .mybinance { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.logcol .logpanel { flex: 1 1 0; min-height: 240px; }

/* ---------- [2026-07-06] Ana sayfa serit: Long/Short K/Z karti eklendi ----------
   Kart sayisi 7->8: yalniz ana sayfa seridi sikistirilir (admin .stats etkilenmez). */
#tab-panel .stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 9px; padding: 14px 16px; }
#tab-panel .stat { padding: 10px 10px; }
#tab-panel .stat .value { font-size: 15px; }
#tab-panel .stat .label { font-size: 11px; }
#sideStats { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.25; }
#sideStats .pos { color: var(--green, #6fd388); }
#sideStats .neg { color: var(--red, #e66); }
