:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fc;
  --color-surface: #ffffff;
  --color-border: #dfe1ea;
  --color-border-strong: #c3c7d6;
  --color-text: #14192e;
  --color-muted: #5b6178;
  --color-ink: #101b3d;
  --color-primary: #101b3d;
  --color-primary-dark: #060b1f;
  --color-accent: #2c3e8c;
  --color-accent-dark: #1a2559;
  --color-success: #1a7f4e;
  --color-success-bg: #e5f7ee;
  --color-danger: #b3261e;
  --color-danger-bg: #fdeceb;
  --color-warning: #8a5b00;
  --color-warning-bg: #fff4e0;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 1px 2px rgba(17,17,17,0.05), 0 6px 16px rgba(17,17,17,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Site geneli asimetrik arka plan sekilleri (tum on yuz sayfalarinda sabit, hafif dekor) */
.site-bg-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.site-shape { position: absolute; }
.site-shape-1 {
  width: 460px; height: 460px; top: -180px; left: -140px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.05;
}
.site-shape-2 {
  width: 320px; height: 320px; top: 38%; right: -110px;
  background: var(--color-ink);
  opacity: 0.035;
  border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%;
}
.site-shape-3 {
  width: 0; height: 0;
  bottom: 8%; left: 5%;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 150px solid var(--color-accent);
  opacity: 0.04;
  transform: rotate(-15deg);
}
.site-shape-4 {
  width: 190px; height: 190px; bottom: -70px; right: 10%;
  background: var(--color-ink);
  opacity: 0.04;
  border-radius: 34px;
  transform: rotate(20deg);
}
.site-shape-5 {
  width: 240px; height: 240px; top: 8%; right: 22%;
  border-radius: 50%;
  background: var(--color-ink);
  opacity: 0.03;
}
@media (max-width: 860px) {
  .site-shape-2, .site-shape-5 { display: none; }
  .site-shape-1 { width: 320px; height: 320px; top: -120px; left: -110px; }
}

a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-border-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--color-ink); }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

