:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #6c5ce7;
  --primary-dark: #5a4bd4;
  --danger: #dc2626;
  /* Yan menu (sidebar) renkleri */
  --sidebar-bg: #2b2f48;
  --sidebar-head: #252942;
  --sidebar-hover: #363b5a;
  --sidebar-text: #c3c8db;
  --sidebar-muted: #7e87a6;
  --sidebar-width: 260px;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  flex: 1;
}

/* ==================== Sidebar Duzeni (uygulama ici) ==================== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.sidebar-head {
  padding: 18px 20px;
  background: var(--sidebar-head);
  position: sticky;
  top: 0;
  z-index: 2;
}
.sidebar-brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-nav { padding: 10px 12px 24px; display: flex; flex-direction: column; gap: 2px; }
.nav-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sidebar-muted);
  padding: 16px 12px 6px;
  font-weight: 700;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--sidebar-text);
  font-size: 0.94rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-ico { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-logout { margin: 0; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}
.sidebar-overlay.show { display: block; }

/* Ana alan */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.main-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
}
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 5px 11px;
  cursor: pointer;
}
.main-topbar .search-form { flex: 1; display: flex; max-width: 460px; }
.main-topbar .search-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 9px 14px;
  outline: none;
  background: #fff;
}
.main-topbar .search-form input:focus { border-color: var(--primary); }
.main-topbar .search-form button {
  border: 1px solid var(--border);
  border-left: none;
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 0 14px;
  cursor: pointer;
}
.topbar-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.content {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
}
.content-footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

/* Karsilama karti */
.welcome-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  overflow: hidden;
}
.welcome-content { flex: 1; }
.welcome-content h1 { font-size: 1.6rem; margin-bottom: 8px; }
.welcome-content p { color: var(--muted); margin-bottom: 16px; max-width: 640px; line-height: 1.6; }
.welcome-emoji {
  font-size: 4.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(108, 92, 231, 0.25));
  animation: trophyBob 3s ease-in-out infinite;
}
@keyframes trophyBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
  .welcome-card { flex-direction: column; text-align: center; }
  .user-name { display: none; }
  .content { padding: 18px 16px; }
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.search-form {
  flex: 1;
  display: flex;
  max-width: 420px;
}
.search-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  outline: none;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
  border: 1px solid var(--border);
  border-left: none;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  padding: 0 12px;
  cursor: pointer;
}
.topnav { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  overflow: hidden;
  z-index: 200;
  /* Gorunurlugu opacity/visibility ile yonet -> kapanma gecikmesi (tolerans) eklenebilir */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  transition-delay: 0.25s; /* fare menuye giderken kapanmasi icin tolerans */
  pointer-events: none;
}
/* Buton ile menu arasindaki boslugu gorunmez bir kopru ile doldur (olu bolge olmasin) */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.dropdown-menu.dropdown-right { left: auto; right: 0; }
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s; /* acilirken gecikme olmasin */
}
.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: var(--bg); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 11px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; font-weight: 600; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { color: var(--danger); border-color: #fecaca; background: #fff; }
.btn-danger:hover { background: var(--error-bg); }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Page head ---------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 1.6rem; }
.section-title {
  font-size: 1.1rem;
  margin: 28px 0 14px;
  color: var(--text);
}
.muted { color: var(--muted); font-size: 0.9rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }

/* ---------- Category cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}
.category-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.category-icon { font-size: 2rem; }
.category-info h3 { font-size: 1.02rem; margin-bottom: 4px; }

.badge {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 2px 9px;
  border-radius: 999px;
}
.badge-admin { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }

/* ---------- Stat cards (yedek/ozet) ---------- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Document list ---------- */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.doc-icon { font-size: 1.6rem; flex-shrink: 0; }
.doc-main { flex: 1; min-width: 0; }
.doc-title { font-weight: 600; word-break: break-word; }
.doc-desc { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 5px;
}
.doc-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tag {
  background: #eff6ff;
  color: var(--primary);
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
}
.tag:hover { text-decoration: none; background: #dbeafe; }

.tag-sub { background: #fef3c7; color: #92400e; }
.tag-sub:hover { text-decoration: none; }
.tag-term { background: #e0e7ff; color: #3730a3; }
.tag-term:hover { text-decoration: none; }

/* ---------- Filter bar (alt kategori / donem filtresi) ---------- */
.filter-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  min-width: 84px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.12s;
}
.filter-chip:hover { background: var(--bg); }
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Admin: kategori + alt kategori yonetimi ---------- */
.admin-cat-list { display: flex; flex-direction: column; gap: 14px; }
.admin-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-cat-title { font-weight: 600; font-size: 1.05rem; margin-right: 8px; }
.admin-sub-area { padding: 14px 16px; background: var(--bg); }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.sub-count {
  background: rgba(146, 64, 14, 0.15);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 0.72rem;
}
.sub-chip .sub-del { display: inline; }
.sub-chip .sub-del button {
  border: none;
  background: rgba(146, 64, 14, 0.12);
  color: #92400e;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}
.sub-chip .sub-del button:hover { background: var(--danger); color: #fff; }
.sub-add { margin-top: 4px; }

/* ---------- Empty / error ---------- */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state p { margin-bottom: 16px; color: var(--muted); }
.error-state { border-style: solid; }
.big-emoji { font-size: 3rem; margin-bottom: 10px; }

/* ---------- Onizleme ---------- */
.preview-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--muted);
}
.preview-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-frame {
  width: 100%;
  height: 78vh;
  border: none;
  display: block;
}
.preview-frame-text { background: #fff; }
.docx-wrap {
  max-height: 80vh;
  overflow: auto;
  background: #e9edf3;
  padding: 16px 0;
}
.docx-container .docx-wrapper {
  background: transparent;
  padding: 0;
}
.docx-container .docx-wrapper > section.docx {
  background: #fff;
  box-shadow: var(--shadow-lg);
  margin: 0 auto 16px;
}
.preview-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #f1f5f9;
}
.preview-image-wrap img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- Forms ---------- */
.form-card,
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.92rem; }
.form input,
.form select,
.form textarea,
.form-inline input,
.form-inline select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 400;
  outline: none;
  background: #fff;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.form small { font-weight: 400; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-logo { font-size: 3rem; }
.login-card h1 { margin: 8px 0 2px; }
.login-card .form { text-align: left; margin-top: 20px; }

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.table { width: 100%; border-collapse: collapse; }
.table th,
.table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
.table tr:last-child td { border-bottom: none; }
.cell-icon { font-size: 1.3rem; }
.cell-actions { text-align: right; }

/* ---------- Onay bekleyenler ---------- */
.pending-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  margin-bottom: 22px;
}
.nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ---------- Flash ---------- */
.flash {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 500;
}
.flash-success { background: var(--success-bg); color: var(--success-text); }
.flash-error { background: var(--error-bg); color: var(--error-text); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ==================== Tanitim (Landing) Sayfasi ==================== */
.landing-body { background: #fff; }

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.landing-brand:hover { text-decoration: none; }

/* Hero */
.landing-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #eef4ff 0%, #e6ecff 25%, #f0e9ff 50%, #e6ecff 75%, #eef4ff 100%);
  background-size: 300% 300%;
  animation: heroGradient 14s ease infinite;
  padding: 90px 20px 80px;
  text-align: center;
}
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.landing-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

/* Yuzen renkli sekiller (blob) */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 1;
}
.hero-blob-1 {
  width: 340px; height: 340px;
  background: #93c5fd;
  top: -120px; left: -80px;
  animation: blobFloat 16s ease-in-out infinite;
}
.hero-blob-2 {
  width: 300px; height: 300px;
  background: #c4b5fd;
  bottom: -140px; right: -60px;
  animation: blobFloat 20s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Giris (load) animasyonlari */
.anim-up { opacity: 0; transform: translateY(24px); animation: animUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.anim-d1 { animation-delay: 0.12s; }
.anim-d2 { animation-delay: 0.24s; }
.anim-d3 { animation-delay: 0.36s; }
.anim-d4 { animation-delay: 0.48s; }
@keyframes animUp { to { opacity: 1; transform: translateY(0); } }

/* Kaydirinca beliris (reveal) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.landing-hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #0f172a;
}
.hero-lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.hero-cta { margin-bottom: 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta-alt { background: #fff; color: var(--primary-dark); border-color: var(--border); }
.hero-cta-alt:hover { background: #f8fafc; text-decoration: none; }
.hero-note { font-size: 0.9rem; color: var(--muted); }
.landing-header-actions { display: flex; align-items: center; gap: 10px; }

/* Sections */
.landing-section { padding: 66px 20px; }
.landing-section-alt { background: var(--bg); }
.landing-container { max-width: 1100px; margin: 0 auto; }
.landing-h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: #0f172a;
}
.landing-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 38px;
  font-size: 1.02rem;
}

/* Kategori onizleme kartlari */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.landing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.landing-card-icon {
  font-size: 2rem;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  transition: transform 0.2s;
}
.landing-card:hover .landing-card-icon { transform: scale(1.12) rotate(-4deg); }
.landing-card h3 { font-size: 1.02rem; color: var(--text); }

/* Renkli kategori kart ikonlari */
.lc-0 .landing-card-icon { background: #dbeafe; }
.lc-1 .landing-card-icon { background: #dcfce7; }
.lc-2 .landing-card-icon { background: #fef3c7; }
.lc-3 .landing-card-icon { background: #fce7f3; }
.lc-4 .landing-card-icon { background: #ede9fe; }
.lc-5 .landing-card-icon { background: #ffedd5; }

/* Ozellikler */
.landing-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.landing-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.lf-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 14px;
  margin-bottom: 16px;
  transition: transform 0.2s;
}
.landing-feat:hover .lf-icon { transform: scale(1.1) rotate(4deg); }
.lf-blue { background: #dbeafe; }
.lf-green { background: #dcfce7; }
.lf-purple { background: #ede9fe; }
.lf-amber { background: #fef3c7; }
.landing-feat h3 { font-size: 1.1rem; margin-bottom: 8px; }
.landing-feat p { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

/* Final CTA */
.landing-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.landing-final h2 { font-size: 2rem; margin-bottom: 10px; }
.landing-final p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }
.landing-final-btn {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.landing-final-btn:hover { background: #f1f5f9; text-decoration: none; }

@media (max-width: 640px) {
  .landing-brand span { display: inline; }
  .landing-hero { padding: 54px 20px 48px; }
  .landing-hero h1 { font-size: 2.1rem; }
  .hero-lead { font-size: 1.05rem; }
  .landing-section { padding: 48px 20px; }
  .landing-h2 { font-size: 1.55rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; }
  .search-form { order: 3; max-width: none; width: 100%; }
  .brand span { display: none; }
  .topnav .btn span { display: none; }
  .doc-row { flex-wrap: wrap; }
  .doc-actions { width: 100%; justify-content: flex-end; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.35rem; }
}
