/* ==========================================================================
   verdict.css — verdict v3 stilleri
   --------------------------------------------------------------------------
   Spec: design/verdict-v3.md
   Token kaynağı: css/tokens.css
   Feature flag: html.v3-mode #v3Zone görünür, eski verdict gizli.
   ========================================================================== */

/* ── Gate (production blur + kilit) ─────────────────────────────────────────
   v3Gate/v3GateNum (render.js) ile işaretlenen elementler yalnız html.is-gated
   aktifken blur olur. waitlist.js: gate aktif (canlı host) + kilitliyken ekler,
   unlock/test/preview'da kaldırır. */
.v3-gate-wrap { position: relative; }
.v3-gate-lock { display: none; }

html.is-gated .v3-gate-content {
  filter: blur(8px) grayscale(1);
  pointer-events: none;
  user-select: none;
}
html.is-gated .v3-gate-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .25);
  border: none;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
}
html.is-gated .v3-gate-lock:hover { background: rgba(17, 17, 17, .38); }
.v3-gate-lock-ic { font-size: 22px; line-height: 1; }
.v3-gate-lock-tx { font-size: 13px; font-weight: 600; }

html.is-gated .v3-gate-num {
  filter: blur(6px);
  cursor: pointer;
  user-select: none;
}

/* Default: v3 zone gizli, eski sistem görünür. */
#v3Zone { display: none; }

html.v3-mode #v3Zone { display: block; margin: 0 0 2rem; }

/* Eski verdict markup'ını v3 modunda gizle (yan yana çakışmasın) */
html.v3-mode #dashboardRoot,
html.v3-mode #reasonsGrid,
html.v3-mode .sl,
html.v3-mode .charts-grid,
html.v3-mode #detailBox,
html.v3-mode #profileBox,
html.v3-mode #riskBox { display: none !important; }

