/* panels.css - Öğrenci, AI/Mönet, Danışma, Yönetim Panelleri */
/* ★ Premium Design System v2.0 — Glassmorphism, Micro-Animations, Refined Aesthetics */
:root {
  --duration-fast: 220ms;
  --duration-med: 350ms;
  --ease-smooth-out: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --glass-white: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.10);
  --glow-green: 0 0 20px rgba(var(--brand-rgb), 0.15);
  --glow-green-strong: 0 0 30px rgba(var(--brand-rgb), 0.25);
}

/* STAT KART */
.stat-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) var(--ease-smooth-out), border-color var(--duration-fast) ease; }
a.stat-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 32px -8px rgba(16,35,41,.16); border-color: var(--border-strong); }
.stat-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--stat-tint, var(--tint)); color: var(--stat-color, var(--dark-green)); transition: transform var(--duration-fast) var(--ease-spring); }
a.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-3deg); }
.stat-icon .i { width: 24px; height: 24px; }
.stat-body .k { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-body .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--text); margin-top: 3px; }
.stat-body .v small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 5px; }
.stat-card.is-accent { background: linear-gradient(135deg, var(--tint) 0%, var(--surface) 70%); border-color: var(--tint-strong); }
.stat-card.is-warn { --stat-tint:#FFF4E0; --stat-color:#9A5B00; background: linear-gradient(135deg,#FFF8EA 0%,var(--surface) 70%); border-color:#F3DDB0; }
.stat-card.is-danger { --stat-tint:#FDEDEC; --stat-color:#B42318; background: linear-gradient(135deg,#FFF0EF 0%,var(--surface) 70%); border-color:#FDDBD9; }

/* IZGARA */
.panel-grid { display: grid; gap: 20px; }
.panel-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.panel-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.panel-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.panel-grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }

/* ÖĞRENCI HOŞGELDIN */
.student-welcome { background: linear-gradient(135deg,var(--ink) 0%,var(--ink-4) 40%,var(--ink-5) 100%); border: 1px solid var(--ink-line); position: relative; overflow: hidden; }
.student-welcome::before { content:''; position: absolute; left:-80px; top:-80px; width:400px; height:400px; border-radius:50%; background: radial-gradient(circle,rgba(var(--brand-rgb), .12),transparent 65%); }
.week-dots { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.week-dots span { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.45); }
.week-dots i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.10); font-style: normal; font-size: 14px; transition: all .2s ease; }
.week-dots i.on { background: rgba(var(--brand-rgb), .18); border-color: rgba(var(--brand-rgb), .40); color: var(--primary-green); box-shadow: 0 0 12px rgba(var(--brand-rgb), .15); }
.week-dots i.today { box-shadow: 0 0 0 2.5px rgba(var(--brand-rgb), .55), 0 0 16px rgba(var(--brand-rgb), .2); }
.welcome-stats { display: flex; gap: 14px; flex-wrap: wrap; }
/* Telefonda dört sayaç 2×2 düzende (esnek sarmada 3. ve 4. sayaç ayrı satırlara düşüp düzensiz görünüyordu) */
@media (max-width: 768px) { .welcome-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .welcome-stats .wstat { min-width: 0; } }
.wstat { display: grid; gap: 3px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); min-width: 110px; backdrop-filter: blur(8px); transition: all .25s ease; }
a.wstat:hover { background: rgba(255,255,255,.10); border-color: rgba(var(--brand-rgb), .30); transform: translateY(-2px); box-shadow: var(--glow-green); }
.wstat .k { font-size: 10.5px; font-weight: 800; color: rgba(255,255,255,.50); text-transform: uppercase; letter-spacing: .06em; }
.wstat .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; line-height: 1.2; }
.wstat .v small { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: rgba(255,255,255,.40); margin-left: 5px; }