/* Top utility bar */
.topbar {
  background: var(--color-ink);
  color: #cfcfcf;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.topbar-links { display: flex; gap: 18px; }
.topbar a { color: #ededed; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Navbar */
.navbar {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.navbar .brand {
  font-weight: 700;
  font-size: 21px;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--color-accent); }
.navbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.navbar nav a { color: var(--color-text); font-weight: 500; font-size: 14px; text-decoration: none; }
.navbar nav a:hover { color: var(--color-accent); }

/* Kurslar mega menu (tiklamayla acilir/kapanir - hem masaustu hem mobil) */
.nav-item-dropdown { position: relative; }
.nav-link-caret { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-link-caret .caret { font-size: 10px; transition: transform .15s ease; }
.nav-item-dropdown.open .caret { transform: rotate(180deg); }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(17,17,17,0.14);
  padding: 12px;
  width: 300px;
  z-index: 40;
  margin-top: 8px;
}
.nav-item-dropdown.open .mega-menu { display: block; }
.mega-menu-grid { display: flex; flex-direction: column; gap: 2px; }
.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--color-text) !important;
}
.mega-menu-item:hover { background: var(--color-bg); }
.mega-menu-item-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-bg-alt); color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.mega-menu-item-name { font-weight: 700; font-size: 14px; flex: 1; }
.mega-menu-item-count { font-size: 11px; color: var(--color-muted); flex-shrink: 0; }
.mega-menu-viewall {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 13px;
}
@media (max-width: 860px) {
  .mega-menu { position: static; width: 100%; box-shadow: none; border: none; padding: 0 0 0 14px; margin-top: 0; }
}
.navbar .btn { font-size: 14px; }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .navbar-inner { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .navbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(17,17,17,0.06);
  }
  .nav-open nav {
    display: flex;
    padding: 6px 20px 18px;
  }
  .navbar nav a, .navbar nav form { width: 100%; }
  .navbar nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .navbar nav form { padding: 14px 0 4px; }
  .navbar nav form .btn { display: block; width: 100%; }
  .nav-panel-link {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-radius: var(--radius-lg);
    padding: 13px 16px !important;
    margin: 6px 0 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    font-weight: 700;
  }
  .nav-panel-link:hover { background: var(--color-accent-dark) !important; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-ink);
  background: var(--color-ink);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink) !important;
}
.btn-outline:hover { background: var(--color-ink); color: #fff !important; }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-danger { background: var(--color-danger); border-color: var(--color-danger); }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-body { padding: 20px; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0;
  align-items: stretch;
}
.course-card-link { display: flex; color: inherit; text-decoration: none; width: 100%; height: 100%; }
.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.course-card-link:hover .course-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17,17,17,0.10), 0 2px 6px rgba(17,17,17,0.06);
  border-color: var(--color-border-strong);
}
.course-card .thumb {
  aspect-ratio: 16/9;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 12px;
  position: relative;
}
.course-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-badges-left { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.thumb-badge {
  background: rgba(255,255,255,0.94);
  color: var(--color-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.thumb-badge-live {
  background: #dc2626;
  color: #fff;
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(220,38,38,0); }
}
.thumb-badge-level { position: absolute; top: 12px; right: 12px; background: rgba(17,17,17,0.75); color: #fff; }
.thumb-badge-popular { background: #eef0fb; color: var(--color-accent-dark); }
.thumb-badge-featured { background: var(--color-accent); color: #fff; }
.course-card-category { font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.course-card .body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  background: linear-gradient(155deg, #ffffff 55%, var(--color-bg-alt) 150%);
  overflow: hidden;
}
.course-card .body::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.06;
  pointer-events: none;
}
.course-card .body > * { position: relative; z-index: 1; }
.course-card .title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.course-card-desc { color: var(--color-muted); font-size: 14px; margin: 0; line-height: 1.5; }
.course-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--color-muted); }
.course-card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.course-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-card-instructor { display: flex; align-items: center; gap: 8px; color: var(--color-muted); font-size: 13px; min-width: 0; }
.course-card-instructor span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-circle {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.course-card .price { font-weight: 700; color: var(--color-ink); white-space: nowrap; }

.avatar-preview {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: 3px solid var(--color-bg-alt);
}
.avatar-preview-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-ink); color: #fff;
  font-size: 42px; font-weight: 700;
}
.avatar-sm {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}

/* Instructor listing */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 60px;
}
.instructor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
  text-decoration: none !important;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.instructor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.instructor-card-avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px;
  display: block;
}
.instructor-card-avatar-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-ink); color: #fff; font-size: 28px; font-weight: 700;
}
.instructor-card-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.instructor-card-bio { color: var(--color-muted); font-size: 14px; margin: 10px 0; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-muted { background: #eee; color: var(--color-muted); }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--color-ink); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.form-hint { color: var(--color-muted); font-size: 14px; margin-top: 4px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 200px; }

.auth-card { max-width: 420px; margin: 60px auto; }

/* Giris/Kayit sayfalari - standart sayfa genisliginde (container), solda uyelik
   avantajlarini anlatan tamamen seffaf panel (sayfa bg'siyle ayni), buyuk
   asimetrik cerceveli fotograf ustte (sutunu tam kaplar), metin koyu renkte
   altta (normal okunabilirlik); saginda form. Mobilde form once gelir. */
.auth-page {
  display: flex;
  min-height: 0;
  max-width: 1320px;
  margin: 50px auto;
  padding: 0 32px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.auth-visual {
  position: relative;
  flex: 1.15;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.auth-visual-shape { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.auth-visual-shape-1 { width: 240px; height: 240px; top: -90px; left: -70px; background: var(--color-ink); opacity: 0.035; }
.auth-visual-shape-2 { width: 170px; height: 170px; bottom: 10%; right: 4%; background: var(--color-accent); opacity: 0.14; }
.auth-visual-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 36px 36px 36px 96px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17,17,17,0.16);
}
.auth-visual-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-visual-text { position: relative; z-index: 1; }
.auth-visual-text h2 { font-size: 26px; line-height: 1.3; margin: 8px 0 20px; color: var(--color-ink); }
.auth-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--color-muted); line-height: 1.5; }
.auth-benefits li span { flex-shrink: 0; font-size: 18px; }
.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--color-bg); }
.auth-form-panel .auth-card { margin: 0; width: 100%; }
.auth-form-sub { color: var(--color-muted); font-size: 14px; margin: -6px 0 20px; }
@media (max-width: 900px) {
  .auth-page { flex-direction: column; margin: 0; border: none; border-radius: 0; box-shadow: none; padding: 0; }
  .auth-form-panel { order: 1; }
  .auth-visual { order: 2; }
}

