/* ============================================================
   GRANT RADAR — Editoryal & Modern UI System (Lokomotif.ai Aesthetic)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark light;

  /* Lokomotif.ai & a-identity.xyz Aesthetic Dark Palette */
  --bg: #06070a;
  --bg-soft: #0c0e15;
  --surface: #121520;
  --surface-hover: #191d2c;
  --surface-glass: rgba(18, 21, 32, 0.75);

  --line: rgba(255, 255, 255, 0.07);
  --line-mid: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.25);

  --text: #f8fafc;
  --text-dim: #94a3b8;
  --text-faint: #64748b;

  /* Accent Colors */
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.25);
  --accent-soft: rgba(16, 185, 129, 0.12);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --cyan-soft: rgba(6, 182, 212, 0.12);

  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);

  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);

  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.12);

  --violet: #c084fc;
  --violet-soft: rgba(192, 132, 252, 0.12);

  --font: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1040px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 30px -5px rgba(16, 185, 129, 0.2);
  --shadow-card: 0 12px 35px -10px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-glass: rgba(255, 255, 255, 0.85);

    --line: rgba(15, 23, 42, 0.08);
    --line-mid: rgba(15, 23, 42, 0.16);
    --line-strong: rgba(15, 23, 42, 0.3);

    --text: #0f172a;
    --text-dim: #475569;
    --text-faint: #64748b;

    --accent: #059669;
    --accent-glow: rgba(5, 150, 105, 0.15);
    --accent-soft: rgba(5, 150, 105, 0.08);

    --cyan: #0284c7;
    --cyan-soft: rgba(2, 132, 199, 0.08);

    --warn: #d97706;
    --warn-soft: rgba(217, 119, 6, 0.08);

    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.08);

    --info: #0284c7;
    --info-soft: rgba(2, 132, 199, 0.08);

    --violet: #7e22ce;
    --violet-soft: rgba(126, 34, 206, 0.08);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--accent); color: #000; }

/* Ok ile biten bağlantı */
a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-mid);
  transition: border-color .2s, color .2s;
}
a:hover { color: var(--accent); border-color: var(--accent); }
.arrow { border-bottom: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
.arrow::after { content: "→"; transition: transform .2s ease; }
.arrow:hover { color: var(--accent); }
.arrow:hover::after { transform: translateX(4px); }

/* ---------- Eyebrow: Etiketler ---------- */
.eyebrow {
  display: block;
  font-size: 13px;
  text-transform: normal-case;
  letter-spacing: 0.05em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Düzen ---------- */
.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--text);
}
.logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}
.logo-sub {
  font-size: 11px; color: var(--text-faint);
  font-weight: 600;
  text-transform: normal-case; letter-spacing: 0.05em;
  margin: 6px 0 32px 18px;
}

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  color: var(--text-dim);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none; text-align: left; width: 100%;
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.nav-item:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--line);
}
.nav-item.active {
  color: var(--text);
  font-weight: 600;
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.15);
}
.nav-item.active::before {
  content: ""; width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: -4px;
}
.nav-item .badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  background: var(--surface); color: var(--text-faint);
  border: 1px solid var(--line);
}
.nav-item.active .badge {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}

