/* 1920x1080 video kaydi icin tasarlandi: buyuk rakamlar, yuksek kontrast, sabit yerlesim. */

:root {
  --bg: #080b11;
  --panel: #10151f;
  --panel-2: #161d2b;
  --line: #1e2735;
  --line-soft: #161e29;
  --text: #e8edf7;
  --muted: #7d8a9d;
  --green: #0ecb81;
  --red: #f6465d;
  --amber: #f0b90b;

  /* Taraf renkleri: kural motoru sonuk gri, Jev canli marka rengi */
  --rules: #97a3b6;
  --rules-dim: #5d6a7d;
  --jev: #6f8cff;
  --jev-glow: rgba(111, 140, 255, 0.16);

  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.up { color: var(--green); }
.down { color: var(--red); }

/* --- Üst şerit ----------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-row { display: flex; align-items: baseline; gap: 10px; }
/* Isim: ustteki aciklamayla ayni yazi ve soluk renk; ikonlarin genisligi kadar iceride,
   boylece aciklamanin hemen altinda baslar. */
.brand-handle { color: var(--muted); font-size: 13px; padding-left: 80px; }
/* tayJEV imzası: mum ikonlu küçük rozet + "tay" soluk, "JEV" Jev degradesiyle */
.tayjev { display: inline-flex; align-items: center; gap: 6px; }
.tayjev-mark { width: 18px; height: 18px; display: block; filter: drop-shadow(0 1px 4px rgba(111, 140, 255, 0.35)); }
.tj-word { font-size: 13.5px; line-height: 1; }
.tj-tay { color: var(--muted); font-weight: 500; letter-spacing: 0.3px; }
.tj-jev {
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #6f8cff, #b48bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 20px;
  background: linear-gradient(90deg, var(--rules), var(--jev));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub { color: var(--muted); font-size: 13px; }
.brand-icons { display: inline-flex; align-items: center; gap: 5px; align-self: center; }
.brand-icon { width: 26px; height: 26px; display: block; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.brand-x { color: var(--muted); font-size: 14px; font-weight: 600; }
/* "Özsermaye" etiketinin yerindeki imza: büyük harfe çevrilmez, hafif renkli */
.top-powered {
  text-transform: none;
  letter-spacing: 0.3px;
  font-size: 12.5px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--jev), #d97757);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.top-diff { display: flex; align-items: baseline; gap: 10px; }
.top-diff-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); }

.top-diff-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.top-stats { display: flex; align-items: center; gap: 18px; flex: 1; }
.top-stat { font-size: 13px; color: var(--muted); }
.top-stat b { font-family: var(--mono); font-size: 16px; color: var(--text); font-weight: 600; }

.brain-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0e131d;
  color: var(--muted);
  white-space: nowrap;
}

.brain-badge.on { color: var(--jev); border-color: rgba(111, 140, 255, 0.45); background: var(--jev-glow); }
.brain-badge.off { color: var(--amber); border-color: rgba(240, 185, 11, 0.4); background: rgba(240, 185, 11, 0.1); }

.controls { display: flex; align-items: center; gap: 8px; }

.btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover { background: #1c2536; border-color: #2c3749; }
.btn.active { border-color: var(--jev); color: var(--jev); }
.btn.btn-danger:hover { border-color: var(--red); color: var(--red); }
.btn.sound-on { border-color: var(--amber); color: var(--amber); }
.btn.copied { border-color: var(--green); color: var(--green); }

/* --- Yerleşim ------------------------------------------------------------ */

.layout {
  flex: 1;
  display: grid;
  grid-template-rows: 142px minmax(380px, 1fr) minmax(296px, 330px);
  gap: 10px;
  padding: 10px 12px 12px;
  min-height: 0;
}

/* 1. Piyasa şeridi */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  min-height: 0;
}

.mini {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.mini-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px 4px;
}

.mini-sym { font-weight: 700; font-size: 15px; letter-spacing: 0.3px; }
.mini-name { font-size: 11px; color: var(--muted); }
.mini-price { margin-left: auto; font-family: var(--mono); font-size: 16px; font-weight: 600; }
.mini-change { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.mini-body { flex: 1; min-height: 0; }
.mini-body canvas { display: block; width: 100%; height: 100%; }

/* 2. İki sütun karşılaştırma */

.versus {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 10px;
  min-height: 0;
}

.side {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  position: relative;
}

.side-rules { border-top: 3px solid var(--rules-dim); }
.side-jev { border-top: 3px solid var(--jev); box-shadow: inset 0 40px 80px -60px var(--jev-glow); }

.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.side-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.side-rules h2 { color: var(--rules); }
.side-jev h2 { color: var(--jev); }

.side-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

.side-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.side-equity { text-align: right; line-height: 1.15; }
.equity-value { display: block; font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -1px; }
.equity-pnl { font-family: var(--mono); font-size: 16px; font-weight: 600; }

/* Skor kartı */

.scorecard {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.score-cell {
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 5px 6px;
  text-align: center;
  min-width: 0;
}

.score-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 3px;
}

.score-value { font-family: var(--mono); font-size: 22px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.score-value small { font-size: 12px; color: var(--muted); font-weight: 500; }

.risk-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-size: 12px;
}

.risk-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  background: #0a0f17;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 3px 8px;
}

.risk-item span { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.risk-item b { font-family: var(--mono); font-size: 14px; font-weight: 700; }

/* Karar tablosu */

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 6px;
}

