/* ============================================================================
   Temel Bakış — Modern Finansal Temel Analiz Arayüzü (style.css)
   Koyu (varsayılan) ve Açık tema desteğiyle tam duyarlı tasarım.
   ============================================================================ */

:root {
  --bg: #0b1120;
  --bg-elevated: #111827;
  --bg-card: #151e31;
  --bg-card-hover: #1a253d;
  --bg-input: #0f172a;
  --border: #233049;
  --border-light: #1c273d;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);

  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --purple: #8b5cf6;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --radius-sm: 9px;
}

[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.10);

  --green: #059669;
  --green-soft: rgba(5, 150, 105, 0.12);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.12);
  --amber: #d97706;
  --amber-soft: rgba(217, 119, 6, 0.12);

  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ======================== ÜST NAVİGASYON ======================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-logo-svg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .brand-logo-svg {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.brand-logo-svg.sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Arama Çubuğu */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 580px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 8px 10px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-go-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.search-go-btn:hover {
  background: var(--accent-hover);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 360px;
  overflow-y: auto;
  z-index: 200;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--accent-soft);
}

.search-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-code {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 62px;
  text-align: center;
}

.search-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-sector {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sağ Butonlar */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn,
.excel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.icon-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.icon-btn svg,
.excel-btn svg {
  width: 15px;
  height: 15px;
}

.excel-btn {
  background: rgba(16, 185, 129, 0.16);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.excel-btn:hover {
  background: var(--green);
  color: #fff;
}

.theme-toggle {
  padding: 8px 10px;
}

/* Hızlı Erişim Şeridi */
.quick-bar {
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .quick-bar {
  background: #f8fafc;
}

.quick-bar-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
}

.quick-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-chips {
  display: flex;
  gap: 6px;
}

.chip {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.chip:hover,
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ======================== ANA KONTEYNER ======================== */
.container {
  max-width: 1420px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

/* Yükleniyor ve Hata */
.loading-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
  margin-top: 24px;
}

.loading-box h3 {
  margin-top: 18px;
  font-size: 17px;
}

.loading-box p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 18px;
}

.error-icon {
  font-size: 26px;
}

.error-box h4 {
  color: var(--red);
  font-size: 15px;
}

.error-box p {
  color: var(--text-primary);
  font-size: 13px;
  margin-top: 3px;
}

/* ======================== HERO KARTI ======================== */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.4px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.ticker-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ticker-title-row h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sektor-pill {
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
}

.donem-pill {
  font-size: 11px;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 999px;
}

.konsolide-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.konsolide-pill.konsolide {
  background: rgba(16, 185, 129, 0.14);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
}

.konsolide-pill.solo {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.35);
}

.company-fullname {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

.sub-meta-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.price-block {
  text-align: right;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
}

.price-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.price-change {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
}

.price-change.pos {
  background: var(--green-soft);
  color: var(--green);
}

.price-change.neg {
  background: var(--red-soft);
  color: var(--red);
}

.price-sub-row {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.price-sub-row .sep {
  margin: 0 6px;
  color: var(--text-muted);
}

/* 52 Haftalık Çubuk */
.range52-box {
  min-width: 220px;
}

.range52-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  gap: 12px;
}

.range52-labels strong {
  color: var(--text-primary);
}

.range52-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: var(--border);
}

.range52-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
}

.range52-dot {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 8'li KPI Şeridi */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

.kpi-item {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

.kpi-val {
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
  display: block;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  display: block;
}

/* ======================== SEKME ÇUBUĞU (YATAY SCROLLBAR YOK — EKRANA OTOMATİK SIĞAR!) ======================== */
.mobile-tab-select-wrap {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.mobile-tab-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.mobile-tab-select {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  gap: 5px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}

@media (max-width: 1180px) {
  .tabs-bar {
    gap: 4px;
  }
  .tab-btn {
    flex: 1 1 auto;
    font-size: 11.5px;
    padding: 7px 9px;
  }
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.tab-panel.active {
  display: flex;
}

/* ======================== KARTLAR VE IZGARALAR ======================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-header.wrap {
  flex-wrap: wrap;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.card-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.unit-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
}

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

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

@media (max-width: 1024px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ======================== ÖZET TABLOLAR ======================== */
.table-wrap {
  overflow-x: auto;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.summary-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}

.summary-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-light);
}

.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table tr:hover td {
  background: var(--bg-card-hover);
}

.summary-table th.num,
.summary-table td.num {
  text-align: right;
}

.summary-table td.kalem-ad {
  font-weight: 600;
}

.pct-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.pct-pill.pos {
  background: var(--green-soft);
  color: var(--green);
}

.pct-pill.neg {
  background: var(--red-soft);
  color: var(--red);
}

.pct-pill.neu {
  background: var(--bg-input);
  color: var(--text-muted);
}

/* ======================== GRAFİKLER ======================== */
.chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.seg-btn.active {
  background: var(--accent);
  color: #fff;
}

.chart-container {
  position: relative;
  height: 250px;
  width: 100%;
}

.chart-container.tall {
  height: 310px;
}

/* ======================== KARNE MODÜLÜ ======================== */
.info-banner {
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
}

.karne-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.karne-score-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  border: 4px solid var(--border);
}

.karne-score-ring.iyi {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.karne-score-ring.orta {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
}

.karne-score-ring.zayif {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

.karne-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.karne-item:last-child {
  border-bottom: none;
}

.karne-item-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.karne-status-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.karne-status-dot.gecti {
  background: var(--green-soft);
  color: var(--green);
}

.karne-status-dot.kaldi {
  background: var(--red-soft);
  color: var(--red);
}

.karne-status-dot.belirsiz {
  background: var(--bg-input);
  color: var(--text-muted);
}

.karne-item-title {
  font-size: 13px;
  font-weight: 600;
}

.karne-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.karne-item-right {
  text-align: right;
  flex-shrink: 0;
}

.karne-val {
  font-size: 13px;
  font-weight: 700;
}

.karne-target {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

/* ======================== RASYO LİSTELERİ & TOOLTIP ======================== */
.ratio-list {
  display: flex;
  flex-direction: column;
}

.ratio-list.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
}

@media (max-width: 768px) {
  .ratio-list.grid-cols-2 { grid-template-columns: 1fr; }
}

.ratio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.ratio-row:last-child {
  border-bottom: none;
}

.ratio-row:hover {
  background: var(--bg-card-hover);
  border-radius: 6px;
}

.ratio-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ratio-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
}

.help-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: #020617;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 300;
  pointer-events: none;
}

.ratio-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* DuPont & Graham Banner */
.dupont-formula {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dupont-box {
  flex: 1;
  min-width: 150px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.dupont-box.result {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dupont-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.dupont-num {
  font-size: 20px;
  font-weight: 800;
  margin-top: 4px;
  display: block;
}

.dupont-op {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
}

.graham-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ======================== DETAYLI FİNANSAL TABLOLAR ======================== */
.table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-input,
.unit-select,
.period-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.filter-input:focus,
.unit-select:focus,
.period-select:focus {
  border-color: var(--accent);
}

.fin-table-wrap {
  overflow-x: auto;
  max-height: clamp(340px, 58vh, 600px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.fin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.fin-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-weight: 700;
  padding: 10px 11px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.fin-table thead th:first-child {
  left: 0;
  z-index: 8;
  text-align: left;
  min-width: 225px;
  max-width: 280px;
  border-right: 1px solid var(--border);
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.08);
}

.fin-table tbody td {
  padding: 9px 11px;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.fin-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bg-card);
  text-align: left;
  border-right: 1px solid var(--border);
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.08);
  white-space: normal;
  max-width: 280px;
}

.fin-table tbody tr.vurgulu td {
  font-weight: 700;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-primary);
}

.fin-table tbody tr.vurgulu td:first-child {
  background: #1a263e;
}

[data-theme="light"] .fin-table tbody tr.vurgulu td:first-child {
  background: #eff6ff;
}

.fin-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

.val-neg {
  color: var(--red);
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ======================== BÖLÜM ARAÇ ÇUBUĞU ======================== */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 4px;
}

.section-toolbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ======================== GRAFİK SİMGESİ (RASYO & ÇARPAN SATIRLARI) ======================== */
.ratio-row.clickable {
  cursor: pointer;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 7px;
  transition: background 0.14s ease;
}

.ratio-row.clickable:hover {
  background: var(--accent-soft);
}

.chart-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  padding: 0;
}

.chart-trigger-btn svg {
  width: 14px;
  height: 14px;
}

.ratio-row.clickable:hover .chart-trigger-btn,
.chart-trigger-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

.karne-item.clickable {
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.14s ease;
}

.karne-item.clickable:hover {
  background: var(--accent-soft);
}

.karne-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ======================== TARİHSEL GRAFİK PENCERESİ (MODAL) ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.chart-modal {
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header.modal-header-compact {
  align-items: center;
  padding-bottom: 10px;
  gap: 10px;
}

.modal-header.modal-header-compact > div:first-child {
  flex: 0 1 auto;
}

.modal-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.modal-code-pill {
  font-size: 11px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.modal-title-row h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .modal-stats { grid-template-columns: repeat(2, 1fr); }
}

.modal-stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 9px 12px;
}

.modal-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.modal-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
  display: block;
}

