/* ============================================================
   NOVARIA — koyu finansal terminal tasarım sistemi
   Palet dataviz doğrulayıcısından geçirildi (2026-07):
   kategorik seriler #3987e5/#c98500/#9085e9/#199e70 → 4/4 PASS
   durum renkleri panel yüzeyinde ≥3.9:1 kontrast
   ============================================================ */
:root {
  --bg: #0b0f17;            /* sayfa düzlemi */
  --surface: #131a26;       /* panel/kart yüzeyi */
  --surface-2: #192333;     /* yükseltilmiş yüzey */
  --surface-3: #1f2b3f;     /* hover yüzeyi */
  --border: #253048;
  --hairline: #1c2637;      /* grid çizgisi */
  --ink: #e8edf5;
  --ink-2: #b3bfd2;
  --muted: #8a95a8;
  --up: #2fbf7f;
  --down: #f26d6d;
  --up-deep: #17925d;
  --down-deep: #d24747;
  --accent: #e8a13c;        /* kehribar — marka vurgusu */
  --accent-soft: rgba(232, 161, 60, 0.14);
  --up-soft: rgba(47, 191, 127, 0.12);
  --down-soft: rgba(242, 109, 109, 0.12);
  --s-blue: #3987e5;        /* seri 1: fiyat */
  --s-amber: #c98500;       /* seri 2: SMA50 */
  --s-violet: #9085e9;      /* seri 3: SMA200 / RSI */
  --s-teal: #199e70;        /* seri 4 */
  --radius: 10px;
  --radius-lg: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 14px;
  overscroll-behavior-y: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.num { font-variant-numeric: tabular-nums; }
.sym { font-family: var(--mono); font-weight: 700; letter-spacing: 0.02em; }

.up   { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }

/* ------------------------------------------------------------
   Uygulama iskeleti: sol ray (masaüstü) / alt bar (mobil)
   ------------------------------------------------------------ */
#app { display: grid; grid-template-columns: 208px 1fr; height: 100vh; height: 100dvh; }

aside.rail {
  border-right: 1px solid var(--hairline);
  background: linear-gradient(180deg, #0d1220 0%, var(--bg) 45%);
  display: flex; flex-direction: column;
  padding: 18px 12px 14px;
  gap: 2px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  padding: 2px 8px 16px; user-select: none;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: radial-gradient(circle at 35% 30%, #ffc46a, var(--accent) 55%, #9a6316);
  display: grid; place-items: center;
  color: #150f04; font-weight: 900; font-size: 15px;
  box-shadow: 0 0 18px rgba(232, 161, 60, 0.35);
}
.brand .name { font-size: 15px; font-weight: 800; letter-spacing: 0.14em; }
.brand .name em { font-style: normal; color: var(--accent); }
.brand .tag { font-size: 9.5px; color: var(--muted); letter-spacing: 0.08em; margin-top: 1px; }

.rail .navlink {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  border-left: 2px solid transparent;
}
.rail .navlink:hover { background: var(--surface); color: var(--ink); }
.rail .navlink.active {
  background: var(--accent-soft); color: var(--accent);
  border-left-color: var(--accent);
}
.rail .navlink .ic { width: 18px; text-align: center; font-size: 15px; }
.rail .spacer { flex: 1; }
.rail .foot { font-size: 10px; color: var(--muted); padding: 8px 10px 0; line-height: 1.5; border-top: 1px solid var(--hairline); }

nav.dock { display: none; }

/* ------------------------------------------------------------
   Ana kolon
   ------------------------------------------------------------ */
main.stage { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

header.masthead {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px 10px; flex: none;
  border-bottom: 1px solid var(--hairline);
}
.masthead h1 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: 0.01em; }
.masthead .crumb-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.masthead .grow { flex: 1; }

.searchbox { position: relative; width: min(320px, 38vw); }
.searchbox input {
  width: 100%; padding: 8px 12px 8px 32px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; outline: none;
}
.searchbox input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox .lens { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.search-pop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  max-height: 300px; overflow-y: auto; box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}
.search-pop .hit {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.search-pop .hit:last-child { border-bottom: none; }
.search-pop .hit:hover { background: var(--surface-3); }

/* Piyasa bandı (ticker tape) */
.tape-wrap {
  flex: none; overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--hairline); background: #0d1320;
  padding: 6px 0; position: relative;
}
.tape { display: inline-block; animation: tape-slide 55s linear infinite; }
.tape-wrap:hover .tape { animation-play-state: paused; }
@keyframes tape-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape .tick {
  display: inline-flex; gap: 7px; align-items: baseline;
  padding: 0 18px; font-size: 12px; border-right: 1px solid var(--hairline);
}
.tape .tick .lbl { color: var(--muted); font-size: 11px; }
.tape .tick .val { font-weight: 700; }

section.deck { flex: 1; overflow-y: auto; padding: 18px 20px 90px; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------
   Kart / panel bileşenleri
   ------------------------------------------------------------ */
.panel {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
}
.panel > .panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--hairline);
}
.panel > .panel-head h2 { font-size: 12px; font-weight: 800; margin: 0; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.panel > .panel-head .hint { font-size: 11px; color: var(--muted); }
.panel > .panel-head .grow { flex: 1; }
.panel-body { padding: 12px 14px; }

.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* İstatistik kutuları */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 13px 15px;
}
.stat-tile .k { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.stat-tile .v { font-size: 22px; font-weight: 800; margin-top: 5px; line-height: 1.1; }
.stat-tile .s { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Segment (dönem seçici) */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.seg button {
  border: none; background: transparent; color: var(--muted);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.seg button.on { background: var(--accent); color: #17110a; }

/* Canlı / Gün Kapanışı kayan geçiş anahtarı (tarayıcı) */
.mode-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px; min-width: 200px; flex: none;
}
.mode-toggle button {
  position: relative; z-index: 1; border: none; background: transparent;
  color: var(--ink-2); font-size: 11.5px; font-weight: 800; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: color 0.2s ease;
}
.mode-toggle button.on { color: #17110a; }
.mode-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--accent); border-radius: 999px;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.mode-toggle[data-mode="close"] .mode-thumb { transform: translateX(100%); }
@media (max-width: 920px) { .mode-toggle { min-width: 0; width: 100%; order: 2; } }

/* Isı haritası */
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 3px; }
.heat .cell {
  border-radius: 5px; padding: 7px 6px 6px; cursor: pointer;
  min-height: 46px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.06s ease, outline 0.06s ease; outline: 1px solid transparent;
}
.heat .cell:hover { transform: scale(1.06); outline-color: rgba(232,161,60,0.8); z-index: 2; position: relative; }
.heat .cell .t { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.02em; }
.heat .cell .p { font-size: 10px; font-weight: 700; opacity: 0.95; }
.heat-legend { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.heat-legend .sw { width: 22px; height: 9px; border-radius: 2px; }

/* Yükselen/Düşen listeleri */
.mover-list { display: flex; flex-direction: column; }
.mover {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  border-bottom: 1px solid var(--hairline); cursor: pointer; font-size: 13px;
}
.mover:last-child { border-bottom: none; }
.mover:hover { background: var(--surface-3); }
.mover .rank { color: var(--muted); font-size: 10.5px; width: 14px; }
.mover .grow { flex: 1; min-width: 0; }
.mover .px { color: var(--ink-2); }
.mover .pct { font-weight: 800; min-width: 64px; text-align: right; }
.bar-track { height: 3px; border-radius: 2px; background: var(--surface-2); margin-top: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; }

/* Rozet ve çipler */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--ink-2); border-radius: 999px; padding: 4px 11px;
  font-size: 11.5px; font-weight: 600; cursor: pointer; user-select: none;
  transition: border-color 0.08s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip .n { font-size: 10px; color: var(--muted); }
.chip.on .n { color: var(--accent); opacity: 0.75; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.badge {
  display: inline-block; font-size: 10px; font-weight: 800; border-radius: 5px;
  padding: 2px 7px; letter-spacing: 0.03em;
}
.badge.amber { background: var(--accent-soft); color: var(--accent); }
.badge.green { background: var(--up-soft); color: var(--up); }
.badge.gray  { background: var(--surface-2); color: var(--muted); }

.pill-pct {
  display: inline-block; min-width: 62px; text-align: center;
  font-size: 11.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px;
}
.pill-pct.up   { background: var(--up-soft); }
.pill-pct.down { background: var(--down-soft); }
.pill-pct.flat { background: var(--surface-2); }

/* ------------------------------------------------------------
   Veri tablosu (tarayıcı)
   ------------------------------------------------------------ */
.table-scroller { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 880px;
}
table.data thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface-2); color: var(--muted);
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em;
  text-align: right; padding: 9px 10px; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data thead th:first-child { text-align: left; padding-left: 14px; }
table.data thead th.sorted { color: var(--accent); }
table.data tbody td {
  padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
table.data tbody td:first-child { text-align: left; padding-left: 14px; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--surface-3); }

/* ------------------------------------------------------------
   Hisse detay
   ------------------------------------------------------------ */
.detail-hero {
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
  padding: 2px 0 14px;
}
.detail-hero .idbox { display: flex; align-items: center; gap: 12px; }
.detail-hero .avatar {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--accent);
}
.detail-hero h1 { margin: 0; font-size: 21px; letter-spacing: 0.03em; }
.detail-hero .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.detail-hero .pricebox { text-align: right; margin-left: auto; }
.detail-hero .bigpx { font-size: 27px; font-weight: 800; line-height: 1; }
.detail-hero .bigchg { font-size: 14px; font-weight: 700; margin-top: 4px; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--up); margin-right: 5px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.fav-star {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-size: 17px; cursor: pointer; padding: 6px 11px;
}
.fav-star.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.ret-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.ret-cell {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 9px 8px 8px; text-align: center; position: relative; overflow: hidden;
}
.ret-cell::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2.5px;
  background: var(--seam, var(--surface-2));
}
.ret-cell .k { font-size: 10px; color: var(--muted); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 700; }
.ret-cell .v { font-size: 15px; font-weight: 800; margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }

/* Detay bölüm sekmeleri — sadece mobilde görünür, masaüstünde tüm bölümler açık */
.dtabs { display: none; }
.chart-host { width: 100%; }
.chart-title { display: flex; align-items: center; gap: 10px; }
.legend-swatch { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.legend-swatch i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

.signal-line {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 12.5px;
}
.signal-line:last-child { border-bottom: none; }
.signal-line .ic { font-size: 15px; width: 20px; text-align: center; flex: none; }
.signal-line .t { font-weight: 700; }
.signal-line .d { color: var(--muted); font-size: 11.5px; margin-top: 1px; }

.kv-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 12.5px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--muted); }
.kv-row .v { font-weight: 700; }

/* AI analiz kutusu (generate_technical_summary HTML'i buraya basılır) */
.analysis-verdict {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 13px; border-radius: 10px; margin-bottom: 14px;
  border: 1px solid var(--border); background: var(--surface-2);
}
.analysis-verdict.tone-up { background: var(--up-soft); border-color: rgba(47,191,127,0.4); }
.analysis-verdict.tone-down { background: var(--down-soft); border-color: rgba(242,109,109,0.4); }
.analysis-verdict .verdict-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.analysis-verdict .verdict-score { font-size: 26px; font-weight: 800; line-height: 1.2; }
.analysis-verdict .verdict-score-max { font-size: 13px; font-weight: 600; color: var(--muted); }
.analysis-verdict.tone-up .verdict-score { color: var(--up); }
.analysis-verdict.tone-down .verdict-score { color: var(--down); }
.analysis-verdict .verdict-stance { font-size: 12.5px; font-weight: 600; opacity: 0.92; }
.analysis-section { margin-bottom: 13px; }
.analysis-section-title {
  font-size: 11px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.analysis-section p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.analysis-disclaimer {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline);
  font-size: 10.5px; color: var(--muted); line-height: 1.5;
}

/* ------------------------------------------------------------
   Piyasalar & KAP
   ------------------------------------------------------------ */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mkt-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 12px 14px;
}
.mkt-card .k { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.mkt-card .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.mkt-card .c { font-size: 12px; font-weight: 700; margin-top: 3px; }

.kap-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kap-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 13px 14px; cursor: pointer; position: relative; overflow: hidden;
}
.kap-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--seam, var(--border)); }
.kap-card:hover { border-color: var(--border); }
.kap-card .n { font-size: 24px; font-weight: 800; }
.kap-card .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kap-card.on { border-color: var(--accent); }