/* DEVAM ET KARTI */
.continue-card { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 0; overflow: hidden; border-radius: 22px; transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) var(--ease-smooth-out); }
.continue-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -14px rgba(var(--brand-rgb), .28); }
.continue-card .cover { height: 100%; min-height: 170px; background: var(--surface-2); overflow: hidden; }
.continue-card .cover svg, .continue-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth-out); }
.continue-card:hover .cover svg, .continue-card:hover .cover img { transform: scale(1.08); }
.continue-card .body { padding: 28px 32px; display: grid; align-content: center; gap: 14px; }
.play-fab { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--ink-rgb), .50); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.continue-card:hover .play-fab { opacity: 1; }
.play-fab .i { width: 52px; height: 52px; color: #fff; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); transition: transform .3s var(--ease-spring); }
.continue-card:hover .play-fab .i { transform: scale(1.1); }

/* MINI DERS KARTI */
.my-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 16px; }
.my-mini { display: grid; gap: 6px; padding: 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) var(--ease-smooth-out), border-color var(--duration-fast) ease; }
.my-mini:hover { transform: translateY(-3px) scale(1.005); box-shadow: 0 10px 28px -8px rgba(16,35,41,.14); border-color: var(--border-strong); }
.my-mini .top { display: flex; align-items: center; gap: 14px; }
.my-mini .ttl { font-weight: 800; font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.my-mini .ring { --size: 50px; }
.my-mini .ring::before { width: 38px; height: 38px; }
.my-mini .ring > * { font-size: 12px; }
.my-mini .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.my-mini .foot a { font-weight: 800; color: var(--dark-green); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s ease; }
.my-mini .foot a:hover { gap: 8px; }
.my-mini.is-waiting { border-color: #F3DDB0; }
.my-mini.is-completed { background: linear-gradient(135deg, var(--tint) 0%, var(--surface) 80%); }

/* MC KARTLAR */
.mc-stats { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 16px; }
.mc-stat { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) var(--ease-smooth-out); }
a.mc-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mc-stat .k { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mc-stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 3px; }
.mc-stat .v small { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 5px; }
.mc-stat-main { background: linear-gradient(135deg, var(--tint), var(--surface) 70%); border-color: var(--tint-strong); }
.mc-stat.is-warn { border-color: #F3DDB0; background: linear-gradient(135deg,#FFF8EA,var(--surface) 70%); }

/* DERS YOLU */
.ibox-warn { background: var(--warning-bg); color: var(--warning); }
.lpath { position: relative; display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; list-style: none; margin: 14px 0 0; padding: 4px 2px; }
.lp { display: flex; align-items: center; flex: none; }
.lp + .lp::before { content:''; width: 14px; height: 3px; border-radius: 2px; background: var(--border-strong); }
.lp.new-mod::before { width: 26px; background: repeating-linear-gradient(90deg,var(--border-strong) 0 4px,transparent 4px 8px); }
.lp.is-done + .lp::before { background: var(--primary-green); }
.lp.is-done + .lp.new-mod::before { background: repeating-linear-gradient(90deg,var(--primary-green) 0 4px,transparent 4px 8px); }
.lp a { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); color: var(--subtle); transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-smooth-out); }
.lp a .i { width: 13px; height: 13px; stroke-width: 2.6; }
.lp a:hover, .lp a:focus-visible { transform: scale(1.22); box-shadow: 0 0 0 6px rgba(var(--brand-rgb), .12); }
.lp.is-done a { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.lp.is-open a { border-color: var(--primary-green); background: var(--tint); color: var(--dark-green); }
.lp.is-current a { width: 34px; height: 34px; background: var(--sidebar); border-color: var(--sidebar); color: var(--primary-green); animation: lp-pulse 2.2s ease-out infinite; }
.lp.is-current a .i { width: 14px; height: 14px; fill: currentColor; }
.lp.is-waiting a { border-color: #E9C98A; background: var(--warning-bg); color: var(--warning); }
.lp.is-locked a, .lp.is-enroll a { border-style: dashed; background: var(--surface-2); color: #B4C1BE; }
.lp.is-locked a .i, .lp.is-enroll a .i { width: 11px; height: 11px; }
@keyframes lp-pulse { 0%{box-shadow:0 0 0 0 rgba(var(--brand-rgb), .45)} 70%,100%{box-shadow:0 0 0 10px rgba(var(--brand-rgb), 0)} }
.is-compact.lpath { margin-top: 10px; }
.is-compact .lp a { width: 20px; height: 20px; border-width: 2px; }
.is-compact .lp a .i { width: 10px; height: 10px; }
.is-compact .lp.is-current a { width: 26px; height: 26px; }
.is-compact .lp + .lp::before { width: 8px; }
.is-compact .lp.new-mod::before { width: 16px; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lp-legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface-2); }
.lp-legend .lg-done { background: var(--primary-green); border-color: var(--primary-green); }
.lp-legend .lg-cur { background: var(--sidebar); border-color: var(--sidebar); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .3); }
.lp-legend .lg-wait { background: var(--warning-bg); border-color: #E9C98A; }
.lp-legend .lg-lock { border-style: dashed; }
.lp-legend .lg-open { background: var(--tint); border-color: var(--tint-strong); }

/* MC KART DETAY */
.mc-list { container-type: inline-size; }
.mc-card { position: relative; display: grid; grid-template-columns: 200px minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 18px 26px 18px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow var(--duration-med) var(--ease-smooth-out), border-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-spring); }
.mc-card:hover { box-shadow: 0 12px 36px -8px rgba(16,35,41,.15); border-color: var(--border-strong); transform: translateY(-2px); }
.mc-card.is-waiting { border-color: #F3DDB0; }
.mc-card.is-waiting::before { content:''; position: absolute; left:-1px; top:20px; bottom:20px; width:4px; border-radius:0 4px 4px 0; background:#E0A21A; }
.mc-card.is-active::before { content:''; position: absolute; left:-1px; top:20px; bottom:20px; width:4px; border-radius:0 4px 4px 0; background:var(--primary-green); }
.mc-card.is-completed::before { content:''; position: absolute; left:-1px; top:20px; bottom:20px; width:4px; border-radius:0 4px 4px 0; background:var(--dark-green); }
.mc-cover { display: block; align-self: stretch; min-height: 140px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.mc-cover svg, .mc-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s var(--ease-smooth-out); }
.mc-card:hover .mc-cover svg, .mc-card:hover .mc-cover img { transform: scale(1.06); }
.mc-body { min-width: 0; padding: 6px 0; }
.mc-title { margin-top: 10px; font-size: 18px; }
.mc-title a:hover { color: var(--dark-green); }
.mc-body > .xs { margin-top: 4px; }
.mc-mode { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.mc-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); flex-wrap: wrap; }
.is-waiting .mc-next { background: #FFF8EA; }
.is-completed .mc-next { background: var(--tint); }
.mc-next-text { display: grid; gap: 2px; min-width: 0; }
.mc-next-text strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-next-text .i-sm { vertical-align: -2px; }
.mc-ring { display: grid; justify-items: center; gap: 6px; }

/* ==========================================================================
   MÖNET AI DEĞERLENDİRME & DANIŞMA & GELİŞMİŞ PANEL STİLLERİ
   ========================================================================== */

/* Ortak Panel Sekmeleri & Hero */
.panel-tabs-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 6px 4px 16px; margin-bottom: 22px; border-bottom: 2px solid var(--border); scrollbar-width: none; }
.panel-tabs-bar::-webkit-scrollbar { display: none; }
.panel-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); transition: all .2s var(--ease-smooth-out); text-decoration: none; white-space: nowrap; }
.panel-tab:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.panel-tab.is-active { color: #fff; background: linear-gradient(135deg, var(--ink), #0D2D26); border-color: transparent; box-shadow: 0 4px 16px -4px rgba(var(--ink-rgb), 0.4); }
.panel-tab .badge-count { background: rgba(255,255,255,0.2); color: inherit; padding: 1px 8px; border-radius: 10px; font-size: 11px; }

/* Yönetim hero ve öğrenci karşılama alanlarındaki ışık hareketi */
@keyframes hero-glow-drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-20px, 15px) scale(1.05); } }

/* ==========================================================================
   ÜST MENÜ TASARIMI (TOPBAR NAVIGATION - PREMIUM GLASSMORPHISM)
   ========================================================================== */

/* ==========================================================================
   ÇİFT MODLU DÜZEN (ÖĞRENCİ: ÜST MENÜ | YÖNETİM & MÖNET & ÖĞRETMEN: YAN MENÜ)
   ========================================================================== */

/* Öğrenci Modu: Üst Menü, Tam Genişlik */
.shell.shell-student, body.is-student-portal .shell {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
  width: 100% !important;
}
.shell.shell-student .sidebar {
  display: none !important;
}
.shell.shell-student .topbar {
  display: none !important;
}
.shell.shell-student .top-nav-bar {
  display: block !important;
}
.shell.shell-student .main {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* Yönetim & Mönet & Öğretmen Modu: Yan Menü (Sidebar) + Cockpit Topbar */
.shell.shell-sidebar, body.is-admin-suite .shell {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  min-height: 100vh;
  width: 100% !important;
}
.shell.shell-sidebar .top-nav-bar {
  display: none !important;
}
.shell.shell-sidebar .sidebar {
  display: flex !important;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  background: var(--ink);
  border-right: 1px solid rgba(var(--brand-rgb),  0.12);
  padding: 20px 14px;
  overflow-y: auto;
}
.shell.shell-sidebar .topbar {
  display: flex !important;
}
.shell.shell-sidebar .main {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* Admin Topbar & Yan Menü Ek Stilleri */
.admin-topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.10);
  color: var(--dark-green);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
}
.admin-status-badge .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 10px var(--primary-green);
  animation: pulse-dot-anim 2s infinite ease-in-out;
}
.sidebar-portal-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: #B9CCC7;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.sidebar-portal-btn:hover {
  background: rgba(var(--brand-rgb), 0.12);
  color: #fff;
  border-color: rgba(var(--brand-rgb), 0.30);
  transform: translateX(2px);
}

/* Açık Mavi (Light Blue) Premium Üst Gezinti Barı */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #EBF5FE 0%, #E1EFFC 50%, #D6EBFB 100%);
  color: #0F2942;
  border-bottom: 1.5px solid #BFDCF6;
  box-shadow: 0 4px 20px -2px rgba(14, 116, 204, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
}

.top-nav-inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible;
}

/* Marka / Logo */
.top-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  color: #0A2540;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  transition: opacity .2s ease;
}
.top-brand:hover { opacity: 0.9; }
.top-brand .brand-img { --brand-h: 48px; }

.top-brand-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 1px;
}