.modal-stat-val.accent { color: var(--accent); }
.modal-stat-val.avg { color: var(--amber); }
.modal-stat-val.high { color: var(--green); }
.modal-stat-val.low { color: var(--red); }

.modal-stat-sub {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.modal-chart-wrap {
  position: relative;
  height: 290px;
  width: 100%;
}

.modal-desc-box {
  background: var(--bg-input);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ======================== ÜST PİYASA ÖZET ŞERİDİ (TICKER TAPE) ======================== */
.ticker-tape {
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .ticker-tape {
  background: #f8fafc;
}

.ticker-tape-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-tape-inner::-webkit-scrollbar {
  display: none;
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}

.tape-item:last-child {
  border-right: none;
}

.tape-name {
  font-weight: 700;
  color: var(--text-secondary);
}

.tape-val {
  font-weight: 700;
  color: var(--text-primary);
}

.tape-pct {
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
}

.tape-pct.pos {
  background: var(--green-soft);
  color: var(--green);
}

.tape-pct.neg {
  background: var(--red-soft);
  color: var(--red);
}

.tape-loading {
  font-size: 12px;
  color: var(--text-muted);
}

/* ======================== UYGULAMA KABUĞU (SOL MENÜ + İÇERİK) ======================== */
.topbar-inner,
.ticker-tape-inner {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.app-shell {
  max-width: 100%;
  margin: 14px auto 32px;
  padding: 0 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.left-sidebar {
  width: 152px;
  flex-shrink: 0;
  position: sticky;
  top: 106px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  box-shadow: var(--shadow);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s;
}

.side-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.side-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.side-link:focus:not(:focus-visible) {
  outline: none;
}

.side-ico {
  font-size: 15px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 4px;
}

.sidebar-placeholder {
  border: 1px dashed var(--border);
  border-radius: 9px;
  padding: 10px 9px;
  background: var(--bg-input);
}

.placeholder-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.placeholder-text {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1120px) {
  .app-shell {
    flex-direction: column;
  }
  .left-sidebar {
    width: 100%;
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .sidebar-nav {
    flex-direction: row;
  }
  .sidebar-divider,
  .sidebar-placeholder {
    display: none;
  }
}

/* ======================== ANA SAYFA (ORTA 4'LÜ KARTLAR + SAĞ PİYASA PANELİ) ======================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 14px;
  align-items: start;
}

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

.center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.center-header h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.add-card-wrapper {
  position: relative;
  width: 265px;
  max-width: 100%;
}

.add-card-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 9px;
  padding: 3px 10px;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.add-plus {
  font-weight: 800;
  color: var(--accent);
  font-size: 15px;
}

.add-card-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 12.5px;
  padding: 6px 0;
  font-family: inherit;
}

.add-card-box input::placeholder {
  color: var(--text-muted);
}

/* ======================== KOMPAKT HİSSE BİLGİ KARTLARI (4 YAN YANA!) ======================== */
.stock-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1480px) {
  .stock-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .stock-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.ft-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 11px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.14s ease, transform 0.14s ease, opacity 0.14s ease;
  user-select: none;
}

.ft-card:hover {
  border-color: rgba(59, 130, 246, 0.55);
}

.ft-card.dragging {
  opacity: 0.42;
  transform: scale(0.98);
  border-style: dashed;
  border-color: var(--accent);
}

.ft-card.drag-over {
  border: 2px dashed var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 1. Satır: Mini Logo + Kod + Fiyat + % Değişim + Sürükle / Sil */
.ft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ft-head-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  cursor: pointer;
}

.ft-mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ft-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.ft-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.ft-pct {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.ft-pct.pos {
  background: var(--green-soft);
  color: var(--green);
}

.ft-pct.neg {
  background: var(--red-soft);
  color: var(--red);
}

.ft-pct.neu {
  background: var(--bg-input);
  color: var(--text-muted);
}

.ft-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.ft-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 3px;
  border-radius: 4px;
  line-height: 1;
}

.ft-drag-handle:active {
  cursor: grabbing;
}

.ft-drag-handle:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.ft-remove-btn {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ft-remove-btn:hover {
  background: var(--red-soft);
  color: var(--red);
}

/* 2. Satır: Taban | Tavan | Yüksek | Düşük | Önc.Kap. */
.ft-ohlc-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.ft-ohlc-cell {
  display: flex;
  flex-direction: column;
}

.ft-ohlc-cell:last-child {
  text-align: right;
}

.ft-ohlc-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.ft-ohlc-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
}

/* 3. Satır: Sadece Özet + Periyot Seçici (G | 1H | 1A | 1Y) + Detay Butonu */
.ft-chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ft-period-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ft-ozet-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 4px;
}

.ft-p-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}

.ft-p-btn:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

.ft-p-btn.active {
  background: var(--border);
  color: var(--text-primary);
}

.ft-expand-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
}

.ft-expand-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* 4. Bölüm: Kompakt Grafik Alanı */
.ft-chart-wrap {
  position: relative;
  height: 92px;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

/* 5. Bölüm: Kompakt Metrik Satırları */
.ft-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.ft-m-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.ft-m-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.ft-m-lbl {
  color: var(--text-muted);
  white-space: nowrap;
}

.ft-m-val {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.ft-m-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ft-delay-g {
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
  margin-right: 2px;
  vertical-align: super;
}

/* 6. Bölüm: 6'lı Dönemsel Getiri Kutucukları (1H, 1A, 3A, 6A, YTD, 1Y) */
.ft-returns-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.ft-ret-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.ft-ret-lbl {
  color: var(--text-muted);
  font-weight: 600;
}

.ft-ret-val {
  font-weight: 700;
}

.ft-ret-val.pos { color: var(--green); }
.ft-ret-val.neg { color: var(--red); }
.ft-ret-val.neu { color: var(--text-muted); }

.ft-card.skeleton {
  pointer-events: none;
  opacity: 0.72;
}

.cv-item {
  display: flex;
  flex-direction: column;
}

.cv-item:nth-child(2) {
  text-align: center;
}

.cv-item:nth-child(3) {
  text-align: right;
}

.cv-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.cv-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Yükleniyor Kart İskeleti */
.stock-card.skeleton {
  pointer-events: none;
  opacity: 0.72;
}

.skel-bar {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--border) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ======================== SAĞ PİYASA PANELİ ======================== */
.market-panel {
  position: sticky;
  top: 112px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 134px);
  overflow: hidden;
}

.market-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.market-panel-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.mini-refresh-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
}

.mini-refresh-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.market-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 12px 10px;
}

.m-tab {
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.m-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.m-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.market-controls {
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sort-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.sort-pill {
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  border-radius: 7px;
  padding: 5px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.sort-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.sort-pill.up.active {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
}

.sort-pill.down.active {
  background: var(--red-soft);
  color: var(--red);
  border-color: var(--red);
}

.panel-search-input {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
}

.panel-search-input:focus {
  border-color: var(--accent);
}

.market-list-head {
  display: flex;
  justify-content: space-between;
  padding: 7px 16px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
}

.market-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
  transition: background 0.12s;
}

.market-row:hover {
  background: var(--bg-card-hover);
}

.market-row-left {
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.mr-code {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.mr-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.market-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mr-price-col {
  text-align: right;
}

.mr-price {
  font-size: 13px;
  font-weight: 700;
  display: block;
}

.mr-pct {
  font-size: 11px;
  font-weight: 700;
  display: block;
}

.mr-pct.pos { color: var(--green); }
.mr-pct.neg { color: var(--red); }
.mr-pct.neu { color: var(--text-muted); }

.row-add-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.14s;
}

.row-add-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.row-add-btn.added {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.4);
  font-size: 12px;
}

/* Detaylı Analiz Üst Şeridi */
.analiz-ust-serit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.back-home-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}

.back-home-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.follow-pill-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.follow-pill-btn:hover {
  background: var(--accent);
  color: #fff;
}

.follow-pill-btn.active {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green);
}

/* ======================== AŞAMA 2: İZLEME LİSTELERİ & ANALİZ NOTLARI ======================== */
.page-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-top-bar h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.db-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-form .form-control {
  flex: 1;
  min-width: 180px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--accent);
}

