body{background:var(--cfg-page-bg,#eef2f7);}
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --danger: #dc3545;
  --success: #198754;
  --warning: #ffc107;
  --dark: #212529;
  --light: #f8f9fa;
  --border: #dee2e6;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #e9ecef;
  color: #333;
  line-height: 1.5;
}

.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,0.12);
}

/* TOP BAR */
.top-bar {
  background: linear-gradient(90deg, #e3f2fd, #bbdefb);
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  color: #0d47a1;
}
.top-bar a { color: #0d47a1; text-decoration: none; font-weight: 600; }

/* MAIN MENU */
.main-menu {
  display: flex;
  background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 40%, #dc3545 100%);
  overflow: visible;
}
.main-menu a {
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.25s;
}
.main-menu a:hover,
.main-menu a.active {
  background: #ff9800;
  color: #fff;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #e3f2fd 0%, #fff 50%, #e8f5e9 100%);
  border-bottom: 1px solid var(--border);
}
.hero-doctors {
  display: flex;
  gap: 8px;
}
.hero-doctors img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.hero-center {
  flex: 1;
  text-align: center;
}
.hero-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 6px;
}
.hero-center h1 {
  font-size: 22px;
  color: #0d47a1;
  margin-bottom: 2px;
}
.hero-center p {
  font-size: 14px;
  color: #555;
}
.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
}
.badge-item .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

/* DOCTORS */
.doctors-section {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--doctor-card-width, 130px), 1fr));
  gap: 14px;
}
.doctor-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e9ecef;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.doctor-card img {
  width: var(--doctor-img-size, 70px);
  height: var(--doctor-img-size, 70px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 3px solid #e3f2fd;
}
.doctor-card h4 {
  font-size: var(--doctor-title-size, 13px);
  color: #212529;
  margin-bottom: 2px;
}
.doctor-card p {
  font-size: var(--doctor-subtitle-size, 11px);
  color: #6c757d;
  margin-bottom: 6px;
}
.doctor-card a, .doctor-card a.doctor-detail-link {
  display: inline-block;
  font-size: var(--doctor-detail-size, 12px);
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}
.doctor-card a:hover { text-decoration: underline; }

/* MAIN LAYOUT */
.main-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: 600px;
}

