/* =====================================================================
   ApartmanPro — "Lacivert Kurumsal" tasarım sistemi
   Sade, düz yüzeyler · lacivert sol menü · kurumsal mavi eylemler · ölçülü altın vurgu
   Tema: <html data-theme="light|dark">  (base.blade.php'deki betik cihaz ayarına göre seçer)
   Rehber: docs/TASARIM.md
   ===================================================================== */

/* ---------- 1. Belirteçler ---------- */
:root,
:root[data-theme="light"] {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-strong: #eef1f5;
  --surface-solid: #ffffff;
  --surface-raised: #ffffff;
  --table-head: #f7f9fb;
  --border: #dde3ea;
  --border-strong: #c6cfdb;
  --fg: #2a3647;
  --fg-strong: #0b1f3a;
  --muted: #5d6b7e;

  --primary: #1d4e89;          /* bağlantı, simge, vurgu metni */
  --primary-fill: #1d4e89;     /* birincil düğme zemini */
  --primary-fill-hover: #163e6d;
  --primary-soft: #e8eff8;
  --primary-border: #c3d4ea;
  --on-primary: #ffffff;
  --gold: #b8913a;
  --gold-soft: #f7f0de;

  --success: #1f7a4d;
  --success-soft: #e7f4ec;
  --success-border: #bfe0cc;
  --warning: #9a5b07;
  --warning-soft: #fbf1de;
  --warning-border: #efd6a6;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-border: #f4c4bf;
  --info: #1d6fa5;
  --info-soft: #e6f1fa;
  --info-border: #bcd8ee;

  --series-1: #1d4e89;
  --series-2: #c98a2b;
  --grid: #e3e8ee;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, 0.18), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --focus: 0 0 0 3px rgba(29, 78, 137, 0.22);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d1626;
  --surface: #142036;
  --surface-strong: #1a2a44;
  --surface-solid: #16243b;
  --surface-raised: #182742;
  --table-head: #17253d;
  --border: #243753;
  --border-strong: #31496b;
  --fg: #d3dce8;
  --fg-strong: #f1f5fa;
  --muted: #8d9cb1;

  --primary: #7eaee6;
  --primary-fill: #2f6db5;
  --primary-fill-hover: #3a7dc8;
  --primary-soft: rgba(126, 174, 230, 0.13);
  --primary-border: rgba(126, 174, 230, 0.32);
  --on-primary: #ffffff;
  --gold: #d4b062;
  --gold-soft: rgba(212, 176, 98, 0.14);

  --success: #4cbf8a;
  --success-soft: rgba(76, 191, 138, 0.13);
  --success-border: rgba(76, 191, 138, 0.32);
  --warning: #e3a83f;
  --warning-soft: rgba(227, 168, 63, 0.13);
  --warning-border: rgba(227, 168, 63, 0.34);
  --danger: #f07a70;
  --danger-soft: rgba(240, 122, 112, 0.13);
  --danger-border: rgba(240, 122, 112, 0.34);
  --info: #6fb3e8;
  --info-soft: rgba(111, 179, 232, 0.13);
  --info-border: rgba(111, 179, 232, 0.32);

  --series-1: #5b93d6;
  --series-2: #d9a24a;
  --grid: #22344f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px -10px rgba(0, 0, 0, 0.55);
  --focus: 0 0 0 3px rgba(126, 174, 230, 0.3);
  color-scheme: dark;
}

:root {
  /* Sol menü her iki temada lacivert */
  --sb-bg: #0b1f3a;
  --sb-bg-2: #102947;
  --sb-fg: #c9d4e3;
  --sb-fg-strong: #ffffff;
  --sb-muted: #8798b0;
  --sb-hover: rgba(255, 255, 255, 0.06);
  --sb-active: rgba(255, 255, 255, 0.10);
  --sb-border: rgba(255, 255, 255, 0.09);

  /* Eski adlar (görünümlerde satır içi kullanılıyor) */
  --accent: var(--primary);
  --on-accent: var(--on-primary);

  --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sb-w: 260px;
  --sb-w-mini: 72px;
  --bar-h: 60px;
}
:root[data-theme="dark"] { --sb-bg: #0a1424; --sb-bg-2: #0f1d33; }

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(29, 78, 137, 0.2); color: var(--fg-strong); }

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }
h1, h2, h3 { color: var(--fg-strong); margin: 0; line-height: 1.25; font-family: var(--font-display); }
h1 { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.8rem); font-weight: 650; letter-spacing: -0.015em; }
h2 { font-size: 1.02rem; font-weight: 600; }
h3 { font-size: 0.94rem; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-strong); border: 1px solid var(--border); padding: 0.06em 0.38em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--border); }