.top-brand-badge.admin {
  background: rgba(235, 87, 87, 0.15);
  color: #DC2626;
  border: 1px solid rgba(235, 87, 87, 0.30);
}

.top-brand-badge.inst {
  background: rgba(245, 166, 35, 0.18);
  color: #D97706;
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.top-brand-badge.student {
  background: rgba(var(--brand-rgb),  0.15);
  color: #0A8F4A;
  border: 1px solid rgba(var(--brand-rgb),  0.30);
}

/* Yatay Üst Menü Linkleri (Geniş & Net) */
.top-menu-links {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.top-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #1E3A5F;
  text-decoration: none;
  transition: all .2s var(--ease-smooth-out);
  white-space: nowrap;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.top-menu-item:hover {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
}

.top-menu-item.is-active {
  background: #0284C7;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.top-menu-item .i {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}
.top-menu-item.is-active .i { opacity: 1; color: #FFFFFF; }

.top-nav-count {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(14, 165, 233, 0.15);
  color: #0369A1;
}
.top-nav-count.is-hot {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}

/* Sağ Eylem Araçları */
.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-search-box {
  position: relative;
  width: 165px;
  transition: width .3s var(--ease-smooth-out);
}
.top-search-box:focus-within {
  width: 215px;
}
.top-search-box input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 32px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1.5px solid #BFDCF6;
  color: #0F172A;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .25s var(--ease-smooth-out);
}
.top-search-box input::placeholder { color: #64748B; font-weight: 500; }
.top-search-box input:focus {
  outline: none;
  border-color: #0284C7;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(2,132,199,0.18), 0 4px 16px rgba(0,0,0,0.06);
}
.top-search-box .search-ic {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #0284C7;
  pointer-events: none;
  width: 14px;
  height: 14px;
}
/* Öğrenci / veli üst menüsündeki dar arama kutusunda (140–165 px) kısayol rozeti yer tutucu metnin üstüne biniyordu;
   orada gizlenir (Ctrl K yine çalışır). Geniş yönetim üst çubuğunda görünür kalır. */
.top-nav-actions .top-search-box kbd { display: none; }
.top-search-box input { text-overflow: ellipsis; }
.top-nav-actions .top-search-box input { padding-right: 12px; }
.top-search-box kbd {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
}

.top-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #FFFFFF;
  border: 1.5px solid #BFDCF6;
  color: #1E3A5F;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: all .2s var(--ease-smooth-out);
}
.top-nav-btn .i { width: 16px; height: 16px; }
.top-nav-btn:hover {
  background: #F0F9FF;
  color: #0284C7;
  border-color: #0284C7;
  transform: translateY(-1px);
}

.top-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #BFDCF6;
  cursor: pointer;
  color: #0A2540;
  transition: all .2s var(--ease-smooth-out);
}
.top-user-pill:hover {
  background: #F0F9FF;
  border-color: #0284C7;
  box-shadow: 0 0 12px rgba(2,132,199,0.12);
}
.top-user-pill .name {
  font-size: 13px;
  font-weight: 700;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Streak Chip (Üst menüdeki seri göstergesi) */
.streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #BFDCF6;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  transition: all .2s ease;
}
.streak-chip.is-lit {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #B45309;
  box-shadow: 0 0 12px rgba(245,166,35,.20);
}
.streak-chip .flame { font-size: 14px; line-height: 1; }

/* ==========================================================================
   YÖNETİM PANELİ GELİŞTİRMESİ (EXECUTIVE COMMAND CENTER v2)
   ========================================================================== */

/* Yönetim Hero Komuta Alanı */
.admin-cockpit-hero {
  position: relative;
  padding: 36px 40px;
  border-radius: 26px;
  background: linear-gradient(135deg, #031110 0%, #061D1A 35%, #0A2C26 65%, #082520 100%);
  color: #fff;
  border: 1px solid rgba(var(--brand-rgb), 0.18);
  box-shadow: 0 20px 60px -16px rgba(var(--ink-6-rgb), 0.65), var(--glow-green);
  overflow: hidden;
  margin-bottom: 28px;
}
.admin-cockpit-hero::before {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.admin-cockpit-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.14) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-glow-drift 10s ease-in-out infinite alternate;
}

.cockpit-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.10);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  color: var(--primary-green);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.cockpit-radar-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.35);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(var(--brand-rgb), 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); }
}

/* Komuta Masası Kartları */
.command-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.command-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  min-height: 160px;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) ease, border-color var(--duration-fast) ease;
}
.command-tile::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface-2);
  opacity: 0.5;
  transition: transform .4s var(--ease-smooth-out), opacity .3s ease;
  pointer-events: none;
}
.command-tile:hover::after { transform: scale(1.3); opacity: 0.8; }
.command-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(16, 35, 41, 0.18);
  border-color: var(--border-strong);
}
.command-tile.has-pending {
  border-color: #F5A623;
  background: linear-gradient(135deg, #FFF9ED 0%, var(--surface) 55%);
}
.command-tile.has-pending::after { background: #FEF3C7; }
.command-tile.is-ai {
  border-color: rgba(var(--brand-rgb),  0.30);
  background: linear-gradient(135deg, rgba(var(--brand-rgb),  0.04) 0%, var(--surface) 55%);
}
.command-tile.is-ai::after { background: rgba(var(--brand-rgb), 0.08); }

/* Köşedeki süs dairesi metnin üstüne binmesin */
.tile-top, .tile-bottom { position: relative; z-index: 1; }
.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tile-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  transition: transform .25s var(--ease-spring);
}
.command-tile:hover .tile-icon-box { transform: scale(1.08) rotate(-3deg); }
.command-tile.has-pending .tile-icon-box {
  background: linear-gradient(135deg, #FEF3C7, #FEEFC3);
  color: #B45309;
}
.command-tile.is-ai .tile-icon-box {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.12), rgba(var(--brand-rgb), 0.08));
  color: var(--dark-green);
}

.tile-badge-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  letter-spacing: .02em;
}
.command-tile.has-pending .tile-badge-pill {
  background: linear-gradient(135deg, #B45309, #9A4708);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245,166,35,.25);
}

.tile-bottom {
  margin-top: 20px;
}
.tile-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}
.tile-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

/* Canlı İstatistik Çubukları & Widget */
.admin-metric-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) ease;
}
.admin-metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.admin-metric-card .m-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-metric-card .m-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-top: 8px;
}
.admin-metric-card .m-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Metric-dark bloklar (AI Telemetri paneli içinde) */
.metric-dark {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(14,42,38,0.7);
  border: 1px solid rgba(27,62,56,0.6);
  backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease;
}
.metric-dark:hover { background: rgba(14,42,38,0.9); border-color: rgba(var(--brand-rgb), .2); }
.metric-dark .v {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-top: 4px;
}

/* Admin satır stilleri */
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  transition: background .15s ease;
  border-radius: 0;
}
.admin-row:hover { background: var(--surface-2); }

/* Margin bottom helpers */
.mb-24 { margin-bottom: 24px; }
.mb-16 { margin-bottom: 16px; }

/* Stacking on smaller screens */
[data-stack-md] { }
@media (max-width: 900px) {
  [data-stack-md] { grid-template-columns: minmax(0,1fr) !important; }
}

