/* ═══ Hekim Asistanı — Tanıtım sitesi (mobile-first) ═══ */

:root {
  --bg: #f8fafc;
  --bg-yumusak: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-koyu: #cbd5e1;
  --text: #0f172a;
  --text-soluk: #475569;
  --text-zayif: #94a3b8;
  --accent: #0369a1;
  --accent-koyu: #0c4a6e;
  --accent-acik: #e0f2fe;
  --ikincil: #2563eb;
  --yesil: #16a34a;
  --turuncu: #d97706;
  --kirmizi: #dc2626;
  --mor: #7c3aed;
  --golge-kucuk: 0 1px 3px rgba(15,23,42,.06);
  --golge: 0 4px 14px rgba(15,23,42,.07);
  --golge-buyuk: 0 12px 36px rgba(15,23,42,.10);
  --yuvarlak: 14px;
  --yuvarlak-kucuk: 10px;
  --yuvarlak-pill: 999px;
  --yavas: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══ Header ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
}
.logo-icon { font-size: 22px; line-height: 1; }
.logo-text b { color: var(--accent); font-weight: 800; }
.ana-nav {
  display: none;
  gap: 8px;
}
.ana-nav a {
  color: var(--text-soluk);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--yuvarlak-pill);
  transition: background .2s, color .2s;
}
.ana-nav a:hover { background: var(--bg-yumusak); color: var(--accent); text-decoration: none; }
.nav-mobil {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak-kucuk);
  padding: 8px 14px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}
.mobil-panel {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  animation: acil .2s var(--yavas);
}
.mobil-panel[hidden] { display: none; }
.mobil-panel a {
  padding: 14px 24px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobil-panel a:last-child { border-bottom: 0; }
@keyframes acil {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ Hero (kompakt) ═══ */
.hero {
  padding: 22px 0 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(3,105,161,.08), transparent 60%),
    linear-gradient(180deg, #f0f9ff 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.09), transparent 60%);
  pointer-events: none;
}
.hero-icerik { max-width: 780px; position: relative; }
.rozet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(3,105,161,.10);
  color: var(--accent-koyu);
  border-radius: var(--yuvarlak-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.rozet-minik { font-size: 11px; padding: 4px 12px; }
.nabiz {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(3,105,161,.5);
  animation: nabiz 2s infinite;
}
@keyframes nabiz {
  0%, 100% { box-shadow: 0 0 0 0 rgba(3,105,161,.45); }
  50% { box-shadow: 0 0 0 8px rgba(3,105,161,0); }
}
.hero-baslik {
  font-size: clamp(20px, 4.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.4px;
  margin: 0 0 6px;
  color: var(--text);
}
.hero-baslik .vurgu {
  background: linear-gradient(135deg, var(--accent) 0%, var(--ikincil) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-alt {
  font-size: clamp(13px, 2vw, 15px);
  color: var(--text-soluk);
  margin: 0;
  max-width: 620px;
}
.hero-butonlar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--yuvarlak-pill);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none;
  font-family: inherit;
  min-height: 44px;
}
.btn-birincil {
  background: linear-gradient(135deg, var(--accent), var(--accent-koyu));
  color: #fff;
  box-shadow: 0 6px 18px rgba(3,105,161,.22);
}
.btn-birincil:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 22px rgba(3,105,161,.28); }
.btn-birincil:active { transform: translateY(0); }
.btn-ikincil {
  background: var(--card);
  color: var(--accent-koyu);
  border: 1px solid var(--border);
  box-shadow: var(--golge-kucuk);
}
.btn-ikincil:hover { background: var(--accent-acik); border-color: var(--accent); color: var(--accent-koyu); text-decoration: none; }
.btn-metinsel {
  background: transparent;
  color: var(--accent);
  padding: 8px 14px;
  border: 0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
}
.btn-metinsel:hover { text-decoration: underline; }

.hero-guven {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-soluk);
  font-weight: 500;
}
.hero-guven span { white-space: nowrap; }

/* ═══ Bölüm başlık ═══ */
section { padding: 56px 0; }
.hesapla { padding-top: 18px; }
.bolum-baslik { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.bolum-baslik h2 {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 12px 0 8px;
}
.bolum-baslik p { color: var(--text-soluk); margin: 0; font-size: 15px; }

/* ═══ Hesapla ═══ */
.hesapla { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* HYP Verilerini Çek aksiyon barı */
.hesap-ust-aksiyon {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  padding: 4px 0;
}
.btn-veri-cek {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--ikincil), var(--accent));
  color: #fff;
  border: none;
  border-radius: var(--yuvarlak-pill);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .1px;
  box-shadow: 0 3px 10px rgba(37,99,235,.22);
  transition: transform .12s, box-shadow .2s, filter .2s;
  min-height: 36px;
}
.btn-veri-cek:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.32); }
.btn-veri-cek:active { transform: translateY(0); }
.btn-veri-cek span { font-size: 14px; line-height: 1; }
.aksiyon-bilgi {
  font-size: 11px;
  color: var(--text-zayif);
  font-weight: 600;
  font-style: italic;
}
.aksiyon-tumu-sil { margin-left: auto; }
.gor-toggle { margin-left: auto; }
.aksiyon-tumu-sil + .gor-toggle, .gor-toggle + .aksiyon-tumu-sil { margin-left: 0; }