/* Alerts / flash */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: #bfe6d1; }
.alert-error { background: var(--color-danger-bg); color: var(--color-danger); border-color: #f3c9c5; }
.alert-info { background: #eef1f5; color: #1d3d5c; border-color: #d7dee6; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
table th, table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
table th { color: var(--color-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.table-responsive table { border: none; border-radius: 0; }
.table-responsive table th:first-child, .table-responsive table td:first-child { padding-left: 16px; }
.dt-toggle-cell { display: none; }

/* Ortak sayfa numarasi linkleri (kurslar/kullanicilar/siparisler vb. listeler) */
.pagination-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }

/* Panel listelerine (admin/egitmen/ogrenci) eklenen, JS ile calisan hafif
   arama + sayfalama katmani - .table-responsive'i saran [data-datatable]
   div'ine otomatik uygulanir, backend degisikligi gerektirmez. */
.datatable-controls { margin-bottom: 14px; }
.datatable-search {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  background: var(--color-surface);
}
.datatable-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-muted);
}
.datatable-nav { display: flex; align-items: center; gap: 10px; }
.datatable-page-label { font-weight: 600; color: var(--color-text); }
@media (max-width: 640px) {
  .datatable-search { max-width: none; }
  .datatable-pagination { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Layout: dashboard/admin */
.app-shell {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 60px;
}
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow);
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-profile-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-profile-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.sidebar-profile-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-profile-info strong { font-size: 14px; color: var(--color-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile-info span { font-size: 12px; color: var(--color-muted); }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  margin-bottom: 2px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar a .sidebar-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar a:hover { background: var(--color-bg); }
.sidebar a.active { background: var(--color-ink); color: #fff; }
.sidebar-badge {
  margin-left: auto;
  background: var(--color-danger, #d64545);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.main-content { flex: 1; padding: 0; min-width: 0; }

.sidebar-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-ink);
  margin-bottom: 16px;
}
.sidebar-toggle .nav-toggle-bar { width: 16px; height: 2px; background: var(--color-ink); border-radius: 2px; display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.quick-action-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px 14px; text-align: center;
  color: inherit; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-action-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,17,17,0.08); border-color: var(--color-accent); }
.quick-action-icon { font-size: 26px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; align-items: start; }
.settings-stack { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.stat-card { padding: 18px; }
.stat-card .value { font-size: 26px; font-weight: 700; }
.stat-card .label { color: var(--color-muted); font-size: 13px; margin-top: 4px; }

.section-title { font-size: 24px; font-weight: 700; margin: 8px 0 20px; letter-spacing: -0.01em; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

/* Admin panel ozet sayfasi (admin/dashboard.php) */
.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.admin-dash-header h1 { margin: 0 0 4px; }
.admin-dash-header p { margin: 0; color: var(--color-muted); font-size: 14px; }
.admin-dash-date {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--tone, var(--color-accent));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,17,17,0.09); }
.admin-stat-card--revenue { --tone: var(--color-success); }
.admin-stat-card--users { --tone: var(--color-accent); }
.admin-stat-card--students { --tone: #2f6fb0; }
.admin-stat-card--instructors { --tone: #7c4fd6; }
.admin-stat-card--courses { --tone: var(--color-warning); }
.admin-stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--color-bg-alt);
  background: color-mix(in srgb, var(--tone, var(--color-accent)) 14%, transparent);
}
.admin-stat-value { font-size: 22px; font-weight: 800; color: var(--color-ink); line-height: 1.15; }
.admin-stat-label { color: var(--color-muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.admin-alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--color-warning-bg);
  border: 1px solid #f0d9a6;
  border-radius: var(--radius-lg);
}
.admin-alert-banner-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-warning); white-space: nowrap; }
.admin-alert-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid #f0d9a6;
  color: var(--color-warning);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.admin-alert-chip:hover { background: #fff4e0; transform: translateY(-1px); }

.admin-panel-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}
.admin-panel-card-title .icon { font-size: 18px; }

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.admin-user-row:last-child { border-bottom: none; }
.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.admin-user-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.admin-user-info { min-width: 0; flex: 1; }
.admin-user-info strong { display: block; font-size: 14px; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-info span { font-size: 12.5px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.admin-course-rank-list { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.admin-course-rank-item { display: flex; align-items: center; gap: 14px; }
.admin-course-rank-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-muted);
}
.admin-course-rank-item:nth-child(1) .admin-course-rank-num { background: #fff4e0; border-color: #f0d9a6; color: var(--color-warning); }
.admin-course-rank-item:nth-child(2) .admin-course-rank-num { background: #f0f1f5; border-color: var(--color-border-strong); color: var(--color-ink); }
.admin-course-rank-item:nth-child(3) .admin-course-rank-num { background: #fbeee3; border-color: #eccdb0; color: #a15b28; }
.admin-course-rank-body { flex: 1; min-width: 0; }
.admin-course-rank-body a { font-weight: 700; font-size: 14px; color: var(--color-text); text-decoration: none; }
.admin-course-rank-body a:hover { color: var(--color-accent); }
.admin-course-rank-meta { font-size: 12.5px; color: var(--color-muted); margin-top: 2px; }
.admin-course-rank-bar-track { height: 6px; border-radius: 3px; background: var(--color-bg-alt); margin-top: 8px; overflow: hidden; }
.admin-course-rank-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--color-accent), #5b6fc9); }
.admin-course-rank-revenue { text-align: right; flex-shrink: 0; font-weight: 800; color: var(--color-ink); font-size: 14px; white-space: nowrap; }

.admin-status-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-width: 150px;
}
.admin-status-pill-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.admin-status-pill-num { font-size: 18px; font-weight: 800; color: var(--color-ink); }
.admin-status-pill-label { font-size: 12.5px; color: var(--color-muted); font-weight: 600; }

@media (max-width: 640px) {
  .admin-dash-header { align-items: flex-start; }
}

/* Egitmen kurs olusturma sureci: adim gostergesi */
.course-quickstart-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.course-quickstart-step {
  font-size: 13px; font-weight: 700; color: var(--color-muted);
  background: var(--color-bg-alt); padding: 7px 14px; border-radius: 999px;
}
.course-quickstart-step-active { color: #fff; background: var(--color-accent); }
.course-quickstart-step-sep { color: var(--color-border-strong); }

/* Hero */
.hero {
  background: var(--color-bg-alt);
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-shape { position: absolute; opacity: 0.5; }
.hero-shape-1 {
  width: 260px; height: 260px; top: -90px; left: 6%;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.10;
  animation: hero-float-a 19s ease-in-out infinite;
}
.hero-shape-2 {
  width: 190px; height: 190px; bottom: -70px; left: 38%;
  background: var(--color-ink);
  opacity: 0.05;
  border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
  animation: hero-float-b 23s ease-in-out infinite;
}
.hero-shape-3 {
  top: 8%; right: 10%;
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--color-accent);
  opacity: 0.09;
  transform: rotate(12deg);
  animation: hero-float-c 27s ease-in-out infinite;
}
.hero-shape-4 {
  width: 130px; height: 130px; bottom: 14%; right: 20%;
  background: var(--color-ink);
  opacity: 0.05;
  border-radius: 26px;
  animation: hero-float-a 21s ease-in-out infinite reverse;
}
@keyframes hero-float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(24px, -28px) rotate(18deg); }
}
@keyframes hero-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-26px, 18px) scale(1.08); }
}
@keyframes hero-float-c {
  0%, 100% { transform: translate(0, 0) rotate(12deg); }
  50% { transform: translate(16px, 22px) rotate(28deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shape { animation: none; }
}
@media (max-width: 720px) {
  .hero-shape-3, .hero-shape-4 { display: none; }
}
.hero h1 {
  font-size: 48px;
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero p { font-size: 17px; color: var(--color-muted); max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.accent-underline {
  color: #c86f2d;
  font-weight: 800;
}

.hero-inner { display: flex; align-items: center; gap: 56px; margin-bottom: 44px; }
.hero-copy { flex: 1.1; min-width: 320px; }
.hero-copy .hero-actions, .hero-copy p { margin-left: 0; }
.hero-visual { flex: 1; min-width: 280px; display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  z-index: 0;
  width: 76%;
  height: 76%;
  right: 4%;
  bottom: -8%;
  background: var(--color-accent);
  opacity: 0.14;
  border-radius: 40px;
  transform: rotate(-6deg);
}

/* Asimetrik cerceve: kart/gorsel/video hangisi olursa olsun ortak, tek
   kosesi belirgin sekilde daha yuvarlak olan modern bir "frame" icine alinir. */
.hero-media-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16 / 9;
  border-radius: 36px 36px 36px 96px;
  overflow: hidden;
  background: var(--color-ink);
  box-shadow: 0 20px 40px rgba(17,17,17,0.18), 0 4px 10px rgba(17,17,17,0.10);
}
.hero-player-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #171d33, var(--color-ink) 60%);
  position: relative;
}
.hero-media-image, .hero-media-video { width: 100%; height: 100%; }
.hero-media-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-player-card .bars { position: absolute; top: 18px; left: 20px; display: flex; gap: 6px; }
.hero-player-card .bars span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.hero-player-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(44,62,140,0.45);
}
.hero-player-card .play-btn svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.hero-player-card .waveline { position: absolute; bottom: 34px; left: 20px; right: 20px; height: 28px; opacity: .55; }
.hero-player-card .scrubber { position: absolute; bottom: 20px; left: 20px; right: 20px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 100px; }
.hero-player-card .scrubber .fill { width: 42%; height: 100%; background: var(--color-accent); border-radius: 100px; }

.floating-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 7px 10px;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.floating-card .fc-icon { font-size: 14px; }
.floating-card small { display: block; font-weight: 500; color: var(--color-muted); font-size: 9.5px; }
.floating-card-1 { bottom: 8%; left: -8%; }
.floating-card-2 { top: 10%; right: -6%; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-row-item {
  padding: 26px 24px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  transition: background .18s ease;
}
.stat-row-item:hover { background: var(--color-bg); }
.stat-row-item:last-child { border-right: none; }
.stat-row-item .num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-row-item .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); font-weight: 600; margin-top: 2px; }