[data-lucide], .icon { width: 18px; height: 18px; stroke-width: 1.8; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.75rem; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.upper { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.right { text-align: right; }
.gradient-text { color: var(--primary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--gold); }

/* ---------- 3. Yerleşim yardımcıları ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 28px; padding-bottom: 64px; }

.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- 4. Kart yüzeyi ---------- */
.glass {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card { padding: 22px; }
.card-tight { padding: 14px 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-head h2 [data-lucide] {
  color: var(--primary); width: 30px; height: 30px; padding: 6px; border-radius: var(--r-md);
  background: var(--primary-soft);
}
.glass.lift { transition: border-color .2s ease, box-shadow .2s ease; }
.glass.lift:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-glow { overflow: hidden; }

.rise { animation: rise 0.35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 5. Marka işareti ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--fg-strong); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--fg-strong); }
.brand-mark {
  position: relative; width: 34px; height: 34px; border-radius: 8px; display: inline-grid; place-items: center; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='9' fill='%231D4E89'/%3E%3Cpath d='M10 30V16.5L20 9.5l10 7V30' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M15.5 30v-6.5h9V30' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linejoin='round'/%3E%3Crect x='17.8' y='14.8' width='4.4' height='4.4' rx='.8' fill='%23D4B062'/%3E%3C/svg%3E") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand-mark > * { display: none !important; }
.brand-text b { color: var(--primary); font-weight: inherit; }

/* ---------- 6. Üst çubuk (bilgi bankası vb. herkese açık sayfalar) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 62px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 12px; border-radius: var(--r-md); color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.nav a:hover { color: var(--fg-strong); background: var(--surface-strong); }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav [data-lucide] { width: 16px; height: 16px; }

/* ---------- 7. Panel kabuğu: lacivert sol menü + üst çubuk ---------- */
.shell { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .22s var(--ease); }
html.sb-collapsed .shell { grid-template-columns: var(--sb-w-mini) minmax(0, 1fr); }

.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column; min-width: 0;
  background: var(--sb-bg); color: var(--sb-fg);
  border-right: 1px solid var(--sb-border);
}
.sidebar .brand { color: var(--sb-fg-strong); }
.sidebar .brand-text b { color: var(--gold); }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--bar-h); padding: 0 12px 0 18px; flex-shrink: 0; border-bottom: 1px solid var(--sb-border); }
.sb-head .brand { min-width: 0; }
.sb-icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); flex-shrink: 0;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer;
}
.sb-icon-btn:hover { color: var(--fg-strong); background: var(--surface-strong); }
.sidebar .sb-icon-btn { color: var(--sb-muted); }
.sidebar .sb-icon-btn:hover { color: var(--sb-fg-strong); background: var(--sb-hover); }
.sb-icon-btn [data-lucide] { width: 18px; height: 18px; }

.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 12px; scrollbar-width: thin; scrollbar-color: var(--sb-border) transparent; }
.sb-section + .sb-section { margin-top: 20px; }
.sb-label {
  display: block; padding: 0 12px 8px; white-space: nowrap; overflow: hidden;
  font-size: 0.68rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sb-muted);
}
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: var(--r-md);
  color: var(--sb-fg); font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.sb-link + .sb-link { margin-top: 2px; }
.sb-link [data-lucide] { width: 18px; height: 18px; color: var(--sb-muted); transition: color .15s ease; }
.sb-link:hover { color: var(--sb-fg-strong); background: var(--sb-hover); }
.sb-link:hover [data-lucide] { color: var(--sb-fg-strong); }
.sb-link.active { color: var(--sb-fg-strong); background: var(--sb-active); font-weight: 600; }
.sb-link.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0;
  background: var(--gold);
}
.sb-link.active [data-lucide] { color: var(--gold); }
.sb-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sb-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; background: var(--gold); color: #1f1606;
}
.sb-site-dot { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 0.62rem; font-weight: 700; color: var(--sb-fg-strong); background: rgba(255, 255, 255, 0.12); }

.sb-foot { flex-shrink: 0; padding: 12px; border-top: 1px solid var(--sb-border); display: flex; align-items: center; gap: 6px; background: var(--sb-bg-2); }
.sb-user { position: relative; flex: 1; min-width: 0; }
.sb-user > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-md); min-width: 0; color: var(--sb-fg);
}
.sb-user > summary::-webkit-details-marker { display: none; }
.sb-user > summary:hover, .sb-user[open] > summary { background: var(--sb-hover); }
.sb-user .who { min-width: 0; font-size: 0.84rem; line-height: 1.25; flex: 1; }
.sb-user .who strong, .sb-user .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .who strong { color: var(--sb-fg-strong); font-weight: 600; }
.sb-user .who .muted { color: var(--sb-muted); }
.sb-user .avatar { background: rgba(255, 255, 255, 0.12); color: var(--sb-fg-strong); border-color: transparent; }
.sb-user .menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; width: 260px; color: var(--fg); }