/* Üst aksiyon satırındaki ghost butonları — açık arka planda görünür yap */
.hesap-ust-aksiyon .btn-ai-ghost {
  background: #fff;
  color: var(--accent, #2563eb);
  border: 1px solid var(--accent, #2563eb);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.hesap-ust-aksiyon .btn-ai-ghost:hover {
  background: var(--accent, #2563eb);
  color: #fff;
}
.hesap-ust-aksiyon .aksiyon-tumu-sil {
  color: var(--kirmizi, #dc2626);
  border-color: var(--kirmizi, #dc2626);
}
.hesap-ust-aksiyon .aksiyon-tumu-sil:hover {
  background: var(--kirmizi, #dc2626);
}

/* HYP v2 — 2 sütun görünüm modu (tüm içerik sığsın, satırlar hizalı) */
body.hyp-v2-2sutun #hypV2TabloSarmal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  overflow-x: hidden;
}
body.hyp-v2-2sutun #hypV2Tablo,
body.hyp-v2-2sutun #hypV2Tablo2 {
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-spacing: 0 3px;
}
/* Sabit kolon genişlikleri — iki tablo aynı hizada olsun */
body.hyp-v2-2sutun .kriter-tablo th:nth-child(1),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(1) { width: 22%; }
body.hyp-v2-2sutun .kriter-tablo th:nth-child(2),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(2) { width: 12%; }
body.hyp-v2-2sutun .kriter-tablo th:nth-child(3),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(3) { width: 12%; }
body.hyp-v2-2sutun .kriter-tablo th:nth-child(4),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(4) { width: 12%; }
body.hyp-v2-2sutun .kriter-tablo th:nth-child(5),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(5) { width: 13%; }
body.hyp-v2-2sutun .kriter-tablo th:nth-child(6),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(6) { width: 10%; }
body.hyp-v2-2sutun .kriter-tablo th:nth-child(7),
body.hyp-v2-2sutun .kriter-tablo td:nth-child(7) { width: 19%; }

body.hyp-v2-2sutun #hypV2Tablo th,
body.hyp-v2-2sutun #hypV2Tablo2 th {
  font-size: 11px;
  padding: 4px 2px;
  letter-spacing: 0;
  line-height: 1.15;
}
body.hyp-v2-2sutun #hypV2Tablo td,
body.hyp-v2-2sutun #hypV2Tablo2 td {
  padding: 2px 3px;
  font-size: 13px;
  height: 42px;                   /* sabit satır yüksekliği — 2 tablo hizalı */
  vertical-align: middle;
}
body.hyp-v2-2sutun #hypV2Tablo td:first-child,
body.hyp-v2-2sutun #hypV2Tablo2 td:first-child {
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}
body.hyp-v2-2sutun .pct-buyuk { font-size: 14px; }
body.hyp-v2-2sutun .ks-alt { font-size: 11px; }
body.hyp-v2-2sutun .sayi-inp {
  font-size: 13px;
  padding: 4px 3px;
  min-width: 0;
  width: 100%;
  max-width: 56px;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
  text-align: center;
}
body.hyp-v2-2sutun .hedef-kalan { font-size: 10px; line-height: 1; margin-top: 2px; }
body.hyp-v2-2sutun .drag-handle { font-size: 10px; margin-right: 2px; }
body.hyp-v2-2sutun .kolon-sifirla,
body.hyp-v2-2sutun .kolon-ai { font-size: 9px; padding: 0 2px; }

/* Hedef hücresi — tüm satırlarda aynı balon boyutu */
body.hyp-v2-2sutun .hedef-cell {
  padding: 1px !important;
  text-align: center;
}
body.hyp-v2-2sutun .hedef-cell .sayi-inp.hedef-inp {
  width: 100%;
  max-width: 56px;
  padding: 4px 3px;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

/* Mobilde iki sütun uygun değil — tek sütuna zorla */
@media (max-width: 760px) {
  body.hyp-v2-2sutun #hypV2TabloSarmal {
    grid-template-columns: 1fr;
  }
}

/* Toast */
.site-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  opacity: 0;
  transition: transform .35s var(--yavas), opacity .25s;
  z-index: 2000;
  max-width: calc(100% - 32px);
  text-align: center;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-toast.goster { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.site-toast.bilgi { background: linear-gradient(135deg, var(--accent-koyu), var(--accent)); }
.site-toast.uyari { background: linear-gradient(135deg, var(--turuncu), #b45309); }
.sekme-secici {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-yumusak);
  border-radius: var(--yuvarlak-pill);
  max-width: 520px;
  margin: 0 auto 14px;
  overflow: auto;
  scrollbar-width: none;
}
.sekme-secici::-webkit-scrollbar { display: none; }

/* v: Üst kartlar sticky — sayfayla birlikte kayar (ekstra %25 kompakt) */
.ust-kartlar-sticky {
  position: sticky;
  top: var(--header-h, 56px);
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 5px 3px 4px;
  margin: 0 -4px 6px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  overflow-anchor: none;
}
.ust-kartlar-sticky .ust-kart {
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  padding: 5px 8px 4px;
}
.ust-kartlar-sticky .kart-etk { font-size: 10px; margin-bottom: 2px; letter-spacing: .4px; }
.ust-kartlar-sticky .kart-deger { font-size: 18px; }
.ust-kartlar-sticky .kart-alt { font-size: 11px; margin-top: 2px; }
.ust-kartlar-sticky .ust-kart input { font-size: 16px; padding: 2px 0; }
.ust-kartlar-sticky .ust-kart select { font-size: 11px; padding: 2px 5px; margin-top: 3px; }
.ust-kartlar-sticky .kht-serit { margin-top: 3px; height: 4px; }
.ust-kartlar-sticky .kart-hedef {
  font-size: 11px; padding: 2px 6px; margin-top: 3px;
}

/* Nüfus girişi ortalı + tip seçici (input ve dropdown yan yana) */
.nufus-kart { text-align: center; }
.nufus-kart > input { text-align: center; width: 100%; }
.ust-kartlar-sticky .nufus-kart { display: flex; flex-direction: column; }
.ust-kartlar-sticky .nufus-kart > .kart-etk { margin-bottom: 2px; }
.ust-kartlar-sticky .nufus-kart > input,
.ust-kartlar-sticky .nufus-kart > select { display: inline-block; }
.ust-kartlar-sticky .nufus-kart { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 6px; }
.ust-kartlar-sticky .nufus-kart > .kart-etk { flex: 0 0 100%; margin-bottom: 1px; text-align: center; }
.ust-kartlar-sticky .nufus-kart > input { flex: 1 1 45%; min-width: 0; }
.ust-kartlar-sticky .nufus-kart > select { flex: 1 1 50%; min-width: 0; margin-top: 0 !important; }
.ust-kartlar-sticky .nufus-kart > .kart-alt { flex: 0 0 100%; margin-top: 1px; }

/* 'Hedef tutarsa' satırı — Tavan satırı ile aynı hizada (inline) */
.ust-kartlar-sticky .kart-hedef {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}
.nufus-tip-dd {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 3px 6px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text, #1e2328);
  background: var(--bg-yumusak, #f1f5f9);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
}
.nufus-tip-dd:hover { border-color: var(--accent, #2563eb); }
.nufus-tip-dd:focus { outline: 2px solid var(--accent, #2563eb); outline-offset: 1px; }

/* Hedef satır — data-gizli ile yer tutulur (layout shift olmaz) */
.kart-hedef[data-gizli="1"] { visibility: hidden; }

/* Tüm sayfa için scroll-anchor davranışını kapat — input değişiminde sıçrama olmasın */
html { overflow-anchor: none; }

/* ASÇ: Tek satır kompakt durum strip (eski büyük sart kartın yerine) */
.asc-durum-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding: 8px 12px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.4;
}
.asc-durum-strip .sart-oz { color: var(--text-soluk, #5f6b7a); }
.asc-durum-strip .sonuc-oz { font-weight: 700; margin-left: auto; }
.asc-durum-strip.basarili { border-color: #86efac; background: #f0fdf4; }
.asc-durum-strip.basarili .sonuc-oz { color: var(--yesil, #16a34a); }
.asc-durum-strip.basarisiz { border-color: #fecaca; background: #fef2f2; }
.asc-durum-strip.basarisiz .sonuc-oz { color: var(--kirmizi, #dc2626); }
.asc-durum-strip .hedef-oz {
  width: 100%;
  font-size: 11px;
  color: var(--text-soluk, #5f6b7a);
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}
.sekme-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--yuvarlak-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soluk);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
  min-height: 40px;
}
.sekme-btn:hover { color: var(--accent); }
.sekme-btn.aktif {
  background: var(--card);
  color: var(--accent-koyu);
  box-shadow: var(--golge-kucuk);
}

.hesap-panel { display: none; }
.hesap-panel.aktif { display: block; animation: acil .25s var(--yavas); }

.ust-kartlar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.ust-kart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak);
  padding: 12px 14px;
  box-shadow: var(--golge-kucuk);
  transition: border-color .2s, transform .15s;
}
.ust-kart:hover { border-color: var(--border-koyu); }
.kart-etk { font-size: 10.5px; font-weight: 700; color: var(--text-zayif); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.kart-deger { font-size: 28px; font-weight: 800; color: var(--accent-koyu); line-height: 1.1; letter-spacing: -.5px; }
.kart-alt { font-size: 11px; color: var(--text-soluk); margin-top: 4px; }
.kart-hedef {
  font-size: 11px;
  margin-top: 6px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
  border: 1px solid #86efac;
  border-radius: var(--yuvarlak-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--yesil);
  font-weight: 700;
  line-height: 1.3;
}
.kart-hedef b { color: #15803d; letter-spacing: -.2px; }
.kart-hedef-etk { font-weight: 600; opacity: .85; }
.kart-hedef.artmaz {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border-color: #fdba74;
  color: var(--turuncu);
}
.kart-hedef.artmaz b { color: #b45309; }
.ust-kart input {
  width: 100%;
  padding: 6px 2px;
  font-size: 24px;
  font-weight: 800;
  border: none;
  background: transparent;
  color: var(--accent-koyu);
  outline: none;
  letter-spacing: -.5px;
  font-family: inherit;
}
.ust-kart input::placeholder { color: var(--border-koyu); font-weight: 500; }

/* KHT şeridi */
.kht-serit { position: relative; height: 6px; background: var(--bg-yumusak); border-radius: 4px; margin-top: 8px; }
.kht-dolgu {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, #f59e0b, #16a34a);
  border-radius: 4px; transition: width .3s var(--yavas);
}
.kht-isaret { position: absolute; top: -2px; width: 2px; height: 10px; background: #64748b; transform: translateX(-1px); }
.kht-isaret span { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #64748b; font-weight: 700; }

/* Tablo */
.tablo-sarmal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak);
  padding: 6px;
  overflow-x: auto;
  box-shadow: var(--golge-kucuk);
  -webkit-overflow-scrolling: touch;
}
.kriter-tablo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 1px;
  font-size: 13px;
  table-layout: fixed;
}
/* Kriter satırı içindeki grup etiket + ad düzeni */
.kriter-tablo .grup-etk { display: none !important; }
.kriter-tablo tr.grup-hdr { display: none !important; }
.kriter-tablo .kriter-ad {
  display: inline;
  font-weight: 700;
  line-height: 1.15;
  vertical-align: middle;
}

/* Zebra striping — tüm satır boyunca soldan sağa mavi → şeffaf */
.kriter-tablo tbody tr:nth-child(2n) {
  background: linear-gradient(90deg, var(--accent-acik) 0%, transparent 95%);
}
.kriter-tablo tbody tr:nth-child(2n) > td {
  background: transparent;
}
.kriter-tablo th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-soluk);
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.kolon-sifirla, .kolon-ai {
  display: block;
  width: 100%;
  background: #fff0f0;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  cursor: pointer;
  padding: 1px 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--kirmizi);
  line-height: 1.3;
  font-family: inherit;
  transition: background .12s, transform .1s;
}
.kolon-sifirla { margin-top: 2px; }
.kolon-sifirla:hover { background: #fee2e2; }
.kolon-sifirla:active, .kolon-ai:active { transform: scale(.94); }
.kolon-ai {
  background: linear-gradient(135deg, var(--ikincil), var(--accent));
  border-color: var(--accent-koyu);
  color: #fff;
}
.kolon-ai:hover { filter: brightness(1.1); }
.kolon-btn-grp {
  display: flex;
  flex-direction: row;
  gap: 2px;
  margin-top: 2px;
}
.kolon-btn-grp .kolon-sifirla,
.kolon-btn-grp .kolon-ai { margin-top: 0; flex: 1; }
@media (max-width: 639px) {
  .kolon-sifirla, .kolon-ai { font-size: 9px; padding: 0; margin-top: 1px; }
}
.kriter-tablo th:first-child { text-align: left; padding-left: 10px; }
.kriter-tablo td {
  padding: 1px 3px;
  vertical-align: middle;
  background: var(--card);
}
.kriter-tablo td:first-child {
  padding: 3px 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  max-width: 170px;
}
.kriter-tablo .ad-kisa { font-size: 11px; color: var(--text-zayif); font-weight: 500; line-height: 1.05; }
.kriter-tablo tr.grup-hdr td {
  background: linear-gradient(90deg, var(--accent-acik), transparent 70%);
  padding: 3px 10px;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--accent-koyu);
  letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 6px;
  line-height: 1.2;
}
.kriter-tablo input.sayi-inp {
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.kriter-tablo input.sayi-inp:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-acik);
}
.pct-cell { text-align: center; }
.pct-buyuk { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.1; }
.pct-buyuk.iyi { color: var(--yesil); }
.pct-buyuk.kotu { color: var(--kirmizi); }
.ks-alt { font-size: 10px; font-weight: 700; color: var(--text-zayif); margin-top: 2px; }
.ks-alt.artida { color: var(--yesil); }
.ks-alt.eksi { color: var(--kirmizi); }
.tk-cell { text-align: center; font-size: 13px; font-weight: 700; color: var(--turuncu); }
.tk-cell.tamam { color: var(--yesil); }

/* Hedef hücresi */
.hedef-cell { text-align: center; padding: 2px 3px; }
.hedef-cell .sayi-inp.hedef-inp {
  max-width: 78px;
  margin: 0 auto 2px;
  color: var(--accent-koyu);
  border-color: var(--accent);
  background: var(--accent-acik);
}
.hedef-cell .sayi-inp.hedef-inp:focus {
  background: #fff;
}
.hedef-kalan {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--turuncu);
  line-height: 1.1;
}
.hedef-kalan.tamam { color: var(--yesil); }
.hedef-kalan.bos { color: var(--text-zayif); }

/* ═══ Drag-drop sıralama (kriter satırı + sütun) — SortableJS ═══ */
.kriter-tablo .drag-handle {
  display: inline-block;
  width: 12px;
  margin-right: 3px;
  padding: 0 1px;
  background: transparent;
  color: var(--text-soluk);
  border: none;
  border-radius: 0;
  cursor: grab;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: -2px;
  user-select: none;
  -webkit-user-select: none;
  font-weight: 700;
  opacity: .35;
  vertical-align: middle;
  touch-action: none;             /* SortableJS touch için kritik */
  transition: opacity .15s, color .15s, transform .12s;
}
.kriter-tablo .drag-handle:hover { opacity: 1; color: var(--accent); }
.kriter-tablo .drag-handle:active { cursor: grabbing; opacity: 1; transform: scale(.92); }

/* SortableJS class'ları */
.kriter-tablo .sira-ghost {
  opacity: .35;
  background: var(--accent-acik) !important;
}
.kriter-tablo .sira-chosen {
  background: var(--accent-acik) !important;
  box-shadow: 0 4px 14px rgba(3,105,161,.18);
}
.kriter-tablo .sira-drag {
  opacity: .92;
  cursor: grabbing !important;
}

/* Sütun (th) sürüklenebilir vurgu */
.kriter-tablo thead th[draggable="true"] {
  cursor: grab;
  position: relative;
  touch-action: none;
}
.kriter-tablo thead th[draggable="true"]:active { cursor: grabbing; }
.kriter-tablo thead th[draggable="true"]:hover {
  background: linear-gradient(180deg, var(--accent-acik), transparent);
}

@media (max-width: 639px) {
  .kriter-tablo .drag-handle { width: 10px; font-size: 9px; margin-right: 2px; opacity: .4; }
}

/* Tablo sütun genişlikleri — scroll-suz sığsın diye fixed */
/* HYP v2: 7 sütun */
#hypV2Tablo col,
#ascTablo col { }
#hypV2Tablo th:nth-child(1), #hypV2Tablo td:nth-child(1) { width: 19%; }
#hypV2Tablo th:nth-child(2), #hypV2Tablo td:nth-child(2),
#hypV2Tablo th:nth-child(3), #hypV2Tablo td:nth-child(3),
#hypV2Tablo th:nth-child(4), #hypV2Tablo td:nth-child(4) { width: 12%; }
#hypV2Tablo th:nth-child(5), #hypV2Tablo td:nth-child(5) { width: 12%; }
#hypV2Tablo th:nth-child(6), #hypV2Tablo td:nth-child(6) { width: 10%; }
#hypV2Tablo th:nth-child(7), #hypV2Tablo td:nth-child(7) { width: 13%; }
/* ASÇ: 6 sütun */
#ascTablo th:nth-child(1), #ascTablo td:nth-child(1) { width: 28%; }
#ascTablo th:nth-child(2), #ascTablo td:nth-child(2),
#ascTablo th:nth-child(3), #ascTablo td:nth-child(3),
#ascTablo th:nth-child(4), #ascTablo td:nth-child(4) { width: 14%; }
#ascTablo th:nth-child(5), #ascTablo td:nth-child(5) { width: 14%; }
#ascTablo th:nth-child(6), #ascTablo td:nth-child(6) { width: 16%; }

/* AI Hedef kartı (kompakt) */
.ai-hedef-kart {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-koyu) 0%, var(--accent) 60%, #0891b2 100%);
  border-radius: var(--yuvarlak-kucuk);
  padding: 8px 12px;
  margin-bottom: 10px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(3,105,161,.15);
}
.ai-hedef-sol {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.ai-ikon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.ai-baslik { font-weight: 700; font-size: 12px; letter-spacing: .1px; }
.ai-alt { font-size: 10px; opacity: .8; margin-top: 1px; line-height: 1.25; }
.ai-hedef-sag {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ai-slider-sarmal {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: rgba(255,255,255,.12);
  padding: 6px 12px;
  border-radius: var(--yuvarlak-pill);
  min-height: 40px;
}
.ai-slider-sarmal input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #fff;
  cursor: pointer;
}
#hypV2AIYuzdeVal, #ascAIYuzdeVal {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  min-width: 44px;
  text-align: right;
  letter-spacing: -.3px;
}
.btn-ai {
  background: #fff;
  color: var(--accent-koyu);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  flex-shrink: 0;
}
.btn-ai:hover { background: var(--accent-acik); transform: translateY(-1px); }
.btn-ai-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  min-width: 34px;
  flex-shrink: 0;
}
.btn-ai-ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-1px); }

.ai-profil-ac-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.12);
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: var(--yuvarlak-kucuk);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, transform .12s;
}
.ai-profil-ac-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  border-style: solid;
  transform: translateY(-1px);
}
.ai-profil-ac-btn:active { transform: translateY(0); }

/* AI Detay Accordion — her kriter için ayrı ayar */
.ai-hedef-ust {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-detay {
  background: rgba(255,255,255,.08);
  border-radius: var(--yuvarlak-kucuk);
  padding: 0;
  overflow: hidden;
  transition: background .2s;
}
.ai-detay[open] { background: rgba(255,255,255,.10); }
.ai-detay summary {
  list-style: none;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-detay summary::-webkit-details-marker { display: none; }
.ai-detay summary::after {
  content: '▸';
  margin-left: auto;
  transition: transform .2s;
  opacity: .7;
}
.ai-detay[open] summary::after { transform: rotate(90deg); }
.ai-detay-aciklama {
  padding: 6px 14px 10px;
  font-size: 11px;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}
.profil-tablo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2px;
  padding: 0 10px;
  table-layout: fixed;
}
.profil-tablo th {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.65);
  padding: 4px 4px;
  text-align: left;
}
.profil-tablo th:not(:first-child) { text-align: center; }
.profil-tablo td {
  padding: 1px 4px;
  font-size: 12px;
  color: #fff;
}
.profil-tablo th:first-child, .profil-tablo td:first-child { width: 42%; padding-left: 8px; }
.profil-tablo th:nth-child(2), .profil-tablo td:nth-child(2) { width: 26%; }
.profil-tablo th:nth-child(3), .profil-tablo td:nth-child(3) { width: 32%; }
.profil-inp {
  width: 100%;
  padding: 5px 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: inherit;
}
.profil-inp:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.22); }
.profil-inp::placeholder { color: rgba(255,255,255,.45); }
.profil-sel {
  width: 100%;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}
.profil-sel option { background: var(--accent-koyu); color: #fff; }
.ai-detay-btnler {
  display: flex;
  gap: 8px;
  padding: 10px 14px 12px;
  flex-wrap: wrap;
}
.ai-detay-btnler .btn { flex: 1; min-width: 140px; }

@media (max-width: 639px) {
  .profil-tablo { padding: 0 6px; font-size: 11px; }
  .profil-tablo th { font-size: 8.5px; padding: 3px 2px; }
  .profil-tablo td:first-child { font-size: 10.5px; padding-left: 4px; line-height: 1.15; }
  .profil-inp { padding: 5px 2px; font-size: 11px; }
  .profil-sel { padding: 4px 2px; font-size: 10px; }
}

.bilgi-notu {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: var(--bg-yumusak);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--yuvarlak-kucuk) var(--yuvarlak-kucuk) 0;
  color: var(--text-soluk);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ASÇ özel */
.asc-sart-kart {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak);
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: var(--golge-kucuk);
}
.asc-sart {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}
.asc-sart:last-of-type { border-bottom: 0; }
.sart-ikon { font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.sart-metin { flex: 1; min-width: 0; }
.sart-val { display: block; font-size: 11px; font-weight: 700; color: var(--text-soluk); margin-top: 2px; }
.asc-durum {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--yuvarlak-kucuk);
  background: var(--bg-yumusak);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soluk);
  transition: background .3s, color .3s;
}
.asc-durum.basarili { background: #dcfce7; color: var(--yesil); }
.asc-durum.basarisiz { background: #fee2e2; color: var(--kirmizi); }
.asc-hedef-tahmin {
  margin-top: 10px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px dashed var(--accent);
  border-radius: var(--yuvarlak-kucuk);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-koyu);
  text-align: center;
  line-height: 1.45;
}
.asc-hedef-etk { font-weight: 600; opacity: .85; margin-right: 4px; }
.asc-hedef-tahmin.basarili { background: linear-gradient(135deg, #ecfdf5, #dcfce7); border-color: var(--yesil); color: var(--yesil); }
.asc-hedef-tahmin.basarisiz { background: linear-gradient(135deg, #fef2f2, #fee2e2); border-color: var(--kirmizi); color: var(--kirmizi); }

/* ═══ Tanıtım ═══ */
.tanitim {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-yumusak) 100%);
}
.ozellik-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.ozellik {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak);
  padding: 24px 22px;
  box-shadow: var(--golge-kucuk);
  transition: transform .2s var(--yavas), box-shadow .25s, border-color .2s;
}
.ozellik:hover {
  transform: translateY(-3px);
  border-color: var(--border-koyu);
  box-shadow: var(--golge);
}
.ozellik-ikon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: var(--golge-kucuk);
}
.ozellik h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.ozellik p {
  margin: 0;
  color: var(--text-soluk);
  font-size: 13.5px;
  line-height: 1.55;
}

.ss-bolum { margin-top: 50px; text-align: center; }
.ss-bolum h3 { font-size: 20px; font-weight: 800; margin: 0 0 18px; }
.ss-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ss-kutu {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-acik) 0%, var(--bg-yumusak) 100%);
  border: 1px dashed var(--border-koyu);
  border-radius: var(--yuvarlak);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-koyu);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}