textarea.form-control {
  resize: vertical;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-feedback {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

.sub-section-title {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.saved-lists-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-list-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}

.saved-list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* İzleme Listesi Sekmeleri */
.watchlist-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.wl-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.wl-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.wl-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.wl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.wl-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* Durum Etiketleri */
.tag-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-badge.alim { background: var(--green-soft); color: var(--green); }
.tag-badge.portfoy { background: var(--accent-soft); color: var(--accent); }
.tag-badge.takipte { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.tag-badge.incele { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.tag-badge.pahali { background: var(--red-soft); color: var(--red); }

.alim-hit-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: var(--green-soft);
  color: var(--green);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

.tbl-action-group {
  display: inline-flex;
  gap: 5px;
}

.tbl-mini-btn {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.tbl-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tbl-mini-btn.del:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

/* Kişisel Analiz Notları Kartları */
.notes-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notes-filter-bar input {
  flex: 1;
  min-width: 220px;
}

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

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

.note-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 17px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.note-meta-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.note-code-btn {
  font-size: 12px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
}

.note-cat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.note-stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 1px;
}

.note-date {
  font-size: 11px;
  color: var(--text-muted);
}

.note-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.note-body {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.55;
}

.note-price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* ======================== AŞAMA 3: HİSSE RADAR STİLLERİ ======================== */
.radar-top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-progress-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 11px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.radar-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  margin-bottom: 8px;
}

.radar-progress-track {
  height: 8px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.radar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.radar-presets-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s;
}

.preset-chip:hover,
.preset-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.preset-del {
  margin-left: 3px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
}

.preset-del:hover {
  color: var(--red);
}

.radar-main-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .radar-main-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.radar-filter-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .radar-filter-groups {
    grid-template-columns: 1fr;
  }
}

.rf-group {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 11px 12px;
}

.rf-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.rf-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.rf-tag.db {
  background: var(--green-soft);
  color: var(--green);
}

.rf-minmax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
}

.rf-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rf-item span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.rf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.rf-pair input {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 11.5px;
  font-family: inherit;
  outline: none;
}

.rf-pair input:focus {
  border-color: var(--accent);
}

.radar-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-stats-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.radar-table th.sortable:hover {
  color: var(--accent);
}

.radar-table th.sorted {
  color: var(--accent);
}

.radar-karne-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.radar-karne-pill.iyi { background: var(--green-soft); color: var(--green); }
.radar-karne-pill.orta { background: var(--amber-soft); color: var(--amber); }
.radar-karne-pill.zayif { background: var(--red-soft); color: var(--red); }

/* ======================== SAĞ PANEL ZARİF SIRALAMA AÇILIR MENÜSÜ ======================== */
.market-list-head {
  align-items: center;
}

.head-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.head-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.14s ease;
}