.sidebar-footer {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.profile-switcher label {
  display: block; font-size: 11.5px; text-transform: normal-case;
  letter-spacing: 0.05em; color: var(--text-faint); font-weight: 600; margin-bottom: 8px;
}

.main {
  flex: 1;
  padding: 48px 56px 120px;
  max-width: var(--maxw);
  min-width: 0;
}

/* ---------- Sayfa Başlığı ---------- */
.page-head { margin-bottom: 36px; }
.page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 40%, var(--text-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head p { color: var(--text-dim); font-size: 15.5px; max-width: 65ch; line-height: 1.6; }

/* ---------- Stat Grid (Metrik Kartları) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.stat:hover {
  transform: translateY(-2px);
  border-color: var(--line-mid);
  box-shadow: var(--shadow-card);
}
.stat.ok { border-color: rgba(16, 185, 129, 0.25); background: linear-gradient(145deg, var(--surface), rgba(16, 185, 129, 0.05)); }
.stat.warn { border-color: rgba(245, 158, 11, 0.25); background: linear-gradient(145deg, var(--surface), rgba(245, 158, 11, 0.05)); }
.stat.info { border-color: rgba(56, 189, 248, 0.25); background: linear-gradient(145deg, var(--surface), rgba(56, 189, 248, 0.05)); }
.stat.gradient { border-color: rgba(192, 132, 252, 0.3); background: linear-gradient(145deg, var(--surface), rgba(192, 132, 252, 0.08)); }

.stat .num {
  font-size: 32px; font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat.ok .num { color: var(--accent); }
.stat.warn .num { color: var(--warn); }
.stat.info .num { color: var(--info); }
.stat.gradient .num {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
}
.stat .lbl { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }

/* ---------- Kart Yapısı ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.15), 0 0 1px rgba(255, 255, 255, 0.15);
}
.card h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.25;
  margin-bottom: 10px;
}
.card > p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 24px; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }

/* ---------- Ölçüm Şeritleri ---------- */
.meters { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.meter { display: flex; align-items: center; gap: 16px; }
.meter .m-label {
  width: 130px; flex-shrink: 0;
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  text-transform: normal-case; letter-spacing: 0.05em;
}
.meter .m-track {
  flex: 1; height: 6px; background: var(--bg-soft);
  border-radius: 3px; position: relative; overflow: hidden;
}
.meter .m-fill { position: absolute; inset: 0 auto 0 0; background: var(--text-faint); border-radius: 3px; }
.meter.ok .m-fill { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.meter.warn .m-fill { background: var(--warn); }
.meter.info .m-fill { background: var(--info); }
.meter .m-val {
  width: 70px; text-align: right; flex-shrink: 0;
  font-size: 14px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------- Büyük İstatistik ---------- */
.bigstat { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.bigstat .n {
  font-size: 48px; font-weight: 800;
  letter-spacing: -2px; line-height: 1;
  color: var(--accent);
}
.bigstat .of { font-size: 18px; color: var(--text-dim); font-weight: 500; }
.bigstat-note { color: var(--text-dim); font-size: 15px; max-width: 60ch; }

/* ---------- Dönüşüm Tablosu ---------- */
.transform-head {
  display: flex; gap: 20px;
  font-size: 12px; text-transform: normal-case; letter-spacing: 0.05em;
  color: var(--text-faint); font-weight: 600;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.transform-head .a { flex: 1.2; }
.transform-head .b { flex: 1; }

.transform {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.transform .from { flex: 1.2; color: var(--text-dim); font-size: 14.5px; font-weight: 500; }
.transform .to { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--text); }
.transform .to::before { content: "✨ "; color: var(--accent); }
.transform .gain {
  flex-shrink: 0; font-size: 14px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 10px; border-radius: 12px; border: 1px solid rgba(16,185,129,0.3);
}

/* ---------- Form Elemanları ---------- */
.field { margin-bottom: 24px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); margin-bottom: 8px;
  text-transform: normal-case; letter-spacing: 0.05em;
}
.field .hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; outline: none;
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px -2px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select { cursor: pointer; }
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 80px; }

/* ---------- Butonlar ---------- */
.btn {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-mid);
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn::after { content: "→"; transition: transform .2s ease; }
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(3px); }
.btn.plain::after { content: none; }
.btn.primary, #btn-save-profile {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000; border: none; font-weight: 700;
  box-shadow: 0 4px 20px -3px var(--accent-glow);
}
.btn.primary:hover, #btn-save-profile:hover {
  opacity: 0.94; color: #000;
  box-shadow: 0 6px 24px -2px var(--accent-glow);
  transform: translateY(-2px);
}
.btn.secondary { background: var(--bg-soft); border-color: var(--line); color: var(--text-dim); }
.btn.secondary:hover { color: var(--text); border-color: var(--line-strong); }
.btn.danger { border-color: rgba(239,68,68,0.4); color: var(--danger); background: var(--danger-soft); }
.btn.danger:hover { border-color: var(--danger); background: rgba(239,68,68,0.2); }
.btn.sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Checkbox Izgaraları ---------- */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: 13.5px;
  color: var(--text-dim);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all .16s ease;
}
.check:hover { color: var(--text); border-color: var(--line-strong); }
.check.on {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.4);
  font-weight: 600;
}
.check input { accent-color: var(--accent); cursor: pointer; flex-shrink: 0; width: 16px; height: 16px; }

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

/* ---------- Program Kartı (Lokomotif Style) ---------- */
.grant {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin-bottom: 20px;
  transition: all .2s ease;
}
.grant:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.grant.ineligible { opacity: .55; }
.grant.ineligible:hover { opacity: .9; }

.grant-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.grant-eyebrow {
  font-size: 12.5px; text-transform: normal-case; letter-spacing: 0.05em;
  color: var(--text-faint); font-weight: 600; margin-bottom: 8px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.grant-eyebrow .sep { opacity: .3; }
.grant-title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.3; margin-bottom: 8px; color: var(--text); }
.grant-amount {
  display: inline-block; font-size: 15px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 6px; border: 1px solid rgba(16,185,129,0.25);
  margin-bottom: 12px;
}