.ss-kutu span { line-height: 1.5; }
.ss-kutu small { font-weight: 500; color: var(--text-soluk); font-size: 11px; }

/* ═══ Anket ═══ */
.anket { background: var(--card); border-top: 1px solid var(--border); }
.anket-kart {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak);
  padding: 26px 22px;
  box-shadow: var(--golge);
}
.anket-soru { margin: 0 0 18px; text-align: center; font-size: 15.5px; color: var(--text); }
.anket-secenekler { display: grid; gap: 10px; }
.anket-btn {
  width: 100%;
  padding: 14px 18px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--yuvarlak-kucuk);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all .15s var(--yavas);
  min-height: 52px;
}
.anket-btn:hover {
  border-color: var(--accent);
  background: var(--accent-acik);
  transform: translateY(-1px);
}
.anket-btn:active { transform: translateY(0); }
.anket-btn.secili {
  border-color: var(--accent);
  background: var(--accent-acik);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.anket-btn-ikon { font-size: 22px; flex-shrink: 0; }

.anket-sonuc { animation: acil .3s var(--yavas); }
.anket-tesekkur {
  text-align: center;
  color: var(--yesil);
  font-weight: 700;
  margin: 0 0 18px;
  padding: 10px;
  background: #dcfce7;
  border-radius: var(--yuvarlak-kucuk);
  font-size: 13.5px;
}
.anket-bar { margin-bottom: 12px; }
.anket-bar-sira {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.anket-bar-deger { color: var(--text-soluk); font-weight: 500; }
.anket-bar-deger b { color: var(--accent); }
.anket-bar-ic {
  height: 8px;
  background: var(--bg-yumusak);
  border-radius: 4px;
  overflow: hidden;
}
.anket-bar-dolgu {
  height: 100%;
  background: linear-gradient(90deg, var(--ikincil), var(--accent));
  border-radius: 4px;
  width: 0%;
  transition: width .5s var(--yavas);
}
.anket-bar[data-oy="kullanirim"] .anket-bar-dolgu { background: linear-gradient(90deg, #60a5fa, var(--accent)); }
.anket-bar[data-oy="begendim"] .anket-bar-dolgu { background: linear-gradient(90deg, #34d399, var(--yesil)); }
.anket-bar[data-oy="denerim"] .anket-bar-dolgu { background: linear-gradient(90deg, #fbbf24, var(--turuncu)); }
.anket-bar[data-oy="kullanmam"] .anket-bar-dolgu { background: linear-gradient(90deg, #f87171, var(--kirmizi)); }
.anket-toplam {
  text-align: center;
  font-size: 12px;
  color: var(--text-soluk);
  margin: 14px 0 0;
}
.anket-toplam b { color: var(--text); }

/* ═══ Footer ═══ */
.site-footer {
  background: var(--text);
  color: #e2e8f0;
  padding: 40px 0 24px;
  margin-top: 40px;
}
.site-footer .logo { color: #fff; }
.site-footer .logo b { color: #7dd3fc; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-link-grup { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-baslik {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.footer-link-grup a { color: #cbd5e1; font-weight: 500; }
.footer-link-grup a:hover { color: #fff; }
.footer-link-grup span { color: #cbd5e1; }
.footer-not { color: #94a3b8; font-size: 12.5px; margin: 10px 0 0; max-width: 320px; line-height: 1.6; }
.footer-alt {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* ═══ Responsive — tablet ve üstü ═══ */
@media (min-width: 640px) {
  section { padding: 70px 0; }
  .hero { padding: 30px 0 24px; }
  .hesapla { padding-top: 24px; }
  .ust-kartlar { grid-template-columns: repeat(3, 1fr); }
  .ozellik-grid { grid-template-columns: repeat(2, 1fr); }
  .ss-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .ai-hedef-kart { flex-direction: row; align-items: center; justify-content: space-between; }
  .ai-hedef-sag { max-width: 420px; }
}

@media (min-width: 820px) {
  .ana-nav { display: flex; }
  .nav-mobil { display: none; }
  .mobil-panel { display: none !important; }
}

@media (min-width: 1024px) {
  section { padding: 84px 0; }
  .hero { padding: 40px 0 30px; }
  .hesapla { padding-top: 30px; }
  .ozellik-grid { grid-template-columns: repeat(3, 1fr); }
  .ss-grid { grid-template-columns: repeat(4, 1fr); }
  .kriter-tablo { font-size: 14px; min-width: 600px; }
  .kriter-tablo input.sayi-inp { font-size: 15px; padding: 9px 6px; }
  .kart-deger { font-size: 32px; }
  .ust-kart input { font-size: 28px; }
}

/* ═══ Mobil (<640px) kompakt tablo — scroll gerektirmesin ═══ */
@media (max-width: 639px) {
  /* AI kartı dikey + kompakt */
  .ai-hedef-kart {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px;
  }
  .ai-hedef-sol { gap: 8px; align-items: center; }
  .ai-baslik { font-size: 12px; }
  .ai-alt { display: none; }       /* açıklama mobilde gereksiz */
  .ai-ikon { font-size: 16px; }
  .ai-hedef-sag {
    justify-content: space-between;
    gap: 6px;
    width: 100%;
  }
  .ai-hedef-sag .btn-ai {
    flex: 1;
    padding: 7px 10px;
    font-size: 11.5px;
    min-height: 32px;
  }
  .ai-hedef-sag .btn-ai-ghost {
    padding: 7px 8px;
    font-size: 11px;
    min-height: 32px;
    min-width: 0;
  }

  /* Modal × butonu mobilde fixed → scroll'da bile her zaman görünür */
  body.modal-acik .modal:not([hidden]) .modal-kapat {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
    background: rgba(255,255,255,.95);
    color: var(--text);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    border: 1px solid var(--border);
    z-index: 1100;
  }
  /* Modal-içerik üstüne ek padding aç ki sabit × başlığı örtmesin */
  body.modal-acik .modal-icerik { padding-top: 56px; max-height: 85vh; }

  /* Profil modal kompakt */
  .modal-profil { padding: 14px 12px 12px; }
  .modal-profil .profil-modal-baslik { gap: 8px; margin-bottom: 6px; }
  .modal-profil .profil-modal-ikon { width: 32px; height: 32px; font-size: 18px; }
  .modal-profil .profil-modal-ana { font-size: 13.5px; }
  .modal-profil .profil-modal-alt { font-size: 11px; }
  .modal-profil .profil-modal-aciklama { display: none; }   /* mobilde açıklama gizli */
  .modal-profil .profil-sablon-bar { padding: 6px 8px; gap: 4px; margin-bottom: 8px; }
  .modal-profil .profil-sablon-sec { font-size: 11.5px; padding: 5px 6px; min-height: 28px; }
  .modal-profil .profil-sablon-btn { padding: 5px 7px; min-height: 28px; min-width: 30px; font-size: 12px; }
  .modal-profil .profil-tablo-sarmal { max-height: 55vh; margin-bottom: 10px; }
  .modal-profil .profil-tablo th { padding: 3px 2px; font-size: 9px; }
  .modal-profil .profil-tablo td { padding: 1px 3px; font-size: 11px; }
  .modal-profil .profil-tablo td:first-child { padding-left: 6px; }
  .modal-profil .profil-inp, .modal-profil .profil-sel { padding: 4px 4px; font-size: 11px; min-height: 26px; }
  .modal-profil .profil-modal-btnler { gap: 6px; }
  .modal-profil .profil-modal-btnler .btn { padding: 9px 12px; min-height: 38px; font-size: 12px; }

  /* Sticky üst kartlar mobilde 3 kolon (daha kompakt) */
  .ust-kartlar.ust-kartlar-sticky {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 4px 6px;
    top: var(--header-h, 52px);
  }
  .ust-kartlar-sticky .ust-kart { padding: 5px 6px; }
  .ust-kartlar-sticky .kart-etk { font-size: 9px; margin-bottom: 2px; letter-spacing: .4px; }
  .ust-kartlar-sticky .kart-deger { font-size: 17px; }
  .ust-kartlar-sticky .kart-alt { font-size: 9.5px; margin-top: 1px; }
  .ust-kartlar-sticky .ust-kart input { font-size: 17px; padding: 2px 0; }
  .ust-kartlar-sticky .kht-serit { margin-top: 3px; height: 4px; }
  .ust-kartlar-sticky .kart-hedef { font-size: 9.5px; padding: 2px 6px; margin-top: 3px; }
  /* Hedef tutarsa küçültülmüş */
  .tablo-sarmal { padding: 3px; overflow-x: hidden; }
  .kriter-tablo { font-size: 10.5px; border-spacing: 0 1px; }
  .kriter-tablo th {
    font-size: 8.5px;
    padding: 4px 1px;
    letter-spacing: .3px;
  }
  .kriter-tablo th:first-child { padding-left: 4px; }
  .kriter-tablo td { padding: 0 1px; }
  .kriter-tablo td:first-child {
    padding: 2px 4px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
  }
  .kriter-tablo .grup-etk { font-size: 7.5px; padding: 0 4px; margin-bottom: 1px; }
  .kriter-tablo input.sayi-inp {
    padding: 6px 1px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 6px;
  }
  .kriter-tablo .hedef-cell .sayi-inp.hedef-inp { max-width: 100%; }
  .pct-buyuk { font-size: 11.5px; }
  .ks-alt { font-size: 8px; }
  .tk-cell { font-size: 11px; }
  .hedef-kalan { font-size: 8.5px; line-height: 1.15; }
  .kriter-tablo tr.grup-hdr td {
    padding: 2px 6px;
    font-size: 9px;
    letter-spacing: .4px;
    line-height: 1.15;
  }
  /* Mobil AI kartı — input ve buton tek satır */
  .ai-slider-sarmal { padding: 5px 10px; }
  #hypV2AIYuzdeVal, #ascAIYuzdeVal { font-size: 13px; min-width: 38px; }
  .btn-ai { padding: 8px 12px; font-size: 12px; }
  .btn-ai-ghost { padding: 8px 10px; }
}

/* ═══ Auth — Header alanı + Modal + Formlar ═══ */
.auth-alan {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}
.btn-auth-giris {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-koyu));
  color: #fff;
  border: none;
  border-radius: var(--yuvarlak-pill);
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, box-shadow .2s;
  min-height: 34px;
  box-shadow: 0 2px 6px rgba(3,105,161,.18);
}
.btn-auth-giris:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(3,105,161,.28); }
.btn-auth-giris:active { transform: translateY(0); }

.auth-kullanici { position: relative; }
.auth-avatar-btn {
  width: 36px; height: 36px;
  padding: 0;
  background: var(--accent-acik);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .12s, box-shadow .2s, border-color .2s;
  font-family: inherit;
}
.auth-avatar-btn:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(3,105,161,.24); }
.auth-avatar { width: 100%; height: 100%; object-fit: cover; }
.auth-avatar-init { font-size: 14px; font-weight: 800; color: var(--accent-koyu); }

.auth-kullanici-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--yuvarlak);
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
  padding: 10px;
  z-index: 60;
  animation: acil .15s var(--yavas);
}
.auth-drop-basini { padding: 6px 10px 10px; }
.auth-drop-isim { font-size: 13px; font-weight: 700; color: var(--text); }
.auth-drop-mail { font-size: 11.5px; color: var(--text-soluk); word-break: break-all; margin-top: 2px; }
.auth-drop-ayrac { height: 1px; background: var(--border); margin: 4px 0; }
.auth-drop-btn {
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--yuvarlak-kucuk);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.auth-drop-btn:hover { background: #fef2f2; color: var(--kirmizi); }

.auth-senk-satir {
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soluk);
  display: flex;
  align-items: center;
  gap: 4px;
}
.auth-senk-status { color: var(--text-soluk); font-weight: 600; }
.auth-senk-status.ok { color: var(--yesil); }
.auth-senk-status.info { color: var(--accent); }
.auth-senk-status.hata { color: var(--kirmizi); }

.mobil-panel .mobil-giris {
  color: var(--accent);
  font-weight: 800;
  border-top: 1px solid var(--border);
}

/* ═══ Modal ═══ */
body.modal-acik { overflow: hidden; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  animation: acil .2s var(--yavas);
}
.modal-icerik {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(15,23,42,.24);
  padding: 20px 22px 24px;
  animation: modalGir .25s var(--yavas);
  -webkit-overflow-scrolling: touch;
}
@keyframes modalGir {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-kapat {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: var(--bg-yumusak);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-soluk);
  font-family: inherit;
  transition: background .15s, color .15s;
}
.modal-kapat:hover { background: var(--border); color: var(--text); }

.auth-modal-baslik {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 36px;
}
.auth-modal-ikon {
  font-size: 28px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent-acik), #bae6fd);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-modal-baslik-ana { font-size: 16px; font-weight: 800; color: var(--text); }
.auth-modal-baslik-alt { font-size: 12px; color: var(--text-soluk); margin-top: 1px; }

.auth-sekme-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-yumusak);
  border-radius: var(--yuvarlak-pill);
  margin-bottom: 16px;
}
.auth-sekme-btn {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  border-radius: var(--yuvarlak-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soluk);
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition: background .15s, color .15s, box-shadow .2s;
}
.auth-sekme-btn:hover { color: var(--accent); }
.auth-sekme-btn.aktif {
  background: var(--card);
  color: var(--accent-koyu);
  box-shadow: var(--golge-kucuk);
}

.auth-form { display: none; animation: acil .2s var(--yavas); }
.auth-form.aktif { display: block; }

.auth-label {
  display: block;
  margin-bottom: 12px;
}
.auth-label > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soluk);
  margin-bottom: 5px;
}
.auth-label > span em { color: var(--text-zayif); font-weight: 500; font-style: normal; }
.auth-label input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-koyu);
  border-radius: var(--yuvarlak-kucuk);
  transition: border-color .15s, background .15s;
  min-height: 44px;
}
.auth-label input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-acik);
}

.btn-blok { width: 100%; margin-top: 6px; }

.auth-form .btn-metinsel {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  padding: 6px;
}

.auth-ayrac {
  position: relative;
  text-align: center;
  margin: 18px 0 14px;
  font-size: 11px;
  color: var(--text-zayif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.auth-ayrac::before, .auth-ayrac::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 26px);
  height: 1px;
  background: var(--border);
}
.auth-ayrac::before { left: 0; }
.auth-ayrac::after { right: 0; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: var(--card);
  border: 1px solid var(--border-koyu);
  border-radius: var(--yuvarlak-kucuk);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: background .15s, border-color .15s, transform .12s;
}
.btn-google:hover {
  background: var(--bg-yumusak);
  border-color: var(--border-koyu);
  transform: translateY(-1px);
}
.btn-google:active { transform: translateY(0); }
.btn-google svg { flex-shrink: 0; }

.auth-bilgi {
  font-size: 12.5px;
  color: var(--text-soluk);
  line-height: 1.55;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--bg-yumusak);
  border-radius: var(--yuvarlak-kucuk);
  border-left: 3px solid var(--accent);
}

.auth-kvkk {
  font-size: 11px;
  color: var(--text-zayif);
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}

.auth-durum {
  margin-top: 12px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  min-height: 18px;
  line-height: 1.4;
}
.auth-durum:not(:empty) { padding: 10px 12px; border-radius: var(--yuvarlak-kucuk); }
.auth-durum.info { background: var(--accent-acik); color: var(--accent-koyu); }
.auth-durum.ok { background: #dcfce7; color: var(--yesil); }
.auth-durum.hata { background: #fee2e2; color: var(--kirmizi); }

/* Desktop — modal ortalı ve büyük */
@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
  .modal-icerik { border-radius: 20px; }
}

/* ═══ Profil modal (HYP v2 / ASÇ) — açık zemin override ═══ */
.modal-profil { max-width: 480px; padding: 22px 18px 20px; }
.profil-modal-baslik {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-right: 36px;
}
.profil-modal-ikon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent-acik), #bae6fd);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-koyu);
  flex-shrink: 0;
}
.profil-modal-ana { font-size: 15.5px; font-weight: 800; color: var(--text); }
.profil-modal-alt { font-size: 12px; color: var(--text-soluk); margin-top: 2px; }
.profil-modal-aciklama {
  font-size: 11.5px;
  color: var(--text-soluk);
  line-height: 1.55;
  margin: 0 0 14px;
  padding: 9px 12px;
  background: var(--bg-yumusak);
  border-radius: var(--yuvarlak-kucuk);
  border-left: 3px solid var(--accent);
}
.profil-tablo-sarmal { max-height: 56vh; overflow-y: auto; padding: 0; margin-bottom: 14px; }