/* Daraltılmış menü (yalnız ikon) — yalnız masaüstünde */
@media (min-width: 769px) {
  html.sb-collapsed .sb-head { flex-direction: column; justify-content: center; height: auto; padding: 14px 0 10px; gap: 10px; }
  html.sb-collapsed .sb-head .brand-text,
  html.sb-collapsed .sb-text,
  html.sb-collapsed .sb-count,
  html.sb-collapsed .sb-user .who,
  html.sb-collapsed .sb-user .chev { display: none; }
  html.sb-collapsed .sb-label { padding: 0 0 8px; font-size: 0; height: 9px; border-bottom: 1px solid var(--sb-border); margin: 0 8px 10px; }
  html.sb-collapsed .sb-nav { padding: 14px 10px; }
  html.sb-collapsed .sb-link { justify-content: center; padding: 0; }
  html.sb-collapsed .sb-link.active::before { left: -10px; }
  html.sb-collapsed .sb-foot { flex-direction: column; padding: 10px 0; }
  html.sb-collapsed .sb-user { flex: none; }
  html.sb-collapsed .sb-user > summary { justify-content: center; }
  html.sb-collapsed .sb-user .menu { left: calc(100% + 14px); bottom: 0; }
  html.sb-collapsed .sb-collapse [data-lucide] { transform: scaleX(-1); }
  .sb-burger, .sb-close { display: none !important; }
}

.main-col { min-width: 0; display: flex; flex-direction: column; }
.app-bar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.app-bar-title { min-width: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.app-bar-title .crumb { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.app-bar-title .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.app-bar-title strong { font-family: var(--font-display); font-weight: 600; color: var(--fg-strong); font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-bar .bell { margin-left: auto; }
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 72px; flex: 1; }
.page > .alert { margin-bottom: 18px; }

.sb-scrim { display: none; }

@media (max-width: 768px) {
  .shell, html.sb-collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(86vw, 300px);
    transform: translateX(-104%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg);
  }
  html.sb-open .sidebar { transform: none; }
  html.sb-open { overflow: hidden; }
  .sb-scrim {
    display: block; position: fixed; inset: 0; z-index: 35; background: rgba(11, 31, 58, 0.45);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  html.sb-open .sb-scrim { opacity: 1; pointer-events: auto; }
  .sb-collapse { display: none !important; }
  .app-bar { padding: 0 14px; gap: 10px; }
  .app-bar-title .crumb, .app-bar-title .sep { display: none; }
  .page { padding: 20px 16px 56px; }
}

/* ---------- 8. Açılır menüler (kullanıcı menüsü, bildirim zili) ---------- */
.user-menu { position: relative; margin-left: auto; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 4px; border-radius: var(--r-md); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--surface-strong); }
.user-menu .who { font-size: 0.86rem; line-height: 1.2; text-align: right; }
.avatar {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 650; font-size: 0.78rem; letter-spacing: 0.02em;
  background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-border);
}
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 6px; z-index: 60;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: pop .14s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm);
  background: none; border: 0; color: var(--fg); font: inherit; font-size: 0.9rem; cursor: pointer; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-strong); color: var(--fg-strong); }
.menu a [data-lucide], .menu button [data-lucide] { width: 17px; height: 17px; color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu .menu-label, .menu-label { padding: 8px 10px 4px; font-size: 0.68rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
@media (max-width: 640px) { .user-menu .who { display: none; } .topbar .brand-text { display: none; } .sb-user .who { display: block; } }
.bell-btn {
  position: relative; width: 38px; height: 38px; justify-content: center;
  border: 1px solid var(--border); background: var(--surface);
}
.bell[open] > .bell-btn { border-color: var(--border-strong); background: var(--surface-strong); }
.bell-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.menu .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 7px; }
.menu form button.tiny { font-size: 0.75rem; }

.switch { position: relative; display: inline-block; width: 40px; height: 23px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--border-strong); transition: background .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--primary-fill); }
.switch input:checked + span::before { transform: translateX(17px); }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }
.switch input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- 9. Sayfa başlığı, sekmeler, alt menü ---------- */
.page-head { margin-bottom: 24px; }
.page-head p { margin-top: 6px; color: var(--muted); max-width: 72ch; }
.page-head .eyebrow { margin-bottom: 10px; }
.tabs {
  display: flex; gap: 2px; overflow-x: auto; margin-top: 18px; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 14px; flex-shrink: 0;
  color: var(--muted); font-size: 0.88rem; font-weight: 500;
  transition: color .15s ease;
}
.tabs a:hover { color: var(--fg-strong); }
.tabs a.active { color: var(--primary); font-weight: 600; }
.tabs a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--primary-fill); }
.tabs [data-lucide] { width: 16px; height: 16px; }