/* SIDEBAR */
.sidebar {
  background: #f8f9fa;
  border-right: 1px solid var(--border);
  padding: 16px;
}
.side-box {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e9ecef;
}
.side-box-header {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-box-header.yellow { background: #ffc107; color: #212529; }
.side-box-header.blue { background: #0d6efd; }
.side-box-header.green { background: #198754; }
.side-box-header.purple { background: #6f42c1; }
.side-box-header.teal { background: #20c997; color: #fff; }

.side-links {
  list-style: none;
  padding: 8px 0;
}
.side-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.side-links li a:hover {
  background: #e3f2fd;
  color: #0d6efd;
}
.side-links .icon { font-size: 14px; width: 18px; text-align: center; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
}
.calc-item {
  background: #f1f8ff;
  border: 1px solid #cce5ff;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #0d47a1;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-item:hover {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.faq-list { padding: 6px 0; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { background: #f8f9fa; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 12px;
  color: #555;
  padding: 0 14px;
}
.faq-item.open .faq-answer {
  max-height: 120px;
  padding-bottom: 10px;
}
.faq-item.open .faq-question span { transform: rotate(45deg); }

/* CONTENT */
.content {
  padding: 20px;
}

.kronobeslenme {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.kronobeslenme::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.krono-left { flex: 1; z-index: 1; }
.krono-left h2 {
  font-size: 22px;
  margin-bottom: 6px;
}
.krono-left p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-light {
  background: #fff;
  color: #0d47a1;
}
.btn-light:hover { background: #e3f2fd; }
.btn-primary {
  background: #0d6efd;
  color: #fff;
}
.btn-primary:hover { background: #0a58ca; }
.btn-danger {
  background: #dc3545;
  color: #fff;
}
.btn-success {
  background: #198754;
  color: #fff;
}
.krono-right {
  width: 140px;
  height: 100px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  z-index: 1;
}

.section-box {
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-header h3 {
  font-size: 17px;
  color: #0d47a1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header a {
  font-size: 13px;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
/* cols-responsive */
@media (max-width: 700px) {
  .video-grid, .files-grid, .gallery-grid, .about-cards-grid, .contact-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .video-grid, .files-grid, .gallery-grid, .about-cards-grid, .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.video-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e9ecef;
  transition: transform 0.2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb {
  height: 90px;
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  position: relative;
}
.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-thumb .duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}
.video-info {
  padding: 10px;
}
.video-info h4 {
  font-size: 13px;
  margin-bottom: 4px;
  color: #212529;
}
.video-info p {
  font-size: 11px;
  color: #6c757d;
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.file-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.file-card:hover {
  border-color: #0d6efd;
  transform: translateY(-2px);
}
.file-icon {
  width: 42px;
  height: 42px;
  background: #ffebee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
}
.file-info h4 {
  font-size: 13px;
  margin-bottom: 2px;
}
.file-info p {
  font-size: 11px;
  color: #6c757d;
}
.file-download {
  margin-left: auto;
  color: #0d6efd;
  font-size: 18px;
  text-decoration: none;
}

.faq-main {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}
.faq-main .faq-item {
  border-bottom: 1px solid #eee;
}
.faq-main .faq-question {
  padding: 14px 18px;
  font-size: 14px;
}
.faq-main .faq-answer {
  font-size: 13px;
  padding: 0 18px;
}
.faq-main .faq-item.open .faq-answer {
  max-height: 150px;
  padding-bottom: 14px;
}

.evde-bakim {
  background: linear-gradient(90deg, #0d47a1, #1565c0);
  border-radius: 12px;
  padding: 20px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.evde-bakim-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.evde-bakim-left .icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.evde-bakim h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.evde-bakim p {
  font-size: 13px;
  opacity: 0.9;
}

.footer {
  background: #212529;
  color: #adb5bd;
  padding: 10px 16px;
  font-size: 12px;
}
.footer-compact .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.footer-sep { opacity: .5; margin: 0 2px; }
.footer a {
  color: #adb5bd;
  text-decoration: none;
}
.footer a:hover { color: #fff; }
.footer-admin { color: #ffc107 !important; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.footer-social a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: #343a40;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin: 0;
}

/* ADMIN STYLES */
.admin-body {
  background: #f0f2f5;
  min-height: 100vh;
}
.admin-header {
  background: #0d47a1;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header h1 { font-size: 18px; }
.admin-header a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 6px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 52px);
}
.admin-sidebar {
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 16px 0;
}
.admin-sidebar a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #e3f2fd;
  border-left-color: #0d6efd;
  color: #0d6efd;
}
.admin-content {
  padding: 24px;
}
.admin-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.admin-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #0d47a1;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.table th {
  background: #f8f9fa;
  font-weight: 600;
}
.table img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
}
.login-box {
  max-width: 380px;
  margin: 100px auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.login-box h1 {
  text-align: center;
  font-size: 22px;
  color: #0d47a1;
  margin-bottom: 24px;
}
.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
}
.alert-success { background: #d1e7dd; color: #0f5132; }
.alert-danger { background: #f8d7da; color: #842029; }
.alert-info { background: #cff4fc; color: #055160; }
.note {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .main-content { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .files-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .admin-layout { grid-template-columns: 1fr; }
}

/* Ortak banner */
.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 20px;
  border-bottom: 1px solid #dee2e6;
  position: relative;
}
.hero-banner-inner {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.75);
  padding: 16px 28px;
  border-radius: 12px;
}
.hero-banner .hero-logo {
  width: 60px; height: 60px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); margin-bottom: 6px;
}
.hero-banner h1 { font-size: 22px; color: #0d47a1; margin-bottom: 2px; }
.hero-banner p { font-size: 14px; color: #555; }

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.home-gallery-grid img {
  width: 100%; height: 120px; object-fit: cover; border-radius: 8px;
}


/* Dinamik yazı stilleri (yönetim paneli) */
:root {
  --text-menu-size: var(--cfg-menu-size, 14px);
  --text-menu-color: var(--cfg-menu-color, #ffffff);
  --text-banner-title-size: var(--cfg-banner-title-size, 22px);
  --text-banner-title-color: var(--cfg-banner-title-color, #0d47a1);
  --text-banner-sub-size: var(--cfg-banner-sub-size, 14px);
  --text-banner-sub-color: var(--cfg-banner-sub-color, #555555);
  --doctor-name-color: var(--cfg-doctor-name-color, #212529);
  --doctor-title-color: var(--cfg-doctor-title-color, #6c757d);
  --doctor-card-bg: var(--cfg-doctor-card-bg, #ffffff);
  --doctor-card-opacity: var(--cfg-doctor-card-opacity, 1);
  --section-title-size: var(--cfg-section-title-size, 18px);
  --section-title-color: var(--cfg-section-title-color, #0d47a1);
  --body-text-size: var(--cfg-body-text-size, 14px);
  --body-text-color: var(--cfg-body-text-color, #333333);
}
.main-menu a { font-size: var(--text-menu-size) !important; color: var(--text-menu-color) !important; }
.hero-banner h1 { font-size: var(--text-banner-title-size) !important; color: var(--text-banner-title-color) !important; }
.hero-banner p { font-size: var(--text-banner-sub-size) !important; color: var(--text-banner-sub-color) !important; }
.doctor-card {
  background: var(--doctor-card-bg) !important;
  opacity: var(--doctor-card-opacity);
}
.doctor-card h4 {
  color: var(--doctor-name-color) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.doctor-card p { color: var(--doctor-title-color) !important; }
.section-title { font-size: var(--section-title-size) !important; color: var(--section-title-color) !important; }
body, .content, .page-body { font-size: var(--body-text-size); color: var(--body-text-color); }

.main-menu a { opacity: var(--cfg-menu-opacity, 1); }
.section-title { opacity: var(--cfg-section-opacity, 1); }
.content, .page-body, .page-content { opacity: var(--cfg-body-opacity, 1); }

.top-bar{display:none!important;height:0!important;padding:0!important;margin:0!important;}
body{margin:0;padding:0;}
.site-wrapper{margin-top:0!important;}

.site-wrapper{margin-left:auto!important;margin-right:auto!important;width:100%;box-sizing:border-box;}


/* ===== Admin tablolar – net ayrım ===== */
.admin-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.admin-table thead th{background:linear-gradient(180deg,#1565c0,#0d47a1);color:#fff;font-weight:600;padding:11px 12px;text-align:left;white-space:nowrap;border:none;font-size:12px;letter-spacing:.02em;}
.admin-table tbody td{padding:11px 12px;border-bottom:1px solid #e8eef5;vertical-align:middle;color:#334155;line-height:1.45;}
.admin-table tbody tr:nth-child(even){background:#f5f9ff;}
.admin-table tbody tr:hover{background:#e3f2fd;}
.admin-table tbody tr:last-child td{border-bottom:none;}
.admin-table a{margin-right:6px;white-space:nowrap;}
.admin-table .badge-on{display:inline-block;background:#dcfce7;color:#166534;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;}
.admin-table .badge-off{display:inline-block;background:#fee2e2;color:#991b1b;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;}
.admin-table .sort-btns a{display:inline-block;min-width:22px;text-align:center;background:#e3f2fd;border-radius:4px;padding:2px 4px;text-decoration:none;color:#0d47a1;font-weight:700;}



/* Doktor yanı banner */
/* Doktor satırı + yan banner: aynı yükseklik, eşit aralık, görsel alanı doldurur */
.doctors-with-banner{
  display:flex;
  align-items:stretch;
  width:100%;
  box-sizing:border-box;
  gap:12px;
  padding:12px 16px;
  padding-right:16px!important;
}
.doctors-with-banner .doctors-grid{
  flex:1 1 auto;
  min-width:0;
  align-content:stretch;
}
.doctors-with-banner .doctor-card{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-sizing:border-box;
}
.doctor-side-banners{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:stretch;
  align-self:stretch;
  flex:0 0 auto;
  gap:10px;
  margin:0;
  padding:0;
}
.doctor-side-banner{
  flex-shrink:0;
  overflow:hidden;
  line-height:0;
  border-radius:10px;
  align-self:stretch;
  display:flex;
  background:#f1f5f9;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.doctor-side-banner a{
  display:block;
  width:100%;
  height:100%;
  line-height:0;
}
.doctor-side-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}


/* Kompakt sayfa başlığı – tüm üst menü sayfaları */
.page-shell{margin:0 auto;padding:0 12px 32px;box-sizing:border-box;}
.page-hero{
  background:linear-gradient(135deg,#1565c0,#0d47a1);
  color:#fff;
  border-radius:8px;
  padding:10px 16px;
  margin:10px 0 14px;
  min-height:0;
  line-height:1.25;
}
.page-hero h1{
  margin:0;
  font-size:1.15rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}
.page-hero p{display:none!important;} /* alt açıklama kapalı – daha dar */
.page-hero.page-hero-sub p{
  display:block!important;
  margin:4px 0 0;
  opacity:.9;
  font-size:12px;
}

/* ===== GÜNCELLEME: Sayfa başlığı ortala + Ana Sayfa sarı + Hesaplamalar grid ===== */
.page-hero {
  text-align: center;
}
.page-hero h1 {
  justify-content: center;
  text-align: center;
}
.page-hero.page-hero-sub p {
  text-align: center;
}

/* Ana Sayfa menü öğesi – her zaman sabit sarı (değişmez) */
.main-menu a.nav-home,
.main-menu a.nav-home:hover,
.main-menu a.nav-home.active,
.main-menu a.nav-home:focus {
  background: #ffc107 !important;
  color: #212529 !important;
}

/* Hesaplamalar kart grid */
.calc-grid-main {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.calc-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(13,71,161,0.12);
  border-color: #0d6efd;
}
.calc-card .icon { font-size: 34px; margin-bottom: 8px; line-height: 1; }
.calc-card h3 { font-size: 15px; color: #0d47a1; margin: 0 0 6px; }
.calc-card p { font-size: 12px; color: #6c757d; margin: 0; line-height: 1.4; }

/* ===== Renk seçici – seçilen renk her zaman görünür ===== */
.color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.color-field input[type="color"] {
  width: 48px;
  height: 36px;
  padding: 2px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-field input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}
.color-field .color-hex {
  width: 100px;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
}
.color-field .color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Ana Menü Alt Banner */
.menu-bottom-banner-wrap {
  margin: 20px auto 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.menu-bottom-banner {
  display: block;
  overflow: hidden;
  line-height: 0;
  border-radius: 10px;
  max-width: 100%;
}
.menu-bottom-banner img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:#f8fafc;}

/* Tutarlı işlem butonları (Aktif/Pasif · Düzenle · Sil yan yana) */
.admin-table td .act-btns,
.admin-table .act-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.admin-table .act-btns a,
.admin-table .act-btns .btn {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
  margin-right: 0 !important;
}
.admin-table .act-btns a.act-toggle { background:#e0f2fe; color:#0369a1; border-color:#bae6fd; }
.admin-table .act-btns a.act-edit { background:#dbeafe; color:#1d4ed8; border-color:#bfdbfe; }
.admin-table .act-btns a.act-del { background:#fee2e2; color:#b91c1c; border-color:#fecaca; }
.admin-table .act-btns a.act-hide { background:#f1f5f9; color:#475569; border-color:#e2e8f0; }
.admin-table .act-btns a:hover { filter:brightness(.95); }

/* Admin bölüm başlıkları — vurgulu arka plan */
.admin-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
}
.admin-card > h2,
.admin-card > h2:first-child,
.admin-sec-title {
  margin: 0 0 14px 0;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-bottom: 1px solid #bae6fd;
  border-radius: 10px 10px 0 0;
}
.admin-card .admin-sec-title { margin: -4px -4px 14px; border-radius: 8px; }
.admin-card.sec-primary > h2,
.admin-sec-primary {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border-bottom-color: #93c5fd;
  color: #1e3a8a;
}
.admin-card.sec-success > h2,
.admin-sec-success {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border-bottom-color: #6ee7b7;
  color: #065f46;
}
.admin-card.sec-warn > h2,
.admin-sec-warn {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-bottom-color: #fcd34d;
  color: #92400e;
}
.admin-card.sec-purple > h2,
.admin-sec-purple {
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  border-bottom-color: #c4b5fd;
  color: #5b21b6;
}
.admin-card.sec-rose > h2,
.admin-sec-rose {
  background: linear-gradient(135deg, #ffe4e6 0%, #fff1f2 100%);
  border-bottom-color: #fda4af;
  color: #9f1239;
}
.admin-subbox {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}
.admin-subbox > h3 {
  margin: 0 0 10px 0;
  padding: 8px 12px;
  font-size: 0.95rem;
  background: #e2e8f0;
  border-radius: 6px;
  color: #334155;
}


/* Admin bölüm başlıkları — daha belirgin */
.admin-card > h2,
.admin-card > h2:first-child,
.admin-sec-title {
  margin: 0 0 14px 0 !important;
  padding: 14px 18px !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 55%, #f0f9ff 100%) !important;
  border-bottom: 3px solid #0284c7 !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 0 2px 0 rgba(2,132,199,.15);
}
.admin-card.sec-primary > h2,
.admin-sec-primary {
  background: linear-gradient(135deg, #93c5fd 0%, #dbeafe 50%, #eff6ff 100%) !important;
  border-bottom-color: #2563eb !important;
  color: #1e3a8a !important;
}
.admin-card.sec-success > h2,
.admin-sec-success {
  background: linear-gradient(135deg, #6ee7b7 0%, #d1fae5 50%, #ecfdf5 100%) !important;
  border-bottom-color: #059669 !important;
  color: #064e3b !important;
}
.admin-card.sec-warn > h2,
.admin-sec-warn {
  background: linear-gradient(135deg, #fcd34d 0%, #fef3c7 50%, #fffbeb 100%) !important;
  border-bottom-color: #d97706 !important;
  color: #78350f !important;
}
.admin-card.sec-purple > h2,
.admin-sec-purple {
  background: linear-gradient(135deg, #c4b5fd 0%, #ede9fe 50%, #f5f3ff 100%) !important;
  border-bottom-color: #7c3aed !important;
  color: #4c1d95 !important;
}
.admin-card.sec-rose > h2,
.admin-sec-rose {
  background: linear-gradient(135deg, #fda4af 0%, #ffe4e6 50%, #fff1f2 100%) !important;
  border-bottom-color: #e11d48 !important;
  color: #881337 !important;
}
.admin-subbox {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  margin: 14px 0 !important;
}
.admin-subbox > h3 {
  margin: 0 0 12px 0 !important;
  padding: 10px 14px !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0) !important;
  border-left: 4px solid #0d6efd !important;
  border-radius: 6px !important;
  color: #0f172a !important;
}

/* ===== Tüm admin listelerinde tutarlı işlem butonları ===== */
.act-btns{
  display:inline-flex!important;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.act-btns a,
a.act-toggle, a.act-edit, a.act-del, a.act-hide{
  display:inline-block!important;
  padding:5px 12px!important;
  border-radius:8px!important;
  font-size:12px!important;
  font-weight:600!important;
  text-decoration:none!important;
  border:1px solid transparent!important;
  line-height:1.3!important;
  margin:0!important;
  white-space:nowrap;
  cursor:pointer;
}
a.act-toggle, .act-btns a.act-toggle{
  background:#e0f2fe!important;
  color:#0369a1!important;
  border-color:#bae6fd!important;
}
a.act-edit, .act-btns a.act-edit{
  background:#dbeafe!important;
  color:#1d4ed8!important;
  border-color:#bfdbfe!important;
}
a.act-del, .act-btns a.act-del{
  background:#fee2e2!important;
  color:#b91c1c!important;
  border-color:#fecaca!important;
}
a.act-hide, .act-btns a.act-hide{
  background:#f1f5f9!important;
  color:#475569!important;
  border-color:#e2e8f0!important;
}
a.act-toggle:hover, a.act-edit:hover, a.act-del:hover{ filter:brightness(.95); }

.badge-status-aktif, .badge-on, span.badge-on{
  display:inline-block!important;
  background:#dcfce7!important;
  color:#166534!important;
  padding:3px 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:700!important;
}
.badge-status-pasif, .badge-status-gizli, .badge-off, span.badge-off{
  display:inline-block!important;
  background:#fee2e2!important;
  color:#991b1b!important;
  padding:3px 10px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:700!important;
}
.admin-content table.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
  background:#fff;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.admin-content table.table thead th{
  background:linear-gradient(180deg,#1565c0,#0d47a1);
  color:#fff;
  font-weight:600;
  padding:11px 12px;
  text-align:left;
  font-size:12px;
}
.admin-content table.table tbody td{
  padding:11px 12px;
  border-bottom:1px solid #e8eef5;
  vertical-align:middle;
}
.admin-content table.table tbody tr:nth-child(even){background:#f5f9ff;}
.admin-content table.table tbody tr.row-inactive td{background:#fff3cd!important;}
.row-inactive-card{background:#fff3cd!important;border-color:#f59e0b!important;}

/* Tüm admin sıra okları */
.sort-btns a,
td.sort-btns a,
.admin-content a[href*="?up="],
.admin-content a[href*="?down="]{
  display:inline-block;
  min-width:26px;
  text-align:center;
  background:#e0f2fe;
  color:#0369a1;
  border:1px solid #bae6fd;
  border-radius:6px;
  padding:3px 6px;
  text-decoration:none;
  font-weight:700;
  margin:0 2px;
}
.admin-content a[href*="?up="]:hover,
.admin-content a[href*="?down="]:hover{ filter:brightness(.95); }

.admin-content a[href*="up_block="],
.admin-content a[href*="down_block="],
.admin-content a[href*="?up="],
.admin-content a[href*="?down="]{
  display:inline-block;
  min-width:26px;
  text-align:center;
  background:#e0f2fe!important;
  color:#0369a1!important;
  border:1px solid #bae6fd!important;
  border-radius:6px;
  padding:3px 6px;
  text-decoration:none!important;
  font-weight:700;
  margin:0 2px;
}