/* Şablon Kütüphanesi (modal içi) */
.profil-sablon-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: var(--yuvarlak-kucuk);
  margin-bottom: 12px;
}
.profil-sablon-etk { font-size: 16px; flex-shrink: 0; line-height: 1; }
.profil-sablon-sec {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  font-size: 12.5px;
  border: 1px solid var(--border-koyu);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  min-height: 32px;
}
.profil-sablon-btn {
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--border-koyu);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  min-height: 32px;
  min-width: 36px;
  transition: background .12s, transform .1s, border-color .15s;
  flex-shrink: 0;
}
.profil-sablon-btn:hover { background: var(--bg-yumusak); transform: translateY(-1px); }
.profil-sablon-btn:active { transform: scale(.95); }
.profil-sablon-btn.kaydet { color: var(--yesil); border-color: #86efac; background: #f0fdf4; }
.profil-sablon-btn.kaydet:hover { background: #dcfce7; }
.profil-sablon-btn.sil { color: var(--kirmizi); border-color: #fca5a5; background: #fef2f2; }
.profil-sablon-btn.sil:hover { background: #fee2e2; }
.profil-sablon-btn.yukle { color: var(--accent); border-color: #93c5fd; background: var(--accent-acik); }
.profil-sablon-btn.yukle:hover { background: #dbeafe; }

/* Tümünü Sıfırla butonu (AI kart) */
.btn-tumu-sifirla { background: rgba(255,255,255,.15); }
.btn-tumu-sifirla:hover { background: rgba(220,38,38,.32); border-color: #fca5a5; }

/* Modal içinde tablo açık zeminli olsun */
.modal-profil .profil-tablo { padding: 0; }
.modal-profil .profil-tablo th { color: var(--text-soluk); }
.modal-profil .profil-tablo td { color: var(--text); }
.modal-profil .profil-tablo td:first-child { padding-left: 10px; font-weight: 600; }
.modal-profil .profil-inp {
  border-color: var(--border-koyu);
  background: var(--card);
  color: var(--text);
}
.modal-profil .profil-inp:focus {
  border-color: var(--accent);
  background: var(--accent-acik);
}
.modal-profil .profil-inp::placeholder { color: var(--text-zayif); }
.modal-profil .profil-sel {
  border-color: var(--border-koyu);
  background: var(--card);
  color: var(--text);
}
.modal-profil .profil-sel option { background: #fff; color: var(--text); }

.profil-modal-btnler {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profil-modal-btnler .btn {
  flex: 1 1 auto;
  padding: 11px 14px;
  min-height: 44px;
  font-size: 12.5px;
  min-width: 100px;
}
.profil-modal-btnler .btn-birincil { flex: 2 1 150px; }
@media (max-width: 419px) {
  .profil-modal-btnler { flex-direction: column; }
  .profil-modal-btnler .btn { flex: 1 1 auto; width: 100%; }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