.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 20px; }
.subnav a {
  padding: 6px 14px; border-radius: var(--r-md); font-size: 0.84rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); transition: all .15s ease;
}
.subnav a:hover { color: var(--fg-strong); border-color: var(--border-strong); }
.subnav a.active { color: var(--primary); border-color: var(--primary-border); background: var(--primary-soft); }

/* ---------- 10. İstatistik ---------- */
.stat { padding: 18px 20px; overflow: hidden; }
.stat .label {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.stat .label [data-lucide] { width: 16px; height: 16px; color: var(--primary); }
.stat .value {
  margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.45rem, 1.2rem + .6vw, 1.85rem); font-weight: 650;
  color: var(--fg-strong); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; line-height: 1.15;
}
.stat .value.text-warning { color: var(--warning); }
.stat .value.text-danger { color: var(--danger); }
.stat .value.text-success { color: var(--success); }

/* ---------- 11. Rozet ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
  background: var(--surface-strong); color: var(--muted); border: 1px solid var(--border);
}
.badge [data-lucide] { width: 13px; height: 13px; }
.badge.success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.badge.warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: var(--info-border); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 12. Düğme ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn [data-lucide] { width: 17px; height: 17px; }
.btn-primary { background: var(--primary-fill); color: var(--on-primary); border-color: var(--primary-fill); }
.btn-primary:hover { background: var(--primary-fill-hover); border-color: var(--primary-fill-hover); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--fg-strong); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--fg-strong); background: var(--surface-strong); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 0.8rem; border-radius: var(--r-sm); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 0.98rem; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- 13. Form ---------- */
.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-size: 0.83rem; font-weight: 600; color: var(--fg-strong); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-md); font: inherit; font-size: 0.93rem;
  background: var(--surface); color: var(--fg-strong);
  border: 1px solid var(--border-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8aa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.select option { background: var(--surface-solid); color: var(--fg-strong); }
.textarea { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.field .hint { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--muted); }
.field .error, .error { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--danger); font-weight: 500; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--primary-fill); }
.stack > .check { display: flex; }

/* ---------- 14. Uyarı kutusu ---------- */
.alert {
  position: relative; display: flex; gap: 11px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md);
  font-size: 0.9rem; border: 1px solid transparent; border-left-width: 4px;
}
.alert [data-lucide] { margin-top: 2px; }
.alert.success { background: var(--success-soft); color: var(--success); border-color: var(--success-border); border-left-color: var(--success); }
.alert.warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); border-left-color: var(--warning); }
.alert.danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); border-left-color: var(--danger); }
.alert.info { background: var(--info-soft); color: var(--info); border-color: var(--info-border); border-left-color: var(--info); }
.alert strong { color: inherit; }
.alert[href] { text-decoration: none; }
.alert[href]:hover { border-color: currentColor; }