/* Mobile Top Nav Responsive */
@media (max-width: 1024px) {
  .top-nav-inner { padding: 0 16px; height: 58px; gap: 12px; }
  .top-brand-badge { display: none; }
  .top-search-box { width: 160px; }
  .top-search-box:focus-within { width: 200px; }
  .top-search-box kbd { display: none; }
  .top-menu-item { padding: 6px 10px; font-size: 12.5px; }
}

@media (max-width: 768px) {
  .top-nav-inner { height: 54px; gap: 8px; }
  .top-search-box { width: 120px; }
  .top-search-box:focus-within { width: 170px; }
  .top-menu-item .i { display: none; }
  .top-menu-item { padding: 6px 8px; font-size: 12px; gap: 4px; }
  .top-user-pill .name { display: none; }
  .command-hub-grid { grid-template-columns: minmax(0,1fr); }
  .mc-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-cockpit-hero { padding: 24px 20px; border-radius: 20px; }
  .panel-tabs-bar { gap: 4px; }
  .panel-tab { padding: 7px 12px; font-size: 12.5px; }
  .rel-courses-grid { grid-template-columns: minmax(0,1fr); }
  .continue-card { grid-template-columns: minmax(0,1fr); }
  .continue-card .cover { min-height: 180px; }
}
.card-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* ==========================================================================
   PUBLIC SHOWCASE (SİTE VİTRİNİ / TANITIM VİDEOSU & TÜM AKADEMİ BİLGİLERİ)
   ========================================================================== */

/* Topnav Guest Actions */
.top-nav-guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Misafir: ana site başlığındaki gibi metin bağlantısı "Giriş yap" + birincil "Başvuru yap" */
.top-nav-signin { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.top-nav-signin:hover { color: var(--brand-soft); }
.top-nav-auth {
  background: linear-gradient(135deg, var(--primary-green) 0%, #0E9B4A 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 8px 18px !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb),  0.40) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all var(--duration-fast) var(--ease-spring) !important;
}
.top-nav-auth:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(var(--brand-rgb),  0.55) !important;
  color: #FFFFFF !important;
}
.glow-btn {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--brand-mid) 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(var(--brand-rgb),  0.35);
  transition: all var(--duration-fast) var(--ease-spring);
}
.glow-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(var(--brand-rgb),  0.50);
}

/* Video Showcase Section */
.video-showcase-box {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, #0B2C24 60%, #08241D 100%);
  border: 1px solid rgba(var(--brand-rgb),  0.25);
  border-radius: 28px;
  padding: 40px;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(var(--ink-rgb),  0.7);
}
.video-showcase-box::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb),  0.18), transparent 70%);
  pointer-events: none;
}
.video-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-6);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), border-color var(--duration-fast) ease;
}
.video-player-frame:hover {
  transform: scale(1.01);
  border-color: rgba(var(--brand-rgb),  0.5);
}
.video-player-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity .3s ease;
}
.video-player-frame:hover .video-player-bg {
  opacity: 0.8;
}
.video-play-pulse {
  position: relative;
  z-index: 3;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--brand-mid) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 0 12px rgba(var(--brand-rgb),  0.25), 0 8px 30px rgba(var(--brand-rgb),  0.6);
  transition: all var(--duration-fast) var(--ease-spring);
}
.video-player-frame:hover .video-play-pulse {
  transform: scale(1.12);
  box-shadow: 0 0 0 18px rgba(var(--brand-rgb),  0.35), 0 12px 40px rgba(var(--brand-rgb),  0.7);
}
.video-play-pulse .i {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}
.video-live-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: rgba(var(--ink-rgb),  0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--brand-rgb),  0.3);
}
.video-duration-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

/* Catalog Filter Bar */
.catalog-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.cat-pill {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.cat-pill:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.cat-pill.is-active {
  background: var(--ink);
  border-color: var(--primary-green);
  color: var(--primary-green);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb),  0.2);
}

/* Academy Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-med) ease, border-color var(--duration-fast) ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -10px rgba(16, 35, 41, 0.14);
  border-color: var(--border-strong);
}
.pillar-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb),  0.14) 0%, rgba(11, 143, 78, 0.08) 100%);
  color: var(--dark-green);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--brand-rgb),  0.2);
}
.pillar-icon-box .i {
  width: 28px;
  height: 28px;
}
.pillar-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pillar-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all .2s ease;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.testi-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin: 0;
}
.testi-stars {
  color: #F5A623;
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-wrap {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 32px auto 0;
}
.faq-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-box[open] {
  border-color: var(--primary-green);
  box-shadow: var(--shadow-sm);
}
.faq-box summary {
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq-box summary::-webkit-details-marker {
  display: none;
}
.faq-content {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 16px;
}

/* CTA Bottom Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #0A2E26 50%, var(--ink) 100%);
  border: 1.5px solid rgba(var(--brand-rgb),  0.3);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(var(--ink-rgb),  0.8);
  margin-top: 48px;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(var(--brand-rgb),  0.15), transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   ACADEMIC SHOWCASE HERO & VİTRİN MASTER STİLLERİ (YATIRIMCI & KULLANICI İÇİN)
   ========================================================================== */
.academic-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 48px 44px;
  border-radius: 28px;
  background: linear-gradient(135deg, #031412 0%, #072621 40%, #0B3830 75%, #051F1A 100%);
  border: 1.5px solid rgba(var(--brand-rgb),  0.28);
  box-shadow: 0 24px 64px -16px rgba(3, 20, 18, 0.7), 0 0 50px rgba(var(--brand-rgb),  0.08);
  color: #fff;
  margin-bottom: 28px;
}

.academic-hero::before {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb),  0.14) 0%, transparent 70%);
  pointer-events: none;
}

.academic-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb),  0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-glow-drift 10s ease-in-out infinite alternate;
}

.academic-hero .hero-title {
  font-family: var(--font-display, inherit);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #FFFFFF !important;
  margin: 16px 0 16px;
}

.academic-hero .hero-title em {
  font-style: normal;
  color: var(--primary-green) !important;
  display: block;
}

.academic-hero .lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: #E2ECE9 !important;
  margin: 0;
}

.academic-hero .lead strong {
  color: #FFFFFF !important;
}

.academic-stat-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: rgba(4, 20, 18, 0.82);
  border: 1px solid rgba(var(--brand-rgb),  0.25);
  border-radius: 18px;
  padding: 16px 22px;
  backdrop-filter: blur(12px);
  margin-top: 28px;
}

.academic-stat-ribbon .stat-item {
  display: flex;
  flex-direction: column;
}

.academic-stat-ribbon .stat-k {
  font-size: 11.5px;
  font-weight: 700;
  color: #92BDB2;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.academic-stat-ribbon .stat-v {
  font-family: var(--font-display, inherit);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
  line-height: 1.1;
}

.academic-stat-ribbon .stat-v.accent {
  color: var(--primary-green);
}

.academic-stat-ribbon .stat-v.gold {
  color: #FFB84D;
}

/* 4 Feature Highlights Cards */
.academic-highlight-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.academic-highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-green);
  box-shadow: 0 12px 28px -6px rgba(var(--brand-rgb),  0.15);
}
.academic-highlight-card .h-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.academic-highlight-card .h-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.academic-highlight-card .h-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}