.verdict { flex-shrink: 0; text-align: right; min-width: 100px; }
.verdict .v-state {
  font-size: 12px; text-transform: normal-case; letter-spacing: 0.05em;
  font-weight: 700; margin-bottom: 6px;
  padding: 4px 10px; border-radius: 12px; display: inline-block;
}
.grant.eligible .verdict .v-state { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(16,185,129,0.3); }
.grant.partial .verdict .v-state { color: var(--warn); background: var(--warn-soft); border: 1px solid rgba(245,158,11,0.3); }
.grant.ineligible .verdict .v-state { color: var(--danger); background: var(--danger-soft); border: 1px solid rgba(239,68,68,0.3); }
.verdict .v-score {
  font-size: 28px; font-weight: 800; line-height: 1;
  letter-spacing: -1px; font-variant-numeric: tabular-nums;
  color: var(--text-dim); margin-top: 6px;
}

.grant-summary { font-size: 14.5px; color: var(--text-dim); margin-bottom: 16px; max-width: 72ch; line-height: 1.55; }

.specs {
  display: flex; gap: 0; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; margin: 16px 0; flex-wrap: wrap;
}
.spec { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.spec .s-label { font-size: 11.5px; text-transform: normal-case; letter-spacing: 0.05em; color: var(--text-faint); font-weight: 600; }
.spec .s-val { font-size: 14px; margin-top: 2px; font-weight: 600; color: var(--text); }

.reasons { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.reason { font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.reason.pass { color: var(--text-faint); }
.reason.fail { color: var(--danger); font-weight: 500; }
.reason.soft { color: var(--warn); font-weight: 500; }
.reason .icon { flex-shrink: 0; font-weight: 800; width: 14px; }

.grant-note {
  font-size: 13.5px; color: var(--text-dim);
  border-left: 2px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 14px; margin: 16px 0; max-width: 68ch;
}
.grant-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; align-items: center; }

.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 4px;
  background: var(--bg-soft); color: var(--text-dim);
  font-weight: 700; white-space: nowrap; letter-spacing: .5px;
}
.tag.hibe { background: var(--accent-soft); color: var(--accent); }
.tag.vergi { background: var(--info-soft); color: var(--info); }
.tag.odul { background: var(--violet-soft); color: var(--violet); }

details.docs { margin-top: 14px; }
details.docs summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-dim); user-select: none; list-style: none; }
details.docs summary::-webkit-details-marker { display: none; }
details.docs summary::before { content: "+ "; font-weight: 700; color: var(--accent); }
details[open].docs summary::before { content: "− "; color: var(--accent); }
details.docs summary:hover { color: var(--text); }
details.docs ul { margin: 10px 0 0 20px; font-size: 13px; color: var(--text-dim); }
details.docs li { margin-bottom: 4px; }

/* ---------- Filtreler ---------- */
.filters {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  padding: 16px 20px; border-radius: var(--radius-md);
  margin-bottom: 24px; box-shadow: var(--shadow-card);
}
.filters input[type="text"] { flex: 1; min-width: 220px; }
.filters select { min-width: 170px; }

/* ---------- Takip Satırı ---------- */
.track-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 12px;
}
.track-row .name { flex: 1; font-weight: 700; font-size: 15.5px; min-width: 0; }
.track-row .name small { display: block; font-weight: 400; color: var(--text-faint); font-size: 12.5px; margin-top: 3px; }
.track-row select { max-width: 170px; }
.track-row input[type="text"] { max-width: 180px; }
.status-pill { font-size: 11px; padding: 4px 10px; border-radius: 12px; font-weight: 700; white-space: nowrap; letter-spacing: .6px; }

/* ---------- Kaynak Öğesi ---------- */
.res-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 14px;
}
.res-item h3 { font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.res-item p { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; max-width: 70ch; }

/* ---------- Yardımcılar ---------- */
.empty { padding: 60px 20px; text-align: center; color: var(--text-faint); background: var(--surface); border-radius: var(--radius-md); border: 1px dashed var(--line); }
.empty h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-dim); font-weight: 600; }
.empty p { font-size: 14.5px; }

.notice {
  background: var(--warn-soft); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-sm); padding: 12px 18px; font-size: 14px;
  color: var(--text); margin-bottom: 28px; max-width: 68ch;
}
.notice strong { color: var(--warn); font-weight: 700; }

.section-label {
  font-size: 12px; text-transform: normal-case; letter-spacing: 0.05em;
  color: var(--cyan); font-weight: 600; margin: 24px 0 10px;
}
.section-label:first-child { margin-top: 0; }
.check-group { margin-bottom: 24px; }
.check-group:last-child { margin-bottom: 0; }