.head-sort-btn svg {
  width: 12px;
  height: 12px;
}

.head-sort-btn:hover,
.head-sort-btn.filtered {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.head-sort-tag:empty {
  display: none;
}

.sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 178px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 4px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: none;
}

.sort-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.sort-menu-item:hover {
  background: var(--bg-card-hover);
}

.sort-menu-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.smi-ico {
  width: 22px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
}

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

.smi-check {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
}

.sort-menu-item.active .smi-check {
  opacity: 1;
}

/* ======================== SAĞ SÜTUN: PİYASALAR + KAP HABER AKIŞI ======================== */
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-right .market-panel {
  position: static;
  flex: none;
  height: 420px;
  min-height: 220px;
  max-height: none;
}

.kap-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  flex: none;
  height: 380px;
  min-height: 220px;
  max-height: none;
  overflow: hidden;
}

/* Masaüstünde Sağ Panelleri Aşağı/Yukarı Sürükleyerek Boyutlandırma Tutamacı */
.panel-resize-handle {
  height: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ns-resize;
  background: var(--bg-input);
  border-top: 1px solid var(--border-light);
  user-select: none;
  transition: background 0.14s ease;
}

.panel-resize-handle:hover,
.panel-resize-handle.active {
  background: var(--accent-soft);
}

.resize-grip {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: var(--text-muted);
  opacity: 0.45;
  transition: all 0.14s ease;
}

.panel-resize-handle:hover .resize-grip,
.panel-resize-handle.active .resize-grip {
  width: 56px;
  background: var(--accent);
  opacity: 0.95;
}

@media (max-width: 1020px) {
  .dashboard-right {
    position: static;
    max-height: none;
  }
  .dashboard-right .market-panel,
  .kap-panel {
    height: auto !important;
    max-height: 440px;
  }
  .panel-resize-handle {
    display: none;
  }
}

.kap-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 12px 8px;
}

.kap-list {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.kap-row {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.12s;
}

.kap-row:hover {
  background: var(--bg-card-hover);
}

.kap-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kap-row-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.kap-code-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.kap-time {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.kap-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kap-summary-mini {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Renkli KAP Kategori Etiketleri */
.kap-cat-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--bg-input);
  color: var(--text-secondary);
}

.kap-cat-pill.bilanco { background: var(--green-soft); color: var(--green); }
.kap-cat-pill.temettu { background: var(--amber-soft); color: var(--amber); }
.kap-cat-pill.is_iliskisi { background: var(--accent-soft); color: var(--accent); }
.kap-cat-pill.sermaye { background: rgba(139, 92, 246, 0.18); color: #a78bfa; }
.kap-cat-pill.geri_alim { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }
.kap-cat-pill.beklenti { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.kap-cat-pill.birlesme { background: rgba(236, 72, 153, 0.18); color: #f472b6; }
.kap-cat-pill.pay_islem { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.kap-cat-pill.oda { background: var(--accent-soft); color: var(--accent); }
.kap-cat-pill.rutin,
.kap-cat-pill.diger { background: var(--bg-input); color: var(--text-muted); }

/* Şirket Analizi -> KAP Sekmesi */
.hisse-kap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hisse-kap-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 15px;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
}

.hisse-kap-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.hisse-kap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.hisse-kap-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.hisse-kap-ozet {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 5px;
  line-height: 1.45;
}

.kap-modal-body {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Otomatik 2 Dakikada Bir Canlı Güncelleme Butonu */
.auto-live-btn {
  font-size: 12px;
  padding: 7px 11px;
}

.auto-live-btn.active {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--green);
  background: var(--green-soft);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}

.auto-live-btn.active .live-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ======================== ŞİRKET PROFİLİ SEKMESİ ======================== */
.profil-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profil-faaliyet-kutu {
  background: var(--bg-input);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.profil-resmi-details {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.profil-resmi-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  user-select: none;
}

.profil-resmi-details p {
  margin-top: 10px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 220px;
  overflow-y: auto;
}

.profil-kunye-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1100px) {
  .profil-kunye-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.kunye-item {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kunye-item.span-2 {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .kunye-item.span-2 {
    grid-column: span 1;
  }
}

.kunye-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kunye-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.kunye-val a {
  color: var(--accent);
  text-decoration: none;
}

.kunye-val a:hover {
  text-decoration: underline;
}

/* GYO İş Modeli Kartı */
.gyo-model-card {
  border-color: rgba(59, 130, 246, 0.35);
}

.gyo-aciklama {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.gyo-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gyo-bar-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.gyo-bar-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.gyo-bar-kira {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  height: 100%;
  transition: width 0.4s ease;
}

.gyo-bar-konut {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  height: 100%;
  transition: width 0.4s ease;
}

.profil-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.profil-badge.good {
  background: var(--green-soft);
  color: var(--green);
}

.profil-badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.profil-badge.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Ortaklık & İmtiyaz */
.profil-ortaklik-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
  align-items: center;
}

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

.profil-chart-box {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profil-chart-wrap {
  position: relative;
  width: 100%;
  height: 250px;
}

.oy-fark-rozet {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--amber-soft);
  color: var(--amber);
}

.imtiyaz-banner {
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.45;
}

.imtiyaz-banner.var {
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: var(--amber);
}

.imtiyaz-banner.yok {
  background: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--green);
}

.imtiyaz-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.imtiyaz-pill.var {
  background: var(--amber-soft);
  color: var(--amber);
}

.imtiyaz-pill.yok {
  background: var(--bg-input);
  color: var(--text-muted);
}

.profil-istirak-wrap {
  max-height: 400px;
  overflow-y: auto;
}

/* Kişisel Sektör & Varlık Defteri */
.profil-kisisel-card {
  border-style: dashed;
  border-color: var(--border);
}

.profil-enerji-bolum {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.profil-varlik-bolum {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}

.profil-sub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.profil-sub-head h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.enerji-ozet-rozetler {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profil-enerji-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  align-items: start;
}

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

.enerji-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .enerji-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.varlik-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.3fr 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

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

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

.varlik-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 9px;
}

.varlik-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.varlik-tur-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.varlik-ad {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.varlik-detay {
  font-size: 12px;
  color: var(--text-secondary);
}

.varlik-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.varlik-deger {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* ======================== EDER DEĞER (İÇSEL DEĞERLEME) SEKMESİ ======================== */
.eder-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eder-main-numbers {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--border-light);
}

.eder-big-block,
.eder-pot-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eder-pot-block {
  text-align: right;
}

.eder-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.eder-big-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

.eder-pot-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.eder-pot-val.pos { color: var(--green); }
.eder-pot-val.neg { color: var(--red); }
.eder-pot-val.neu { color: var(--text-secondary); }

.eder-sub-note {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Görsel Fiyat Bandı Ölçeği */
.eder-range-box {
  margin-top: 14px;
  margin-bottom: 10px;
}

.eder-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.eder-range-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.35), rgba(59, 130, 246, 0.55), rgba(245, 158, 11, 0.45));
  border: 1px solid var(--border);
}

.eder-range-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  transition: left 0.35s ease;
}

.eder-range-pin span {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.eder-sektor-not {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-input);
  border-radius: 8px;
  padding: 9px 12px;
}

/* Aracı Kurum Hedef Mini Kutular */
.hedef-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.hedef-stat-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hedef-stat-pill span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.hedef-stat-pill strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.kurum-rapor-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
}

.kurum-oneri-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
}

.kurum-oneri-pill.al { background: var(--green-soft); color: var(--green); }
.kurum-oneri-pill.tut { background: var(--amber-soft); color: var(--amber); }
.kurum-oneri-pill.sat { background: var(--red-soft); color: var(--red); }

/* Tıklanabilir Aracı Kurum Sayısı + Hover Önizleme Balonu */
.kurum-trigger-wrap {
  position: relative;
  display: inline-block;
  margin-top: 3px;
}

.kurum-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 7px;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.kurum-trigger-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.kurum-trigger-btn.pasif {
  cursor: default;
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  padding-left: 0;
}

.kurum-trigger-btn.pasif:hover {
  background: transparent;
  color: var(--text-secondary);
}

.kurum-hover-popover {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 7px;
  z-index: 250;
  width: 345px;
  display: none;
  cursor: pointer;
}

.kurum-hover-popover-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kurum-trigger-wrap:hover .kurum-hover-popover:not(.bos) {
  display: block;
}

.kurum-pop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-light);
}