/* Feature / value-prop sections */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0 50px;
}
.feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-item::after {
  content: '';
  position: absolute;
  top: -34px; right: -34px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.07;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(17,17,17,0.09);
  border-color: var(--color-accent);
}
.feature-item .icon {
  position: relative;
  z-index: 1;
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 38px;
  margin: 0 auto 20px;
}
.feature-item h3 { position: relative; z-index: 1; font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.feature-item p { position: relative; z-index: 1; color: var(--color-muted); font-size: 14px; line-height: 1.55; margin: 0; }

/* Ana sayfa ust hero - eski sayisal istatistik satirinin yerine gelen, CPDREG/canli
   yayin/mesleki gelisim vurgulu 4'lu modern kart grid'i. Mobilde 2 sutuna (col-6) duser. */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hero-highlight-item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 20px 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Ustte, sanki minik bir atacla tutturulmus gibi duran kose susu */
.hero-highlight-item::before {
  content: '📎';
  position: absolute;
  top: -12px;
  right: 14px;
  font-size: 22px;
  transform: rotate(24deg);
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(17,17,17,0.18));
}
/* Hafif egik/asimetrik yerlesim: her kart farkli aciyla, dusey kaymayla ve
   cok seffaf farkli bir pastel tonla durur */
.hero-highlight-item:nth-child(1) { transform: rotate(-2deg) translateY(6px); background: linear-gradient(135deg, #eef3fd 0%, #dbe6fa 100%); }
.hero-highlight-item:nth-child(2) { transform: rotate(1.5deg) translateY(-5px); background: linear-gradient(135deg, #e7f3fc 0%, #cfe6f7 100%); }
.hero-highlight-item:nth-child(3) { transform: rotate(-1.5deg) translateY(4px); background: linear-gradient(135deg, #eaf0fc 0%, #d6e1f6 100%); }
.hero-highlight-item:nth-child(4) { transform: rotate(2deg) translateY(-6px); background: linear-gradient(135deg, #e5f1fb 0%, #c9e2f5 100%); }
.hero-highlight-item:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 14px 28px rgba(17,17,17,0.08);
  border-color: var(--color-border-strong);
}
.hero-highlight-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  margin-bottom: 12px;
}
.hero-highlight-item h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--color-ink); }
.hero-highlight-item p { font-size: 13.5px; color: var(--color-muted); line-height: 1.5; margin: 0; }
@media (max-width: 860px) {
  .hero-highlights { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-highlight-item { padding: 16px 14px; border-radius: 16px; }
}

/* Hakkimizda sayfasi - akreditasyon/canli yayin gibi konu anlatan, saginda gorsel/mockup olan hero bloklari */
.about-feature-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 46px 0;
  border-top: 1px solid var(--color-border);
}
.about-feature-hero:first-of-type { border-top: none; padding-top: 6px; }
.about-feature-copy { flex: 1.15; min-width: 300px; }
.about-feature-copy h2 { font-size: 27px; line-height: 1.3; margin: 10px 0 16px; }
.about-feature-copy p { color: var(--color-muted); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.about-feature-copy p strong { color: var(--color-ink); }
.about-feature-visual { position: relative; flex: 1; min-width: 260px; display: flex; justify-content: center; }
@media (max-width: 860px) {
  .about-feature-hero { flex-direction: column; gap: 28px; padding: 32px 0; }
}

/* Hakkimizda sayfasindaki gercek fotograflar icin ortak asimetrik cerceve */
.about-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3.2;
  border-radius: 28px 28px 28px 80px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17,17,17,0.16);
}
.about-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-frame .cpd-chip-photo {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(16,27,61,0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.about-photo-frame .live-badge-photo {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 5px 11px;
  border-radius: 999px;
  animation: live-pulse 1.8s ease-in-out infinite;
}
.about-photo-frame .live-viewers-photo {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  background: rgba(16,27,61,0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}

/* Kategori bazli manuel kaydirilan slider (anasayfa) */
.category-slider-section { margin-bottom: 46px; }
.home-sections { padding-top: 42px; }

/* Kategori satiri basligi: sade, her kategori listesinin ustunde tekrar eden basit baslik */
.category-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.category-row-count {
  display: block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--color-accent); margin-bottom: 4px;
}
.category-row-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: var(--color-text); }
.category-row-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px;
  color: var(--color-accent) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.category-row-link:hover { text-decoration: underline !important; }
@media (max-width: 720px) {
  .category-row-title { font-size: 19px; }
}

/* Kategoriler bolumunun basinda, bir kez gosterilen dusuk yukseklikli tanitim hero bandi */
.category-mini-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 92px;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 34px;
  color: #fff;
}
.category-mini-hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.category-mini-hero-shape-1 { width: 160px; height: 160px; top: -80px; right: 8%; background: #fff; opacity: 0.06; }
.category-mini-hero-shape-2 { width: 90px; height: 90px; bottom: -50px; right: 22%; background: var(--color-accent); opacity: 0.16; }
.category-mini-hero-text { position: relative; z-index: 1; }
.category-mini-hero-count {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255,255,255,0.16); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.category-mini-hero-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; color: #fff; }
.category-section-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  font-weight: 700; font-size: 13px;
  color: #fff !important;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.category-section-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateX(2px);
}
@media (max-width: 720px) {
  .category-mini-hero { padding: 18px 20px; min-height: 76px; }
  .category-mini-hero-title { font-size: 19px; }
}

/* Ana sayfa - ilk kategori satirindan sonra, yonetim panelinden kontrol edilebilen tanitim/video hero.
   Tamamen seffaf (sayfa arka planiyla ayni), sade ve modern. */
.promo-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 44px;
  background: transparent;
  padding: 12px 0 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--color-border);
}
.promo-hero-copy { position: relative; flex: 1.1; min-width: 280px; }
.promo-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-alt);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .04em;
  margin-bottom: 0;
}
.promo-hero-copy h2 { font-size: 29px; line-height: 1.25; margin: 16px 0 14px; color: var(--color-ink); }
.promo-hero-copy p { color: var(--color-muted); font-size: 15.5px; margin: 0; max-width: 480px; }
.promo-hero-video {
  position: relative;
  flex: 1;
  min-width: 300px;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(17,17,17,0.12);
}
.promo-hero-video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .promo-hero { flex-direction: column; padding: 8px 0 32px; gap: 24px; }
}
.slider-row { position: relative; margin-top: 18px; }
.manual-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.manual-slider-item { width: 280px; flex-shrink: 0; scroll-snap-align: start; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.slider-arrow-prev { left: -18px; }
.slider-arrow-next { right: -18px; }
.slider-arrow:hover { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
@media (max-width: 720px) {
  .slider-arrow { display: none; }
}

/* Akreditasyon / guven hero (anasayfa, kurslar bolumunun altinda) - seffaf */
.accredit-hero { position: relative; overflow: hidden; background: transparent; padding: 60px 0; border-top: 1px solid var(--color-border); }
.accredit-hero-shape-1 { position: absolute; top: -120px; left: -100px; width: 320px; height: 320px; border-radius: 50%; background: var(--color-accent); opacity: 0.10; }
.accredit-hero-shape-2 { position: absolute; bottom: -140px; right: 6%; width: 280px; height: 280px; border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; background: var(--color-ink); opacity: 0.035; }
.accredit-hero-shape-3 {
  position: absolute; top: 12%; right: 28%;
  width: 0; height: 0;
  border-left: 60px solid transparent; border-right: 60px solid transparent;
  border-bottom: 100px solid var(--color-accent);
  opacity: 0.07; transform: rotate(18deg);
}
.accredit-hero-inner { position: relative; z-index: 1; display: flex; gap: 64px; align-items: center; }
.accredit-copy { flex: 1; min-width: 320px; }
.accredit-copy .eyebrow { color: var(--color-accent-dark); }
.accredit-copy h2 { font-size: 32px; line-height: 1.25; margin: 12px 0 16px; color: var(--color-ink); }
.accredit-copy p { color: var(--color-muted); font-size: 16px; max-width: 520px; margin: 0 0 26px; }
.accredit-visual { flex: 1; min-width: 280px; display: flex; justify-content: center; position: relative; }
.accredit-frame-wrap { position: relative; width: 100%; max-width: 400px; }
.accredit-frame {
  position: relative;
  width: 100%;
  transform: rotate(-3deg);
}
.accredit-frame::before {
  content: '';
  position: absolute;
  top: -20px; right: -24px;
  width: 88%; height: 92%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: 28px;
  z-index: 0;
}
.accredit-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px 28px 6px 28px;
  display: block;
  box-shadow: 0 28px 50px rgba(0,0,0,0.4);
  transform: rotate(3deg);
}
.accredit-frame-wrap .floating-card-1 { bottom: -14px; left: -6%; transform: rotate(-4deg); }
.accredit-frame-wrap .floating-card-2 { top: 6%; right: -6%; transform: rotate(4deg); }

@media (max-width: 900px) {
  .accredit-hero-inner { flex-direction: column; gap: 64px; }
  .accredit-frame { max-width: 300px; transform: rotate(-2deg); }
}

/* Footer */
.site-footer { background: var(--color-ink); color: #b9b9b9; margin-top: 70px; padding-top: 50px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 36px;
}
.footer-brand p { font-size: 14px; color: #a3a3a3; margin-top: 12px; max-width: 260px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.site-footer a { display: block; color: #b9b9b9; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8a8a8a;
}

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; border-radius: var(--radius-lg); }
.video-embed iframe { position: absolute; top:0; left:0; width: 100%; height: 100%; border: 0; }