/* ---------- 15. Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
.table th {
  text-align: left; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px; background: var(--table-head);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table th:first-child { border-left: 1px solid var(--border); border-radius: var(--r-sm) 0 0 var(--r-sm); }
.table th:last-child { border-right: 1px solid var(--border); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .right, .table th.right { text-align: right; }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: var(--table-head); }
.table a strong, .table a:not(.btn) { color: var(--primary); }

/* ---------- 16. Liste ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }

/* ---------- 17. Daire ızgarası ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.unit-tile {
  position: relative; padding: 12px 13px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--primary-border); font-size: 0.82rem; min-height: 86px; overflow: hidden;
}
.unit-tile .no { font-family: var(--font-display); font-weight: 650; color: var(--fg-strong); font-size: 0.98rem; display: flex; align-items: center; justify-content: space-between; }
.unit-tile .person { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.unit-tile .person [data-lucide] { width: 13px; height: 13px; }
.unit-tile.empty { border-style: dashed; border-top-width: 1px; text-align: left; padding: 12px 13px; background: transparent; }
a.unit-tile { display: block; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.unit-tile:hover { border-color: var(--primary); color: inherit; box-shadow: var(--shadow-lg); }

details > summary::-webkit-details-marker { display: none; }
.person-card { padding: 15px 0; border-bottom: 1px solid var(--border); }
.person-card:last-child { border-bottom: 0; }
.person-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.person-actions form { display: inline; }
.inline-form { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border-radius: var(--r-md); background: var(--table-head); border: 1px dashed var(--border-strong); }

/* ---------- 18. Boş durum ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty:not(.unit-tile) > [data-lucide] {
  width: 48px; height: 48px; padding: 12px; color: var(--primary); margin-bottom: 12px; border-radius: 50%;
  background: var(--primary-soft);
}
.empty h2 { margin-bottom: 6px; }

/* ---------- 19. Giriş sayfaları ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px 30px; }
.auth-card .brand { justify-content: center; font-size: 1.2rem; margin-bottom: 6px; }
.auth-card .brand-mark { width: 40px; height: 40px; }
.theme-switch { position: fixed; top: 16px; right: 16px; z-index: 20; }

.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-split > .auth-wrap { min-height: 0; }
.auth-aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 40px clamp(28px, 5vw, 64px);
  background: var(--sb-bg); color: var(--sb-fg);
}
.auth-aside .brand, .auth-aside h1 { color: var(--sb-fg-strong); }
.auth-aside .brand-text b { color: var(--gold); }
.auth-aside .eyebrow { color: var(--gold); }
.auth-aside h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; max-width: 15ch; }
.auth-aside .gradient-text { color: var(--gold); }
.auth-aside p { color: var(--sb-fg); max-width: 44ch; margin-top: 18px; font-size: 1rem; }
.auth-aside .muted { color: var(--sb-muted); }
.auth-aside .auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-aside .auth-points li { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; }
.auth-aside .auth-points [data-lucide] { width: 28px; height: 28px; padding: 6px; border-radius: var(--r-md); color: var(--gold); background: rgba(255, 255, 255, 0.07); }
.auth-aside a { color: var(--sb-fg); }
.auth-aside a:hover { color: var(--sb-fg-strong); }
.auth-art { position: absolute; right: -80px; bottom: -40px; width: 440px; max-width: 70%; opacity: .5; pointer-events: none; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h2 { font-size: 1.4rem; font-weight: 650; margin-top: 16px; }
.auth-head p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-back { position: fixed; top: 16px; left: 16px; z-index: 20; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ---------- 20. Grafik ---------- */
.chart-wrap { overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 560px; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-sans); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .baseline { stroke: var(--border-strong); stroke-width: 1; }
.chart .s1 { fill: var(--series-1); }
.chart .s2 { fill: var(--series-2); }
.chart .bar { transition: opacity 0.15s ease; }
.chart g.month:hover .bar { opacity: 0.8; }
.chart .hit { fill: transparent; }
.chart g.month:hover .hit { fill: var(--surface-strong); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--fg); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.chart-tip {
  position: fixed; z-index: 70; pointer-events: none; padding: 9px 11px; border-radius: var(--r-md); font-size: 0.82rem;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); color: var(--fg);
}
.chart-tip .r { display: flex; align-items: center; gap: 6px; justify-content: space-between; min-width: 170px; }

/* ---------- 21. Finans ---------- */
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.strike { text-decoration: line-through; opacity: 0.55; }
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--surface-strong); overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; border-radius: 4px; background: var(--primary-fill); }

/* ---------- 22. Uzun metin (bilgi bankası) ---------- */
.prose { line-height: 1.75; max-width: 75ch; }
.prose > * + * { margin-top: 0.9em; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2 { font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--table-head); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }

/* ---------- 23. Hata sayfası ---------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.error-page .code {
  font-family: var(--font-display); font-size: clamp(4rem, 3rem + 5vw, 6.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: .95;
  color: var(--primary);
}

/* =====================================================================
   24. TANITIM SAYFASI (lp-*)
   ===================================================================== */