.kurum-pop-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
}

.kurum-pop-kurum {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kurum-pop-tarih {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.kurum-pop-fiyat {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.kurum-pop-foot {
  font-size: 11px;
  color: var(--accent);
  text-align: center;
  padding-top: 5px;
  border-top: 1px solid var(--border-light);
  font-weight: 600;
}

.kurum-rapor-baslik-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.kurum-rapor-liste {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kurum-modal-table-wrap {
  max-height: 390px;
  overflow-y: auto;
}

/* Varsayım Kaydırıcıları */
.eder-varsayim-card {
  border-color: rgba(59, 130, 246, 0.3);
}

.varsayim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.varsayim-item {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.varsayim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.varsayim-deger {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.varsayim-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.varsayim-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Yatay Karşılaştırma Grafiği */
.eder-chart-container {
  position: relative;
  width: 100%;
  height: 290px;
}

/* 9 Değerleme Modeli Kart Izgarası */
.eder-models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1150px) {
  .eder-models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.eder-model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.eder-model-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.eder-model-card.birincil {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.1);
}

.eder-model-card.uygun-degil {
  opacity: 0.68;
}

.eder-model-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.eder-model-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.eder-model-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.eder-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-input);
  color: var(--text-muted);
}

.eder-tag.birincil {
  background: var(--accent-soft);
  color: var(--accent);
}

.eder-model-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  background: var(--bg-input);
  border-radius: 9px;
}

.eder-model-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.eder-model-gosterge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
}

.eder-model-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.eder-model-formul {
  margin-top: auto;
  font-size: 11px;
  font-family: Consolas, Monaco, monospace;
  color: var(--text-muted);
  background: var(--bg-input);
  border-radius: 6px;
  padding: 6px 9px;
  border: 1px solid var(--border-light);
}

/* ======================== KAYAN ÜST PİYASA ŞERİDİ & MOBİL MENÜ & KOMPAKT PİYASA SEÇİCİ ======================== */
.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobil-menu-btn {
  display: none;
  font-size: 18px;
  font-weight: 700;
  padding: 5px 10px;
  line-height: 1;
}

.mobil-drawer-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.mobil-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(3px);
}

/* Kayan Üst Piyasa Şeridi */
.ticker-tape {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

[data-theme="light"] .ticker-tape {
  background: #f8fafc;
}

.ticker-ctrl-btn {
  width: 26px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 6px;
  transition: all 0.14s ease;
}

.ticker-ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  padding-left: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.ticker-viewport::-webkit-scrollbar {
  display: none;
}

.ticker-viewport.dragging {
  cursor: grabbing;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

/* Sağ Panel Piyasalar Kompakt Kategori Seçici */
.market-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.market-kat-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.14s;
}

.market-kat-select:hover,
.market-kat-select:focus {
  border-color: var(--accent);
}

/* ======================== ORİJİNAL ŞİRKET LOGOLARI, ÜYELİK & ZİYARETÇİ SAYACI ======================== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.stock-logo-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  flex-shrink: 0;
  position: relative;
}

.stock-logo-box.lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.stock-logo-box.mob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.stock-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}

.stock-logo-fallback {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: -0.3px;
}

.stock-logo-box.lg .stock-logo-fallback {
  font-size: 14px;
}

.stock-logo-box.mob .stock-logo-fallback {
  font-size: 10px;
}

/* Masaüstünde mobil kare kart gövdesi gizli */
.ft-mobile-only {
  display: none;
}

/* Üyelik Butonu */
.auth-btn {
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--accent);
  font-weight: 700;
}