.regime-inline { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; }

.regime-chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text);
}

.cautious-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--amber);
  border: 1px solid rgba(240, 185, 11, 0.45);
  background: rgba(240, 185, 11, 0.12);
}

.cant-chip { font-size: 11px; color: var(--muted); font-style: italic; }

.decision-table { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; overflow-y: auto; }

.drow {
  display: grid;
  grid-template-columns: 44px 1.05fr 1.05fr 54px 62px 1.35fr;
  gap: 9px;
  align-items: center;
  background: #0c111a;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 10px;
}

/* Short açıkken bir gösterge daha: açığa satış olasılığı. */
.decision-table.with-shorts .drow { grid-template-columns: 50px 1fr 1fr 1fr minmax(54px, max-content) 62px 1.2fr; }

.drow.acted-BUY, .drow.acted-COVER { border-color: rgba(14, 203, 129, 0.45); background: rgba(14, 203, 129, 0.06); }
.drow.acted-SELL, .drow.acted-SHORT { border-color: rgba(246, 70, 93, 0.45); background: rgba(246, 70, 93, 0.06); }

.drow-sym { font-family: var(--mono); font-weight: 700; font-size: 15px; display: flex; flex-direction: column; line-height: 1.1; }
.short-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; color: #f0952b; text-transform: uppercase; }
.bias-chip { font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.bias-chip.bullish { color: var(--green); }
.bias-chip.bearish { color: var(--red); }
.power.tf-chips { flex-direction: row; gap: 7px; white-space: nowrap; }
.lev-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--amber);
  border: 1px solid rgba(240, 185, 11, 0.5);
  border-radius: 4px;
  padding: 0 4px;
  letter-spacing: 0.3px;
}
.long-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; color: var(--green); text-transform: uppercase; }