/* ── Verdict box (tepe) ── */
.v3-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 2rem 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.v3-box.v3-good { color: var(--accent);  border-color: var(--accent); background: var(--surface2); }
.v3-box.v3-meh  { color: var(--warning); border-color: var(--warning); background: #1f1500; }
.v3-box.v3-bad  { color: var(--danger);  border-color: var(--danger);  background: #1f0a0a; }

.v3-skor-h {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.v3-gauge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.v3-gauge {
  position: relative;
  width: 200px;
}
.v3-gauge-svg { display: block; width: 100%; height: auto; }
.v3-gauge-num {
  text-align: center;
  font-family: var(--mono);
  line-height: 1;
  margin-top: -0.35rem;
}
.v3-skor { font-size: 2.6rem; font-weight: 700; color: currentColor; }
.v3-skor-sub { font-size: 0.95rem; color: var(--text3); margin-left: 4px; }
.v3-harf {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 700;
  width: 80px; height: 80px;
  border: 3px solid currentColor;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: currentColor;
}

.v3-mesaj {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 auto 1.25rem;
  max-width: 640px;
  line-height: 1.45;
}

.v3-ozet-h {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text2);
  margin: 1.25rem 0 0.6rem;
  text-align: left;
}

/* ── GİRDİLER bloğu (3 kolon) ── */
.v3-girdiler {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}
.v3-girdiler-h {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text2);
  margin: 0 0 0.75rem;
}
.v3-girdiler-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.v3-girdiler-col {
  padding: 0.5rem 0;
}
.v3-girdiler-label {
  font-size: 0.78rem;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.v3-girdiler-value {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.v3-girdiler-sub {
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 0.15rem;
  font-family: var(--mono);
}
.v3-girdiler-sub-big {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
  margin-top: 0.25rem;
}

/* ── Accordion (A/B/C/D collapsible) ── */
.v3-acc {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}
.v3-acc-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.v3-acc-item[open] { border-color: var(--accent); }

.v3-acc-head {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-areas: "tag title arrow"
                       "tag desc  arrow";
  gap: 0.25rem 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  transition: background 0.15s;
}
.v3-acc-head::-webkit-details-marker { display: none; }
.v3-acc-head:hover { background: var(--surface2); }

.v3-acc-tag {
  grid-area: tag;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #111111;
  display: flex; align-items: center; justify-content: center;
}
.v3-acc-title {
  grid-area: title;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  align-self: end;
}
.v3-acc-desc {
  grid-area: desc;
  font-size: 0.82rem;
  color: var(--text3);
  align-self: start;
  line-height: 1.35;
}
.v3-acc-arrow {
  grid-area: arrow;
  color: var(--text3);
  font-size: 1rem;
  transition: transform 0.2s;
}
.v3-acc-item[open] .v3-acc-arrow { transform: rotate(180deg); }

.v3-acc-body {
  padding: 0 1rem 1rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
  margin-top: 0;
}

.v3-disclaimer {
  font-size: 0.72rem;
  color: var(--text3);
  line-height: 1.5;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: left;
}

/* ── Section (A-E) ── */
.v3-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 80px;
}
.v3-section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.v3-section-tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #111111;
  display: flex; align-items: center; justify-content: center;
}
.v3-section-head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.v3-section-headline {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.v3-section-primary {
  text-align: center;
  padding: 1.25rem 0;
  background: var(--surface2);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.v3-primary-value {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.v3-primary-sub {
  font-size: 0.85rem;
  color: var(--text3);
  margin-top: 0.35rem;
}

/* ── Bölüm 1: Gerçek maliyet — pie + liste ── */
.v3-cost-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
}
.v3-cost-chart {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
}
.v3-pie { display: block; width: 100%; height: auto; }
.v3-pie path {
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.v3-pie.has-hover path:not(.is-hovered) { opacity: 0.25; }
.v3-pie path.is-hovered                 { transform: scale(1.07); }
.v3-cost-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.v3-cost-chart-label {
  font-size: 0.6rem;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 78px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
  text-align: center;
}
.v3-cost-chart-value {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-top: 2px;
}
.v3-cost-chart-pct {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

.v3-cost-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.v3-cost-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: default;
}
/* Hover rengi ve glow JS tarafından her dilime özgü uygulanıyor (v3CostHover) */
.v3-cost-row {
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.v3-cost-swatch {
  width: 12px; height: 12px; border-radius: 3px; margin-top: 4px;
}
.v3-cost-main {
  min-width: 0;
}
.v3-cost-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.v3-cost-aciklama {
  font-size: 0.78rem;
  color: var(--text3);
  line-height: 1.4;
  margin-top: 0.15rem;
}
.v3-cost-amount {
  text-align: right;
  white-space: nowrap;
}
.v3-cost-tl {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.v3-cost-range {
  font-size: 0.85rem;
  white-space: normal;
}
.v3-cost-fx {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.v3-cost-pct {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 2px;
}

.v3-pazarlik-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f5a524;
  color: #111111;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: help;
}

@media (max-width: 720px) {
  .v3-cost-grid { grid-template-columns: 1fr; }
  .v3-cost-chart { width: 180px; margin: 0 auto; }
}

/* ── Bölüm 2: Reel ev değeri — narrative + tablo ── */

.v3-val-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.v3-val-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.v3-val-tab:hover { border-color: var(--accent); }
.v3-val-tab.is-active {
  border-color: var(--accent);
  background: var(--surface2);
}
.v3-val-tab-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2);
}
.v3-val-tab-pct {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.v3-val-tab:not(.is-active) .v3-val-tab-pct { color: var(--text3); }
.v3-val-scenario-hidden { display: none; }

.v3-val-narrative p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text2);
  margin: 0 0 0.85rem;
}
.v3-val-narrative strong { color: var(--text); }
.v3-val-see-below {
  font-size: 0.8rem;
  color: var(--text3);
  margin: 0.25rem 0 1rem;
}
.v3-val-fx {
  font-size: 0.85em;
  color: var(--text3);
  font-weight: 400;
}
.v3-val-proj-list {
  margin: 0.1rem 0 0.85rem 1.1rem;
  padding: 0;
}
.v3-val-proj-list li {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 0.3rem;
}
.v3-val-kazanc {
  font-size: 0.93rem;
  color: var(--accent);
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
  margin: 0 0 0.5rem;
}
.v3-val-kazanc strong { color: var(--accent); }

.v3-val-table-wrap { overflow-x: auto; }
.v3-val-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.v3-val-table th {
  text-align: right;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.v3-val-table th:first-child { text-align: left; }
.v3-val-th-sub {
  font-weight: 400;
  font-size: 0.68rem;
  display: block;
  color: var(--text3);
}
.v3-val-table td {
  text-align: right;
  padding: 0.55rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.v3-val-table tbody tr:last-child td { border-bottom: none; }
.v3-val-td-label {
  text-align: left !important;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
}
.v3-val-table tbody tr:last-child .v3-val-td-label { color: var(--accent); font-weight: 700; }
.v3-val-td-num {
  text-align: right;
}
.v3-val-td-delta {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ── Eski 2-kolon grid (artık kullanılmıyor ama silinmedi) ── */
.v3-val-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 820px) {
  .v3-val-grid { grid-template-columns: 1fr; }
}
.v3-val-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}
.v3-val-block-h {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.v3-val-source {
  font-size: 0.83rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.v3-val-source strong {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}
.v3-val-tag {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.v3-val-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  align-items: center;
}
.v3-val-row:first-of-type { padding-top: 0.75rem; margin-top: 0.5rem; border-top: 1px solid var(--border); }
.v3-val-row-3col {
  grid-template-columns: 1fr auto auto;
}
.v3-val-h { color: var(--text2); font-weight: 600; font-size: 0.85rem; }
.v3-val-v {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.v3-val-d { text-align: right; }

.v3-val-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}
.v3-val-table thead th {
  font-size: 0.72rem;
  color: var(--text3);
  font-weight: 600;
  text-align: right;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
.v3-val-table thead th:first-child { text-align: left; }
.v3-val-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--text2);
  padding: 0.55rem 0.6rem;
  font-size: 0.85rem;
}
.v3-val-table tbody td {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: 0.55rem 0.6rem;
  border-top: 1px dashed var(--border);
}

.v3-val-fark {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.85rem;
}
.v3-val-fark-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}
.v3-val-fark-list li::before { content: '→ '; color: var(--accent); font-weight: 700; }

.v3-delta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 4px;
}
.v3-delta-pos { background: rgba(0,212,168,0.12); color: #00d4a8; }
.v3-delta-neg { background: #2a0e0e; color: #ff5555; }

@media (max-width: 640px) {
  .v3-val-row { grid-template-columns: 1fr auto; }
  .v3-val-row .v3-val-v { text-align: right; }
  .v3-val-table { font-size: 0.78rem; }
  .v3-val-table tbody td, .v3-val-table tbody th, .v3-val-table thead th { padding: 0.4rem 0.35rem; }
}

/* ── Tablo: dim "—" hücresi ─────────────────────────────────────── */
.v3-val-td-dim { color: var(--text3); text-align: center; font-weight: 400; }

/* ── Senaryo Karşılaştırma Grafiği ─────────────────────────────── */
.v3-comp-wrap { margin-top: 0.25rem; }

.v3-comp-legend {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin-bottom: 0.9rem;
  font-size: 0.8rem; color: var(--text2);
}
.v3-comp-legend-item { display: flex; align-items: center; gap: 6px; }
.v3-comp-legend-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.v3-comp-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .v3-comp-charts { grid-template-columns: 1fr; }
}

.v3-comp-col { display: flex; flex-direction: column; }
.v3-comp-chart-title {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text3); letter-spacing: 0.03em;
  margin-bottom: 4px; text-transform: uppercase;
}
.v3-comp-col-inner { position: relative; }
.v3-comp-svg       { width: 100%; display: block; overflow: visible; cursor: crosshair; }

/* HTML tooltip */
.v3-comp-htip {
  display: none;
  position: absolute;
  pointer-events: none;
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 120px;
  z-index: 10;
}
.v3-ctip-yr {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text3);
  margin-bottom: 5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.v3-ctip-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
}
.v3-ctip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.v3-ctip-lbl {
  font-size: 10px; color: var(--text3); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v3-ctip-val {
  font-family: var(--mono); font-weight: 700;
  color: var(--text); font-size: 0.78rem;
}

/* ── Tab geçiş animasyonları ── */

/* Narrative metni soldan slide-in */
@keyframes v3NarrativeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.v3-narrative-entering {
  animation: v3NarrativeIn 0.32s cubic-bezier(.25, .46, .45, .94) forwards;
}

/* SVG polyline çizim animasyonu (stroke-dashoffset: 2000 → 0) */
/* 2000 > max olası polyline uzunluğu (~1400 unit, 480×200 viewBox'ta 10 nokta) */
.v3-comp-polyline {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
@keyframes v3DrawLine {
  to { stroke-dashoffset: 0; }
}
.v3-comp-svg.is-drawing .v3-comp-poly-0 {
  animation: v3DrawLine 2.3s cubic-bezier(.4, 0, .2, 1) forwards;
}
.v3-comp-svg.is-drawing .v3-comp-poly-1 {
  animation: v3DrawLine 2.3s cubic-bezier(.4, 0, .2, 1) 0.1s forwards;
}
.v3-comp-svg.is-drawing .v3-comp-poly-2 {
  animation: v3DrawLine 2.3s cubic-bezier(.4, 0, .2, 1) 0.2s forwards;
}
.v3-comp-svg.is-drawing .v3-comp-poly-3 {
  animation: v3DrawLine 2.3s cubic-bezier(.4, 0, .2, 1) 0.3s forwards;
}

/* Ev değeri: dashed line, fade-in (draw animasyonu dışında) */
.v3-comp-ev-line {
  opacity: 0;
}
@keyframes v3EvFadeIn {
  to { opacity: 1; }
}
.v3-comp-svg.is-drawing .v3-comp-ev-line {
  animation: v3EvFadeIn 0.6s ease 0.5s forwards;
}
/* Gate altında: kesikli ev çizgisini düz + gri yap. Aksi halde dash deseni
   ve beyaz parlaklığı blur+grayscale altında bile ev'i ele veriyor. */
html.is-gated .v3-comp-ev-line {
  stroke-dasharray: none !important;
  stroke: #8a8a8a !important;
}

/* ── section-alts legend dash (ev değeri) ── */
.v3-comp-legend-dash {
  display: inline-block; width: 16px; height: 0;
  border-bottom: 2px dashed; flex-shrink: 0;
  vertical-align: middle; margin-top: -1px;
}

/* ── section-alts tabs ── */
.v3-alts-tabs {
  display: flex; gap: 6px;
  margin-bottom: 1rem;
}
.v3-alts-tab {
  padding: 5px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text3);
  font-size: 0.75rem; font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.12s;
}
.v3-alts-tab:hover:not(.is-active) { border-color: var(--accent); color: var(--text2); }
.v3-alts-tab.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.v3-alts-end-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 7px;
}
.v3-alts-note {
  margin-top: 10px;
  font-size: 11px;
  color: #b0b0b0;
}

/* Eski breakdown rows (kullanılmıyor ama uyumluluk için duruyor) */
.v3-breakdown { display: grid; gap: 0.4rem; margin-bottom: 0.75rem; }
.v3-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
}
.v3-row-label { color: var(--text2); font-weight: 500; }
.v3-row-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  height: 10px;
  border-radius: 6px;
  overflow: hidden;
}
.v3-row-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 6px;
  transition: width 0.3s;
}
.v3-row-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 110px;
  text-align: right;
}
.v3-row-pct {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text3);
  min-width: 48px;
  text-align: right;
}