@media (max-width: 1024px) {
  .academic-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .academic-hero {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .academic-stat-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ------------------------------------------------------------------ Ortak öğrenci / veli / misafir üst menüsü */
.top-nav-bar {
  background: linear-gradient(112deg, var(--ink) 0%, var(--ink-4) 58%, var(--ink-5) 100%);
  color: #f4fbf6;
  border-bottom: 1px solid rgba(91, 196, 128, .2);
  box-shadow: 0 10px 28px -20px rgba(4, 30, 22, .9);
  backdrop-filter: saturate(1.25) blur(16px);
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
}
.top-nav-inner { height: 76px; gap: 18px; }
.top-brand { color: #fff; }
.top-brand-badge { color: #a8dbba; }

.top-menu-links {
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.top-menu-item {
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(245, 251, 247, .76);
}
.top-menu-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.top-menu-item.is-active {
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 #5bc480;
}
.top-menu-item.is-active .i { color: #83dda0; }
.top-menu-item:focus-visible { outline: 2px solid #8ee2a7; outline-offset: 2px; }
.top-nav-count { background: #d8f6df; color: #14532d; }
.dropdown.is-open > .top-menu-item { background: rgba(255, 255, 255, .14); color: #fff; }

.top-search-box input { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #fff; border-radius: 12px; }
.top-search-box input::placeholder { color: rgba(255, 255, 255, .64); }
.top-search-box input:focus { border-color: #70cd91; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 3px rgba(112, 205, 145, .18); }
.top-search-box .search-ic { color: rgba(255, 255, 255, .72); }
.top-search-box kbd { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .7); }
.top-nav-btn { border: 1px solid rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .08); border-radius: 12px; }
.top-nav-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .36); }
.top-nav-bar .menu { color: var(--text); }
.menu-explore {
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px -10px rgba(0, 0, 0, 0.28);
}
.menu-explore .menu-label {
  display: block;
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.menu-explore a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.menu-explore a:hover {
  background: var(--surface-2);
  color: var(--primary-green);
  transform: translateX(3px);
}
.menu-explore hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 4px;
}
.top-user-pill { border: 1px solid rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .08); }
.top-user-pill:hover { border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .14); }
.streak-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.streak-chip:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.streak-chip.is-lit { background: rgba(254, 243, 199, .96); border-color: #fcd34d; color: #92400e; }
.top-panel-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 15px; border: 1px solid rgba(139, 224, 164, .55);
  border-radius: 12px; background: linear-gradient(135deg, #53c879, #319d5b);
  color: #062719; font-size: 13px; font-weight: 800; text-decoration: none;
  box-shadow: 0 7px 18px -10px rgba(var(--brand-3-rgb),  .8);
  transition: transform .18s ease, filter .18s ease;
}
.top-panel-link:hover { color: #062719; filter: brightness(1.08); transform: translateY(-1px); }
.top-panel-link.is-active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38), 0 7px 18px -10px rgba(var(--brand-3-rgb),  .8); }
.top-panel-link:focus-visible { outline: 2px solid #b7f3c8; outline-offset: 3px; }
.account-menu-head {
  display: flex; align-items: center; gap: 11px; margin: -4px -4px 7px; padding: 12px;
  border-bottom: 1px solid var(--border);
}
.account-menu-head > span { display: grid; min-width: 0; gap: 2px; }
.account-menu-head strong { overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-head small { color: var(--muted); font-size: 12px; }

/* "Keşfet": açıklamalı, gruplu geniş menü */
.menu.menu-mega {
  left: auto; right: 0;
  width: min(880px, calc(100vw - 32px));
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 10px;
}
.mega-col { display: grid; align-content: start; gap: 2px; min-width: 0; }
.mega-h { padding: 4px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); }
.menu.menu-mega a { align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 12px; }
.menu.menu-mega a .ibox { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.menu.menu-mega a .ibox .i { width: 16px; height: 16px; }
.menu.menu-mega a strong { display: block; font-size: 13.5px; color: var(--text); }
.menu.menu-mega a small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.menu.menu-mega a:hover .ibox { background: var(--primary-green); color: #fff; }
.menu.menu-mega .mega-foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--dark-green);
}
@media (max-width: 1180px) {
  .menu.menu-mega { width: min(520px, calc(100vw - 24px)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .menu.menu-mega { grid-template-columns: minmax(0, 1fr); max-height: 70dvh; overflow-y: auto; }
}

/* ------------------------------------------------------------------ Üst menü ekran boyutları */
@media (max-width: 1440px) {
  .top-menu-links .top-menu-item > .i:first-child { display: none; }
  .top-nav-actions .top-user-pill .name { display: none; }
}
@media (max-width: 1366px) {
  .top-nav-inner { column-gap: 12px; }
  .top-nav-actions { gap: 8px; }
  .top-menu-item { padding: 7px 11px; }
  .top-search-box { width: 140px; }
  .top-search-box:focus-within { width: 190px; }
}
@media (max-width: 1180px) {
  .top-brand-badge { display: none !important; }
  .top-menu-item { padding: 6px 9px; font-size: 13px; }
  .top-search-box { width: 120px; }
}
@media (max-width: 1100px) {
  .has-bottom-nav .top-nav-inner { height: 68px; flex-wrap: nowrap; }
  .has-bottom-nav .top-nav-inner > .top-brand { flex: none; }
  .has-bottom-nav .top-nav-inner > .top-nav-actions { margin-left: auto; }
  .has-bottom-nav .top-menu-links { display: none; }
  .has-bottom-nav .top-panel-link { min-height: 40px; padding: 0 12px; }
  body:not(.has-bottom-nav) .top-nav-inner { height: auto; min-height: 68px; flex-wrap: wrap; row-gap: 0; padding-top: 8px; }
  body:not(.has-bottom-nav) .top-nav-inner > .top-brand { order: 1; }
  body:not(.has-bottom-nav) .top-nav-inner > .top-nav-actions { order: 2; margin-left: auto; }
  body:not(.has-bottom-nav) .top-menu-links {
    display: flex; order: 3; flex: 1 0 100%; min-width: 0; padding: 4px; margin: 6px 0 10px;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  body:not(.has-bottom-nav) .top-menu-links::-webkit-scrollbar { display: none; }
  body:not(.has-bottom-nav) .top-menu-links .dropdown { position: static; }
  body:not(.has-bottom-nav) .top-menu-links .dropdown .menu { left: 12px; right: auto; top: calc(100% - 4px); max-height: min(70dvh, 520px); overflow-y: auto; }
}
@media (max-width: 900px) {
  .top-panel-link { display: none; }
  .top-nav-inner { padding-right: 16px; padding-left: 16px; }
  .top-nav-actions { min-width: 0; }
}
@media (max-width: 600px) {
  .top-nav-inner { column-gap: 8px; height: 62px; padding-right: 12px; padding-left: 12px; }
  .top-nav-inner > .top-nav-actions { flex: 1 1 0; min-width: 0; justify-content: flex-end; gap: 6px; }
  .top-nav-actions .top-search-box { display: none; }
  .top-nav-actions .top-user-pill { gap: 4px; padding: 4px; }
  .top-brand .brand-img { --brand-h: 42px; }
}
@media (max-width: 390px) {
  .top-nav-actions .streak-chip { display: none; }
}

/* ==========================================================================
   Veli Paneli: ana sayfadaki devre animasyonlu koyu zemin (partials/circuit-bg.ejs → .cb-*) ve panel bileşenleri (.vp-*).
   Zemin yalnızca circuitBg: true ile çizilen sayfalarda vardır: Veli Paneli, çocuk raporu, velinin açtığı duyuru.
   ========================================================================== */
body.has-circuit { background: var(--ink-3); min-height: 100vh; }
.cb-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1100px 680px at 80% 5%, rgba(var(--brand-rgb), .22), transparent 64%),
    radial-gradient(900px 600px at 15% 95%, rgba(var(--brand-rgb), .14), transparent 60%),
    radial-gradient(700px 500px at 50% 50%, rgba(var(--brand-rgb), .06), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-3) 100%); }
.cb-bg::before { content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 85%); }
.cb-bg::after { content: ''; position: absolute; width: 70vmax; height: 70vmax; left: 15%; top: 25%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .12), transparent 65%);
  animation: cb-glow 20s ease-in-out infinite alternate; }

.cb-traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.cb-base-lines path { fill: none; stroke: rgba(var(--brand-rgb), .16); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb-lit-lines path.lit {
  fill: none; stroke: var(--primary-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 140 1400; animation: cb-flow 7.5s cubic-bezier(.4, 0, .2, 1) infinite;
  filter: drop-shadow(0 0 6px var(--primary-green)) drop-shadow(0 0 2px #fff);
}
.cb-lit-lines path.lit.fast { animation-duration: 5s; animation-delay: -1.5s; }
.cb-lit-lines path.lit.slow { animation-duration: 9.5s; animation-delay: -3.5s; }
.cb-lit-lines path.lit.late { animation-delay: -2s; }
.cb-lit-lines path.lit.slower { animation-duration: 12s; animation-delay: -6s; }
.cb-lit-lines path.lit.rev { animation-name: cb-flow-rev; animation-duration: 8s; animation-delay: -4s; }

.cb-nodes .cb-node { fill: var(--primary-green); filter: drop-shadow(0 0 4px var(--primary-green)); }
.cb-nodes .cb-node.p1 { animation: cb-pulse-node 2.6s ease-in-out infinite; }
.cb-nodes .cb-node.p2 { animation: cb-pulse-node 3.2s ease-in-out infinite 0.8s; }
.cb-nodes .cb-node.p3 { animation: cb-pulse-node 2.9s ease-in-out infinite 1.4s; }
.cb-nodes .cb-node.p4 { animation: cb-pulse-node 3.5s ease-in-out infinite 2.1s; }

.cb-nodes .cb-chip { fill: var(--ink-2); stroke: var(--primary-green); stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(var(--brand-rgb), .6)); animation: cb-pulse-node 4s ease-in-out infinite; }
.cb-nodes .cb-ring { fill: none; stroke: rgba(var(--brand-rgb), .35); stroke-width: 1.2; stroke-dasharray: 4 3; animation: cb-spin-ring 16s linear infinite; transform-origin: center; }

@keyframes cb-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1540; } }
@keyframes cb-flow-rev { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1540; } }
@keyframes cb-glow { 0% { transform: translate(-25%, -20%) scale(0.95); opacity: 0.7; } 50% { transform: translate(25%, 15%) scale(1.1); opacity: 1; } 100% { transform: translate(-10%, 25%) scale(1); opacity: 0.8; } }
@keyframes cb-pulse-node { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 8px var(--primary-green)) drop-shadow(0 0 2px #fff); } }
@keyframes cb-spin-ring { to { transform: rotate(360deg); } }
@keyframes cb-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--brand-rgb), 0); } }