.auth-btn.logged-in {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Ziyaretçi Sayacı Şeridi */
.visitor-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.visitor-strip strong {
  color: var(--accent);
  font-weight: 800;
}

/* ======================== MOBİL / CEP TELEFONU UYUMLULUK CİLASI ======================== */
@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 8px;
  }

  .brand-group {
    order: 1;
  }

  .mobil-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-actions {
    order: 2;
    margin-left: auto;
    gap: 5px;
  }

  .topbar-actions .icon-btn {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  #yenileBtn span,
  #otoGuncelleYazi {
    display: none;
  }

  .search-wrapper {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }

  .app-shell {
    padding: 0 8px;
    margin-top: 8px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  .main-content,
  .dashboard-layout,
  .dashboard-center,
  .market-panel,
  .card {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .market-panel,
  .right-column-stack {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
  }

  .market-row {
    gap: 6px;
  }

  /* Mobilde Sol Menü -> Soldan Açılır Hamburger Çekmece (Drawer) */
  .left-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px !important;
    max-width: 82vw;
    z-index: 600;
    border-radius: 0 14px 14px 0 !important;
    padding: 14px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.55);
  }

  .left-sidebar.acik {
    transform: translateX(0);
  }

  .mobil-drawer-head {
    display: flex !important;
  }

  .sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    gap: 4px;
    overflow: visible;
  }

  .sidebar-divider,
  .sidebar-placeholder {
    display: block !important;
  }

  .side-link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 13.5px;
  }

  /* Mobilde Şirket Analizi Sekmeleri -> Açılır Liste Kutusu */
  .tabs-bar {
    display: none !important;
  }

  .mobile-tab-select-wrap {
    display: flex;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-right {
    width: 100%;
    align-items: flex-start;
  }

  .kurum-hover-popover {
    width: min(320px, 86vw);
  }

  .eder-big-val {
    font-size: 23px;
  }

  .eder-pot-val {
    font-size: 18px;
  }

  .modal-overlay {
    padding: 10px;
  }

  .chart-modal {
    padding: 14px;
    max-height: 92vh;
    overflow-y: auto;
  }
}

/* ======================== CEP TELEFONU 3'LÜ KARE HİSSE KARTLARI ======================== */
@media (max-width: 660px) {
  .stock-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .ft-card {
    padding: 8px 6px !important;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 3px !important;
    position: relative;
    overflow: hidden;
  }

  .ft-desktop-only {
    display: none !important;
  }

  .ft-mobile-only {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .ft-mob-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }

  .ft-mob-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 2px;
  }

  .ft-mob-dir {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  .ft-mob-dir.pos { color: var(--green); }
  .ft-mob-dir.neg { color: var(--red); }
  .ft-mob-dir.neu { color: var(--text-muted); }

  .ft-mob-code {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    line-height: 1.1;
  }

  .ft-mob-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
  }

  .ft-mob-pct {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 5px;
    line-height: 1.25;
  }

  .ft-mob-pct.pos { background: var(--green-soft); color: var(--green); }
  .ft-mob-pct.neg { background: var(--red-soft); color: var(--red); }
  .ft-mob-pct.neu { background: var(--bg-input); color: var(--text-muted); }

  .ft-mob-time {
    font-size: 9.5px;
    color: var(--text-muted);
    line-height: 1;
  }
}

/* ======================== ÇEYREK FİLTRESİ & ÜST KAYDIRMA ÇUBUĞU ======================== */
.quarter-filter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.q-chip {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.q-chip:hover {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.12);
}

.q-chip.active {
  background: var(--accent);
  color: #fff;
}

/* Tablonun Üstünde Senkronize Yatay Kaydırma Şeridi */
.fin-top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 3px 4px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.fin-nav-btn {
  width: 26px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s;
}

.fin-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.fin-top-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.fin-top-scroll::-webkit-scrollbar {
  height: 8px;
}

.fin-top-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.fin-top-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
  border-radius: 99px;
}

.fin-top-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.fin-top-spacer {
  height: 1px;
}

/* CEP TELEFONU: Bilanço, Gelir Tablosu ve Nakit Akım Tam Okunabilirlik */
@media (max-width: 768px) {
  .table-tools {
    gap: 6px;
    width: 100%;
  }

  .quarter-filter {
    width: 100%;
    justify-content: space-between;
  }

  .q-chip {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 11.5px;
  }

  .filter-input {
    width: 100%;
    font-size: 12.5px;
    padding: 7px 10px;
  }

  .period-select,
  .unit-select {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 7px 8px;
  }

  .fin-table-wrap {
    max-height: 64vh;
  }

  .fin-table {
    font-size: 11.5px;
  }

  .fin-table thead th:first-child,
  .fin-table tbody td:first-child {
    min-width: 112px;
    width: 124px;
    max-width: 132px;
    padding: 7px 7px;
    white-space: normal;
    line-height: 1.22;
    word-break: break-word;
    font-size: 11px;
  }

  .fin-table thead th:not(:first-child),
  .fin-table tbody td:not(:first-child) {
    padding: 7px 8px;
    min-width: 74px;
    font-size: 11.5px;
  }
}

/* ======================== TEFAS FON POZİSYONLARI & FON DAĞILIMLARI ======================== */
.fon-ozet-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
}

.fon-ozet-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fon-ozet-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.fon-ozet-val.pos { color: var(--green); }
.fon-ozet-val.neg { color: var(--red); }

.fon-ozet-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.fon-ozet-sub.pos { color: var(--green); }
.fon-ozet-sub.neg { color: var(--red); }

.fon-kod-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.fon-kod-pill.lg {
  font-size: 14px;
  padding: 5px 11px;
}

.fon-row-click {
  cursor: pointer;
  transition: background 0.12s;
}

.fon-row-click:hover td {
  background: var(--bg-card-hover);
}

.fon-durum-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 5px;
}

.fon-durum-badge.yeni {
  background: var(--green-soft);
  color: var(--green);
}

.fon-durum-badge.cikti {
  background: var(--red-soft);
  color: var(--red);
}

.fonlar-split-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.fonlar-liste-kart {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 175px);
  position: sticky;
  top: 108px;
}