.lp { position: relative; overflow-x: clip; }
.lp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lp-section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.lp-section:nth-of-type(even) { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section[id] { scroll-margin-top: 76px; }

/* Üst menü */
.lp-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-nav {
  max-width: 1200px; margin: 0 auto; height: 66px; padding: 0 20px;
  display: flex; align-items: center; gap: 18px;
}
.lp-links { display: flex; gap: 2px; margin: 0 auto; }
.lp-links a { padding: 8px 13px; border-radius: var(--r-md); font-size: 0.9rem; color: var(--fg); font-weight: 500; }
.lp-links a:hover { color: var(--primary); }
.lp-actions { display: flex; align-items: center; gap: 8px; }
.lp-burger { display: none; position: relative; }
.lp-burger > summary { list-style: none; cursor: pointer; }
.lp-burger .menu { right: 0; }
@media (max-width: 900px) {
  .lp-links, .lp-actions .lp-hide-sm { display: none; }
  .lp-burger { display: block; }
  .lp-actions { margin-left: auto; }
}

/* Hero */
.lp-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); background: var(--bg); border-bottom: 1px solid var(--border); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); font-size: 0.82rem; color: var(--fg);
}
.lp-chip b { padding: 2px 8px; border-radius: 4px; background: var(--gold-soft); color: var(--gold); font-size: 0.72rem; letter-spacing: 0.06em; }
.lp-title {
  margin-top: 22px; font-family: var(--font-display); font-weight: 700; color: var(--fg-strong);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -0.025em;
}
.lp-title .gradient-text { display: inline; color: var(--primary); }
.lp-title .stroke { color: var(--fg-strong); }
.lp-lead { margin-top: 20px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 54ch; line-height: 1.65; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.lp-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.lp-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.lp-ticks [data-lucide] { width: 16px; height: 16px; color: var(--success); }

/* Hero sağ: panel önizlemesi (düz, eğimsiz) */
.lp-stage { position: relative; min-height: 440px; }
.lp-device {
  position: relative; border-radius: var(--r-xl); padding: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.lp-device-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; }
.lp-device-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.lp-device-bar span { margin-left: 10px; flex: 1; height: 20px; border-radius: 5px; background: var(--surface-strong); font-size: 0.66rem; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.lp-dash { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.lp-rail { display: flex; flex-direction: column; gap: 9px; padding: 10px 0; align-items: center; border-radius: var(--r-md); background: var(--sb-bg); }
.lp-rail i { width: 20px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); }
.lp-rail i.on { background: var(--gold); }
.lp-dash-main { display: grid; gap: 12px; min-width: 0; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-kpi { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.lp-kpi small { display: block; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-kpi strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 1.02rem; color: var(--fg-strong); white-space: nowrap; }
.lp-kpi em { font-style: normal; font-size: 0.66rem; color: var(--success); }
.lp-row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.lp-panel { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.lp-panel-h { display: flex; justify-content: space-between; align-items: center; font-size: 0.64rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.lp-panel svg { display: block; width: 100%; height: auto; }
.lp-units { display: grid; gap: 6px; }
.lp-unit { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--table-head); font-size: 0.72rem; }
.lp-unit b { font-family: var(--font-display); color: var(--fg-strong); }
.lp-unit .badge { font-size: 0.6rem; padding: 1px 6px; }

.lp-float {
  position: absolute; z-index: 3; padding: 12px 14px; border-radius: var(--r-lg); font-size: 0.78rem;
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.lp-float strong { display: block; color: var(--fg-strong); font-size: 0.82rem; }
.lp-float-qr { left: -26px; bottom: -26px; display: flex; gap: 12px; align-items: center; }
.lp-float-qr svg { width: 70px; height: 70px; border-radius: 6px; background: #fff; padding: 5px; border: 1px solid var(--border); }
.lp-float-note { right: -14px; top: -22px; display: flex; gap: 10px; align-items: center; max-width: 250px; }
.lp-float-note .ic { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--info-soft); color: var(--info); flex-shrink: 0; }
.lp-float-vote { right: -20px; bottom: 70px; width: 190px; }
.lp-vote-bar { height: 6px; border-radius: 3px; background: var(--surface-strong); margin-top: 6px; overflow: hidden; }
.lp-vote-bar span { display: block; height: 100%; background: var(--primary-fill); border-radius: inherit; }

/* Halka ve çubuklar */
.lp-ring-track { stroke: var(--surface-strong); }
.lp-ring-val { stroke: var(--primary-fill); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 0 999; transition: stroke-dasharray 1.2s var(--ease); }
.is-in .lp-ring-val, html:not(.js-reveal) .lp-ring-val { stroke-dasharray: var(--dash) 999; }
.lp-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.05); transition: transform .9s var(--ease); }
.is-in .lp-bar, html:not(.js-reveal) .lp-bar { transform: none; }

/* Bölüm başlıkları */
.lp-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.lp-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-head h2 { margin-top: 14px; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lp-head p { margin-top: 14px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }

/* Özellikler */
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-feat { padding: 24px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.lp-feat:hover { border-color: var(--primary-border); box-shadow: var(--shadow-lg); }
.lp-feat h3 { font-size: 1.05rem; }
.lp-feat p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.lp-feat .ico {
  width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 6px;
  background: var(--primary-soft); color: var(--primary);
}
.lp-feat .ico.amber { background: var(--gold-soft); color: var(--gold); }
.lp-feat .ico.sky { background: var(--info-soft); color: var(--info); }
.lp-feat .ico [data-lucide] { width: 20px; height: 20px; }
.lp-feat .art { margin-top: auto; padding-top: 14px; }
.lp-feat .tag { font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
@media (max-width: 1000px) {
  .lp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bento > .span-2 { grid-column: span 1; }
  .lp-bento > .span-3, .lp-bento > .span-4 { grid-column: span 2; }
}
@media (max-width: 620px) {
  .lp-bento { grid-template-columns: 1fr; }
  .lp-bento > * { grid-column: auto !important; }
}

/* Özellik kartı içi küçük görseller */
.lp-ledger { display: grid; gap: 6px; font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.lp-ledger div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--table-head); border: 1px solid var(--border); }
.lp-ledger .plus { color: var(--success); }
.lp-ledger .minus { color: var(--danger); }
.lp-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: 22px; font-size: 0.7rem; color: var(--muted); }
.lp-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--border-strong); }
.lp-timeline span { position: relative; }
.lp-timeline span::before { content: ""; position: absolute; top: -18px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid currentColor; }
.lp-timeline span.hot { color: var(--danger); font-weight: 700; }

/* Adımlar */
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.lp-step { padding: 24px 22px; min-width: 0; }
.lp-step .n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1;
  color: var(--on-primary); background: var(--primary-fill);
}
.lp-step h3 { margin-top: 16px; font-size: 1.02rem; }
.lp-step p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 960px) { .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-steps { grid-template-columns: 1fr; } }

/* Roller */
.lp-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-role { padding: 28px 26px; min-width: 0; }
.lp-role .who { display: flex; align-items: center; gap: 12px; }
.lp-role .who .ico { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.lp-role .who .ico [data-lucide] { width: 22px; height: 22px; }
.lp-role h3 { font-size: 1.15rem; }
.lp-role ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.lp-role li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.lp-role li [data-lucide] { width: 17px; height: 17px; margin-top: 3px; color: var(--success); }
.lp-role.featured { border-top: 3px solid var(--gold); }
@media (max-width: 960px) { .lp-roles { grid-template-columns: 1fr; } }

/* Güvenlik */
.lp-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-sec-item { padding: 20px; }
.lp-sec-item [data-lucide] { width: 22px; height: 22px; color: var(--primary); }
.lp-sec-item h3 { margin-top: 12px; }
.lp-sec-item p { margin-top: 6px; color: var(--muted); font-size: 0.86rem; }
.lp-shield { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
@media (max-width: 900px) { .lp-sec { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lp-sec-list { grid-template-columns: 1fr; } }

/* SSS */
.lp-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.lp-faq details { border-radius: var(--r-lg); padding: 0; }
.lp-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--fg-strong);
}
.lp-faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.1rem; color: var(--primary); border: 1px solid var(--primary-border); transition: transform .2s var(--ease);
}
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details > div { padding: 0 22px 20px; color: var(--muted); line-height: 1.7; }

/* Kapanış bandı: lacivert */
.lp-final {
  text-align: center; padding: clamp(44px, 6vw, 76px) clamp(20px, 5vw, 60px); overflow: hidden; border-radius: var(--r-xl);
  background: var(--sb-bg); border-color: var(--sb-bg); color: var(--sb-fg);
}
.lp-final > * { position: relative; z-index: 1; }
.lp-final h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: #fff; }
.lp-final .gradient-text { color: var(--gold); }
.lp-final .eyebrow { color: var(--gold); }
.lp-final p { margin: 16px auto 0; color: var(--sb-fg); max-width: 52ch; font-size: 1.04rem; }
.lp-final .lp-cta { justify-content: center; }
.lp-final .btn-primary { background: #fff; border-color: #fff; color: #0b1f3a; }
.lp-final .btn-primary:hover { background: #e8eef6; border-color: #e8eef6; color: #0b1f3a; }
.lp-final .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.lp-final .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Altbilgi */
.lp-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; background: var(--surface); }
.lp-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.lp-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.88rem; color: var(--muted); }
.lp-footer .muted { margin-top: 10px; max-width: 40ch; }
.lp-mega { display: none; }

/* Kaydırınca görünme (ölçülü) */
html.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-stage { max-width: 640px; margin: 20px auto 0; width: 100%; }
}
@media (max-width: 640px) {
  .lp-stage { min-height: 0; }
  .lp-float-vote { display: none; }
  .lp-float-qr { left: 8px; bottom: -40px; }
  .lp-float-note { right: 8px; top: -30px; }
  .lp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-kpis .lp-kpi:nth-child(3) { display: none; }
  .lp-row2 { grid-template-columns: 1fr; }
  .lp-dash { grid-template-columns: minmax(0, 1fr); }
  .lp-rail { display: none; }
}