body.has-circuit .shell { position: relative; z-index: 1; background: transparent; }
body.has-circuit .main, body.has-circuit .content { background: transparent; }
body.has-circuit .card { border-color: rgba(255, 255, 255, .08); box-shadow: 0 22px 48px -28px rgba(0, 0, 0, .7); }
body.has-circuit .breadcrumb { color: #93B7AB; }
body.has-circuit .breadcrumb a:hover { color: var(--brand-soft); }
body.has-circuit .breadcrumb > span { color: #E4F2EC; font-weight: 600; }

/* Öğrenci Paneli Devre Kartları ve Beyaz Yazı Kuralları (Kırmızı ve Koyu Temalarda Yüksek Kontrast) */
body.has-circuit.is-student-portal .student-home-container { position: relative; z-index: 1; }
body.has-circuit.is-student-portal h1,
body.has-circuit.is-student-portal h2,
body.has-circuit.is-student-portal h3,
body.has-circuit.is-student-portal .h1,
body.has-circuit.is-student-portal .h2,
body.has-circuit.is-student-portal .h3 {
  color: #FFFFFF !important;
}
/* Beyaz başlık kuralı yalnızca devre zeminindeki başlıklar içindir. Açık renkli kartların içindeki başlıklar koyu kalır;
   yoksa beyaz üstüne beyaz görünmez oluyordu: ders sayfasında "Kurs hakkında", oynatıcıda soru kartı ve kilit ekranı,
   soru-cevap sayfası, okuma derslerinin başlıkları, boş durum kartları. Koyu kartlar (kurs kartı, .card-dark) hariç. */
body.has-circuit.is-student-portal .card:not(.course-card):not(.card-dark) :is(h1, h2, h3, .h1, .h2, .h3):not(.course-card *) {
  color: var(--text) !important;
}

body.has-circuit.is-student-portal .welcome {
  background: linear-gradient(145deg, rgba(var(--ink-rgb), 0.88), rgba(12, 6, 8, 0.85)) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--brand-rgb), 0.2) !important;
}
body.has-circuit.is-student-portal .welcome h1 { color: #FFFFFF !important; }
body.has-circuit.is-student-portal .welcome p { color: rgba(255, 255, 255, 0.92) !important; }
body.has-circuit.is-student-portal .welcome .chip-soft {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 700 !important;
}
body.has-circuit.is-student-portal .wstat {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px);
}
body.has-circuit.is-student-portal .wstat:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--brand-rgb), 0.3) !important;
}
body.has-circuit.is-student-portal .wstat .k {
  color: rgba(255, 255, 255, 0.90) !important;
  font-weight: 800 !important;
}
body.has-circuit.is-student-portal .wstat .v {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
body.has-circuit.is-student-portal .wstat .v small {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 700 !important;
}
body.has-circuit.is-student-portal .week-dots span {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 700 !important;
}
body.has-circuit.is-student-portal .week-dots i {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
body.has-circuit.is-student-portal .week-dots i.on {
  background: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 14px var(--primary-green) !important;
}

body.has-circuit.is-student-portal .quick-grid a {
  background: rgba(var(--ink-rgb), 0.78); border: 1px solid rgba(255, 255, 255, 0.14); color: #FFFFFF !important;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
body.has-circuit.is-student-portal .quick-grid a:hover {
  background: rgba(var(--ink-rgb), 0.92); border-color: rgba(255, 255, 255, 0.40);
  box-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--brand-rgb), 0.35); color: #FFFFFF !important;
}
body.has-circuit.is-student-portal .quick-grid a .ibox { background: rgba(var(--brand-rgb), 0.25); color: #FFFFFF !important; }
body.has-circuit.is-student-portal .section-head h2 { color: #FFFFFF !important; }
body.has-circuit.is-student-portal .section-head .eyebrow { color: #FFFFFF !important; font-weight: 700 !important; }
body.has-circuit.is-student-portal .section-head .btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
body.has-circuit.is-student-portal .section-head .btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 16px rgba(var(--brand-rgb), 0.4) !important;
}

/* Kayıtlı Dersler Kartları (Course Cards) */
body.has-circuit.is-student-portal .course-card {
  background: linear-gradient(155deg, rgba(var(--ink-rgb), 0.85), rgba(10, 5, 8, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px -16px rgba(0, 0, 0, 0.75);
}
body.has-circuit.is-student-portal .course-card:hover {
  border-color: rgba(255, 255, 255, 0.40) !important;
  box-shadow: 0 22px 50px -14px rgba(0, 0, 0, 0.85), 0 0 28px rgba(var(--brand-rgb), 0.35) !important;
  transform: translateY(-4px);
}
body.has-circuit.is-student-portal .course-card .course-title,
body.has-circuit.is-student-portal .course-card .course-title a {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
body.has-circuit.is-student-portal .course-card .course-title a:hover {
  color: #FFFFFF !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}
body.has-circuit.is-student-portal .course-card .course-body p.small.muted,
body.has-circuit.is-student-portal .course-card .muted {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600 !important;
}
body.has-circuit.is-student-portal .course-card .meta,
body.has-circuit.is-student-portal .course-card .meta span {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 600 !important;
}
body.has-circuit.is-student-portal .course-card .meta span svg {
  stroke: rgba(255, 255, 255, 0.90) !important;
}
body.has-circuit.is-student-portal .course-card .cat {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  font-weight: 700 !important;
  padding: 3px 10px;
  border-radius: 99px;
}
body.has-circuit.is-student-portal .course-card .rating {
  color: #FFD166 !important;
  font-weight: 800 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 2px 8px !important;
  border-radius: 99px !important;
}
body.has-circuit.is-student-portal .course-card .price {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
body.has-circuit.is-student-portal .course-card .price.free {
  color: #52F59D !important;
}
body.has-circuit.is-student-portal .course-card .price-tag {
  color: #FFFFFF !important;
  background: rgba(0, 0, 0, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
body.has-circuit.is-student-portal .course-card .fav-btn {
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(0, 0, 0, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}
body.has-circuit.is-student-portal .course-card .btn.btn-soft {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-hover)) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.4) !important;
}
body.has-circuit.is-student-portal .course-card .btn.btn-soft:hover {
  filter: brightness(1.15) !important;
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.6) !important;
}
body.has-circuit.is-student-portal .course-card .btn.btn-primary {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-hover)) !important;
  font-weight: 800 !important;
}
body.has-circuit.is-student-portal .course-card .btn.btn-dark {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 700 !important;
}

/* Derslerim Sayfası (my-courses) ve Liste Kartları için Beyaz Metinler */
body.has-circuit.is-student-portal .mcg,
body.has-circuit.is-student-portal .mc-card {
  background: linear-gradient(155deg, rgba(var(--ink-rgb), 0.85), rgba(10, 5, 8, 0.88)) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
body.has-circuit.is-student-portal .mcg-title,
body.has-circuit.is-student-portal .mcg-title a,
body.has-circuit.is-student-portal .mc-title,
body.has-circuit.is-student-portal .mc-title a {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
body.has-circuit.is-student-portal .mcg-meta,
body.has-circuit.is-student-portal .mcg-meta span,
body.has-circuit.is-student-portal .mc-mode {
  color: rgba(255, 255, 255, 0.85) !important;
}
body.has-circuit.is-student-portal .mcg-next,
body.has-circuit.is-student-portal .mc-next {
  background: rgba(0, 0, 0, 0.40) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
body.has-circuit.is-student-portal .mcg-next .mc-next-text strong,
body.has-circuit.is-student-portal .mc-next-text strong {
  color: #FFFFFF !important;
}
body.has-circuit.is-student-portal .mc-stat,
body.has-circuit.is-student-portal .stat-card {
  background: rgba(var(--ink-rgb), 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
body.has-circuit.is-student-portal .mc-stat .k,
body.has-circuit.is-student-portal .stat-body .k {
  color: rgba(255, 255, 255, 0.85) !important;
}
body.has-circuit.is-student-portal .mc-stat .v,
body.has-circuit.is-student-portal .stat-body .v {
  color: #FFFFFF !important;
}
body.has-circuit.is-student-portal .mc-stat .v small,
body.has-circuit.is-student-portal .stat-body .v small {
  color: rgba(255, 255, 255, 0.80) !important;
}

/* Karşılama */
.vp-hero { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; margin: 4px 0 28px; color: #CFE3DB; }
.vp-hero-text { min-width: 0; max-width: 720px; }
.vp-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(var(--brand-rgb),  .12); border: 1px solid rgba(var(--brand-rgb),  .3); color: var(--brand-soft); font-size: 13px; font-weight: 700; }
.vp-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-green); animation: cb-pulse 2.4s ease-out infinite; }
.vp-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.035em; color: #fff; margin: 16px 0 10px; overflow-wrap: anywhere; }
.vp-title em { font-style: normal; background: linear-gradient(92deg, var(--primary-green) 10%, var(--brand-soft) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vp-lead { font-size: 16px; line-height: 1.6; color: #B2CFC5; max-width: 62ch; margin: 0; }
.vp-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.vp-stat { display: grid; gap: 2px; min-width: 116px; padding: 14px 18px; border-radius: 16px; color: inherit;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .15s, background .15s; }
.vp-stat strong { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; color: #fff; }
.vp-stat span { font-size: 13px; font-weight: 600; color: #93B7AB; }
a.vp-stat:hover { border-color: rgba(var(--brand-soft-rgb),  .5); background: rgba(var(--brand-rgb),  .1); }
.vp-stat.is-hot { border-color: rgba(240, 200, 119, .45); background: rgba(240, 200, 119, .1); }
.vp-stat.is-hot strong { color: #F6D58E; }
.vp-hero--child { align-items: center; }
.vp-hero--child .vp-title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 36px); }
.vp-hero--child .vp-lead { font-size: 14.5px; }
.vp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); scrollbar-width: none; }
.vp-tabs::-webkit-scrollbar { display: none; }
.vp-tabs a { flex: none; padding: 8px 14px; border-radius: 10px; color: #CFE3DB; font-size: 14px; font-weight: 700; transition: background .15s, color .15s; }
.vp-tabs a:hover, .vp-tabs a:focus-visible { background: rgba(var(--brand-rgb),  .18); color: #fff; }
/* Uzun kurs adlı sertifika etiketi dar ekranda satır kaydırır */
.vp-wrap-chip { max-width: 100%; height: auto; min-height: 28px; padding-block: 4px; white-space: normal; line-height: 1.35; }

/* Yerleşim */
.vp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.vp-main, .vp-side { display: grid; gap: 20px; min-width: 0; }
.vp-empty { margin-bottom: 24px; }
.vp-none { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; }

/* Öğrenci kartı */
.vp-child { padding: 24px; display: grid; gap: 18px; }
.vp-child-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.vp-child-name { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.vp-child-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.vp-child-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--tint), var(--surface-2)); }
.vp-ring { --p: 0; position: relative; display: grid; place-items: center; width: 104px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--primary-green) calc(var(--p) * 1%), rgba(16, 35, 41, .08) 0); }
.vp-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.vp-ring > span { position: relative; display: grid; justify-items: center; text-align: center; line-height: 1.1; }
.vp-ring strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--deep-green); }
.vp-ring small { max-width: 64px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.vp-child-stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vp-child-stats dl > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.vp-child-stats dt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.vp-child-stats dd { margin-top: 2px; font-size: 20px; font-weight: 800; color: var(--text); }
.vp-child-stats dd small { font-size: 13px; font-weight: 700; color: var(--muted); }
.vp-child-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.vp-child-notes span { display: inline-flex; align-items: center; gap: 6px; }
.vp-child-notes strong { color: var(--text); }
.vp-child-notes .is-warn { padding: 3px 10px; border-radius: 99px; background: var(--warning-bg); color: var(--warning); }
.vp-child-notes .is-warn strong { color: inherit; }
.vp-sub { display: flex; align-items: center; gap: 8px; margin: 2px 0 -6px; font-size: 15px; font-weight: 800; color: var(--text); }
.vp-sub .i { color: var(--dark-green); }
.vp-courses { display: grid; gap: 10px; }
.vp-course { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.vp-course:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.vp-course-cover { width: 112px; border-radius: 10px; }
.vp-course-main { min-width: 0; }
.vp-course-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.vp-course-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.vp-course-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vp-course-bar .progress { flex: 1; }
.vp-course-bar .num { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.vp-course-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.vp-course-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.vp-course-meta strong { color: var(--text); font-weight: 700; }

/* Yan kartlar: duyurular, canlı dersler, bildirimler, notlar */
.vp-card { overflow: hidden; }
.vp-card-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.vp-card-head .h3 { flex: 1; font-size: 17px; }
.vp-card > .vp-none { margin: 0 20px 20px; }
.vp-card .list-rows > li { padding: 12px 20px; gap: 12px; }
body.has-circuit .vp-ann { border-top: 3px solid var(--primary-green); }
.vp-ann-list { display: grid; }
.vp-ann-item { position: relative; display: grid; gap: 4px; padding: 14px 20px 14px 36px; border-top: 1px solid var(--border); color: inherit; transition: background .15s; }
.vp-ann-item::before { content: ''; position: absolute; left: 17px; top: 21px; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.vp-ann-item.is-unread { background: linear-gradient(90deg, var(--tint), transparent 75%); }
.vp-ann-item.is-unread::before { background: var(--primary-green); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),  .18); }
.vp-ann-item:hover { background: var(--surface-2); }
.vp-ann-item .t { font-size: 14.5px; font-weight: 800; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.vp-ann-item.is-unread .t { color: var(--deep-green); }
.vp-ann-item .b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.vp-ann-item .d { font-size: 12px; font-weight: 600; color: var(--subtle); }
.vp-ann-item .more { color: var(--dark-green); font-weight: 700; }
.vp-ann-item:hover .more { text-decoration: underline; text-underline-offset: 3px; }
.vp-mini { display: grid; }
.vp-mini li { display: grid; gap: 2px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 14px; }
.vp-mini li span { font-size: 12.5px; color: var(--muted); }
.vp-mini li.is-unread strong { color: var(--deep-green); }
.vp-mini a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Tek sütunda duyurular çocuk kartlarının hemen altına gelir (sütunlar açılır, kartlar sıralanır) */
@media (max-width: 1080px) {
  .vp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .vp-main, .vp-side { display: contents; }
  .vp-child { order: 1; }
  .vp-ann { order: 2; }
  .vp-grid .vp-card:not(.vp-ann) { order: 3; }
}
@media (max-width: 640px) {
  .vp-hero { margin-bottom: 20px; }
  .vp-hero-stats { width: 100%; }
  .vp-hero-stats > li { flex: 1 1 0; min-width: 0; }
  .vp-stat { min-width: 0; padding: 12px 14px; }
  .vp-stat strong { font-size: 22px; }
  .vp-child { padding: 16px; gap: 14px; }
  .vp-child-stats { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .vp-child-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .vp-course { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .vp-course-cover { width: 72px; }
}
@media (max-width: 720px) {
  .cb-traces path.lit { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-traces path.lit, .cb-bg::after, .vp-eyebrow .dot { animation: none; }
}

/* ==========================================================================
   Duyurunun tam metni (/duyuru/:id)
   ========================================================================== */
.ann-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; max-width: 1180px; }
.ann-card { overflow: hidden; }
.ann-head { padding: 32px 36px 24px; color: #E4F2EC; background: radial-gradient(520px 260px at 100% 0%, rgba(var(--brand-rgb),  .24), transparent 65%), linear-gradient(135deg, var(--ink), var(--ink-4)); }
.ann-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; background: rgba(var(--brand-rgb),  .16); border: 1px solid rgba(var(--brand-rgb),  .35); color: var(--brand-soft); font-size: 12.5px; font-weight: 700; }
.ann-title { margin: 14px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; color: #fff; overflow-wrap: anywhere; }
.ann-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: #A9C9BE; }
.ann-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ann-body { padding: 28px 36px; font-size: 16px; line-height: 1.75; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.ann-foot { padding: 0 36px 32px; }
.ann-list { display: grid; gap: 2px; margin-top: 10px; }
.ann-list a { position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 26px; border-radius: 10px; }
.ann-list a::before { content: ''; position: absolute; left: 10px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.ann-list a.is-unread::before { background: var(--primary-green); }
.ann-list a:hover { background: var(--surface-2); }
.ann-list .t { font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ann-list .d { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .ann-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ann-head { padding: 22px 20px 18px; }
  .ann-body { padding: 20px; font-size: 15.5px; }
  .ann-foot { padding: 0 20px 22px; }
}

/* Öğrenci üst menüsü: Keşfet açılır menüsü (klasik, dört sütun) */
.ex-drop > .top-menu-item { border: 0; font: inherit; cursor: pointer; }
.ex-drop .ex-chev { transition: transform .15s ease; }
.ex-drop.is-open .ex-chev { transform: rotate(180deg); }
.ex-menu { left: 50%; right: auto; transform: translate(-50%, -6px); display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 4px 8px; width: min(820px, calc(100vw - 32px)); padding: 14px; color: var(--text); }
.ex-drop.is-open .ex-menu { transform: translate(-50%, 0); }
.ex-col { display: grid; align-content: start; gap: 1px; min-width: 0; }
.ex-col + .ex-col { padding-left: 8px; border-left: 1px solid var(--border); }
.ex-h { margin: 0 0 6px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ex-menu a { padding: 8px 10px; font-size: 14px; color: var(--text); }
.ex-menu a .i { color: var(--muted); }
.ex-menu a:hover .i, .ex-menu a[aria-current] .i { color: var(--primary-green); }
.ex-menu a[aria-current] { background: var(--tint); }
@media (max-width: 1100px) {
  .ex-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(460px, calc(100vw - 24px)); }
  .ex-col + .ex-col { padding-left: 0; border-left: 0; }
  body:not(.has-bottom-nav) .top-menu-links .ex-drop .ex-menu { transform: none; }
}