.v3-detail {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}
.v3-detail > summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text2);
  font-weight: 600;
  padding: 0.25rem 0;
  list-style: none;
}
.v3-detail > summary::before { content: '▸ '; transition: transform 0.15s; display: inline-block; }
.v3-detail[open] > summary::before { content: '▾ '; }
.v3-detail-body {
  padding: 0.75rem 0 0;
  font-size: 0.83rem;
  color: var(--text3);
  line-height: 1.6;
}
.v3-detail-body code {
  font-family: var(--mono);
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.v3-detail-h {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
}
.v3-detail-body ul { margin: 0 0 0.5rem 1.25rem; padding: 0; }
.v3-detail-body li { margin-bottom: 0.2rem; }
.v3-formula { font-family: var(--mono); font-size: 0.82rem; }

@media (max-width: 640px) {
  .v3-ozet li a { grid-template-columns: 1fr; gap: 0.2rem; }
  .v3-row { grid-template-columns: 1.2fr 1fr auto; }
  .v3-row-pct { display: none; }
  .v3-gauge-wrap { flex-direction: column; gap: 0.5rem; }
  .v3-harf { width: 64px; height: 64px; font-size: 2.5rem; }
}

/* ── Bölüm 3: Kira getirisi ve reel amortisman ── */

/* 3 bullet point narrative — Bölüm 2 ile uyumlu stil */
.v3-rent-bullets {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.v3-rent-bullets li {
  font-size: 0.93rem;
  color: var(--text2);
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
}
.v3-rent-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.v3-rent-bullets strong { color: var(--text1); }

/* İki sütun layout */
.v3-rent-two-col {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.25rem;
  align-items: start;
}

/* Sol: kira tablosu */
.v3-rent-left { min-width: 0; }


.v3-rent-source {
  font-size: 0.7rem;
  color: var(--text3);
  line-height: 1.5;
  margin-top: 0.6rem;
}

/* Sağ: amortisman büyük sayılar */
.v3-rent-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.v3-rent-amor-block {
  padding: 1rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.v3-rent-amor-block.is-reel {
  border-color: #00d4a8;
  background: var(--surface2);
}
.v3-rent-amor-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 0.35rem;
}
.v3-rent-amor-block.is-reel .v3-rent-amor-label {
  color: #00d4a8;
}
.v3-rent-amor-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.v3-rent-amor-block.is-reel .v3-rent-amor-num {
  color: #00d4a8;
}
.v3-rent-amor-unit {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .v3-rent-two-col {
    grid-template-columns: 1fr;
  }
  .v3-rent-right {
    flex-direction: row;
  }
  .v3-rent-amor-block { flex: 1; }
  .v3-rent-amor-num { font-size: 2rem; }
}