.kap-row { padding: 10px 14px; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.kap-row:hover { background: var(--surface-3); }
.kap-row .top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.kap-row .title { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.kap-row .when { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.empty-note { text-align: center; color: var(--muted); padding: 42px 20px; font-size: 13px; }
.loading-note { text-align: center; color: var(--muted); padding: 42px 20px; font-size: 13px; letter-spacing: 0.06em; }
.loading-note::after { content: "▮"; color: var(--accent); animation: pulse 1s infinite; margin-left: 4px; }

.fineprint { font-size: 10.5px; color: var(--muted); opacity: 0.85; padding: 14px 2px 0; line-height: 1.5; }

/* ------------------------------------------------------------
   Mobil: sol ray gizlenir, alt dock gelir
   ------------------------------------------------------------ */
@media (max-width: 919px) {
  #app { grid-template-columns: 1fr; }
  aside.rail { display: none; }
  nav.dock {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    background: rgba(13, 18, 30, 0.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  nav.dock .dlink {
    flex: 1; text-align: center; padding: 7px 2px 9px;
    color: var(--muted); font-size: 9.5px; font-weight: 700; cursor: pointer;
  }
  nav.dock .dlink .ic { display: block; font-size: 18px; margin-bottom: 2px; }
  nav.dock .dlink.active { color: var(--accent); }
  section.deck { padding: 14px 12px calc(110px + env(safe-area-inset-bottom, 0px)); }
  /* Çentik/saat çubuğu altına girmesin (iOS standalone black-translucent) */
  header.masthead { padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px; flex-wrap: wrap; }
  /* iOS, 16px altındaki form alanlarına odaklanınca sayfayı zorla yakınlaştırır — engelle */
  .searchbox input, .f-row input, .f-cell input, .f-cell select { font-size: 16px; }
  .searchbox { width: 100%; order: 3; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }

  /* Detay sekmeleri: yapışkan çubuk + tek bölüm görünümü */
  .dtabs {
    display: flex; gap: 7px; overflow-x: auto;
    position: sticky; top: 0; z-index: 40;
    background: var(--bg); padding: 10px 0 9px; margin: -4px 0 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .dtabs::-webkit-scrollbar { display: none; }
  .dtabs .dtab {
    flex: none; padding: 7px 15px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--ink-2); font-size: 12px; font-weight: 700; cursor: pointer;
    user-select: none; white-space: nowrap;
  }
  .dtabs .dtab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
  /* :not(.on) ile gizle — .on olan elemanın kendi display değeri (grid/block) korunur */
  .detail-grid [data-sec]:not(.on) { display: none; }

  .ret-strip { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; }
  .ret-cell .v { font-size: 12.5px; }
  .ret-cell .k { font-size: 8.5px; }
  .kap-cards { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .heat { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .detail-hero .pricebox { margin-left: auto; }

  /* Tarayıcı: sinyal çipleri tek satırda yatay kaydırmalı şerit */
  .scr-chips {
    flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .scr-chips::-webkit-scrollbar { display: none; }
  .scr-chips .chip { flex: none; }
}

/* ------------------------------------------------------------
   Dokunmatik cihazlar: hover stilleri dokunmadan sonra "takılı"
   kalmasın (çip seçiliymiş gibi görünme sorununun düzeltmesi)
   ------------------------------------------------------------ */
@media (hover: none) {
  .chip:hover { border-color: var(--border); }
  .chip.on:hover { border-color: var(--accent); }
  .mover:hover, .kap-row:hover, table.data tbody tr:hover, .search-pop .hit:hover { background: transparent; }
  .heat .cell:hover { transform: none; outline-color: transparent; }
  .rail .navlink:hover { background: transparent; color: var(--ink-2); }
  .rail .navlink.active:hover { background: var(--accent-soft); color: var(--accent); }
}

/* ------------------------------------------------------------
   Canlı veri katmanı bileşenleri (2026-07 revizyonu)
   ------------------------------------------------------------ */
.delay-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px;
  white-space: nowrap;
}
.delay-badge .live-dot { margin-right: 0; }

/* Detay: gün içi şerit */
.day-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.day-cell {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 8px 12px; display: flex; flex-direction: column; gap: 3px;
}
.day-cell .k { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; }
.day-cell .v { font-size: 13.5px; font-weight: 700; }

/* Genel Bakış: AI Öne Çıkanlar */
.ai-strip-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.ai-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ai-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer; position: relative; overflow: hidden;
}
.ai-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--surface-3); }
.ai-card.tone-up::before { background: var(--up); }
.ai-card.tone-down::before { background: var(--down); }
.ai-card .top { display: flex; justify-content: space-between; align-items: baseline; }
.ai-card .score { font-size: 17px; font-weight: 800; }
.ai-card .score i { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; }
.ai-card.tone-up .score { color: var(--up); }
.ai-card.tone-down .score { color: var(--down); }
.ai-card .stance { font-size: 11px; color: var(--ink-2); margin: 4px 0 8px; line-height: 1.35; min-height: 28px; }
.ai-card .foot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.ai-card .foot .px { color: var(--ink-2); }

/* Tarayıcı: devre dışı çip + mobil kart listesi */
.chip.off { opacity: 0.38; cursor: not-allowed; }
.chip.off:hover { border-color: var(--border); }
.scr-sortbar { display: flex; gap: 8px; margin-bottom: 10px; }
.scr-sortbar select {
  flex: 1; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-size: 13px;
}
.scr-sortbar .dirbtn {
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.scr-cards { display: flex; flex-direction: column; gap: 7px; }
.scr-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 11px 13px; cursor: pointer;
}
.scr-card .l { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scr-card .meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-card .r { display: flex; align-items: center; gap: 9px; flex: none; }
.scr-card .px { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.more-btn {
  width: 100%; margin-top: 10px; padding: 12px;
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13px; font-weight: 700; cursor: pointer;
}

/* Detaylı grafik bağlantısı (TradingView'e yönlendirir) */
.tv-toggle {
  padding: 10px 16px; border-top: 1px solid var(--hairline);
  font-size: 12px; font-weight: 700; color: var(--accent);
  cursor: pointer; user-select: none;
}
.tv-toggle:hover { background: var(--surface-2); }

/* AI analiz: tam genişlik panel — hüküm kutusu solda, metin sağda */
.ai-wide .panel-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.ai-wide .analysis-verdict { grid-column: 1; position: sticky; top: 6px; margin-bottom: 0; }
.ai-wide .analysis-section, .ai-wide .analysis-disclaimer { grid-column: 2; }
.ai-wide .analysis-section p { max-width: 860px; }

/* Şirket kartı */
.co-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 8px 0 4px; line-height: 1.4; }
.co-city { color: var(--muted); font-weight: 600; }
.co-sub {
  font-size: 10.5px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.07em; padding: 11px 0 3px;
  border-bottom: 1px solid var(--hairline);
}
.range52 { padding: 10px 0 6px; border-bottom: 1px solid var(--hairline); }
.range52 .lbl { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.range52 .track { position: relative; height: 5px; border-radius: 3px; margin: 7px 0 5px; background: linear-gradient(90deg, var(--down-deep), var(--surface-3) 50%, var(--up-deep)); }
.range52 .marker {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--accent);
}
.range52 .vals { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; }

/* Endeks kartları + analiz */
.badge.red { background: var(--down-soft); color: var(--down); }
.idx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 12px 14px; }
.idx-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; cursor: pointer;
}
.idx-card.on { border-color: var(--accent); background: var(--accent-soft); }
.idx-card .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 6px; }
.idx-card .top .sym { font-size: 12px; }
.idx-card .v { font-size: 17px; font-weight: 800; }
.idx-card .c { font-size: 12px; font-weight: 700; margin-top: 2px; }
.idx-card .mini { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.idx-card .mini b { color: var(--ink-2); font-weight: 700; }
.idx-detail { padding: 14px 16px 16px; border-top: 1px solid var(--hairline); }
.idx-detail-head h3 { margin: 0 0 10px; font-size: 14px; }
.zone-line { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--hairline); font-size: 12.5px; }
.zone-line:last-child { border-bottom: none; }
.zone-line .zr { font-weight: 800; min-width: 130px; }
.zone-line .zs { color: var(--muted); font-size: 11px; }
.watch-list { margin: 4px 0 0; padding-left: 18px; }
.watch-list li { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 6px; }

/* Arama sonucunda şirket adı */
.hit-name { font-size: 11px; color: var(--muted); margin-left: 7px; }

/* Nötr hüküm kutusu */
.analysis-verdict.tone-flat .verdict-score { color: var(--ink-2); }

/* ------------------------------------------------------------
   Kimlik: kullanıcı kutusu + giriş/kayıt modalı (2026-07)
   ------------------------------------------------------------ */
.linkish { color: var(--accent); cursor: pointer; font-weight: 700; }
.linkish:hover { text-decoration: underline; }

.userbox { position: relative; flex: none; }
.user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.user-btn:hover { border-color: var(--accent); color: var(--ink); }
.user-btn.on { padding-left: 7px; }
.user-btn .uav {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: #17110a; font-size: 11px; font-weight: 900;
}
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 90;
  min-width: 190px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5); overflow: hidden;
}
.user-menu .um-mail {
  padding: 10px 13px; font-size: 11px; color: var(--muted);
  border-bottom: 1px solid var(--hairline); word-break: break-all;
}
.user-menu .um-item { padding: 10px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.user-menu .um-item:hover { background: var(--surface-3); color: var(--ink); }
.user-menu .um-item.danger { color: var(--down); border-top: 1px solid var(--hairline); }

.modal-veil {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 8, 14, 0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
}
.modal {
  position: relative; width: 100%; max-width: 360px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 22px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  max-height: calc(100dvh - 36px); overflow-y: auto;
}
.modal-x {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; padding: 6px;
}
.modal-x:hover { color: var(--ink); }

/* AI Sohbet Asistanı — yüzen balon + panel (Novaria Pro) */
.chat-bubble {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 150; width: 52px; height: 52px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 35% 30%, #ffc46a, var(--accent) 55%, #9a6316);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(232, 161, 60, 0.4);
  cursor: pointer; font-size: 22px; padding: 0;
}
.chat-bubble:hover { filter: brightness(1.08); }
@media (max-width: 919px) {
  .chat-bubble { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
.chat-panel {
  position: fixed; right: 18px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  width: 360px; height: 480px;
  min-width: 300px; min-height: 320px; max-width: min(90vw, 640px); max-height: 80vh;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (max-width: 919px) {
  .chat-panel {
    right: 0; left: 0; bottom: 0; top: 0; width: auto; height: auto;
    min-width: 0; min-height: 0; max-width: none; max-height: none;
    border-radius: 0; z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .chat-resize-handle { display: none; }
}
/* Sol-üst köşede özel sürükleme tutamacı — sağ/alt kenar (balona yakın nokta)
   sabit kalır, panel bu köşeden çapraz büyür/küçülür (bkz. _wireChatResize). */
.chat-resize-handle {
  position: absolute; top: -8px; left: -8px; width: 22px; height: 22px;
  cursor: nwse-resize; z-index: 5;
}
.chat-resize-handle::before {
  content: ""; position: absolute; top: 7px; left: 7px; right: 7px; bottom: 7px;
  border-left: 3px solid var(--accent); border-top: 3px solid var(--accent);
  border-radius: 3px 0 0 0; opacity: 0.85;
}
.chat-resize-handle:hover::before { opacity: 1; }
.chat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--hairline);
  font-size: 12.5px; font-weight: 800;
}
.chat-panel-body {
  flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.chat-msg {
  max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 12.5px; line-height: 1.5;
}
.chat-msg-user {
  align-self: flex-end; background: var(--accent-soft); color: var(--ink);
  border-bottom-right-radius: 3px;
}
.chat-msg-assistant {
  align-self: flex-start; background: var(--surface-2); color: var(--ink-2);
  border-bottom-left-radius: 3px;
}
.chat-msg.chat-typing { opacity: 0.6; font-style: italic; }
.chat-panel-foot {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--hairline);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.chat-panel-foot input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; color: var(--ink); font-size: 12.5px; outline: none;
}
.chat-panel-foot input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.auth-head { text-align: center; margin-bottom: 16px; }
.auth-head .mark {
  width: 38px; height: 38px; border-radius: 10px; margin: 0 auto 10px;
  background: radial-gradient(circle at 35% 30%, #ffc46a, var(--accent) 55%, #9a6316);
  display: grid; place-items: center;
  color: #150f04; font-weight: 900; font-size: 18px;
  box-shadow: 0 0 18px rgba(232, 161, 60, 0.35);
}
.auth-head h3 { margin: 0; font-size: 16px; }
.auth-sub { margin: 5px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 2px; margin-bottom: 15px;
}
.auth-tabs button {
  border: none; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 700; padding: 7px; border-radius: 6px; cursor: pointer;
}
.auth-tabs button.on { background: var(--accent); color: #17110a; }

.f-row { margin-bottom: 11px; }
.f-row label, .f-cell label {
  display: block; font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px;
}
.f-row input, .f-cell input, .f-cell select {
  width: 100%; padding: 9px 11px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; outline: none; font-family: inherit;
}
.f-row input:focus, .f-cell input:focus, .f-cell select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.f-err {
  background: var(--down-soft); color: var(--down);
  border: 1px solid rgba(242, 109, 109, 0.4); border-radius: 8px;
  padding: 8px 11px; font-size: 12px; font-weight: 600; margin-bottom: 11px;
  line-height: 1.45;
}
.btn-primary {
  width: 100%; padding: 10px; border: none; border-radius: 8px;
  background: var(--accent); color: #17110a;
  font-size: 13px; font-weight: 800; cursor: pointer; letter-spacing: 0.02em;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; }
.auth-or {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 10.5px; margin: 14px 0 12px;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.gsi-host { display: flex; justify-content: center; }

.f-row label .req { color: var(--down); font-style: normal; }
.f-hint { font-size: 10px; color: var(--muted); margin-top: 4px; }
.v-info { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin: 0 0 14px; }
.v-info b { color: var(--accent); word-break: break-all; }
#vCode { text-align: center; font-family: var(--mono); font-size: 20px; letter-spacing: 0.4em; font-weight: 700; }
.v-links {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 13px; font-size: 11.5px;
}

/* Sinyal seçici modal (mobil tarayıcı filtresi) */
.sig-modal { max-width: 480px; }
.sig-head { display: flex; align-items: center; gap: 10px; }
.sig-head h3 { margin: 0; font-size: 15px; }
.sig-sub { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 13px; }
.sig-all { max-height: 52vh; overflow-y: auto; padding-bottom: 4px; }
.sig-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline);
}
.chip.sig-pick { border-color: var(--accent); color: var(--accent); border-style: dashed; }

/* Tarayıcı: zengin hisse kartları (2026-07 redesign) */
.scr-sortbar .sort-lbl {
  align-self: center; font-size: 10px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-right: 2px;
}
/* Tarayıcı liste araması — sıralamanın sağında, en sağa yaslı */
.scr-search {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0 10px;
}
.scr-search:focus-within { border-color: var(--accent); }
.scr-search .lens { color: var(--muted); font-size: 13px; }
.scr-search input {
  background: transparent; border: 0; outline: 0; color: var(--ink);
  font-size: 13px; padding: 9px 0; width: 150px;
}
.scr-search input::placeholder { color: var(--muted); }
.scr-search .clr { cursor: pointer; color: var(--muted); font-size: 11px; padding: 2px 4px; }
.scr-search .clr:hover { color: var(--ink); }
@media (min-width: 920px) {
  .scr-sortbar select { flex: 0 1 220px; }
  .scr-search input { width: 200px; }
}
@media (max-width: 919px) {
  .scr-sortbar { flex-wrap: wrap; }
  .scr-search { flex: 1 1 100%; margin-left: 0; }
  .scr-search input { flex: 1; width: auto; }
}
.scr-rows { display: flex; flex-direction: column; gap: 9px; }
.scr-row {
  display: grid; grid-template-columns: 122px 78px 78px minmax(0, 1fr) auto 138px;
  gap: 8px 18px; align-items: center;
  background: linear-gradient(120deg, var(--surface) 55%, #16202f 100%);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 13px 16px 13px 19px; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.08s ease, border-color 0.08s ease, box-shadow 0.08s ease;
}
.scr-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--seam, var(--surface-3)); }
.scr-row:hover { border-color: var(--border); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.scr-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scr-id .sym { font-size: 15px; letter-spacing: 0.03em; }
.scr-id .bdg { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.scr-ai { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scr-ai .glbl { font-size: 8.5px; letter-spacing: 0.11em; color: var(--muted); font-weight: 800; display: inline-flex; align-items: center; gap: 3px; }

/* Bilgi ipucu: puan/rozet başlıklarının yanındaki yuvarlak "i" rozeti.
   Kutunun TAMAMI (yalnızca glif değil) hover/focus alanıdır. İçerik popup'ı
   document.body'e bağlı TEK global bir öğe (bkz. #globalTip / initInfoTips)
   ve position:fixed ile konumlanır — böylece .scr-row gibi overflow:hidden
   (+ hover'da transform) uygulayan kapsayıcılar tarafından ASLA kesilmez. */
.info-ic {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: var(--surface-3);
  color: var(--muted); font-size: 10px; font-weight: 800; font-style: italic;
  font-family: Georgia, "Times New Roman", serif; line-height: 1;
  cursor: help; flex: none; transition: background 0.12s ease, color 0.12s ease;
}
.info-ic:hover, .info-ic:focus, .info-ic.tip-on { background: var(--accent-soft); color: var(--accent); outline: none; }

.global-tip {
  display: none; position: fixed; z-index: 500; width: 230px; max-width: calc(100vw - 20px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; font-size: 11.5px; font-weight: 500; line-height: 1.45;
  color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,0.4); pointer-events: none;
}
.global-tip::after {
  content: ""; position: absolute; left: var(--arrow-x, 14px); transform: translateX(-50%);
  border: 6px solid transparent;
}
.global-tip.dir-up::after { top: 100%; border-top-color: var(--border); }
.global-tip.dir-down::after { bottom: 100%; border-bottom-color: var(--border); }
@media (max-width: 920px) { .global-tip { width: 200px; } }
.gauge {
  width: 47px; height: 47px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--gc, var(--accent)) calc(var(--p, 0) * 1%), var(--surface-2) 0);
  display: grid; place-items: center;
}
.gauge b { width: 37px; height: 37px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; }
.scr-sigs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sig-mini {
  font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2); white-space: nowrap;
}
.sig-mini.plus { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.sig-none { font-size: 11px; color: var(--muted); font-style: italic; }
.scr-rets { display: flex; gap: 14px; }
.ret-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ret-mini .k { font-size: 8.5px; color: var(--muted); font-weight: 800; letter-spacing: 0.08em; }
.ret-mini .v { font-size: 11.5px; font-weight: 700; }
.scr-px { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.scr-px .px { font-size: 15px; font-weight: 800; color: var(--ink); }

/* Novaria Pro — Canlı Sinyaller: tek gerçek sıralanabilir tablo (masaüstü/mobil
   AYNI render, yatay kaydırma + HİSSE sütunu sabit/sticky — bkz. .nv-table) */
.novaria-legal {
  font-size: 11px; color: var(--muted); line-height: 1.5; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  margin-bottom: 14px;
}
/* SHORT sekmesi bilgi notu (dinamik uptick kuralı) — yasal uyarıdan (.novaria-legal,
   kırmızımsı/alarm tonu) ayırt edilsin diye nötr/mavi tonlu, daha az alarm verici */
.novaria-info-band {
  font-size: 11px; color: var(--ink-2); line-height: 1.5; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--s-blue); border-radius: var(--radius-lg);
  margin-bottom: 14px;
}
.pro-tag { margin-left: auto; font-size: 8.5px; padding: 2px 6px; letter-spacing: 0.06em; }
.btn-add-portfolio {
  font-size: 10.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background 0.12s ease;
}
.btn-add-portfolio:hover { background: var(--accent); color: #150f04; }
.btn-add-portfolio:disabled { opacity: 0.6; cursor: default; }

table.data.nv-table { min-width: 1820px; font-size: 11.5px; }
table.data.nv-table thead th,
table.data.nv-table tbody td { padding: 5px 8px; }
table.data.nv-table .info-ic { margin-left: 3px; }
table.data.nv-table .nv-sticky {
  position: sticky; left: 0; z-index: 6; background: var(--surface-2);
}
table.data.nv-table tbody td.nv-sticky { background: var(--surface); z-index: 4; }
table.data.nv-table tbody tr:hover td.nv-sticky { background: var(--surface-3); }
table.data.nv-table .sig-mini {
  display: inline-flex; padding: 2px 5px; margin-right: 2px; border-radius: 6px;
  font-size: 11px; background: var(--surface-2); border: 1px solid var(--border);
}

/* ADAY satırları (spec 7.1): kapanış teyidi bekleyen, henüz kesinleşmemiş
   sinyaller — soluk/gri gösterim, AKTİF satırlardan görsel olarak ayrışır */
table.data.nv-table tbody tr.nv-row-aday { opacity: 0.55; font-style: italic; }
table.data.nv-table tbody tr.nv-row-aday:hover { opacity: 0.85; }
table.data.nv-table tbody tr.nv-row-aday td.nv-sticky { background: var(--surface); }

/* Rejim beklemede satırları (short-spec Bölüm 2): BOĞA rejiminde MOD B SHORT
   sinyali bilgi amaçlı üretildi ama tam aktif değil — ADAY'dan ayrı, daha
   hafif bir soluklaştırma (italik/dashed = ADAY anlamına geldiği için burada
   kullanılmaz) */
table.data.nv-table tbody tr.nv-row-regime-hold { opacity: 0.7; }
table.data.nv-table tbody tr.nv-row-regime-hold:hover { opacity: 0.95; }
table.data.nv-table tbody tr.nv-row-regime-hold td.nv-sticky { background: var(--surface); border-left: 2px solid var(--muted); }

/* Mobil Canlı Sinyaller kartı — masaüstündeki .nv-table ile AYNI veri kümesi,
   dar ekranda yatay kaydırma yerine dolu/dokunmatik-dostu tek kolon kart */
.nv-card {
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  background: linear-gradient(120deg, var(--surface) 55%, #16202f 100%);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 13px 15px;
}
/* ADAY kartı (spec 7.1): kapanış teyidi bekleyen sinyal — soluk gösterim */
.nv-card.nv-card-aday { opacity: 0.6; border-style: dashed; }
.nv-card.nv-card-aday:active, .nv-card.nv-card-aday:hover { opacity: 0.85; }

/* Rejim beklemede kartı (short-spec Bölüm 2) — bkz. yukarıdaki tablo satırı karşılığı */
.nv-card.nv-card-regime-hold { opacity: 0.75; border-left: 2px solid var(--muted); }
.nv-card.nv-card-regime-hold:active, .nv-card.nv-card-regime-hold:hover { opacity: 0.95; }

.nv-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nv-card-id { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.nv-card-id .sym { font-size: 15px; letter-spacing: 0.03em; }
.nv-card-strat { font-size: 11.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.nv-card-scores {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px;
  padding: 9px 0; border-top: 1px dashed var(--hairline); border-bottom: 1px dashed var(--hairline);
}
.nv-card-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nv-card-px { display: flex; flex-direction: column; gap: 3px; }
.nv-card-px .lbl { font-size: 8.5px; color: var(--muted); font-weight: 800; letter-spacing: 0.08em; }
.nv-card-px .val { font-size: 12.5px; font-weight: 700; }
.nv-card-ret { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nv-card-ret .big { font-size: 16px; font-weight: 800; }
.nv-card-ret .mini { font-size: 10px; }
.nv-card-tp { display: flex; gap: 14px; justify-content: space-between; }
.nv-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nv-card-meta { font-size: 10px; color: var(--muted); white-space: nowrap; }
.nv-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* KAP etiketi (tarayıcı kartı + KAP sayfası) */
.kap-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-2);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.kap-tag.mini {
  font-size: 9.5px; padding: 2px 8px; gap: 3px; cursor: pointer;
  width: fit-content; max-width: 100%; align-self: flex-start; flex: none;
  transition: transform 0.08s ease;
}
.kap-tag.mini:hover { transform: translateY(-1px); filter: brightness(1.12); }
.kap-tag.tedbir { background: var(--down-soft); border-color: rgba(242,109,109,0.4); color: var(--down); }
.kap-tag.yeni_is_iliskisi { background: var(--up-soft); border-color: rgba(47,191,127,0.4); color: var(--up); }
.kap-tag.bilanco { background: rgba(57,135,229,0.13); border-color: rgba(57,135,229,0.45); color: var(--s-blue); }

/* KAP sayfası: geniş bildirim kartları */
.kap-row2 {
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(120deg, var(--surface) 60%, #16202f 100%);
  border-bottom: 1px solid var(--hairline);
  padding: 13px 16px 11px 19px;
  transition: background 0.08s ease;
}
.kap-row2::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--seam, var(--border)); }
.kap-row2:hover { background: var(--surface-3); }
.kap-row2:last-child { border-bottom: none; }
.kr-head { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.kr-head .sym { font-size: 14px; }
.kr-head .when { font-size: 10.5px; color: var(--muted); }
.kr-head .grow { flex: 1; }
.kr-title { font-size: 13px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.kr-foot { font-size: 10px; color: var(--muted); margin-top: 6px; }
.kap-row2:hover .kr-foot { color: var(--accent); }
@media (max-width: 919px) {
  .scr-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "id ai risk px" "sigs sigs sigs sigs";
    gap: 6px 10px; padding: 11px 12px 10px 15px;
  }
  .scr-id { grid-area: id; }
  .scr-ai { grid-area: ai; }
  .scr-risk { grid-area: risk; }
  .scr-px { grid-area: px; }
  .scr-rets { display: none; }
  .scr-sigs { grid-area: sigs; border-top: 1px dashed var(--hairline); padding-top: 7px; margin-top: 2px; }
  .gauge { width: 42px; height: 42px; }
  .gauge b { width: 33px; height: 33px; font-size: 12px; }
}

/* Spekülatif risk rozetleri ve paneli (2026-07) */
.rbadge {
  display: inline-block; font-size: 10px; font-weight: 800;
  border-radius: 5px; padding: 2px 7px; letter-spacing: 0.03em; white-space: nowrap;
}
.rbadge.t0 { background: var(--up-soft); color: var(--up); }
.rbadge.t1 { background: var(--surface-2); color: var(--muted); }
.rbadge.t2 { background: var(--accent-soft); color: var(--accent); }
.rbadge.t3 { background: var(--down-soft); color: var(--down); }
.ai-card .ai-risk { margin: -4px 0 8px; }
.risk-meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.risk-meter .risk-fill { height: 100%; border-radius: 4px; }
.risk-fill.t0 { background: var(--up); }
.risk-fill.t1 { background: var(--muted); }
.risk-fill.t2 { background: var(--accent); }
.risk-fill.t3 { background: var(--down); }
.risk-meter-lbl {
  display: flex; justify-content: space-between; margin: 6px 0 4px;
  font-size: 11px; color: var(--ink-2); font-weight: 700;
}
.analysis-verdict .risk-badge {
  font-size: 11px; font-weight: 800; margin-top: 6px; padding: 4px 9px;
  border-radius: 6px; align-self: flex-start;
}
.analysis-verdict .risk-badge.risk-t0 { background: var(--up-soft); color: var(--up); }
.analysis-verdict .risk-badge.risk-t1 { background: var(--surface-2); color: var(--muted); }
.analysis-verdict .risk-badge.risk-t2 { background: var(--accent-soft); color: var(--accent); }
.analysis-verdict .risk-badge.risk-t3 { background: var(--down-soft); color: var(--down); }
.risk-section { border-left: 3px solid var(--down); padding-left: 12px; }
.risk-section .analysis-section-title { color: var(--down); }
.risk-list { margin: 8px 0 0; padding-left: 18px; }
.risk-list li { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 4px; }
.risk-list .risk-pts { color: var(--down); font-weight: 700; font-size: 11px; }

/* ------------------------------------------------------------
   Portföyüm (2026-07)
   ------------------------------------------------------------ */
.auth-prompt { text-align: center; padding: 44px 20px 46px; }
.auth-prompt .big { font-size: 34px; color: var(--accent); margin-bottom: 12px; }
.auth-prompt .t { font-size: 15px; font-weight: 800; margin-bottom: 7px; }
.auth-prompt .d { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }

.alloc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; cursor: pointer; font-size: 12.5px;
  border-bottom: 1px solid var(--hairline);
}
.alloc-row:last-child { border-bottom: none; }
.alloc-row:hover .sym { color: var(--accent); }
.alloc-row .sym { width: 62px; flex: none; font-size: 11.5px; }
.alloc-row .alloc-track {
  flex: 1; height: 8px; border-radius: 4px;
  background: var(--surface-2); overflow: hidden;
}
.alloc-row .alloc-fill { height: 100%; border-radius: 4px; background: var(--s-blue); }
.alloc-row .w { width: 52px; flex: none; text-align: right; font-weight: 700; color: var(--ink-2); font-size: 11.5px; }

table.data.pf-table { min-width: 820px; }

.tx-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 12px; }
.tx-form .f-cell { min-width: 0; }
.tx-form .f-tick { position: relative; }
.tx-form .f-tick input { text-transform: uppercase; font-family: var(--mono); font-weight: 700; }
.tx-form .f-note, .tx-form .f-err, .tx-form .btn-primary { grid-column: 1 / -1; }
.tx-form .f-err { margin-bottom: 0; }

.tx-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-bottom: 1px solid var(--hairline); font-size: 12.5px;
}
.tx-row:last-child { border-bottom: none; }
.tx-row .grow { flex: 1; }
.tx-row .det { color: var(--muted); font-size: 11.5px; }
.tx-row .amt { font-weight: 700; color: var(--ink-2); }
.tx-row .when { color: var(--muted); font-size: 10.5px; }
.tx-row .tx-del { padding: 2px 8px; font-size: 10px; }

/* Yeni bileşenlerin mobil uyarlamaları (global tanımlardan SONRA gelmeli) */
@media (max-width: 919px) {
  .day-strip { grid-template-columns: 1fr 1fr; }
  .ai-wide .panel-body { display: block; }
  .ai-wide .analysis-verdict { position: static; margin-bottom: 14px; }
  .idx-grid { grid-template-columns: 1fr 1fr; }

  /* AI öne çıkanlar: kompakt kartlarla 6 hisse (2 sütun × 3 satır) */
  .ai-strip { grid-template-columns: 1fr 1fr; gap: 7px; }
  .ai-card { padding: 7px 9px; }
  .ai-card .top .sym { font-size: 12.5px; }
  .ai-card .score { font-size: 14px; }
  .ai-card .stance { font-size: 10px; min-height: 0; margin: 3px 0 5px; }
  .ai-card .foot { font-size: 11px; }

  /* Kimlik + Portföyüm */
  .userbox { order: 2; margin-left: auto; }
  .user-btn .uname { max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
  .pf-grid { grid-template-columns: 1fr; }
  .tx-row { flex-wrap: wrap; row-gap: 4px; padding: 10px 12px; }
  .tx-row .when { order: 5; }
}