.hidden { display: none !important; }

.sync-status {
  font-size: 13.5px; font-weight: 500; padding: 14px 18px;
  color: var(--text-dim); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
.sync-status .dot-on, .sync-status .dot-off { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.sync-status .dot-on { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sync-status .dot-off { background: var(--text-faint); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 880px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); padding: 20px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-item { width: auto; min-height: 40px; padding: 8px 12px; }
  .main { padding: 28px 18px 80px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grant-top { flex-direction: column; gap: 12px; }
  .verdict { text-align: left; display: flex; align-items: center; gap: 12px; }
  .verdict .v-state { margin-bottom: 0; }
  .track-row { flex-wrap: wrap; gap: 12px; }
  .track-row .name { flex-basis: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters input[type="text"], .filters select { min-width: 0; width: 100%; }
  .specs { flex-direction: column; }
  .spec { border-right: none; border-bottom: 1px solid var(--line); margin-right: 0; padding: 10px 0; }
  .spec:last-child { border-bottom: none; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --text-dim: #333; --text-faint: #666; }
  .sidebar, .filters, .grant-actions, .btn, .notice, .lang-toggle { display: none !important; }
  .main { max-width: none; padding: 0; }
  .tab-panel.hidden { display: block !important; }
  .grant { page-break-inside: avoid; opacity: 1 !important; }
}

/* ============================================================
   ŞİRKET KURULUMU & RESOURCES GRID & ANIMATIONS
   ============================================================ */
   
.kurulum-nav {
  display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.k-nav-btn {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px; border-radius: var(--radius-md);
  text-align: left; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s, box-shadow 0.2s;
}
.k-nav-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.k-nav-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 20px -5px var(--accent-glow);
}
.k-nav-btn .icon { font-size: 28px; }
.k-nav-btn .tit { font-size: 15px; font-weight: 700; color: var(--text); }
.k-nav-btn .desc { font-size: 13px; color: var(--text-dim); }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
@media (max-width: 900px) {
  .col-8, .col-4 { grid-column: span 12; }
}

.k-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.k-header-row h2 { font-size: 20px; font-weight: 700; }
.k-step-badge { background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--text-dim); }

.k-tasks-container { display: flex; flex-direction: column; gap: 12px; }
.k-task {
  background: var(--surface); border: 1px solid var(--line);
  padding: 18px 24px; border-radius: var(--radius-sm);
  display: flex; align-items: flex-start; gap: 16px;
  transition: transform 0.3s ease, border-color 0.2s;
}
.k-task:hover { transform: translateX(4px); border-color: var(--line-mid); }
.k-task .t-status { font-size: 20px; color: var(--text-faint); margin-top: 2px; }
.k-task.done .t-status { color: var(--accent); }
.k-task .t-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.k-task .t-content p { font-size: 14px; color: var(--text-dim); }
.k-task.done .t-content h4 { text-decoration: line-through; color: var(--text-faint); }

.ai-insight-card {
  background: linear-gradient(145deg, var(--surface), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md); padding: 24px;
  position: relative; overflow: hidden;
}
.ai-bg-icon { position: absolute; right: -20px; top: -20px; font-size: 120px; opacity: 0.03; user-select: none; }
.ai-insight-card h3 { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ping-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.ai-insight-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin-bottom: 16px; }
.ai-checks { display: flex; flex-direction: column; gap: 8px; }
.ai-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.ai-check .c-icon { color: var(--accent); font-weight: 700; }
.mt-4 { margin-top: 16px; }
.block { display: block; text-align: center; }

.hover-float { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }
.hover-float:hover { transform: translateY(-5px); box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.15); }

.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ---------- Dil Geçiş Butonu ---------- */
.lang-toggle {
  position: fixed; top: 24px; right: 24px; z-index: 100;
  display: flex; background: var(--surface-glass);
  backdrop-filter: blur(12px); border: 1px solid var(--line);
  border-radius: 20px; padding: 4px; gap: 4px;
  box-shadow: 0 4px 15px -3px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lang-toggle:hover { transform: translateY(-3px); box-shadow: 0 8px 25px -5px rgba(16, 185, 129, 0.2); }
.lang-btn {
  background: transparent; border: none; padding: 6px 12px;
  border-radius: 16px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); cursor: pointer; transition: all 0.2s ease;
}
.lang-btn.active { background: var(--accent); color: #000; box-shadow: 0 2px 8px var(--accent-glow); }
.lang-btn:hover:not(.active) { color: var(--text); background: var(--bg-soft); }

/* ---------- Animasyon Sınıfları ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