.fonlar-scroll-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.fon-list-item {
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.14s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fon-list-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.fon-list-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.fli-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fli-ad {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fli-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  gap: 6px;
  flex-wrap: wrap;
}

.fli-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.fli-mini-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.fon-detay-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.fon-detay-stack > .card {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.fon-grafik-satir {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.fon-chart-box {
  position: relative;
  height: 224px;
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  min-width: 0;
}

.fon-top-ozet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.fon-top-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: border-color 0.14s, transform 0.14s;
  font-size: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.fon-top-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.fon-top-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.fon-top-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.fon-top-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fon-top-kod {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.fon-top-pct {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.fon-top-bar-bg {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
}

.fon-top-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* ======================== TMS 29 ENFLASYON MUHASEBESİ & GÖRÜNÜM ÇUBUĞU ======================== */
.tms29-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tms29-pill.aktif {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.32);
}
[data-theme="dark"] .tms29-pill.aktif {
  color: #34d399;
}
.tms29-pill.muaf {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.32);
}
[data-theme="dark"] .tms29-pill.muaf {
  color: #fbbf24;
}

.tms29-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
}
.tms29-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tms29-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}
.tms29-seg {
  flex-wrap: wrap;
}
.tms29-bar-info {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1 1 260px;
  text-align: right;
}
@media (max-width: 900px) {
  .tms29-bar-info {
    text-align: left;
  }
}

/* Finansal tablo kalem başındaki grafik simgesi & modal dönem/değer tablosu */
.fin-kalem-hucre {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.fin-row-chart-btn {
  flex-shrink: 0;
  opacity: 0.72;
  transition: opacity 0.14s, transform 0.14s, background 0.14s;
}
.fin-table tr:hover .fin-row-chart-btn,
.fin-row-chart-btn:hover {
  opacity: 1;
}

.chart-modal {
  max-height: 90vh;
  overflow-y: auto;
}
.modal-data-table-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.modal-data-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.modal-data-table-wrap {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.modal-data-table-wrap thead th {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}

/* TEFAS Durum Rozeti, Risk ? Bilgi İkonu ve 3 Sütun Grafik */
.tefas-durum-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tefas-durum-pill.acik {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.32);
}
[data-theme="dark"] .tefas-durum-pill.acik {
  color: #34d399;
}
.tefas-durum-pill.kapali {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.32);
}
[data-theme="dark"] .tefas-durum-pill.kapali {
  color: #f87171;
}

.risk-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.risk-help-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.risk-help-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.28);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-primary);
}

.fon-bar-charts-section {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.fon-bar-grid {
  gap: 12px;
  min-width: 0;
}
.fon-bar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
}
.fon-bar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.fon-bar-canvas-wrap {
  position: relative;
  height: 175px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 960px) {
  .fon-bar-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Tablo görünüm geçişi yükleniyor göstergesi */
@keyframes tbFinSpin {
  to {
    transform: rotate(360deg);
  }
}
.fin-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  padding: 28px 16px;
  text-align: center;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px dashed var(--border-main);
}
.fin-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  animation: tbFinSpin 0.75s linear infinite;
}
.fin-inline-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-main);
  border-top-color: var(--accent);
  animation: tbFinSpin 0.75s linear infinite;
  vertical-align: -2px;
  margin-right: 4px;
}
.fin-loading-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.fin-loading-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Gruplanmış Analiz Alt Sekme Çubuğu */
.subtab-group-bar {
  margin: -4px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}
.subtab-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.subtab-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.subtab-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.subtab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Akıllı Hisse & Fon Arama Öneri Kutusu */
.smart-suggest-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  z-index: 1200;
  padding: 4px;
}
.smart-suggest-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
}
.smart-suggest-item:hover {
  background: var(--bg-input);
}
.smart-suggest-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.field-hint-line {
  font-size: 11px;
  margin-top: 4px;
  min-height: 14px;
  color: var(--text-muted);
}
.field-hint-line.ok {
  color: var(--green);
  font-weight: 600;
}
.field-hint-line.warn {
  color: var(--amber);
}
.field-hint-line.err {
  color: var(--red);
  font-weight: 600;
}

/* TEFAS Favori Yıldız Düğmesi & Fon İzleme Sekmesi */
.fon-fav-btn {
  font-size: 14px;
  color: var(--text-muted);
}
.fon-fav-btn.active,
.fon-fav-btn:hover {
  color: #f59e0b;
}
#fdFonListeBtn.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.45);
  color: #d97706;
}
[data-theme="dark"] #fdFonListeBtn.active {
  color: #fbbf24;
}

/* Hisse Detay Hero Sağ Boş Alan — Mini Hisse Fiyat Değişim Grafiği */
.hero-mini-chart-box {
  flex: 1 1 230px;
  min-width: 210px;
  max-width: 340px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
}
.hero-mini-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.hero-mini-pct {
  font-size: 11.5px;
  font-weight: 700;
}
.hero-mini-pct.pos {
  color: var(--green);
}
.hero-mini-pct.neg {
  color: var(--red);
}
.hero-mini-pills {
  display: inline-flex;
  gap: 3px;
}
.hm-pill {
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.hm-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-mini-canvas-wrap {
  position: relative;
  height: 54px;
  width: 100%;
}

/* TEFAS Fon Detay Üst Getiri Grafiği & Alttaki Yatay Dönemsel Getiri Barı */
.fon-perf-chart-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
}
.fon-perf-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.fon-perf-pct-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.fon-perf-pct-pill.pos {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}
[data-theme="dark"] .fon-perf-pct-pill.pos {
  color: #34d399;
}
.fon-perf-pct-pill.neg {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}
[data-theme="dark"] .fon-perf-pct-pill.neg {
  color: #f87171;
}
.fon-perf-canvas-wrap {
  position: relative;
  height: 215px;
  width: 100%;
}
.fon-yatay-getiri-wrap {
  position: relative;
  height: 310px;
  width: 100%;
}

/* Sağ Piyasalar Paneli — İzleme Listem Bölüm Başlıkları & Mini Anlık Tahmin */
.market-sub-head {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-input);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mr-fon-anlik {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
}
.mr-fon-anlik.pos {
  color: var(--green);
}
.mr-fon-anlik.neg {
  color: var(--red);
}