/* =====================================================================
   24b. MODÜLLER (ana sayfa kartları + modül sayfaları, md-*)
   ===================================================================== */
.lp-links a { display: inline-flex; align-items: center; gap: 7px; }
.lp-links a [data-lucide] { width: 16px; height: 16px; color: var(--muted); }
.lp-links a.active { color: var(--primary); background: var(--primary-soft); }
.lp-links a.active [data-lucide] { color: var(--primary); }
.lp-foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--muted); min-width: 160px; }
.lp-foot-col strong { color: var(--fg-strong); margin-bottom: 2px; }

/* Ana sayfa: üç modül kartı */
.lp-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-module { display: flex; flex-direction: column; overflow: hidden; color: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.lp-module:hover { color: inherit; border-color: var(--primary-border); box-shadow: var(--shadow-lg); }
.lp-module-art { padding: 18px; background: var(--table-head); border-bottom: 1px solid var(--border); min-height: 190px; display: grid; align-content: start; gap: 8px; }
.lp-module-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-module-body .tag { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.lp-module-body h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.lp-module-body h3 [data-lucide] { width: 34px; height: 34px; padding: 7px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); }
.lp-module-body p { color: var(--muted); font-size: 0.92rem; }
.lp-module-body ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; font-size: 0.88rem; }
.lp-module-body li { display: flex; gap: 8px; align-items: flex-start; }
.lp-module-body li [data-lucide] { width: 16px; height: 16px; margin-top: 2px; color: var(--success); }
.lp-module-go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); font-size: 0.9rem; }
.lp-module:hover .lp-module-go [data-lucide] { transform: translateX(3px); }
.lp-module-go [data-lucide] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
@media (max-width: 1000px) { .lp-modules { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

/* Mini ekran parçaları (kart ve modül görselleri) */
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); font-size: 0.76rem; }
.mini-row b { color: var(--fg-strong); font-weight: 600; }
.mini-row .money { font-weight: 600; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-kpi { padding: 9px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.mini-kpi small { display: block; font-size: 0.6rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-kpi strong { display: block; margin-top: 3px; font-size: 0.92rem; color: var(--fg-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 8px 10px 0; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.mini-bars span { flex: 1; border-radius: 2px 2px 0 0; background: var(--series-1); }
.mini-bars span.e { background: var(--series-2); }

/* Modül sayfası */
.md-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(48px, 6vw, 84px); background: var(--bg); border-bottom: 1px solid var(--border); }
.md-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.md-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.md-crumb a:hover { color: var(--primary); }
.md-crumb [data-lucide] { width: 14px; height: 14px; }
.md-title { margin-top: 18px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.md-title .gradient-text { color: var(--primary); }
.md-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.md-who span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); font-size: 0.84rem; }
.md-who [data-lucide] { width: 15px; height: 15px; color: var(--primary); }

.md-screen { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.md-screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--table-head); }
.md-screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.md-screen-bar span { margin-left: 8px; font-size: 0.7rem; color: var(--muted); }
.md-screen-body { padding: 16px; display: grid; gap: 10px; }
.md-screen-title { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 650; color: var(--fg-strong); }
.md-caption { margin-top: 10px; font-size: 0.78rem; color: var(--muted); text-align: center; }

.md-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.md-row + .md-row { margin-top: clamp(56px, 7vw, 96px); }
.md-row.rev > :first-child { order: 2; }
.md-text h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin-top: 12px; }
.md-text > p { margin-top: 12px; color: var(--muted); line-height: 1.7; }
.md-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.md-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.md-list li [data-lucide] { width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.md-list li b { color: var(--fg-strong); }

.md-flow { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; position: relative; }
.md-flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 21px; height: 2px; background: var(--border-strong); }
.md-flow-step { position: relative; text-align: center; padding: 0 6px; }
.md-flow-step .n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-fill); color: var(--on-primary); font-weight: 700; box-shadow: 0 0 0 6px var(--surface); }
.md-flow-step h4 { margin: 14px 0 0; font-size: 0.98rem; color: var(--fg-strong); }
.md-flow-step p { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 860px) {
  .md-flow { grid-template-columns: 1fr; }
  .md-flow::before { display: none; }
  .md-flow-step { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; }
  .md-flow-step .n { grid-row: span 2; }
  .md-flow-step h4 { margin: 0; align-self: end; }
  .md-flow-step p { margin: 0; }
}