.progress-bar { background: var(--color-border); border-radius: 100px; height: 8px; overflow: hidden; }
.progress-bar .fill { background: var(--color-accent); height: 100%; }

.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { border-bottom: 1px solid var(--color-border); }
.lesson-list a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: var(--color-text); text-decoration: none; }
.lesson-list a.active { background: var(--color-bg); color: var(--color-accent); font-weight: 650; }

.rating-stars { color: #e0a526; letter-spacing: 2px; }

/* Modern kurs detay sayfasi */
.course-hero { background: var(--color-ink); color: #fff; padding: 36px 0 110px; }
.course-hero .breadcrumb { font-size: 14px; color: #9c9c9c; margin-bottom: 16px; }
.course-hero .breadcrumb a { color: #cfcfcf; text-decoration: none; }
.course-hero .breadcrumb a:hover { color: #fff; }
.course-hero h1 { color: #fff; font-size: 32px; line-height: 1.25; margin: 12px 0 12px; max-width: 720px; }
.course-hero .lead { color: #cfcfcf; max-width: 640px; font-size: 16px; margin: 0 0 20px; }
.badge-accent { background: var(--color-accent); color: #fff; }
.course-hero-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; color: #d8d8d8; margin-bottom: 20px; }
.course-hero-instructor { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: #fff !important; }
.course-hero-instructor img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-sm-empty {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

.course-layout { display: flex; gap: 32px; margin-top: -76px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 60px; }
.course-main { flex: 2; min-width: 320px; }
.course-description { color: var(--color-text); line-height: 1.7; }
.course-purchase-card { flex: 1; min-width: 300px; position: sticky; top: 90px; }
.course-purchase-card .card { overflow: hidden; box-shadow: 0 16px 32px rgba(17,17,17,0.14); }
.course-purchase-card .thumb-wrap { aspect-ratio: 16/9; background: var(--color-bg-alt); }
.course-purchase-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-price-box {
  position: relative;
  text-align: center;
  padding: 30px 24px 26px;
  background: linear-gradient(135deg, #b3184f 0%, #d6336c 55%, #ec4899 100%);
  color: #fff;
  overflow: hidden;
}
.course-price-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255,255,255,0.18), transparent 45%),
              radial-gradient(circle at 88% 88%, rgba(255,255,255,0.14), transparent 45%);
  pointer-events: none;
}
.course-price-box > * { position: relative; z-index: 1; }
.course-price-tag {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.course-price-value { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.course-price-value .decimals { font-size: 20px; font-weight: 600; opacity: .85; }
.course-price-caption { font-size: 12.5px; opacity: .8; margin: 6px 0 18px; }
.btn-white { background: #fff; border-color: #fff; color: #b3184f !important; }
.btn-white:hover { background: #fff0f5; border-color: #fff0f5; }
.course-price-social { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 12.5px; opacity: .95; flex-wrap: wrap; }
.course-price-row { font-size: 28px; font-weight: 700; margin-bottom: 14px; text-align: center; }
.course-payment-hint {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 16px;
}
.course-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.course-feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-text); font-weight: 500; }
.course-feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border-radius: 50%;
  font-size: 13px;
}

/* Mobilde daima gorunur, sabit alt satin alma cubugu */
.course-mobile-cta { display: none; }
@media (max-width: 900px) {
  .course-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 12px 18px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(17,17,17,0.10);
  }
  .course-mobile-cta-info { display: flex; flex-direction: column; line-height: 1.25; }
  .course-mobile-cta-info strong { font-size: 19px; font-weight: 800; color: var(--color-ink); }
  .course-mobile-cta-info span { font-size: 11px; color: var(--color-muted); }
  .course-mobile-cta .btn { flex-shrink: 0; padding: 12px 24px; }
  .course-layout { margin-bottom: 84px; }
}

/* Kurs detay sayfasi - "Bu Kurs Canli Yayinlanacak" bilgi karti (modern, dikkat cekici) */
.course-live-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #b3184f 0%, #d6336c 55%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 16px 32px rgba(179,24,79,0.25);
}
.course-live-card-shape {
  position: absolute;
  top: -40%; right: -10%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  pointer-events: none;
}
.course-live-card > * { position: relative; z-index: 1; }
.course-live-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 800;
}
.course-live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: live-pulse-white 1.6s ease-in-out infinite;
}
.course-live-card-date {
  display: inline-block;
  margin: 12px 0 0;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.course-live-card-hint { margin: 14px 0 0; font-size: 13.5px; color: rgba(255,255,255,0.9); }
.course-live-card-cta { margin-top: 16px; }

/* Kurs detay sayfasi - sayfanin en ustunde tam genislikte, dikkat cekici canli yayin geri sayim banner'i */
.live-countdown-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #b3184f 0%, #d6336c 45%, #ec4899 100%);
  color: #fff;
  padding: 16px 0;
}
.live-countdown-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.live-countdown-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.live-countdown-banner-info { display: flex; align-items: center; gap: 14px; }
.live-countdown-banner-dot {
  width: 12px; height: 12px; flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse-white 1.6s infinite;
}
@keyframes live-pulse-white {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}
.live-countdown-banner-badge {
  display: inline-block;
  background: rgba(255,255,255,0.24);
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-right: 10px;
  vertical-align: middle;
}
.live-countdown-banner-text { font-size: 15px; font-weight: 650; vertical-align: middle; }
.live-countdown-banner .live-countdown-timer { display: flex; gap: 10px; }
.live-countdown-banner .live-countdown-unit {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  min-width: 58px;
  padding: 7px 8px;
  text-align: center;
}
.live-countdown-banner .live-countdown-unit span { display: block; font-size: 23px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.live-countdown-banner .live-countdown-unit small { display: block; font-size: 9.5px; color: rgba(255,255,255,0.85); letter-spacing: .05em; margin-top: 2px; text-transform: uppercase; }
@media (max-width: 720px) {
  .live-countdown-banner-inner { flex-direction: column; align-items: flex-start; }
  .live-countdown-banner .live-countdown-unit { min-width: 48px; padding: 6px 5px; }
  .live-countdown-banner .live-countdown-unit span { font-size: 18px; }
}

.curriculum-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-surface);
}
.curriculum-section summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.curriculum-section summary::-webkit-details-marker { display: none; }
.curriculum-section summary::after { content: '\25BE'; color: var(--color-muted); }
.curriculum-section[open] summary::after { content: '\25B4'; }
.curriculum-lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.curriculum-lessons li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.curriculum-lessons li:last-child { border-bottom: none; }
.lesson-icon { margin-right: 8px; color: var(--color-accent); }
.lesson-lock { color: var(--color-muted); }

@media (max-width: 900px) {
  .course-layout { margin-top: -50px; }
  .course-purchase-card { position: static; }
}

@media (max-width: 980px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-copy p { max-width: none; }
  .hero-visual { width: 100%; margin: 0 auto; }
  .hero-media-frame { max-width: none; }
  .floating-card-1 { left: 4%; }
  .floating-card-2 { right: 4%; }
  .dashboard-columns { grid-template-columns: 1fr !important; }
}

@media (max-width: 860px) {
  .sidebar-toggle { display: flex; }
  .app-shell { flex-direction: column; padding: 16px; max-width: 100%; overflow-x: hidden; }
  .sidebar { display: none; width: 100%; position: static; }
  .sidebar-open .sidebar { display: flex; flex-direction: column; }
  .main-content { width: 100%; max-width: 100%; }

  /* Tablolari mobilde yatay kaydirma yerine kart/akordeon goruntusune
     donusturur - JS (enhanceResponsiveTables) her td'ye data-label ekler
     ve 2'den fazla kolonlu satirlara "Detaylari Goster" acilir-kapanir
     kolon ekler, boylece sayfa sagini tasan genis tablolar yerine dikey,
     ekrana tam sigan kartlar gorunur. */
  .table-responsive { overflow-x: visible; border: none; border-radius: 0; }
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive tr {
    display: block;
    width: 100%;
  }
  .table-responsive thead { display: none; }
  .table-responsive tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .table-responsive th,
  .table-responsive td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border-bottom: 1px solid var(--color-border);
    white-space: normal;
    text-align: right;
  }
  .table-responsive tr th:last-child,
  .table-responsive tr td:last-child { border-bottom: none; }
  .table-responsive td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-muted);
    text-align: left;
    margin-right: auto;
  }
  .table-responsive tr td:first-child {
    background: var(--color-bg-alt);
    font-weight: 700;
    text-align: left;
    justify-content: flex-start;
  }
  .table-responsive tr td:first-child::before { content: none; }
  .table-responsive tr:not(.dt-expanded) td:not(:first-child):not(.dt-toggle-cell) { display: none; }
  .dt-toggle-cell {
    display: flex !important;
    justify-content: center !important;
    cursor: pointer;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 13px;
    background: var(--color-bg-alt);
  }
  .dt-toggle-cell::before { content: none; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-inner span:first-child { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .floating-card { font-size: 10px; padding: 6px 9px; }
  .floating-card-1 { bottom: 4%; }
  .floating-card-2 { top: 6%; }
}

/* Modern onay modali (native confirm() yerine) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.55);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(17,17,17,0.25);
  animation: modal-pop .15s ease;
}
@keyframes modal-pop {
  from { transform: scale(.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-box h3 { margin: 0 0 10px; font-size: 18px; }
.modal-box p { color: var(--color-muted); margin: 0 0 22px; font-size: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