/* TEFAS Fon Detay: Resmi Günlük Getiri + Kompakt Renkli Gün İçi Tahmin + Hover Açıklama */
.fon-ret-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.fon-ret-pill.pos {
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
[data-theme="dark"] .fon-ret-pill.pos {
  color: #34d399;
}
.fon-ret-pill.neg {
  background: rgba(239, 68, 68, 0.16);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
[data-theme="dark"] .fon-ret-pill.neg {
  color: #f87171;
}

.fon-tahmin-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: help;
}
.fon-tahmin-pill.pos {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px dashed rgba(16, 185, 129, 0.45);
}
[data-theme="dark"] .fon-tahmin-pill.pos {
  color: #34d399;
}
.fon-tahmin-pill.neg {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px dashed rgba(239, 68, 68, 0.45);
}
[data-theme="dark"] .fon-tahmin-pill.neg {
  color: #f87171;
}
.fon-tahmin-pill[data-tooltip]:hover::after,
.fon-tahmin-pill[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  white-space: normal;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.3);
  z-index: 1500;
  pointer-events: none;
}

@media (max-width: 1020px) {
  .fonlar-split-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .fonlar-liste-kart {
    position: static;
    max-height: 360px;
  }
  .fon-grafik-satir {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .fon-chart-box {
    max-width: 215px;
    height: 215px;
  }
}

@media (max-width: 660px) {
  .fon-top-ozet {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ======================== SİTE DUYURU BANDI ======================== */
.site-duyuru-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 38px 8px 16px;
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  border-bottom: 1px solid var(--border);
}

.site-duyuru-band.duyuru-bilgi {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.14));
  color: #dbeafe;
  border-bottom-color: rgba(59, 130, 246, 0.35);
}

.site-duyuru-band.duyuru-basari {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(52, 211, 153, 0.12));
  color: #d1fae5;
  border-bottom-color: rgba(16, 185, 129, 0.35);
}

.site-duyuru-band.duyuru-uyari {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.12));
  color: #fef3c7;
  border-bottom-color: rgba(245, 158, 11, 0.38);
}

[data-theme="light"] .site-duyuru-band.duyuru-bilgi { color: #1e3a8a; }
[data-theme="light"] .site-duyuru-band.duyuru-basari { color: #065f46; }
[data-theme="light"] .site-duyuru-band.duyuru-uyari { color: #92400e; }

.site-duyuru-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.site-duyuru-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border: 1px solid currentColor;
  transition: opacity 0.15s;
}

.site-duyuru-link:hover {
  opacity: 0.85;
}

.site-duyuru-kapat {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.72;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 7px;
  border-radius: 6px;
}

.site-duyuru-kapat:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.fon-kat-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fon-getiri-serit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fon-getiri-kutu {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 6px;
  text-align: center;
}

.fon-getiri-kutu span {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.fon-getiri-kutu strong {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.fon-karar-kart {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fon-karar-kart h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 2px;
}

.fon-karar-satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}

.fon-karar-satir span { color: var(--text-secondary); }
.fon-karar-satir strong { color: var(--text-primary); }

.fon-risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.fon-risk-low { background: rgba(16,185,129,0.18); color: #34d399; }
.fon-risk-mid { background: rgba(245,158,11,0.18); color: #fbbf24; }
.fon-risk-high { background: rgba(239,68,68,0.18); color: #f87171; }

.fon-kars-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.4);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.fon-kars-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  padding: 0;
  opacity: 0.8;
}

.fon-ortusme-kart {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.fon-ortusme-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin: 8px 0 12px;
}

.fon-ortusme-dolgu {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
}

#tefasAnaTabloAlani th.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

#tefasAnaTabloAlani th.sortable-th:hover {
  color: var(--accent);
}

#tefasAnaTabloAlani td.num,
#tersineAlimTablo td.num,
#tersineSatimTablo td.num,
#tersineYeniTablo td.num {
  white-space: nowrap;
}

/* ======================== ALT BİLGİ & SVG İKON + TEFAS TAŞMA KORUMASI ======================== */
.tb-svg-ico {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.kvkk-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
}

.kvkk-check-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.kvkk-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-size: inherit;
}

#fdHisseTabloAlani td.num,
#fdHisseTabloAlani th.num,
#hisseFonTabloAlani td.num,
#hisseFonTabloAlani th.num {
  white-space: nowrap;
}

.footer a#footerIletisimLink {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer {
  max-width: 1420px;
  margin: 0 auto 30px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ======================== ÜYELİK VİTRİN KİLİDİ (BUZLU CAM / BLUR) ======================== */
.uye-kilit-gizli {
  display: none !important;
}

.uye-kilit-kutu {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.uye-kilit-bulanik {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: blur(6px);
  opacity: 0.36;
  pointer-events: none;
  user-select: none;
}

.uye-kilit-satir-siluet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
}

.uye-kilit-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--border);
}

.uye-kilit-bar.accent {
  background: rgba(59, 130, 246, 0.45);
}

.uye-kilit-bar.pos {
  background: rgba(16, 185, 129, 0.45);
}

.uye-kilit-kart {
  position: relative;
  z-index: 2;
  max-width: 470px;
  width: 100%;
  text-align: center;
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(59, 130, 246, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .uye-kilit-kart {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.uye-kilit-rozet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-bottom: 10px;
}

.uye-kilit-kart h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.uye-kilit-kart p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.uye-kilit-maddeler {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.uye-kilit-maddeler li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.uye-kilit-aksiyon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Kompakt satır-altı / kart-içi kilit şeridi (Risk kartı, Radar, Top 20) */
.uye-kilit-mini-kart {
  position: relative;
  border-radius: 12px;
  border: 1px dashed rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.06));
  padding: 14px 16px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.uye-kilit-mini-kart.dikey {
  flex-direction: column;
  text-align: center;
  justify-content: center;
  min-height: 165px;
  margin-top: 6px;
}

.uye-kilit-mini-metin {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.uye-kilit-mini-metin strong {
  font-size: 13.5px;
  color: var(--text-primary);
}

.tab-lock-ico {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.78;
}

.demo-acik-rozet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
}

.uye-kilit-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.uye-kilit-pill-btn:hover {
  background: rgba(59, 130, 246, 0.22);
}

@media (max-width: 640px) {
  .uye-kilit-kart {
    padding: 18px 14px;
  }
  .uye-kilit-mini-kart {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .uye-kilit-mini-kart .uye-kilit-aksiyon {
    justify-content: center;
  }
}