.md-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.md-fact { padding: 20px; }
.md-fact [data-lucide] { width: 22px; height: 22px; color: var(--primary); }
.md-fact h4 { margin: 12px 0 0; font-size: 0.98rem; color: var(--fg-strong); }
.md-fact p { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 960px) { .md-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .md-facts { grid-template-columns: 1fr; } }

.md-others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.md-other { display: flex; gap: 16px; align-items: center; padding: 20px 22px; color: inherit; }
.md-other:hover { color: inherit; border-color: var(--primary-border); }
.md-other > [data-lucide] { width: 44px; height: 44px; padding: 11px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--primary); }
.md-other h4 { margin: 0; font-size: 1rem; color: var(--fg-strong); }
.md-other p { margin-top: 3px; font-size: 0.86rem; color: var(--muted); }
.md-other .go { margin-left: auto; color: var(--primary); }

@media (max-width: 960px) {
  .md-hero-grid, .md-row { grid-template-columns: 1fr; }
  .md-row.rev > :first-child { order: 0; }
  .md-others { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-kpis .mini-kpi:nth-child(3) { display: none; } }

/* ---------- 25. Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rise { animation: none; }
  html.js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- 26. Yazdırma (makbuz) ---------- */
@media print {
  .topbar, .sidebar, .app-bar, .sb-scrim, .no-print, .alert, .lp-header { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  body { background: #fff !important; color: #000; }
  .glass { box-shadow: none !important; border-color: #ccc !important; background: #fff !important; }
  :root { --fg: #000; --fg-strong: #000; --muted: #444; --border: #ccc; }
}