.gauge { display: flex; flex-direction: column; gap: 3px; }
.gauge-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.gauge-label b { font-family: var(--mono); font-size: 12.5px; color: var(--text); font-weight: 600; }
.gauge-track { position: relative; height: 7px; background: #141c28; border-radius: 4px; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 4px; transition: width 0.35s; }
.gauge-fill.entry { background: var(--green); }
.gauge-fill.exit { background: var(--red); }
.gauge-fill.short { background: #f0952b; }
.gauge.muted { opacity: 0.35; }

.gauge-threshold {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
}

.power { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.power-dots { display: flex; gap: 3px; }
.power-dot { width: 9px; height: 9px; border-radius: 2px; background: #1c2532; }
.power-dot.on { background: var(--amber); }
.power-over { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.verdict {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.verdict.BUY { color: var(--green); border-color: rgba(14, 203, 129, 0.5); background: rgba(14, 203, 129, 0.12); }
.verdict.SELL { color: var(--red); border-color: rgba(246, 70, 93, 0.5); background: rgba(246, 70, 93, 0.12); }
.verdict.HOLD { color: #a9c2ff; border-color: rgba(111, 140, 255, 0.45); background: rgba(111, 140, 255, 0.1); }
.verdict.SHORT { color: #f0952b; border-color: rgba(240, 149, 43, 0.5); background: rgba(240, 149, 43, 0.12); }
.verdict.COVER { color: var(--green); border-color: rgba(14, 203, 129, 0.5); background: rgba(14, 203, 129, 0.12); }

.drow-note {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.jev-off[hidden] { display: none; }

.jev-off {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(8, 11, 17, 0.9);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  font-size: 17px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1.6;
}

/* 3. Alt üçlü */

.bottom {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.1fr;
  gap: 10px;
  min-height: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.3px; }

.legend { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 3px; }
.dot-rules { background: var(--rules); }
.dot-jev { background: var(--jev); }
.dot-hold { background: #e0a84a; }

.pill {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.equity-wrap { flex: 1; min-height: 90px; }
.equity-wrap canvas { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }

/* Alım satım tahtası (canlı mod): solda alış, sağda satış, en iyi kademe en üstte */
.chips .chip.sm { font-size: 11px; padding: 2px 8px; }
.book-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.book-summary { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--muted); }
.book-summary .row { display: flex; justify-content: space-between; gap: 8px; }
.book-summary b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.book-summary .row.flow { justify-content: flex-start; flex-wrap: wrap; column-gap: 4px; font-size: 11px; }
.book-balance { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #141c28; }
.book-balance .bid { background: var(--green); }
.book-balance .ask { background: var(--red); }
.book { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: hidden; }
.book-side { display: flex; flex-direction: column; min-width: 0; }
.book-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 17px;
  padding: 0 4px;
}
.book-row span { position: relative; z-index: 1; text-align: right; white-space: nowrap; overflow: hidden; }
.book-row span:first-child { text-align: left; }
.book-row.head { font-family: inherit; font-size: 10.5px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 2px; }
.book-row .depth { position: absolute; top: 1px; bottom: 1px; z-index: 0; border-radius: 2px; }
.book-side.bids .depth { right: 0; background: rgba(14, 203, 129, 0.14); }
.book-side.asks .depth { left: 0; background: rgba(246, 70, 93, 0.14); }
.book-side.bids .price { color: var(--green); }
.book-side.asks .price { color: var(--red); }
/* Dünya saatleri şeridi (canlı mod): ince, kayan, beyaz yazı */
.clock-bar {
  flex-shrink: 0;
  height: 26px;
  overflow: hidden;
  background: #0b1018;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.clock-track {
  display: flex;
  width: max-content;
  animation: clock-scroll 45s linear infinite;
  will-change: transform;
}
.clock-bar:hover .clock-track { animation-play-state: paused; }
@keyframes clock-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clock-track { animation: none; }
}
.clock-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 28px;
  color: #fff;
  font-size: 12.5px;
  white-space: nowrap;
}
.clock-item b { font-weight: 700; letter-spacing: 0.6px; }
.clock-item .clock-time { font-family: var(--mono); font-weight: 600; }
.clock-item small { color: #fff; opacity: 0.7; font-size: 11.5px; }
.clock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.clock-dot.open { background: var(--green); }
.clock-dot.break { background: var(--amber); }

.mini.book-on { border-color: rgba(240, 185, 11, 0.6); }
.mini-closed {
  font-size: 10px;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid rgba(240, 185, 11, 0.45);
  border-radius: 999px;
  padding: 0 6px;
  white-space: nowrap;
}
.strip.clickable .mini { cursor: pointer; }

.equity-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.equity-foot span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); }
.equity-foot b { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.equity-foot .equity-hold { text-transform: none; letter-spacing: 0; font-family: var(--mono); }

/* Ayrışma listesi */

.dis-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; flex: 1 1 0; }

.dis-row {
  display: grid;
  grid-template-columns: 46px 1fr 62px 74px;
  gap: 8px;
  align-items: center;
  background: #0c111a;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}

.dis-sym { font-family: var(--mono); font-weight: 700; }
.dis-what { font-size: 12px; color: var(--muted); }
.dis-what b { color: var(--text); font-weight: 600; }
.dis-move { font-family: var(--mono); font-size: 13px; text-align: right; }

.who {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.who.jev { color: var(--jev); border-color: rgba(111, 140, 255, 0.5); background: var(--jev-glow); }
.who.rules { color: var(--rules); border-color: rgba(151, 163, 182, 0.45); background: rgba(151, 163, 182, 0.1); }

/* Jev raporu */

.jev-counters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.counter {
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 5px 6px;
  text-align: center;
  min-width: 0;
}

.counter b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 700; line-height: 1.15; color: var(--jev); }
.counter span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.2px; line-height: 1.2; }

.cards { display: flex; flex-direction: column; gap: 7px; overflow-y: auto; min-height: 0; flex: 1; }

.card {
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  overflow: hidden;
}

.card.open { border-color: rgba(111, 140, 255, 0.4); }

.card-top {
  display: grid;
  grid-template-columns: 58px 46px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
}

.card-side { font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; }
.card-side.BUY { color: var(--green); }
.card-side.SELL { color: var(--red); }
.card-sym { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.card-order { font-family: var(--mono); font-size: 14px; color: var(--text); }
.card-time { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.card-body {
  padding: 0 10px 9px;
  display: grid;
  grid-template-columns: 1.3fr 0.72fr 1.45fr;
  gap: 12px;
  align-items: start;
}

.card-block { border-left: 2px solid var(--line); padding-left: 10px; min-width: 0; }
.card-block.said {
  border: 1px solid rgba(111, 140, 255, 0.5);
  border-left-width: 3px;
  background: var(--jev-glow);
  border-radius: 7px;
  padding: 6px 8px;
}

.card-block h4 {
  margin: 0 0 7px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.card-block.said h4 { color: var(--jev); }

.kv { display: grid; grid-template-columns: 1fr; gap: 5px; font-size: 13px; }
.kv div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: baseline; line-height: 1.3; min-width: 0; }
.kv div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kv span { color: var(--muted); font-size: 11.5px; letter-spacing: 0.2px; white-space: nowrap; }
.kv b { font-weight: 600; font-size: 13px; line-height: 1.3; min-width: 0; }

.said-row { display: flex; flex-direction: column; gap: 4px; }

.said-chip {
  font-size: 14.5px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(111, 140, 255, 0.14);
  border: 1px solid rgba(111, 140, 255, 0.3);
}

.said-chip span { color: var(--muted); font-weight: 500; font-size: 12px; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.steps li { font-family: var(--mono); font-size: 12.5px; color: #c3cfdf; line-height: 1.55; }
.steps li::before { content: "› "; color: var(--muted); }
.steps li:last-child { color: var(--text); font-weight: 600; }

.empty { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0; }

.link-btn {
  background: none;
  border: none;
  color: var(--jev);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Bildirimler --------------------------------------------------------- */

.toast-stack {
  position: fixed;
  top: 66px;
  right: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 290px;
  border-radius: 10px;
  padding: 10px 14px;
  background: #121a26;
  border: 1px solid var(--line);
  border-left-width: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  animation: toast-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.35), toast-out 0.4s ease-in 3.5s forwards;
}

.toast.BUY { border-left-color: var(--green); }
.toast.SELL { border-left-color: var(--red); }
.toast-icon { font-size: 19px; font-weight: 800; text-align: center; }
.toast.BUY .toast-icon { color: var(--green); }
.toast.SELL .toast-icon { color: var(--red); }
.toast-title { font-size: 13.5px; font-weight: 800; letter-spacing: 0.3px; }
.toast-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.toast-value { font-family: var(--mono); font-size: 16px; font-weight: 700; text-align: right; }
.toast-value small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }

.toast-owner {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.toast-owner.rules { color: var(--rules); background: rgba(151, 163, 182, 0.16); }
.toast-owner.jev { color: var(--jev); background: var(--jev-glow); }

@keyframes toast-in {
  from { transform: translateX(120%) scale(0.96); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

.mini.flash-rules { animation: flash-rules 1.2s ease-out; }
.mini.flash-jev { animation: flash-jev 1.2s ease-out; }

@keyframes flash-rules {
  0% { border-color: var(--rules); box-shadow: inset 0 0 40px rgba(151, 163, 182, 0.25); }
  100% { border-color: var(--line); box-shadow: none; }
}

@keyframes flash-jev {
  0% { border-color: var(--jev); box-shadow: inset 0 0 40px rgba(111, 140, 255, 0.3); }
  100% { border-color: var(--line); box-shadow: none; }
}

.equity-value.pulse, .top-diff-value.pulse { animation: value-pulse 1s ease-out; }

@keyframes value-pulse {
  0% { transform: scale(1.1); text-shadow: 0 0 16px currentColor; }
  100% { transform: scale(1); text-shadow: none; }
}

/* --- Modal --------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 30px;
}

.modal[hidden] { display: none; }

.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  width: min(820px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-note { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.6; }

.modal-box pre {
  margin: 0;
  overflow: auto;
  background: #080c13;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: #c9d4e6;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #1e2735; border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1500px) {
  .layout { grid-template-rows: 122px minmax(290px, 1fr) minmax(330px, 380px); }
  .equity-value { font-size: 28px; }
  .top-diff-value { font-size: 24px; }
}

/* --- Senaryo düğmeleri ve kâr/düşüş oranı -------------------------------- */

.scenario { display: flex; flex-direction: column; gap: 4px; }
.scenario-btns { display: flex; gap: 4px; }

.scn {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.scn:hover { color: var(--text); border-color: #2c3749; }
.scn.active { color: var(--amber); border-color: rgba(240, 185, 11, 0.55); background: rgba(240, 185, 11, 0.12); }

.top-ratio { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; }
.top-ratio b { font-size: 19px; font-weight: 700; }

/* Ayrışma listesinde "bekleniyor" durumu */
.who.pending { color: var(--muted); border-style: dashed; }
.dis-kind { font-size: 10px; color: var(--muted); letter-spacing: 0.3px; }

/* Eski karar kartları tek satırlık liste olarak altta kalsın */
.card.collapsed .card-top { padding: 5px 10px; opacity: 0.75; }
.card.collapsed .card-top:hover { opacity: 1; }

.jev-counters { grid-template-columns: repeat(3, 1fr); }
.counter-rules {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  color: var(--rules-dim);
  margin-top: 1px;
}
.counter span { display: block; line-height: 1.15; }

/* --- Zar portföyü (kontrol grubu) ve ikinci pencere ---------------------- */

.btn.dice-on { border-color: #c98b3a; color: #c98b3a; }

.dice-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(201, 139, 58, 0.08);
  border: 1px solid rgba(201, 139, 58, 0.3);
  font-size: 13px;
}

.dice-line[hidden] { display: none; }
.dice-line b { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.dice-line .dice-sub { color: var(--muted); font-size: 11.5px; margin-left: auto; }

.dice-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #c98b3a;
  border: 1px solid rgba(201, 139, 58, 0.45);
  border-radius: 4px;
  padding: 1px 6px;
}

.head-links { display: flex; gap: 12px; align-items: center; }
.head-links .link-btn:last-child { color: var(--rules); }

/* --- Piyasa seçimi, eylem düğmesi ve ayarlar modalı ---------------------- */

.select {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-width: 118px;
}

.select:focus { outline: none; border-color: var(--amber); color: var(--amber); }

.btn-icon { display: flex; align-items: center; gap: 8px; }
.dots { font-size: 18px; line-height: 1; letter-spacing: 1px; }

.state-flags { display: flex; gap: 6px; }

.flag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.flag.paused { color: var(--amber); border-color: rgba(240, 185, 11, 0.45); background: rgba(240, 185, 11, 0.1); }
.flag.manual { color: var(--rules); border-color: rgba(151, 163, 182, 0.4); background: rgba(151, 163, 182, 0.1); }
.flag.dice { color: #c98b3a; border-color: rgba(201, 139, 58, 0.45); background: rgba(201, 139, 58, 0.1); }

.modal-narrow { width: min(520px, 100%); }

.settings { display: flex; flex-direction: column; gap: 8px; }

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 11px 14px;
  cursor: pointer;
}

.setting:hover { border-color: var(--line); }
.setting span { display: flex; flex-direction: column; gap: 2px; }
.setting b { font-size: 14px; font-weight: 700; }
.setting small { font-size: 11.5px; color: var(--muted); }

.switch {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #1c2532;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}

.switch:checked { background: rgba(111, 140, 255, 0.28); border-color: var(--jev); }
.switch:checked::after { transform: translateX(18px); background: var(--jev); }

.actions-row { display: flex; gap: 8px; }
.actions-row .btn { flex: 1; }

/* Ayrışma yön toplamları */

.dis-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dis-totals:empty { display: none; }

.dis-total-group {
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dis-total-head {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.2px;
  display: flex;
  justify-content: space-between;
}

.dis-total-head i {
  font-style: normal;
  font-family: var(--mono);
  color: var(--text);
}

.dis-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dis-total span { font-size: 11.5px; color: var(--muted); }
.dis-total b { font-family: var(--mono); font-size: 13.5px; font-weight: 700; }

/* --- Haber akışı --------------------------------------------------------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 0;
}

.news-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 8px;
  align-items: start;
  background: #0c111a;
  border-radius: 7px;
  padding: 6px 8px;
}

.news-row.fresh { animation: news-in 0.5s ease-out; }

@keyframes news-in {
  from { background: rgba(240, 185, 11, 0.16); transform: translateY(-3px); }
  to { background: #0c111a; transform: none; }
}

.news-time { font-family: var(--mono); font-size: 10.5px; color: var(--muted); padding-top: 1px; }
.news-text { font-size: 12px; line-height: 1.35; }
.news-text a { color: inherit; text-decoration: none; }
.news-text a:hover { text-decoration: underline; }
.news-tags { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }

.news-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.news-tag.lex { color: var(--rules); }
.news-tag.jev { color: var(--jev); border-color: rgba(111, 140, 255, 0.35); }
.news-tag.up { background: rgba(14, 203, 129, 0.12); border-color: rgba(14, 203, 129, 0.4); }
.news-tag.down { background: rgba(246, 70, 93, 0.12); border-color: rgba(246, 70, 93, 0.4); }
.news-tag.pending { opacity: 0.45; }

.news-note {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
  border-top: 1px solid var(--line-soft);
  padding-top: 6px;
}

.flag.news-off { color: var(--muted); }

/* --- Karar kartı: tek kart + büyük gezinme ------------------------------- */

.card-nav {
  display: grid;
  grid-template-columns: 34px 1fr 34px 34px;
  gap: 6px;
  align-items: center;
}

.nav-btn {
  height: 30px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-btn:hover:not(:disabled) { background: #1c2536; border-color: var(--jev); color: var(--jev); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.nav-btn.wide { font-size: 14px; }

.card-nav-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-nav-label b { font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.card-nav-label .idx { font-family: var(--mono); font-size: 11px; opacity: 0.7; }

.card-view {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

/* "Dedi" en üstte, tam genişlikte yatay şerit */
.said-strip {
  position: sticky;
  top: 40px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(111, 140, 255, 0.5);
  border-left-width: 3px;
  background: #151d30;
  border-radius: 8px;
  padding: 8px 10px;
}

.said-strip .strip-head {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--jev);
  margin-right: 2px;
}

.card-cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; align-items: start; }

.card-order-line {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  background: #0c111a;
  border: 1px solid var(--line-soft);
}

.card-order-line .side-mark { font-size: 13px; font-weight: 800; letter-spacing: 0.4px; }
.card-order-line .side-mark.BUY { color: var(--green); }
.card-order-line .side-mark.SELL { color: var(--red); }
.card-order-line b { font-family: var(--mono); font-size: 17px; }
.card-order-line .when { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.modal-wide { width: min(1080px, 100%); }
.modal-wide .card-cols { grid-template-columns: 1fr 1.2fr; gap: 18px; }
.modal-wide .kv { font-size: 13px; }
.modal-wide .kv div { grid-template-columns: 110px 1fr; }
.modal-wide .steps li { font-size: 13px; }
.modal-wide .said-chip { font-size: 14px; }

/* --- Haber okuma isabeti kartı ve İngilizce alt metin -------------------- */

.accuracy-card {
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 7px 10px;
}

.accuracy-card:empty { display: none; }

.acc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  margin-bottom: 5px;
}

.acc-head i { font-style: normal; font-weight: 500; font-size: 10px; color: var(--muted); }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.acc-cell {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #0a0f17;
  border-radius: 6px;
  padding: 4px 8px;
}

.acc-label { font-size: 10.5px; font-weight: 700; }
.acc-label.lex { color: var(--rules); }
.acc-label.jev { color: var(--jev); }
.acc-value { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-left: auto; }
.acc-sub { font-family: var(--mono); font-size: 10px; color: var(--muted); }

.news-en {
  display: block;
  font-size: 10.5px;
  color: #5d6a7d;
  line-height: 1.3;
  margin-top: 2px;
}

.flag.uncal { color: var(--amber); border-color: rgba(240, 185, 11, 0.45); background: rgba(240, 185, 11, 0.12); }

/* Kenar rozeti ve iki düzeyli isabet kartı */

.edge-chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  border: 1px solid var(--line);
}

.edge-chip.pos { color: var(--green); border-color: rgba(14, 203, 129, 0.4); background: rgba(14, 203, 129, 0.1); }
.edge-chip.neg { color: var(--muted); }

.acc-row {
  display: grid;
  grid-template-columns: 1fr 56px 56px;
  gap: 6px;
  align-items: baseline;
  padding: 3px 0;
}

.acc-level { font-size: 11.5px; color: var(--muted); }
.acc-level i { font-style: normal; font-family: var(--mono); font-size: 10px; opacity: 0.7; }
.acc-cell { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.acc-value.lex { color: var(--rules); }
.acc-value.jev { color: var(--jev); }
.acc-legend { display: flex; gap: 8px; }
.acc-legend i { font-style: normal; font-size: 9.5px; font-weight: 700; }
.acc-legend i.lex { color: var(--rules); }
.acc-legend i.jev { color: var(--jev); }

.flag.big { font-size: 13px; padding: 5px 14px; letter-spacing: 0.8px; animation: pulse-flag 1.6s ease-in-out infinite; }
.flag.guard { color: #fff; background: var(--red); border-color: var(--red); font-weight: 800; }

@keyframes pulse-flag {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* --- Tek portföy: üst bardaki özsermaye ---------------------------------- */

.top-equity { display: flex; align-items: baseline; gap: 10px; }
.top-equity-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.top-equity-pnl { font-family: var(--mono); font-size: 17px; font-weight: 700; }

/* --- Jev'in kararları akışı ---------------------------------------------- */

.feed-panel { gap: 9px; }

.feed-tools { display: flex; align-items: center; gap: 10px; }

.chips { display: flex; gap: 5px; }

.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.chip:hover { color: var(--text); border-color: #2c3749; }
.chip.active { color: var(--jev); border-color: rgba(111, 140, 255, 0.55); background: var(--jev-glow); }

.info-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  cursor: pointer;
  line-height: 1;
}

.info-dot:hover { color: var(--jev); border-color: var(--jev); }

.feed-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--jev);
  border-radius: 8px;
  padding: 8px 11px;
}

.feed-hint[hidden] { display: none; }

/* Dönen simit paneli: zemin videonun arka planıyla (#0f121d) aynı; solda canlı fiyatlar,
   sağda pozisyonlar ve son işlemler, aralarında simide giden ışıklı bağlantılar. */
.hero {
  position: relative;
  flex: 0 0 auto;
  height: 236px;
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr) 196px;
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  padding: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #0f121d;
  border: 1px solid rgba(111, 140, 255, 0.18);
  font-family: var(--mono);
}
.hero-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-pulse { stroke-dasharray: 6 120; animation: hero-flow 2.6s linear infinite; filter: drop-shadow(0 0 3px currentColor); }
@keyframes hero-flow { from { stroke-dashoffset: 126; } to { stroke-dashoffset: 0; } }
.hero-node { filter: drop-shadow(0 0 4px #fff); }
.hero-left, .hero-right { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 0; overflow: hidden; }
.hero-left { justify-content: space-between; }
.hero-in {
  border-left: 2px solid var(--c);
  background: rgba(12, 17, 28, 0.82);
  border-radius: 0 6px 6px 0;
  padding: 3px 7px;
  box-shadow: inset 2px 0 8px -4px var(--c);
}
.hero-in-top { display: flex; align-items: baseline; gap: 6px; font-size: 11px; }
.hero-in-sym { color: var(--c); font-weight: 800; letter-spacing: 0.5px; }
.hero-in-price { margin-left: auto; color: #e8ecf5; font-weight: 700; }
.hero-in-chg { font-size: 10px; }
.hero-in-bot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 1px; }
.hero-in-tf { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.hero-in-tf b { font-weight: 700; color: var(--muted); }
.hero-spark { width: 64px; height: 16px; display: block; }
.hero-center { position: relative; z-index: 0; display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 0; height: 100%; overflow: hidden; }
.hero-center video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 72%, transparent 100%);
}
.hero-right-head { font-size: 9.5px; letter-spacing: 0.6px; color: var(--muted); }
#hero-right { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-ind {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: rgba(12, 17, 28, 0.85);
  border-radius: 6px;
  padding: 2px 6px 3px;
  box-shadow: inset 0 0 10px -6px var(--c);
}
.hero-ind-top { display: flex; justify-content: space-between; gap: 6px; font-size: 9.5px; line-height: 1.2; white-space: nowrap; }
.hero-ind-top span { color: var(--c); font-weight: 700; letter-spacing: 0.4px; }
.hero-ind-top b { color: #e8ecf5; font-weight: 700; }
.hero-ind canvas { flex: 1 1 auto; min-height: 0; width: 100%; display: block; }
.hero-in { cursor: pointer; }
.hero-in.focus { background: color-mix(in srgb, var(--c) 14%, rgba(12, 17, 28, 0.9)); }
.hero-fill {
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: rgba(12, 17, 28, 0.85);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10.5px;
}
.hero-fill.open { box-shadow: 0 0 8px -2px var(--c); }
.hero-fill-top, .hero-fill-bot { display: flex; justify-content: space-between; gap: 6px; }
.hero-fill-top span { color: var(--c); font-weight: 700; }
.hero-fill-top b { font-weight: 800; }
.hero-fill-bot { color: var(--muted); font-size: 9.5px; }
.hero-empty { color: var(--muted); font-size: 10px; padding-top: 6px; }
.hero .up { color: var(--green); }
.hero .down { color: var(--red); }

/* Anlatıcı şeridi: kayıtta izleyici tek cümle okur. */

.narrator-band {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(111, 140, 255, 0.16), rgba(111, 140, 255, 0.03));
  border: 1px solid rgba(111, 140, 255, 0.28);
  opacity: 0.25;
  transition: opacity 0.45s ease;
}

.narrator-band.show { opacity: 1; }

/* Jev'in karar cumleleri de Matrix yesili; uzun yazi oldugu icin parlama hafif (2026-10-07). */
.narrator-text {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: #00ff41;
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.45);
  animation: band-in 0.4s ease-out;
}

/* Bekleme yazisi: Matrix yesili, daktilo yazisi, hafif parlama ve yanip sonen imlec (2026-10-07). */
.narrator-idle {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 15px;
  color: #00ff41;
  text-shadow: 0 0 4px rgba(0, 255, 65, 0.75), 0 0 10px rgba(0, 255, 65, 0.35);
}
.narrator-idle::after { content: '_'; margin-left: 2px; animation: idle-blink 1s steps(1) infinite; }
@keyframes idle-blink { 50% { opacity: 0; } }
/* Bekleme yazisi soluk kalmasin: sayfanin sarisiyla tam gorunur. */
.narrator-band:has(.narrator-idle) { opacity: 1; }

@keyframes band-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Kart akışı */

.feed {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 3px;
}

.fcard {
  background: #0c111a;
  border: 1px solid var(--line-soft);
  border-left: 3px solid #2a3547;
  border-radius: 9px;
  padding: 9px 12px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.fcard:hover { border-color: var(--line); background: #0e1420; }
.fcard.open { border-color: rgba(111, 140, 255, 0.4); background: #0e1522; cursor: default; }
.fcard.fresh { animation: fcard-in 0.45s ease-out; }

@keyframes fcard-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.fcard-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}

.fc-time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fc-sym { font-family: var(--mono); font-size: 13.5px; font-weight: 700; }
.fc-sym.market { font-size: 11px; color: var(--muted); letter-spacing: 0.6px; }

.fc-kind {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 2px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.fc-order { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.fc-order.BUY { color: var(--green); }
.fc-order.SELL { color: var(--red); }

.fc-why {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--jev);
  border: 1px solid rgba(111, 140, 255, 0.35);
  background: var(--jev-glow);
  border-radius: 4px;
  padding: 1px 6px;
}

.fc-toggle { margin-left: auto; color: var(--muted); font-size: 12px; }

.fc-text { margin: 0; font-size: 16px; line-height: 1.45; }

/* Tür renkleri */

.k-ALDI { border-left-color: var(--green); }
.k-ALDI .fc-kind { color: var(--green); border-color: rgba(14, 203, 129, 0.5); background: rgba(14, 203, 129, 0.12); }

.k-SATTI { border-left-color: var(--red); }
.k-SATTI .fc-kind { color: var(--red); border-color: rgba(246, 70, 93, 0.5); background: rgba(246, 70, 93, 0.12); }

.k-AÇIĞA-SATTI { border-left-color: #ff7a45; }
.k-AÇIĞA-SATTI .fc-kind { color: #ff7a45; border-color: rgba(255, 122, 69, 0.5); background: rgba(255, 122, 69, 0.12); }

.k-KAPATTI { border-left-color: #2fd3c4; }
.k-KAPATTI .fc-kind { color: #2fd3c4; border-color: rgba(47, 211, 196, 0.5); background: rgba(47, 211, 196, 0.12); }

.k-GÜVENLİK { border-left-color: #f0952b; }
.k-GÜVENLİK .fc-kind { color: #f0952b; border-color: rgba(240, 149, 43, 0.5); background: rgba(240, 149, 43, 0.12); }

.k-VETO { border-left-color: #a970ff; }
.k-VETO .fc-kind { color: #a970ff; border-color: rgba(169, 112, 255, 0.5); background: rgba(169, 112, 255, 0.12); }

.k-HAVA, .k-TEMKİNLİ { border-left-color: var(--jev); }
.k-HAVA .fc-kind, .k-TEMKİNLİ .fc-kind { color: var(--jev); border-color: rgba(111, 140, 255, 0.5); background: var(--jev-glow); }

.k-HABER { border-left-color: var(--amber); }
.k-HABER .fc-kind { color: var(--amber); border-color: rgba(240, 185, 11, 0.5); background: rgba(240, 185, 11, 0.12); }

.k-TUTUYOR, .k-BEKLİYOR { border-left-color: #2a3547; opacity: 0.86; }
.k-TUTUYOR .fc-text, .k-BEKLİYOR .fc-text { font-size: 15px; color: #c3cfdf; }

/* Açılan gövde */

.fcard-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.changed-list h4,
.card-block h4,
.why h4 {
  margin: 0 0 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.changed-list ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

.changed-list li {
  font-size: 12.5px;
  background: #151d30;
  border: 1px solid rgba(111, 140, 255, 0.35);
  border-radius: 6px;
  padding: 3px 9px;
}

.changed-list li b { font-weight: 700; color: var(--jev); margin-right: 5px; }

.arrow { font-style: normal; color: var(--muted); }
.arrow.up { color: var(--green); }
.arrow.down { color: var(--red); }

.fcard-body .said-strip { position: static; top: auto; }
.fcard-body .kv div.changed b { color: var(--jev); }
.fcard-body .kv div.changed span { color: #9fb2ff; }

/* Neden: etki çubukları */

.why {
  background: #0a0f17;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 11px;
}

.why-text { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: #c3cfdf; }
.why-wait { margin: 0; font-size: 12.5px; color: var(--muted); font-style: italic; }
.why-bars { display: flex; flex-direction: column; gap: 5px; }

.why-row { display: grid; grid-template-columns: 130px 1fr 92px; gap: 9px; align-items: center; }
.why-label { font-size: 12px; color: var(--muted); }
.why-row.driver .why-label { color: var(--jev); font-weight: 700; }

.why-bar { height: 8px; background: #141c28; border-radius: 4px; overflow: hidden; }
.why-bar i { display: block; height: 100%; background: #3d4c68; border-radius: 4px; }
.why-row.driver .why-bar i { background: var(--jev); }

.why-num { font-family: var(--mono); font-size: 13px; font-weight: 700; text-align: right; }
.why-num small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }

/* --- Tek portföyde sadeleşen parçalar ------------------------------------ */

.jev-counters { grid-template-columns: repeat(3, 1fr); gap: 7px; }
.counter b { font-size: 24px; }
.counter span { font-size: 11px; }

.equity-foot b { font-size: 24px; }
.toast-sub { max-width: 340px; }

/* --- JEV advisor paneli: sıkı düzen (2026-10-07) ----------------------------
   Dizüstü ekranlarda (ör. 1536x864) beş paritenin hepsi, XRP dahil, görünsün diye
   yazılar ve boşluklar biraz küçük. */

.lev-badge { white-space: nowrap; }

.side-jev { padding: 10px 13px; gap: 6px; }
.side-jev .side-head h2 { font-size: 16px; }
.side-jev .side-tag { font-size: 11px; padding: 1px 8px; }
.side-jev .side-sub { margin-top: 2px; font-size: 11px; }
.side-jev .equity-value { font-size: 26px; }
.side-jev .equity-pnl { font-size: 13px; }
.side-jev .scorecard { gap: 5px; }
.side-jev .score-cell { padding: 3px 5px; }
.side-jev .score-label { font-size: 9.5px; letter-spacing: 0.4px; margin-bottom: 1px; }
.side-jev .score-value { font-size: 17px; }
.side-jev .score-value small { font-size: 10.5px; }
.side-jev .risk-row { gap: 5px; }
.side-jev .risk-item { padding: 2px 6px; }
.side-jev .risk-item span { font-size: 9.5px; }
.side-jev .risk-item b { font-size: 12px; }
.side-jev .table-head { font-size: 10px; padding-bottom: 4px; }
.side-jev .regime-inline, .side-jev .regime-chip { font-size: 11px; }
.side-jev .decision-table { gap: 3px; }
.side-jev .drow { padding: 3px 8px; gap: 7px; }
.side-jev .drow-sym { font-size: 13px; }
.side-jev .gauge { gap: 2px; }
.side-jev .gauge-label { font-size: 10px; }
.side-jev .gauge-label b { font-size: 11.5px; }
.side-jev .gauge-track { height: 6px; }
.side-jev .power.tf-chips { font-size: 11px; gap: 5px; }
.side-jev .verdict { font-size: 11px; padding: 2px 0; }
.side-jev .drow-note { font-size: 10.5px; }

/* Haber kartı ("Headline: ...") satırı: tam Matrix parlaklığı (2026-10-07 kullanıcı). */
.k-HABER .fc-text {
  font-family: Consolas, 'Courier New', monospace;
  color: #00ff41;
  text-shadow: 0 0 4px rgba(0, 255, 65, 0.75), 0 0 10px rgba(0, 255, 65, 0.35);
}

/* Sayfa denetimi duzeltmeleri (2026-10-07) ----------------------------------------
   Haber dogruluk satirlari: eski .acc-cell kutu stili yeni satir duzeniyle cakisiyordu. */
.acc-row .acc-cell { background: none; padding: 0; gap: 0; }
/* Dar ekranda (ör. 1366) kart basligi sigsin: uzun ad (Ethereum, Bitcoin) gizlenir. */
@media (max-width: 1500px) {
  .mini-name { display: none; }
}

/* 9 parite (8 Ekim): ust serit yana kayar, ortadaki sol liste sikisik */
.strip.scroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px; }
.strip.scroll .mini { scroll-snap-align: start; }
.strip.scroll::-webkit-scrollbar { height: 5px; }
.hero-left.many { justify-content: flex-start; gap: 2px; }
.hero-left.many .hero-in { padding: 1px 6px; }
.hero-left.many .hero-in-top { font-size: 10px; }
.hero-left.many .hero-in-bot { margin-top: 0; }
.hero-left.many .hero-in-tf { font-size: 8.5px; }
.hero-left.many .hero-spark { height: 12px; }
/* 9 parite ince ayar: sol liste tek satir, tahta dugmeleri kayar, seritte sag kenar ipucu */
.hero-left.many .hero-in { display: flex; align-items: center; gap: 6px; padding: 2px 6px; }
.hero-left.many .hero-in-top { flex: 1 1 auto; min-width: 0; }
.hero-left.many .hero-in-bot { flex: 0 0 auto; }
.hero-left.many .hero-spark { display: none; }
/* 9 Ekim (kullanici): liste panelin tum yuksekligine esit dagilir, alt bos kalmaz */
.hero-left.many { justify-content: stretch; gap: 3px; }
.hero-left.many .hero-in { flex: 1 1 0; min-height: 0; }
.hero-left.many .hero-in-top { gap: 5px; overflow: hidden; white-space: nowrap; }
.hero:has(.hero-left.many) { grid-template-columns: 212px minmax(0, 1fr) 196px; }
#book-symbols { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 60%; }
#book-symbols::-webkit-scrollbar { display: none; }
#book-symbols .chip { flex: 0 0 auto; }
.strip.scroll { -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent); mask-image: linear-gradient(90deg, #000 94%, transparent); }

/* Elle müdahale düğmeleri (10 Ekim): açık pozisyonun satırında Close ve BE */
.pos-actions { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.pos-btn { font: 600 10px/1 var(--mono); padding: 3px 7px; border-radius: 5px; cursor: pointer; background: transparent; }
.pos-btn.close { color: var(--red); border: 1px solid rgba(246, 70, 93, 0.5); }
.pos-btn.close:hover { background: rgba(246, 70, 93, 0.15); }
.pos-btn.be { color: var(--amber); border: 1px solid rgba(240, 185, 11, 0.45); }
.pos-btn.be:hover { background: rgba(240, 185, 11, 0.12); }
.pos-btn:disabled { opacity: 0.35; cursor: default; background: transparent; }
