﻿/* ==========================================================================
   DENEME KULÜBÜ — MOBİL UYGULAMA CSS (iOS & Android Native Deneyimi)
   ========================================================================== */

:root {
  /* Limit Kırmızı Kurum Teması */
  --primary: #dc2626;         /* Limit Kırmızısı */
  --primary-dark: #991b1b;    /* Koyu Limit Kırmızısı */
  --primary-light: #ef4444;   /* Açık Kırmızı */
  --primary-subtle: #fef2f2;  /* Pastel Kırmızı */
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #dc2626;
  --warning: #f59e0b;
  --info: #0284c7;

  --bg-page: #fff5f5;         /* Limit Kırmızısı Zemin */
  --bg-card: #ffffff;
  --border-color: #fecaca;    /* Limit Kırmızı Yumuşak Kenarlık */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bottom-bar-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --border-radius: 16px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px -2px rgba(220, 38, 38, 0.10), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 30px -4px rgba(220, 38, 38, 0.16), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Limon Sarı Kurum Teması */
body.theme-limon {
  --primary: #facc15;         /* Canlı Limon Sarısı */
  --primary-dark: #eab308;    /* Güneş Limon Vurgusu */
  --primary-light: #fef08a;   /* Parlak Açık Limon */
  --primary-subtle: #fefce8;  /* Temiz Açık Limon Zemin */
  --accent: #facc15;

  --bg-page: #ffffff;         /* Beyaz Zemin */
  --bg-card: #ffffff;
  --border-color: #f1f5f9;    /* Temiz, yumuşak kenarlık */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px -2px rgba(234, 179, 8, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 30px -4px rgba(234, 179, 8, 0.25), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Anti-Flicker & Giriş Ekranı İzolasyonu: Giriş ekranındayken üst navbar ve scroll kesinlikle çıkmaz */
html:not(.app-has-auth) #mainAppView,
html:not(.app-has-auth) #staffPortalView,
html:not(.app-has-auth) #staffExamResultsSection {
  display: none !important;
}
html:not(.app-has-auth) .app-header {
  display: none !important;
}
html:not(.app-has-auth) body {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
}
html:not(.app-has-auth) .app-content {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
html:not(.app-has-auth) .login-view {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 440px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

html.app-has-auth .app-header {
  display: block !important;
}
html.app-has-auth #loginView {
  display: none !important;
}
/* mainAppView and bottomNav visibility managed by App controller */
html.app-has-auth #headerRefreshBtn {
  display: none !important;
}
html.app-has-auth #headerLogoutBtn {
  display: inline-flex !important;
}
html.app-has-auth #headerChangePassBtn {
  display: inline-flex !important;
}

.btn-header-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-right: 6px;
}
body.theme-limon .btn-header-action {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(161, 98, 7, 0.25);
  color: #78350f;
}
.btn-header-action:active {
  transform: scale(0.90);
}
.btn-header-action.spinning i {
  animation: spinAction 0.75s linear infinite;
}
@keyframes spinAction {
  100% { transform: rotate(360deg); }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100000 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: calc(var(--safe-top) + 10px) 16px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body:not(.theme-limon) .app-header {
  background: rgba(255, 245, 245, 0.96);
  border-bottom: 1px solid #fecaca;
}

body.theme-limon .app-header {
  background: linear-gradient(135deg, #facc15 0%, #fde047 50%, #facc15 100%);
  border-bottom: 2px solid #eab308;
  box-shadow: 0 2px 12px rgba(234, 179, 8, 0.25);
}

.header-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.app-brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.app-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.app-header .app-logo {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
}

.app-title-name {
  font-size: clamp(0.88rem, 3.8vw, 1.02rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

body.theme-limon .app-header .app-title-name {
  color: #0f172a;
  font-weight: 850;
  text-shadow: none;
}

body:not(.theme-limon) .app-header .app-title-name {
  color: #7f1d1d;
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Profil Avatar Butonu & Açılır Menü */
.profile-dropdown-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.btn-header-profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn-header-profile:active {
  transform: scale(0.92);
}

.btn-header-profile .avatar-initial {
  font-size: 0.90rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

body:not(.theme-limon) .btn-header-profile {
  background: #ffffff;
  border: 2px solid #fecaca;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}

body:not(.theme-limon) .btn-header-profile .avatar-initial {
  color: #dc2626;
}

body.theme-limon .btn-header-profile {
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #facc15;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

body.theme-limon .btn-header-profile .avatar-initial {
  color: #facc15;
}

/* Açılır Menü (Dropdown Menu) */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  max-width: 280px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.profile-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-dd-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px 10px;
  background: #f8fafc;
  border-radius: 10px;
}

.dd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.90rem;
  font-weight: 800;
  flex-shrink: 0;
}

body.theme-limon .dd-avatar {
  background: #0f172a;
  color: #facc15;
}

.dd-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.dd-info strong {
  font-size: 0.88rem;
  color: #0f172a;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd-info span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.profile-dd-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.profile-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 650;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  outline: none;
}

.profile-dd-item:hover,
.profile-dd-item:active {
  background: #f1f5f9;
}

.profile-dd-item i {
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  color: #64748b;
}

.profile-dd-logout {
  color: #dc2626;
}

.profile-dd-logout i {
  color: #dc2626;
}

.profile-dd-logout:hover,
.profile-dd-logout:active {
  background: #fef2f2;
}

.btn-header-profile * {
  pointer-events: none !important;
}

.profile-dd-item {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.profile-dd-item * {
  pointer-events: none !important;
}

#logoutConfirmModal {
  touch-action: manipulation !important;
}

#logoutConfirmModal button {
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Başlığın Hemen Altındaki Öğrenci Satırı */
.header-student-sub {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.header-student-name {
  font-size: clamp(0.96rem, 4.2vw, 1.12rem);
  font-weight: 850;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-limon .header-student-name {
  color: #0f172a;
}

body:not(.theme-limon) .header-student-name {
  color: #1e293b;
}

.header-student-no-badge {
  display: none !important;
}

body.theme-limon .header-student-no-badge {
  display: none !important;
}

body:not(.theme-limon) .header-student-no-badge {
  display: none !important;
}

.inst-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.btn-icon {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:active {
  background: rgba(0,0,0,0.06);
  transform: scale(0.95);
}

/* ==========================================================================
   APP MAIN CONTENT
   ========================================================================== */
.app-content {
  flex: 1;
  padding: 14px 14px calc(var(--bottom-bar-height) + var(--safe-bottom) + 20px) 14px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR (iOS Style TabBar)
   ========================================================================== */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000020;
  height: calc(var(--bottom-bar-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body:not(.theme-limon) .app-nav {
  background: rgba(255, 245, 245, 0.96);
  border-top: 1px solid #fecaca;
}

body.theme-limon .app-nav {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 50%, #facc15 100%);
  border-top: 2px solid #facc15;
  box-shadow: 0 -4px 16px rgba(234, 179, 8, 0.20);
}

body.theme-limon .app-nav .nav-item {
  color: #475569;
  opacity: 0.95;
  font-weight: 600;
}

body.theme-limon .app-nav .nav-item.active {
  color: #0f172a;
  opacity: 1;
  font-weight: 850;
}

body.theme-limon .app-nav .nav-item.active i {
  color: #0f172a;
  transform: scale(1.18);
  filter: drop-shadow(0 2px 4px rgba(250, 204, 21, 0.5));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 6px 0;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.nav-item * {
  pointer-events: none;
}

.nav-item i {
  font-size: 1.25rem;
  margin-bottom: 3px;
  transition: transform 0.2s;
}

.nav-item-topics i {
  font-size: 1.15rem;
  margin-bottom: 1px;
}

.nav-item-topics .nav-label-topics {
  font-size: 0.56rem;
  line-height: 1.05;
  letter-spacing: -0.3px;
  text-align: center;
  display: block;
  white-space: nowrap;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active i {
  transform: scale(1.12);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.login-view {
  min-height: calc(100vh - var(--safe-top));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.login-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100% !important;
  max-width: 410px !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
}

.login-card form {
  width: 100% !important;
  box-sizing: border-box !important;
}

.login-card .form-group {
  width: 100% !important;
  box-sizing: border-box !important;
}

.login-card .input-with-icon {
  width: 100% !important;
  box-sizing: border-box !important;
}

.login-card .form-input {
  width: 100% !important;
  box-sizing: border-box !important;
}

.login-card .btn-primary {
  width: 100% !important;
  box-sizing: border-box !important;
}

.login-card .segment-switcher {
  width: 100% !important;
  box-sizing: border-box !important;
}

.login-card .remember-row {
  width: 100% !important;
  box-sizing: border-box !important;
}

body.theme-limon .login-card {
  border-top: 5px solid #facc15;
  border-color: #fde047;
  box-shadow: 0 12px 30px -5px rgba(250, 204, 21, 0.22);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-logo {
  max-width: 220px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto 14px auto;
  display: block;
}
body.theme-limon .login-brand-logo {
  max-width: 235px;
  max-height: 110px;
}

.login-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

body.theme-limon .login-icon-box {
  background: linear-gradient(135deg, #facc15 0%, #fde047 100%);
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.35);
}

.login-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.login-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Segmented Control Switcher */
.segment-switcher {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.segment-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

body.theme-limon .segment-btn.active {
  color: #0f172a;
  font-weight: 800;
}

/* Kurum Kimlik Kartı (Sabit Kurum) */
.inst-identity-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background: var(--primary-subtle);
}

.inst-identity-badge.limit {
  border-color: #fecaca;
  background: #fef2f2;
}

.inst-identity-badge.limon {
  border: 1.5px solid #facc15;
  background: #fefce8;
}

.inst-identity-badge.limon .inst-id-info strong {
  color: #0f172a;
}

.inst-identity-badge.limon .inst-id-info span {
  color: #475569;
}

.inst-id-icon {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.inst-id-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.inst-id-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.inst-option.selected {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.inst-option .inst-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.inst-option .inst-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Giriş Hata Bildirimi (DOM Banner) */
.login-alert-danger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
  animation: loginShake 0.4s ease-in-out;
}

.login-alert-danger i {
  font-size: 1.15rem;
  color: #dc2626;
  flex-shrink: 0;
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Form inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-main);
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all 0.2s;
}

body:not(.theme-limon) .btn-primary {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

body.theme-limon .btn-primary {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.45);
  color: #0f172a;
  font-weight: 800;
}

body.theme-limon .btn-primary:active {
  background: linear-gradient(135deg, #eab308 0%, #facc15 100%);
  color: #0f172a;
}

.btn-primary:active {
  transform: scale(0.98);
}

.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 20px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ÖĞRENCİ PROFİL KARTI (DASHBOARD TOP)
   ========================================================================== */
.student-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #ffffff;
  border-radius: var(--border-radius);
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

body:not(.theme-limon) .student-hero {
  background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 45%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}

body.theme-limon .student-hero {
  background: linear-gradient(135deg, #facc15 0%, #fde047 45%, #facc15 100%);
  color: #0f172a;
  border: 1px solid #eab308;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.25);
}

body.theme-limon .student-hero h2 {
  color: #0f172a !important;
  font-weight: 850;
}

body.theme-limon .student-hero .pill {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.theme-limon .student-hero .student-avatar {
  background: #0f172a !important;
  color: #facc15 !important;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.student-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.student-hero-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.student-meta h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.student-meta .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.student-meta .pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.student-meta .pill:empty {
  display: none !important;
}

/* Quick Stats Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat-card {
  background: #ffffff;
  border-radius: 13px;
  padding: 11px 8px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-limon .stat-card {
  background: #fffdf5;
  border: 1.5px solid #fde047;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.14), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-limon .stat-card:hover,
body.theme-limon .stat-card:active {
  border-color: #eab308;
  box-shadow: 0 6px 18px rgba(202, 138, 4, 0.22), 0 2px 5px rgba(0, 0, 0, 0.06);
}

body:not(.theme-limon) .stat-card {
  background: #fff8f8;
  border: 1.5px solid #fecaca;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.09), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body:not(.theme-limon) .stat-card:hover,
body:not(.theme-limon) .stat-card:active {
  border-color: #f87171;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.18), 0 2px 5px rgba(0, 0, 0, 0.06);
}

.stat-card .val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-card .lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================================
   SINAV KARTLARI (EXAM LIST)
   ========================================================================== */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px 0;
}

.section-title-row h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.exam-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.exam-card:active {
  transform: scale(0.99);
}

.exam-card-header {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.exam-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.badge-tur {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #3b82f6;
  color: #fff;
}

.badge-tur.AYT { background: #8b5cf6; }
.badge-tur.LGS { background: #10b981; }

.badge-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.badge-status.katildi {
  background: #dcfce7;
  color: #15803d;
}

.badge-status.girmedi {
  background: #fee2e2;
  color: #b91c1c;
}

.exam-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.exam-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.exam-card-body {
  padding: 12px 14px;
}

/* Ana Net & Puan Izgarası */
.score-metrics-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.score-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
}

.score-metric-box .m-val {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  display: block;
}

.score-metric-box .m-val.net-val {
  color: #16a34a;
}

.score-metric-box .m-val.puan-val {
  color: #7c3aed;
}

.score-metric-box .m-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
  display: block;
}

/* AYT SAY / EA Çiftli Izgara */
.ayt-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.ayt-field-box {
  border-radius: 10px;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
}

.ayt-field-box.say {
  border-left: 3.5px solid #2563eb;
  background: #f0f7ff;
}

.ayt-field-box.ea {
  border-left: 3.5px solid #d97706;
  background: #fffbeb;
}

.ayt-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.ayt-field-head strong {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ayt-field-box.say .ayt-field-head strong { color: #1e40af; }
.ayt-field-box.ea .ayt-field-head strong { color: #92400e; }

.ayt-field-body {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-main);
}

.ayt-field-body span {
  font-weight: 600;
}

/* Hızlı Sıralamalar Şeridi (Rankings Strip) */
.ranking-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 11px;
}

.rank-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.rank-chip .r-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.rank-chip .r-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.rank-chip.kurum {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.rank-chip.kurum .r-head i { color: #16a34a; }
.rank-chip.kurum .r-val { color: #15803d; }

.rank-chip.tg {
  background: #fef2f2;
  border-color: #fecaca;
}
.rank-chip.tg.no-tg {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.rank-chip.tg .r-head i { color: #dc2626; }
.rank-chip.tg .r-val { color: #b91c1c; }
.rank-chip.tg.no-tg .r-head i { color: #94a3b8; }
.rank-chip.tg.no-tg .r-val { color: #64748b; font-size: 0.74rem; font-weight: 700; }

.rank-chip.sinif {
  background: var(--primary-subtle);
  border-color: var(--border-color);
}
.rank-chip.sinif .r-head i { color: var(--primary); }
.rank-chip.sinif .r-val { color: var(--primary-dark); }

.exam-card-actions {
  display: flex;
  gap: 8px;
}

.btn-karne {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--primary);
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-karne:active {
  background: var(--primary);
  color: #fff;
}

.btn-details {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Detay Ders Akordiyonu */
.exam-detail-drawer {
  display: none;
  padding: 10px 14px 14px 14px;
  border-top: 1px dashed var(--border-color);
  background: #fafafa;
}

.exam-detail-drawer.open {
  display: block;
}

.lesson-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lesson-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
}

.lesson-chip .l-name {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.lesson-chip .l-stats {
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   KONU ANALİZİ (TOPIC ANALYSIS)
   ========================================================================== */
/* Alt Sekmeler (Dersler / Öncelikli Çalışma) */
.topic-subtabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.topic-subtab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.topic-subtab-btn:hover {
  color: var(--text-main);
}

.topic-subtab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
}

body.theme-limon .topic-subtab-btn.active {
  background: #facc15;
  color: #1e293b;
  box-shadow: 0 3px 12px rgba(250, 204, 21, 0.40);
}

body:not(.theme-limon) .topic-subtab-btn.active {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.16);
}

.topic-subtab-badge {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.theme-limon .topic-subtab-badge {
  background: rgba(0, 0, 0, 0.14);
  color: #0f172a;
}

.subtab-text-full {
  display: inline;
}
.subtab-text-short {
  display: none;
}
@media (max-width: 480px) {
  .subtab-text-full {
    display: none !important;
  }
  .subtab-text-short {
    display: inline !important;
  }
}

.topic-filter-bar {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.topic-filter-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topic-filter-btn:hover {
  color: var(--text-main);
}

.topic-filter-btn.active {
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.theme-limon .topic-filter-btn.active {
  background: #facc15;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.40);
}

body:not(.theme-limon) .topic-filter-btn.active {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.16);
}

.topic-filter-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  border: 1px dashed rgba(0, 0, 0, 0.06);
}

.lesson-accordion {
  background: #ffffff;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* 🎯 Akıllı Çalışma Reçetesi (Öncelikli Konular) */
.study-prescription-box {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

body.theme-limon .study-prescription-box {
  border-color: #fde047;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.12);
}

body:not(.theme-limon) .study-prescription-box {
  border-color: #fecaca;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.spb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.spb-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.spb-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

body.theme-limon .spb-icon {
  background: #fef9c3;
  color: #a16207;
}

.spb-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.spb-sub {
  font-size: 0.70rem;
  color: #64748b;
  margin-top: 1px;
}

.spb-gain-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

body.theme-limon .spb-gain-badge {
  background: #fefce8;
  border-color: #fde047;
}

.spb-gain-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #dc2626;
}

body.theme-limon .spb-gain-val {
  color: #a16207;
}

.spb-gain-lbl {
  font-size: 0.60rem;
  color: #94a3b8;
  font-weight: 600;
}

.spb-topics-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spb-topic-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
}

.spb-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.spb-card-main {
  flex: 1;
}

.spb-card-ders {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.spb-card-name {
  display: block;
  font-size: 0.80rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.spb-card-gain {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid;
  white-space: nowrap;
}

.spb-card-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.70rem;
  color: #64748b;
  margin-bottom: 4px;
}

.spb-card-stats .text-err {
  color: #dc2626;
  font-weight: 700;
}

.spb-action-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: auto;
}

.spb-card-advice {
  font-size: 0.68rem;
  color: #475569;
  line-height: 1.35;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 4px 6px;
}

.spb-card-advice i {
  color: #f59e0b;
}

.badge-recete-mini {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-recete-acil { background: #fee2e2; color: #dc2626; }
.badge-recete-pratik { background: #fef3c7; color: #d97706; }
.badge-recete-pekistirme { background: #dcfce7; color: #15803d; }
.badge-recete-basarili { background: #dbeafe; color: #1d4ed8; }

/* Öncelikli Çalışma Ders Filtre Hapları */
.spb-lesson-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.spb-lesson-pill {
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.spb-lesson-pill:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-main);
}

.spb-lesson-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.theme-limon .spb-lesson-pill.active {
  background: #facc15;
  color: #0f172a;
  border-color: #eab308;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
}

body:not(.theme-limon) .spb-lesson-pill.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* Sayfalandırma */
.spb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.spb-page-btn {
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #ffffff;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 34px;
  text-align: center;
}

.spb-page-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}

.spb-page-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 700;
}

body.theme-limon .spb-page-btn.active {
  background: #facc15;
  color: #0f172a;
  border-color: #eab308;
}

body:not(.theme-limon) .spb-page-btn.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.spb-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.spb-page-info {
  width: 100%;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 500;
}

.lesson-accordion:active {
  transform: scale(0.995);
}

.lesson-accordion:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.05);
  border-color: #94a3b8;
}

body.theme-limon .lesson-accordion {
  border: 1.5px solid #facc15;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.14), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-limon .lesson-accordion:hover,
body.theme-limon .lesson-accordion:active {
  border-color: #eab308;
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.22), 0 2px 6px rgba(0, 0, 0, 0.06);
}

body:not(.theme-limon) .lesson-accordion {
  border: 1.5px solid #fecaca;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.09), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body:not(.theme-limon) .lesson-accordion:hover,
body:not(.theme-limon) .lesson-accordion:active {
  border-color: #f87171;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
}

body.theme-limon .lesson-badge {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
  box-shadow: 0 1px 3px rgba(161, 98, 7, 0.12);
}

body:not(.theme-limon) .lesson-badge {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}

body.theme-limon .lesson-konu-badge {
  color: #a16207;
}

.lesson-header {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: #ffffff;
}

.lesson-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.lesson-title-area h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
}

.lesson-title-area .sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.progress-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.progress-pill.iyi { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.progress-pill.orta { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.progress-pill.zayif { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.lesson-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-expand-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lesson-header:hover .lesson-expand-btn,
.lesson-header:active .lesson-expand-btn {
  background: var(--primary-subtle);
  border-color: var(--primary);
}

.lesson-arrow {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.lesson-arrow.rotated {
  transform: rotate(180deg);
  color: var(--primary);
}

.lesson-konu-badge {
  color: var(--primary);
  font-weight: 700;
}

.topics-list {
  display: none;
  padding: 12px 14px 14px 14px;
  border-top: 1px solid var(--border-color);
  background: #f1f5f9;
}

.topics-list.open {
  display: block;
}

.topic-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 10px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-item:hover,
.topic-item:active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  border-color: #94a3b8;
}

.topic-clickable-header {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 2px 0;
}

.topic-clickable-header:hover {
  opacity: 0.95;
}

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 7px;
  cursor: inherit;
  user-select: none;
}

.topic-clickable-header .topic-progress-bar,
.topic-clickable-header .topic-progress-fill {
  pointer-events: none;
}

.topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-meta strong {
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
}

.topic-chevron {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.25s ease;
}

.topic-chevron.rotated {
  transform: rotate(180deg);
  color: var(--primary);
}

.topic-progress-bar {
  height: 7px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.topic-progress-fill {
  height: 100%;
  border-radius: 4px;
}

.topic-progress-fill.iyi { background: var(--success); }
.topic-progress-fill.orta { background: var(--warning); }
.topic-progress-fill.zayif { background: var(--danger); }

/* Yayınevi Dağılımı ve Soru Detayları */
.topic-yayinlar-wrap {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.topic-yayinlar-wrap.open {
  display: block;
  animation: fadeInTopic 0.2s ease;
}

@keyframes fadeInTopic {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.topic-yayinlar-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.topic-yayinlar-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yayin-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.yayin-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.yayin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  background: #ffffff;
  user-select: none;
  transition: background 0.15s;
}

.yayin-header:active,
.yayin-header:hover {
  background: #f1f5f9;
}

.yayin-title-area {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
}

.yayin-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yayin-badge-count {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

body.theme-limon .yayin-badge-count {
  background: rgba(202, 138, 4, 0.15);
  color: #a16207;
}

.yayin-stats-area {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
}

.stat-pill {
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
}

.stat-pill.d { background: #dcfce7; color: #166534; }
.stat-pill.y { background: #fee2e2; color: #991b1b; }
.stat-pill.b { background: #f1f5f9; color: #64748b; }
.stat-pill.pct.iyi { background: #dcfce7; color: #166534; }
.stat-pill.pct.orta { background: #fef3c7; color: #b45309; }
.stat-pill.pct.zayif { background: #fee2e2; color: #991b1b; }

.yayin-arrow {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.yayin-arrow.rotated {
  transform: rotate(90deg);
  color: var(--primary);
}

.yayin-questions-list {
  display: none;
  padding: 8px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.yayin-questions-list.open {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yayin-questions-list .eb-questions-table {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin: 2px 0;
  border: 1px solid var(--border-color);
}

.question-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  border-left-width: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.question-row:hover,
.question-row:active {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
  border-color: #94a3b8;
}

.question-row.dogru { border-left-color: #22c55e; }
.question-row.yanlis { border-left-color: #ef4444; }
.question-row.bos { border-left-color: #94a3b8; }

/* --- 3 Satırlı Soru Kartı Yerleşimi --- */
.q-row-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.q-num-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  flex-shrink: 0;
}

body.theme-limon .q-num-badge {
  color: #a16207;
}

.q-topic-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.q-topic-tag i {
  font-size: 0.65rem;
  color: var(--primary);
  opacity: 0.85;
}

/* Satır 2: Rozetler ve Cevaplar */
.q-row-mid {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  flex-wrap: wrap;
}

.q-kitapcik-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.q-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.q-status-badge.dogru { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.q-status-badge.yanlis { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.q-status-badge.bos { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

.q-answers-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.70rem;
  color: #475569;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}

.q-answers-box strong {
  font-weight: 800;
  color: #0f172a;
}

.q-answers-box .ans-ok {
  color: #15803d;
}

.q-dot {
  color: #cbd5e1;
  font-weight: 800;
}

/* Satır 3: Soruyu Gör ve Video Çözüm Eylem Butonları */
.q-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.q-row-actions .btn-view-soru,
.q-row-actions .btn-view-video {
  flex: 1;
  height: 32px;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-view-soru {
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.btn-view-soru:hover,
.btn-view-soru:active {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.btn-view-video {
  border: 1.5px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25), 0 1px 3px rgba(220, 38, 38, 0.08);
}

.btn-view-video:hover,
.btn-view-video:active {
  background: #fee2e2;
  border-color: #f87171;
}

.btn-view-soru i,
.btn-view-video i {
  font-size: 0.72rem;
  width: 14px;
  text-align: center;
}

/* Legacy Fallbacks */
.q-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.q-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.q-exam-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  margin-bottom: 2px;
}

.q-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}

.q-actions-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   SINAV TAKVİMİ (EXAM CALENDAR)
   ========================================================================== */
.calendar-item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.calendar-date-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.calendar-date-box .day {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.calendar-date-box .month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-info {
  flex: 1;
}

.calendar-info h4 {
  font-size: 0.94rem;
  font-weight: 750;
  margin: 0;
  line-height: 1.35;
  color: var(--text-main);
}

.calendar-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  align-self: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.calendar-badge.upcoming { background: #dbeafe; color: #1e40af; }
.calendar-badge.today { background: #fef08a; color: #0f172a; font-weight: 700; }
.calendar-badge.published { background: #dcfce7; color: #166534; }
.calendar-badge.completed { background: #f1f5f9; color: #64748b; }

/* Resimli Takvim (Afiş Görünümü) */
.calendar-image-container {
  padding: 2px 0 24px 0;
}

.calendar-image-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
}

.calendar-image-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #fafafa;
}

.btn-cal-zoom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.calendar-img-wrapper {
  position: relative;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  padding: 6px;
}

.calendar-img-full {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.calendar-img-overlay {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  pointer-events: none;
  white-space: nowrap;
}

/* Çoklu Takvim Görseli Tab ve Navigasyon Stilleri */
.cal-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px 2px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cal-tabs-bar::-webkit-scrollbar {
  display: none;
}

.cal-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cal-tab-chip:active {
  transform: scale(0.95);
}

body.theme-limon .cal-tab-chip.active {
  background: #0f172a;
  color: #facc15;
  border-color: #0f172a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

body:not(.theme-limon) .cal-tab-chip.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.25);
}

.cal-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.cal-header-info strong {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-page-badge {
  font-size: 0.70rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-main);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.cal-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

.btn-cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-cal-nav:active {
  background: rgba(0, 0, 0, 0.05);
}

.cal-dots-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cal-dot.active {
  width: 22px;
  border-radius: 10px;
  background: var(--primary);
}

/* ==========================================================================
   SINAV TAKVİMİ TAM EKRAN VE YAKINLAŞTIRMA (LIGHTBOX / PINCH-TO-ZOOM)
   ========================================================================== */
.cal-lightbox-modal,
.lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  padding: 0;
}

.cal-lightbox-modal.active,
.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  display: flex !important;
  pointer-events: auto !important;
}

/* Üst Header Bar: iOS Safe Area (Çentik / Dynamic Island) Korunmalı */
.cal-lightbox-topbar {
  flex-shrink: 0;
  width: 100%;
  padding-top: max(14px, env(safe-area-inset-top, 16px));
  padding-bottom: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 75%, transparent 100%);
  z-index: 1000005;
  pointer-events: auto;
}

.cal-lightbox-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cal-lightbox-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #facc15;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal-lightbox-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55vw;
}

.cal-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cal-lightbox-zoom-badge {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 9px;
  border-radius: 12px;
  min-width: 44px;
  text-align: center;
}

/* Büyük, iOS Uyumlu Kapat Butonu */
.cal-lightbox-btn-close,
.lightbox-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  min-height: 40px !important;
  border-radius: 20px !important;
  background: rgba(239, 68, 68, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  pointer-events: auto !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
}

.cal-lightbox-btn-close:active,
.lightbox-close:active {
  transform: scale(0.94);
  background: #dc2626 !important;
}

/* Görsel Alanı (Viewport & Stage) */
.cal-lightbox-viewport {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
}

.cal-lightbox-viewport.is-dragging {
  cursor: grabbing;
}

.cal-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.cal-lightbox-stage img,
.lightbox-modal img {
  max-width: 95vw;
  max-height: 72vh;
  max-height: 72dvh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Alt Araç Çubuğu (Bottom Toolbar) - iOS Safe Area Destekli */
.cal-lightbox-toolbar {
  flex-shrink: 0;
  width: 100%;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
  padding-top: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 75%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 1000005;
  pointer-events: auto;
}

.cal-lightbox-tool-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.cal-lightbox-tool-btn:active {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0.92);
}

.cal-lightbox-btn-reset {
  border-radius: 20px;
  width: auto;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
  gap: 4px;
}

.cal-lightbox-zoom-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-lightbox-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-lightbox-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

.cal-lightbox-bottom-close {
  border-radius: 20px;
  width: auto;
  padding: 0 14px;
  background: rgba(239, 68, 68, 0.9);
  border-color: rgba(239, 68, 68, 0.5);
  font-size: 13px;
  font-weight: 700;
  gap: 5px;
}

.cal-lightbox-bottom-close:active {
  background: #dc2626;
  transform: scale(0.92);
}

/* İpucu Rozeti (İlk açılışta animasyonlu) */
.cal-lightbox-hint {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1000006;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   DUYURULAR (ANNOUNCEMENTS)
   ========================================================================== */
.announcement-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.announcement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.announcement-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.announcement-tag.onemli { background: #fee2e2; color: #991b1b; }
.announcement-tag.sinav { background: #e0e7ff; color: #3730a3; }
.announcement-tag.bilgi { background: #e0f2fe; color: #0369a1; }
.announcement-tag.normal { background: #f1f5f9; color: #475569; }

.announcement-date {
  font-size: 0.72rem;
  color: var(--text-light);
}

.announcement-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.announcement-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   IN-APP REPORT CARD MODAL (TAM KARNE GÖRÜNTÜLEYİCİ)
   ========================================================================== */
.karne-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #ffffff;
  flex-direction: column;
}

.karne-modal.active {
  display: flex;
}

.karne-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 14px 10px 14px;
  background: #0f172a;
  color: #ffffff;
  z-index: 20;
}

.karne-modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.karne-modal-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.karne-modal-action-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.3);
}

.karne-modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.karne-modal-close:active {
  transform: scale(0.92);
}

.karne-loader-container {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 10;
  transition: opacity 0.25s ease;
}

.karne-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f1f5f9;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 18px;
}

.karne-loader-container h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.karne-loader-container p {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 290px;
  line-height: 1.45;
}

.karne-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.karne-iframe.loaded {
  opacity: 1;
}

/* ==========================================================================
   PWA INSTALL BANNER
   ========================================================================== */
.pwa-banner {
  display: none;
  background: #0f172a;
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-banner.show {
  display: flex;
}

.pwa-banner .txt {
  font-size: 0.8rem;
  line-height: 1.3;
}

.pwa-banner button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ==========================================================================
   UTILITY & ANIMATIONS
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ==========================================================================
   GELİŞİM GRAFİĞİ DENEME NET LİSTESİ & DERS AKORDİYONU
   ========================================================================== */
.trend-exam-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.trend-exam-card:hover,
.trend-exam-card:active {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.05);
}

.trend-exam-head {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s ease;
  gap: 5px;
}

.trend-exam-head:active {
  background: rgba(0, 0, 0, 0.03);
}

.trend-exam-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.trend-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-badge-attended {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.trend-exam-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 3px 0 1px 0;
}

.trend-exam-title-row .trend-exam-name {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.trend-exam-name {
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--text-main);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  margin: 3px 0 1px 0;
}

.trend-exam-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  line-height: 1.35;
  white-space: nowrap;
}

.meta-tag i {
  font-size: 0.74rem;
}

.meta-tag.date-tag {
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.meta-tag.kurum-tag {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.meta-tag.tg-tag {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.meta-tag.yuzdelik-badge {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7.5px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.35;
}

.meta-tag.yuzdelik-badge strong {
  font-weight: 750;
}

.meta-tag.yuzdelik-badge i {
  font-size: 0.70rem;
  color: #7c3aed;
}

body.theme-limon .meta-tag.yuzdelik-badge {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

body.theme-limon .meta-tag.yuzdelik-badge i {
  color: #ca8a04;
}

.meta-tag.sinif-tag {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.trend-exam-net-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trend-score-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend-net-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 4px 8px;
  border-radius: 9px;
  text-align: center;
  min-width: 58px;
  transition: transform 0.15s ease;
}

.trend-net-pill.unattended {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--text-muted);
}

.trend-net-pill .t-net-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.trend-net-pill .t-net-txt {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.25px;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

.trend-net-pill .t-net-q {
  font-weight: 700;
  opacity: 0.88;
  margin-left: 2px;
}

/* Limon İçin Koyu Sarı / Altın Sarısı Net Değerleri */
body.theme-limon .trend-net-pill {
  border-color: #fde68a;
  background: #fffdf5;
}

body.theme-limon .trend-net-pill .t-net-num {
  color: #a16207; /* Koyu tok sarı, yüksek kontrast ve net okunabilirlik */
}

body.theme-limon .trend-net-pill .t-net-txt {
  color: #854d0e; /* Koyu kehribar sarı */
}

body.theme-limon #statAvgNet {
  color: #a16207 !important;
}

.trend-puan-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 8px;
  border-radius: 9px;
  text-align: center;
  min-width: 58px;
  transition: transform 0.15s ease;
}

.trend-puan-pill .t-puan-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #15803d;
  display: block;
  line-height: 1;
}

.trend-puan-pill .t-puan-txt {
  font-size: 0.58rem;
  font-weight: 800;
  color: #166534;
  letter-spacing: 0.4px;
  display: block;
  margin-top: 2px;
}

.trend-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
  width: 16px;
  text-align: center;
}

.trend-arrow.rotated {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Çekmece (Drawer) */
.trend-exam-drawer {
  display: none;
  padding: 4px 14px 14px 14px;
  border-top: 1px dashed var(--border-color);
  background: rgba(0, 0, 0, 0.015);
  animation: trendFadeDown 0.22s ease-out;
}

.trend-exam-drawer.open {
  display: block;
}

@keyframes trendFadeDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.trend-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 8px 0;
}

.trend-drawer-header strong {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.trend-lesson-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.trend-lesson-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.trend-lesson-card:hover,
.trend-lesson-card:active {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10), 0 2px 4px rgba(0, 0, 0, 0.05);
  border-color: #94a3b8;
}

body.theme-limon .trend-lesson-card {
  border-color: #fde047;
  box-shadow: 0 3px 10px rgba(202, 138, 4, 0.10), 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.theme-limon .trend-lesson-card:hover,
body.theme-limon .trend-lesson-card:active {
  border-color: #eab308;
  box-shadow: 0 6px 16px rgba(202, 138, 4, 0.16), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trend-lesson-clickable-head {
  padding: 10px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  background: #ffffff;
}

.trend-lesson-clickable-head:active {
  background: #f8fafc;
}

body.theme-limon .trend-lesson-clickable-head:active {
  background: #fffdf5;
}

.trend-lesson-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.trend-lesson-head-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.trend-lesson-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

body.theme-limon .trend-lesson-icon {
  background: #fef9c3;
  color: #a16207;
}

.trend-lesson-text {
  min-width: 0;
  flex: 1;
}

.trend-lesson-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.trend-lesson-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.trend-lesson-sub {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-lesson-kcount {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.70rem;
  flex-shrink: 0;
  white-space: nowrap;
}

body.theme-limon .trend-lesson-kcount {
  color: #a16207;
}

.trend-lesson-head-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.trend-lnet-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 2px 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  line-height: 1.1;
}

.trend-lnet-num {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-dark);
}

body.theme-limon .trend-lnet-num {
  color: #a16207;
}

.trend-lnet-txt {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.trend-lesson-clickable-head .progress-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}

.trend-lesson-clickable-head .lesson-arrow {
  font-size: 0.82rem;
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  margin-left: 2px;
}

.trend-lesson-clickable-head .lesson-arrow.rotated {
  transform: rotate(180deg);
  color: var(--primary);
}

body.theme-limon .trend-lesson-clickable-head .lesson-arrow.rotated {
  color: #a16207;
}

.trend-lesson-card .trend-lesson-bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
}

.trend-lesson-card .trend-lesson-fill {
  height: 100%;
  border-radius: 0;
  transition: width 0.3s ease;
  background: var(--primary);
}

.trend-lesson-card .trend-lesson-fill.iyi { background: #22c55e; }
.trend-lesson-card .trend-lesson-fill.orta { background: #eab308; }
.trend-lesson-card .trend-lesson-fill.zayif { background: #ef4444; }

body.theme-limon .trend-lesson-fill {
  background: #ca8a04;
}

body.theme-limon .trend-drawer-header strong i {
  color: #a16207 !important;
}

/* Sınav İçi Konu ve Soru Analizi Çekmecesi */
.trend-lesson-topics-drawer {
  display: none;
  padding: 10px 10px 12px 10px;
  background: #f8fafc;
  border-top: 1px dashed #cbd5e1;
  animation: trendFadeDown 0.22s ease-out;
}

.trend-lesson-topics-drawer.open {
  display: block;
}

body.theme-limon .trend-lesson-topics-drawer {
  background: #fffdf5;
  border-top: 1px dashed #fde047;
}

.exam-lesson-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 9px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.eldh-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.eldh-info strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

.eldh-sub {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-toggle-topics-summary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.70rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-toggle-topics-summary:hover,
.btn-toggle-topics-summary.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

body.theme-limon .btn-toggle-topics-summary.active {
  background: #facc15;
  border-color: #eab308;
  color: #0f172a;
}

.exam-topics-summary-box {
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  animation: trendFadeDown 0.2s ease-out;
}

.topics-list-exam {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-item-compact {
  padding: 5px 2px;
  border-bottom: 1px dashed #f1f5f9;
}

.topic-item-compact:last-child {
  border-bottom: none;
}

.topic-item-compact .topic-header {
  font-size: 0.74rem;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.topic-item-compact .topic-header span {
  font-weight: 700;
  color: var(--text-main);
}

.topic-item-compact .topic-header .topic-meta strong {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.exam-questions-list-ordered {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.btn-trend-karne {
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-trend-karne:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-trend-karne:active {
  transform: scale(0.98);
}

.btn-trend-karne i {
  font-size: 0.98rem;
  color: #ffffff;
}

/* ==========================================================================
   SINAV KARTLARI (SONUÇLAR SAYFASI) SIRALAMA VE KATILMADI TASARIMI
   ========================================================================== */
.exam-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 10px 0 12px 0;
}

.metric-chip {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 7px 4px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.metric-chip .m-chip-lbl {
  display: block;
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-chip .m-chip-val {
  display: block;
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-unattended-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.unattended-card {
  opacity: 0.85;
  background: #fbfbfc !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-left: 5px solid #94a3b8 !important;
}

.unattended-card .trend-exam-drawer {
  background: #f8fafc !important;
}

.no-pointer {
  cursor: default !important;
}

.no-pointer:active {
  background: transparent !important;
}

.text-muted {
  color: #64748b !important;
}

/* ==========================================================================
   SOFT RENKLİ DENEME KARTLARI & AKORDİYON AYIRIMI
   ========================================================================== */
.trend-exam-card.soft-card-0 {
  background: #fefce8;
  border: 1.5px solid #facc15;
  border-left: 6px solid #eab308;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.14), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.trend-exam-card.soft-card-0:hover,
.trend-exam-card.soft-card-0:active {
  border-color: #eab308;
  box-shadow: 0 6px 20px rgba(202, 138, 4, 0.22), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.trend-exam-card.soft-card-0 .trend-exam-drawer {
  background: #ffffff;
  border-top: 1px dashed #fde047;
}

.trend-exam-card.soft-card-1 {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-left: 6px solid #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.13), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.trend-exam-card.soft-card-1:hover,
.trend-exam-card.soft-card-1:active {
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.20), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.trend-exam-card.soft-card-1 .trend-exam-drawer {
  background: #ffffff;
  border-top: 1px dashed #bfdbfe;
}

.trend-exam-card.soft-card-2 {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-left: 6px solid #16a34a;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.13), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.trend-exam-card.soft-card-2:hover,
.trend-exam-card.soft-card-2:active {
  border-color: #22c55e;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.20), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.trend-exam-card.soft-card-2 .trend-exam-drawer {
  background: #ffffff;
  border-top: 1px dashed #bbf7d0;
}

.trend-exam-card.soft-card-3 {
  background: #faf5ff;
  border: 1.5px solid #c4b5fd;
  border-left: 6px solid #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.13), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.trend-exam-card.soft-card-3:hover,
.trend-exam-card.soft-card-3:active {
  border-color: #8b5cf6;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.20), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.trend-exam-card.soft-card-3 .trend-exam-drawer {
  background: #ffffff;
  border-top: 1px dashed #ddd6fe;
}

/* Soft zemin üstünde beyaz net/puan kutucukları ve etiket kontrastı */
.trend-exam-card .trend-net-pill,
.trend-exam-card .trend-puan-pill {
  background: #ffffff !important;
}
.trend-exam-card .meta-tag.date-tag {
  background: rgba(255, 255, 255, 0.85);
}
.trend-exam-card .meta-tag.kurum-tag,
.trend-exam-card .meta-tag.tg-tag,
.trend-exam-card .meta-tag.sinif-tag {
  background: #ffffff;
}

/* ==========================================================================
   KARNE AKORDİYON SEKME & ÇEKMECE TASARIMI (#VIEW-KARNE)
   ========================================================================== */
#view-karne {
  width: 100%;
}

.karne-accordion-drawer {
  padding: 8px 12px 14px 12px;
}

.karne-drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px 10px 4px;
  margin-top: 4px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.karne-drawer-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-karne-popout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.btn-karne-popout:hover {
  background: var(--primary-subtle);
}

.btn-karne-popout:active {
  transform: scale(0.96);
}

.karne-drawer-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin: 10px 0;
  text-align: center;
}

.karne-iframe-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-top: 8px;
}

.karne-inline-iframe {
  width: 100%;
  height: auto;
  min-height: 200px;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden !important;
}

.karne-inline-iframe.loaded {
  opacity: 1;
}

.btn-karne-collapse {
  display: none !important;
}

.meta-tag.karne-click-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 700;
}

body.theme-limon .meta-tag.karne-click-tag {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

/* ==========================================================================
   HATA DEFTERİ (ERROR BOOK) STİLLERİ
   ========================================================================== */
.errorbook-header-container {
  margin-bottom: 10px;
}

.errorbook-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.errorbook-header-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.errorbook-header-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.btn-errorbook-print-head {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  touch-action: manipulation;
  transition: all 0.2s ease;
}

body.theme-limon .btn-errorbook-print-head {
  background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
  border-color: rgba(250, 204, 21, 0.4);
}

.btn-errorbook-print-head:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Motivasyon & İlerleme Kartı - Ultra Kompakt Daraltılmış Yükseklik */
.errorbook-progress-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 6px 10px 5px 10px;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eb-progress-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  margin-bottom: 5px;
}

.eb-stat-box {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
}

.eb-stat-val {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1;
  color: var(--text-main);
}

.eb-stat-box.text-success .eb-stat-val {
  color: #16a34a;
}

.eb-stat-box.text-warning .eb-stat-val {
  color: #ea580c;
}

.eb-stat-lbl {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
}

.eb-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 3px;
}

.eb-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ca8a04 0%, #16a34a 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.eb-progress-desc {
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.2;
}

@media (max-width: 360px) {
  .eb-stat-box {
    gap: 3px;
    padding: 3px 2px;
  }
  .eb-stat-val {
    font-size: 0.95rem;
  }
  .eb-stat-lbl {
    font-size: 0.58rem;
  }
}

/* Filtreleme Kartı */
.errorbook-filters-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 11px 13px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eb-filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eb-filter-group-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.eb-filter-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.eb-chip {
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.eb-chip:hover {
  border-color: var(--primary);
}

.eb-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.theme-limon .eb-chip.active {
  background: #facc15;
  color: #1e293b;
  border-color: #eab308;
  font-weight: 700;
}

.eb-sub-filters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  overflow: visible;
}

.eb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.eb-pill {
  background: var(--bg-main, #f8fafc);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.eb-pill:hover {
  border-color: #64748b;
  color: var(--text-main);
}

.eb-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
}

.eb-pill[data-status="unresolved"].active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.eb-pill[data-status="resolved"].active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.eb-pill[data-status="yanlis"].active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.eb-pill[data-status="bos"].active {
  background: #475569;
  border-color: #475569;
  color: #ffffff;
}

/* ==========================================================================
   BİRLEŞİK, DAR VE TEK SATIR HATA DEFTERİ LİSTESİ (SINGLE ROW TABLE)
   ========================================================================== */
.eb-questions-table {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.eb-q-row-item {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.18s ease;
  position: relative;
}

.eb-q-row-item:last-child {
  border-bottom: none;
}

.eb-q-row-item.is-understood {
  background: rgba(220, 252, 231, 0.35);
}

/* Soru Sıralı Dökümde Doğru Sorular İçin Soft Yeşil Zemin */
.eb-q-row-item.is-dogru {
  background: #f0fdf4;
}

.eb-q-row-item.is-dogru:hover,
.eb-q-row-item.is-dogru .eb-q-row-summary:active {
  background: #dcfce7;
}

/* Soru Sıralı Dökümde Yanlış Sorular İçin Soft Kırmızı/Pembe Zemin */
.eb-q-row-item.is-yanlis {
  background: #fef2f2;
}

.eb-q-row-item.is-yanlis:hover,
.eb-q-row-item.is-yanlis .eb-q-row-summary:active {
  background: #fee2e2;
}

/* Soru Sıralı Dökümde Boş Bırakılan Sorular İçin Soft Nötr Gri Zemin */
.eb-q-row-item.is-bos {
  background: #f8fafc;
}

.eb-q-row-item.is-bos:hover,
.eb-q-row-item.is-bos .eb-q-row-summary:active {
  background: #f1f5f9;
}



/* Soru Açıldığında Belirgin Kart Ayrımı ve Sınır Çizgileri */
.eb-q-row-item.open {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-bottom: 3px solid #cbd5e1 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

body.theme-limon .eb-q-row-item.open {
  background: #fdfcf7;
  border-left: 4px solid #eab308;
  border-bottom: 3px solid #cbd5e1 !important;
}

.eb-q-row-item.open .eb-q-row-summary {
  background: rgba(0, 0, 0, 0.025);
  border-bottom: 1px dashed var(--border-color);
}

body.theme-limon .eb-q-row-item.open .eb-q-row-summary {
  background: rgba(250, 204, 21, 0.08);
}

.eb-q-row-item.is-dogru.open {
  border-left-color: #16a34a !important;
}

.eb-q-row-item.is-dogru.open .eb-q-row-summary {
  background: rgba(22, 163, 74, 0.06) !important;
}

.eb-q-row-item.is-bos.open {
  border-left-color: #64748b !important;
}

.eb-q-row-item.is-bos.open .eb-q-row-summary {
  background: rgba(100, 116, 139, 0.05) !important;
}

/* Tek Satır Soru Özeti */
.eb-q-row-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 46px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease;
}

.eb-q-row-summary:active {
  background: rgba(0, 0, 0, 0.04);
}

/* Sol Taraf: Ders Kodu, Soru No, Konu */
.eb-row-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.eb-row-ders-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2.5px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  line-height: 1;
}

/* Özel ders rozet renkleri */
.eb-row-ders-badge.eb-ders-tr,
.eb-row-ders-badge.eb-ders-turkce,
.eb-row-ders-badge.eb-ders-turkce { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

.eb-row-ders-badge.eb-ders-mat,
.eb-row-ders-badge.eb-ders-matematik { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }

.eb-row-ders-badge.eb-ders-fen,
.eb-row-ders-badge.eb-ders-fiz,
.eb-row-ders-badge.eb-ders-fizik { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }

.eb-row-ders-badge.eb-ders-kim,
.eb-row-ders-badge.eb-ders-kimya { background: #fef3c7; color: #b45309; border-color: #fde68a; }

.eb-row-ders-badge.eb-ders-biy,
.eb-row-ders-badge.eb-ders-biyoloji { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

.eb-row-ders-badge.eb-ders-sos,
.eb-row-ders-badge.eb-ders-tar,
.eb-row-ders-badge.eb-ders-tarih,
.eb-row-ders-badge.eb-ders-cog,
.eb-row-ders-badge.eb-ders-cografya { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }

.eb-row-ders-badge.eb-ders-ing,
.eb-row-ders-badge.eb-ders-ingilizce { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }

.eb-row-ders-badge.eb-ders-din { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }

.eb-row-no {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.eb-row-topic {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* Sağ Taraf: Cevap Karşılaştırması, Durum Rozeti, Açılır Ok */
.eb-row-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.eb-row-ans-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.eb-ans-val {
  font-weight: 800;
}

.eb-ans-val.wrong {
  color: #dc2626;
  text-decoration: line-through;
}

.eb-ans-val.bos {
  color: #64748b;
  font-size: 0.70rem;
}

.eb-ans-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.eb-ans-val.correct {
  color: #16a34a;
}

/* Durum Mini Simgesi */
.eb-row-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.eb-row-status-icon.is-wrong {
  background: #fee2e2;
  color: #dc2626;
}

.eb-row-status-icon.is-bos {
  background: #f1f5f9;
  color: #64748b;
}

.eb-row-status-icon.is-ok {
  background: #dcfce7;
  color: #16a34a;
}

.eb-row-chevron {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.22s ease;
  margin-left: 2px;
}

.eb-q-row-item.open .eb-row-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Açılır Çekmece (Expandable Drawer - Soruya Girince) */
.eb-q-row-drawer {
  display: none;
  background: #f8fafc;
  border-top: 1px dashed var(--border-color);
  padding: 14px 14px 14px 14px;
  animation: ebDrawerFadeIn 0.18s ease-out;
}

body.theme-limon .eb-q-row-drawer {
  background: #fdfcf7;
}

.eb-q-row-item.open .eb-q-row-drawer {
  display: block;
}

/* Çekmece İçi: Konu Başlığı & Kitapçık */
.eb-drawer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.eb-drawer-topic-title {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.eb-drawer-topic-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-drawer-topic-title i {
  color: #3b82f6;
  flex-shrink: 0;
}

.eb-drawer-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.eb-drawer-tag {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Çekmece İçi Cevap Kutusu */
.eb-drawer-ans-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.80rem;
}

.eb-drawer-ans-box .eb-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  margin-right: 4px;
}

/* Çekmece Aksiyon Butonları */
.eb-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.eb-drawer-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 750;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.eb-drawer-btn:active {
  transform: scale(0.96);
}

.eb-drawer-btn-view {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: var(--text-main);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.eb-drawer-btn-view:hover {
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.eb-drawer-btn-view:active {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
  transform: scale(0.97);
}

.eb-drawer-btn-video {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.theme-limon .eb-drawer-btn-video {
  background: #ca8a04;
  box-shadow: 0 3px 8px rgba(202, 138, 4, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.eb-drawer-btn-video:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
}

.eb-drawer-btn-video:active {
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
  transform: scale(0.97);
}

/* Çekmece Anladım / Anlamadım Butonları */
.eb-drawer-understand-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-understand {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 750;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.btn-understand:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
}

.btn-understand.btn-und-yes:not(.active) i {
  color: #16a34a;
}

.btn-understand.btn-und-no:not(.active) i {
  color: #ea580c;
}

.btn-understand.btn-und-yes:hover,
.btn-understand.btn-und-yes.active {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.40), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.btn-understand.btn-und-no:hover,
.btn-understand.btn-und-no.active {
  background: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.40), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Soru Sonu ve Kapatma Çubuğu (Net Sınır Çizgisi) */
.eb-drawer-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.eb-drawer-footer-line {
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

body.theme-limon .eb-drawer-footer-line {
  background: #cbd5e1;
}

.eb-drawer-footer-btn {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid #cbd5e1;
  padding: 4px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.eb-drawer-footer:hover .eb-drawer-footer-btn,
.eb-drawer-footer:active .eb-drawer-footer-btn {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--bg-card);
  transform: scale(0.97);
}

/* Boş Durum (Empty State) */
.eb-empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eb-empty-state i {
  color: #16a34a;
  margin-bottom: 10px;
}

.eb-empty-state h4 {
  color: var(--text-main);
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 750;
}

/* Alt Bar 6 Buton İnce Ayarları */
.app-nav .nav-item span {
  font-size: 0.58rem;
  line-height: 1.1;
  letter-spacing: -0.2px;
  text-align: center;
  display: block;
}

.app-nav .nav-item i {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   DENEME BAZLI HATA DEFTERİ & HIZLI SORU NAVİGASYONU
   ========================================================================== */
.eb-exam-accordion-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s ease;
}

.eb-exam-accordion-card.open {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.06);
}

.eb-exam-header {
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  background: var(--bg-card);
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.eb-exam-header:active {
  background: var(--bg-main);
}

.eb-exam-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.eb-exam-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

body.theme-limon .eb-exam-icon {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.eb-exam-title-wrap {
  min-width: 0;
  flex: 1;
}

.eb-exam-name {
  margin: 0 0 5px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.38;
}

.eb-exam-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eb-exam-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.eb-badge-yanlis {
  font-size: 0.68rem;
  font-weight: 800;
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 6px;
  border-radius: 6px;
}

.eb-badge-bos {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 6px;
}

.eb-badge-understood {
  font-size: 0.68rem;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 2px 6px;
  border-radius: 6px;
}

.eb-exam-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 1px;
}

.btn-eb-print-exam {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  touch-action: manipulation;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-eb-print-exam:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

body.theme-limon .btn-eb-print-exam:hover {
  background: #facc15;
  border-color: #eab308;
  color: #1e293b;
}

.btn-eb-print-exam:active {
  transform: scale(0.97);
}

.eb-accordion-arrow {
  color: var(--text-muted);
  font-size: 13px;
  transition: transform 0.25s ease;
  padding: 3px;
}

.eb-accordion-arrow.rotated {
  transform: rotate(180deg);
  color: var(--primary);
}

.eb-exam-body {
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
  padding: 12px;
}

/* YATAY HIZLI SORU NAVİGASYON ÇUBUĞU */
.eb-question-nav-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.eb-question-nav-label {
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.eb-question-nav-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.eb-q-nav-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 6px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  transition: all 0.2s ease;
}

.eb-q-nav-pill:active {
  transform: scale(0.92);
}

.eb-q-nav-pill.active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary);
}

.eb-q-nav-pill .eb-pill-ders {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
  white-space: nowrap;
}

.eb-q-nav-pill .eb-pill-no {
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--text-main);
  line-height: 1;
  white-space: nowrap;
}

.eb-q-nav-pill.is-yanlis {
  border-color: #fca5a5;
  background: #fff5f5;
}

.eb-q-nav-pill.is-yanlis .eb-pill-no {
  color: #dc2626;
}

.eb-q-nav-pill.is-bos {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.eb-q-nav-pill.is-bos .eb-pill-no {
  color: #475569;
}

.eb-q-nav-pill.is-understood {
  border-color: #86efac;
  background: #f0fdf4;
}

.eb-q-nav-pill.is-understood .eb-pill-no {
  color: #16a34a;
}

.eb-pill-check {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 8px;
  color: #16a34a;
}

/* Soru Başlık Şeridi */
.eb-q-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.eb-q-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eb-ders-tag {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.eb-qno-tag {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--text-main);
}

.eb-kitapcik-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.eb-card-highlight {
  animation: ebHighlightGlow 2s ease-out;
}

@keyframes ebHighlightGlow {
  0% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.45); transform: translateY(-2px); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.2); }
  100% { box-shadow: var(--shadow-sm); transform: translateY(0); }
}

/* Sonuçlar sekmesindeki Hata Defteri Butonu */
.btn-goto-errorbook {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  font-size: 0.74rem;
  font-weight: 750;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.btn-goto-errorbook:active {
  background: #dc2626;
  color: #ffffff;
}

body.theme-limon .btn-goto-errorbook {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
  color: #a16207;
}

body.theme-limon .btn-goto-errorbook:active {
  background: #ca8a04;
  color: #ffffff;
}

.btn-trend-errorbook {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626 !important;
  font-size: 0.84rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

body.theme-limon .btn-trend-errorbook {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.12);
  color: #a16207 !important;
}

.btn-trend-errorbook:hover {
  transform: translateY(-1px);
}

.btn-trend-errorbook:active {
  transform: scale(0.98);
  background: #dc2626;
  color: #ffffff !important;
}

body.theme-limon .btn-trend-errorbook:active {
  background: #ca8a04;
  color: #ffffff !important;
}

.btn-trend-errorbook i {
  font-size: 0.95rem;
}

/* ==========================================================================
   VİDEO ÇÖZÜM MODALI (IN-APP VIDEO SOLUTION MODAL)
   ========================================================================== */
.video-solution-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 10000100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-modal-dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  height: 86vh;
  max-height: 86dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: videoModalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

@keyframes videoModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.video-modal-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.video-modal-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.video-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

body.theme-limon .video-modal-icon {
  background: rgba(234, 179, 8, 0.16);
  color: #ca8a04;
}

.video-modal-text {
  min-width: 0;
  flex: 1;
}

.video-modal-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
}

.video-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-video-external {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.btn-video-external:active {
  background: var(--primary);
  color: #ffffff;
}

/* Büyük, kolay basılan kapat butonu */
.btn-video-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  min-height: 36px;
  border-radius: 18px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.btn-video-close:active {
  background: #dc2626;
  color: #ffffff;
  transform: scale(0.95);
}

body.theme-limon .btn-video-close {
  background: #fef9c3;
  color: #a16207;
  border-color: #fef08a;
}

body.theme-limon .btn-video-close:active {
  background: #ca8a04;
  color: #ffffff;
}

.video-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
}

.video-modal-player-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

.video-modal-player-container video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.video-modal-footer {
  padding: 8px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.video-modal-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   HATA KİTAPÇIĞI YAZDIRMA & PDF SEÇİM MODALI
   ========================================================================== */
.eb-print-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 10000100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.eb-print-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 29, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eb-print-modal-dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 84vh;
  max-height: 84dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: ebPrintModalSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

@keyframes ebPrintModalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.eb-print-modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  flex-shrink: 0;
}

.eb-print-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.eb-print-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

body.theme-limon .eb-print-modal-icon {
  background: rgba(234, 179, 8, 0.16);
  color: #ca8a04;
}

.eb-print-modal-title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.eb-print-modal-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.btn-eb-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.btn-eb-modal-close:active {
  transform: scale(0.92);
  background: #fee2e2;
  color: #dc2626;
}

.eb-print-modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.eb-print-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eb-print-single-exam-card {
  background: var(--bg-main);
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.theme-limon .eb-print-single-exam-card {
  border-left-color: #eab308;
  background: #fdfcf7;
}

.eb-print-single-exam-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

body.theme-limon .eb-print-single-exam-icon {
  background: rgba(234, 179, 8, 0.16);
  color: #ca8a04;
}

.eb-print-single-exam-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.eb-print-single-exam-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.eb-print-single-exam-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-print-single-exam-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.eb-print-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eb-print-sec-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.eb-print-count-badge {
  font-size: 0.68rem;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
}

.eb-print-quick-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
}

.btn-eb-quick-select {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 750;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

.eb-print-quick-links .divider {
  color: var(--border-color);
}

.eb-print-exams-list {
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-main);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eb-print-exam-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease;
}

.eb-print-exam-row:active {
  background: rgba(0, 0, 0, 0.03);
}

.eb-print-exam-cb {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.eb-print-exam-info {
  min-width: 0;
  flex: 1;
}

.eb-print-exam-name {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.eb-print-exam-meta {
  font-size: 0.70rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.eb-meta-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 750;
  font-size: 0.65rem;
}

.eb-meta-badge.wrong { background: #fee2e2; color: #991b1b; }
.eb-meta-badge.bos { background: #f1f5f9; color: #475569; }

/* Kapsam Seçenekleri Grid */
.eb-print-options-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eb-print-checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eb-print-checkbox-card:active {
  background: rgba(0, 0, 0, 0.03);
}

.eb-print-checkbox-card.full-width {
  width: 100%;
}

.eb-print-checkbox-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.eb-cb-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.eb-cb-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.eb-cb-icon.wrong { background: #fee2e2; color: #dc2626; }
.eb-cb-icon.bos { background: #f1f5f9; color: #64748b; }
.eb-cb-icon.unresolved { background: #ffedd5; color: #ea580c; }

.eb-cb-text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.eb-cb-title,
.eb-cb-content strong {
  font-size: 0.80rem;
  font-weight: 750;
  color: var(--text-main);
  white-space: nowrap;
}

.eb-cb-content small {
  display: none;
}
  line-height: 1.2;
}

.eb-print-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
}

.eb-print-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eb-print-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.btn-eb-modal-cancel {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-eb-modal-submit {
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  transition: all 0.15s ease;
}

.btn-eb-modal-submit:active {
  transform: scale(0.97);
}

body.theme-limon .btn-eb-modal-submit {
  background: #ca8a04;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
}

@media (max-width: 640px) {
  .eb-print-modal {
    padding: 20px 12px calc(20px + env(safe-area-inset-bottom, 0px)) 12px;
  }
  .eb-print-modal-dialog {
    max-height: 80vh;
    max-height: 80dvh;
    border-radius: 18px;
  }
  .eb-print-modal-header {
    padding: 11px 14px;
  }
  .eb-print-modal-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .eb-print-modal-title {
    font-size: 0.92rem;
  }
  .eb-print-modal-sub {
    font-size: 0.70rem;
  }
  .eb-print-modal-body {
    padding: 12px 14px;
    gap: 12px;
  }
  .eb-print-exams-list {
    max-height: 110px;
  }
  .eb-print-checkbox-card {
    padding: 6px 10px;
  }
  .eb-print-modal-footer {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .btn-eb-modal-cancel {
    padding: 9px 12px;
    font-size: 0.80rem;
    flex-shrink: 0;
  }
  .btn-eb-modal-submit {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.82rem;
    white-space: normal;
    text-align: center;
  }
}

/* Modallar açıkken arka plan sayfasının kaymasını (scroll leak) kesinlikle engelle */
body.soru-modal-open,
body.video-modal-open,
body.eb-modal-open,
body.eb-preview-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
}

/* Modal açıkken alt menünün üzerini örtmesini kesin engelle */
body.soru-modal-open .app-nav,
body.soru-modal-open #bottomNav,
body.video-modal-open .app-nav,
body.video-modal-open #bottomNav,
body.eb-modal-open .app-nav,
body.eb-modal-open #bottomNav,
body.eb-preview-open .app-nav,
body.eb-preview-open #bottomNav {
  display: none !important;
}

/* In-App Hata Kitapçığı Önizleme Modalı */
.eb-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000100;
  background: var(--bg-main, #f8fafc);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.eb-preview-header {
  padding-top: max(50px, calc(var(--safe-top) + 14px), env(safe-area-inset-top, 50px));
  padding-bottom: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  z-index: 10000102;
}

body.theme-limon .eb-preview-header {
  background: #18140b;
}

.eb-preview-a4-notice {
  background: #0f172a;
  color: #fde047;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

body.theme-limon .eb-preview-a4-notice {
  background: #241c0e;
  color: #facc15;
}

.btn-eb-preview-back {
  background: rgba(255, 255, 255, 0.20);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  transition: all 0.15s ease;
  min-height: 38px;
}

.btn-eb-preview-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.35);
}

.eb-preview-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eb-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-eb-preview-ext {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.btn-eb-preview-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.btn-eb-preview-close:active {
  transform: scale(0.92);
  background: #dc2626;
}

.btn-eb-preview-print {
  background: #dc2626;
  color: #ffffff !important;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  touch-action: manipulation;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
  transition: all 0.15s ease;
  min-height: 38px;
}

.btn-eb-preview-print:hover,
.btn-eb-preview-print:focus,
.btn-eb-preview-print:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-eb-preview-print:active {
  transform: scale(0.96);
  color: #ffffff !important;
}

body.theme-limon .btn-eb-preview-print {
  background: #ca8a04;
  box-shadow: 0 2px 6px rgba(202, 138, 4, 0.3);
}

.eb-preview-body {
  flex: 1;
  position: relative;
  background: #cbd5e1;
  overflow: hidden;
}

.eb-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  background: #f8fafc;
}

.eb-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   SORU İNCELEME MODALI ALT İNCE KAPAT BUTONU (MOBİL ERİŞİLEBİLİRLİK)
   ========================================================================== */
.soru-modal-footer {
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-soru-modal-bottom-close {
  width: 100%;
  max-width: 280px;
  padding: 7px 18px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.btn-soru-modal-bottom-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-soru-modal-bottom-close:active {
  transform: scale(0.97);
  background: #cbd5e1;
}

body.theme-limon .soru-modal-footer {
  background: #fffdf5;
  border-top: 1px solid #fef08a;
}

body.theme-limon .btn-soru-modal-bottom-close {
  background: #fefce8;
  border-color: #fef08a;
  color: #713f12;
}

body.theme-limon .btn-soru-modal-bottom-close:hover {
  background: #fef08a;
  color: #422006;
}

body.theme-limon .btn-soru-modal-bottom-close:active {
  background: #fde047;
}

/* Soru Modal Footer Önceki / Sonraki Navigasyon Butonları */
.btn-soru-nav {
  padding: 7px 12px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-soru-nav:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-soru-nav:active {
  transform: scale(0.96);
  background: #e2e8f0;
}

.btn-soru-nav.disabled,
.btn-soru-nav:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.theme-limon .btn-soru-nav {
  background: #ffffff;
  border-color: #fef08a;
  color: #713f12;
}

body.theme-limon .btn-soru-nav:hover {
  background: #fefce8;
}

body.theme-limon .btn-soru-nav:active {
  background: #fef08a;
}

/* Soru Modalı İçi Anladım / Henüz Anlamadım Buton Grubu */
.soru-modal-und-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px dashed #e2e8f0;
  flex-shrink: 0;
}

.btn-und-modal {
  flex: 1;
  max-width: 170px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-und-modal.btn-und-yes:hover {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.btn-und-modal.btn-und-yes.active {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.btn-und-modal.btn-und-no:hover {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
}

.btn-und-modal.btn-und-no.active {
  background: #f97316;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25);
}

/* Modal Cevap Barı: Ders & Soru No Rozeti */
.soru-modal-lesson-badge {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

body.theme-limon .soru-modal-lesson-badge {
  background: #fefce8;
  color: #713f12;
  border-color: #fef08a;
}

.soru-modal-booklet-badge {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
  padding: 3.5px 8px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}



/* ==========================================================================
   SORU İNCELEME MODALI - İKİ PARMAKLA BÜYÜTME (PINCH-TO-ZOOM)
   ========================================================================== */
.soru-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 10000150 !important;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  box-sizing: border-box;
  touch-action: none;
  overscroll-behavior: contain;
}

.soru-modal-dialog {
  background: #ffffff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 82vh;
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  overscroll-behavior: contain;
}

@media (max-width: 640px) {
  #soruModal,
  .soru-modal {
    padding: 20px 12px calc(20px + env(safe-area-inset-bottom, 0px)) 12px !important;
  }
  #soruModal .soru-modal-dialog,
  .soru-modal-dialog {
    max-height: 80vh !important;
    max-height: 80dvh !important;
    border-radius: 18px !important;
  }
}

.soru-modal-body {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  position: relative;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain !important;
  text-align: center;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.soru-modal-body img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.soru-modal-content {
  transform-origin: center top;
  will-change: transform;
}

.soru-zoom-hint {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 20;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-soru-zoom-reset {
  padding: 6px 14px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
  user-select: none;
  -webkit-user-select: none;
}

.btn-soru-zoom-reset:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.btn-soru-zoom-reset:active {
  transform: scale(0.95);
}

body.theme-limon .btn-soru-zoom-reset {
  background: #fefce8;
  color: #a16207;
  border-color: #fef08a;
  box-shadow: 0 1px 3px rgba(161, 98, 7, 0.12);
}

body.theme-limon .btn-soru-zoom-reset:hover {
  background: #fef08a;
  color: #854d0e;
}






/* ==========================================================================
   YETKİLİ & OKUL PORTALI MOBİL STİLLERİ (STAFF / ADMIN / SCHOOL PORTAL)
   ========================================================================== */

/* Giriş Ekranı Yetkili Geçiş Butonları */
.staff-toggle-link-wrap {
  margin-top: 14px;
  text-align: center;
}

.btn-staff-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-staff-link:hover, .btn-staff-link:active {
  background: rgba(0, 0, 0, 0.04);
}

.btn-back-student-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.btn-back-student-link:hover {
  color: var(--text-dark);
}

.staff-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

body.theme-limon .staff-form-badge {
  background: rgba(202, 138, 4, 0.1);
  color: #a16207;
  border-color: rgba(202, 138, 4, 0.2);
}

/* YETKİLİ ÖĞRENCİ İNCELEME BANDI (Sticky Bar) */
.active-student-bar {
  position: sticky;
  top: 56px;
  z-index: 95;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-limon .active-student-bar {
  background: linear-gradient(135deg, #18140b 0%, #292211 100%);
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

.active-student-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.active-student-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

body.theme-limon .active-student-avatar {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
}

.active-student-text {
  min-width: 0;
  flex: 1;
}

.active-student-name {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
}

.active-student-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-limon .active-student-meta {
  color: #cbd5e1;
}

.btn-change-student {
  padding: 6px 12px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.theme-limon .btn-change-student {
  background: #facc15;
  color: #1e293b;
}

.btn-change-student:active {
  transform: scale(0.95);
}

/* YETKİLİ PORTALI (STAFF PORTAL VIEW) */
#staffPortalView {
  padding: 12px 14px calc(var(--bottom-bar-height) + var(--safe-bottom) + 24px);
}

.staff-welcome-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

body.theme-limon .staff-welcome-card {
  background: linear-gradient(135deg, #241c0e 0%, #18140b 100%);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.staff-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}

body.theme-limon .staff-welcome-badge {
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
}

.staff-welcome-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.staff-welcome-subtitle {
  font-size: 0.80rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

/* Yetkili Üst Pills */
.staff-nav-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
}

.staff-pill-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.staff-pill-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.theme-limon .staff-pill-btn.active {
  color: #a16207;
}

/* Arama ve Filtreleme Kartı */
.staff-search-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.staff-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.staff-search-input-wrap i.fa-magnifying-glass {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  font-size: 14px;
}

.staff-search-input {
  width: 100%;
  padding: 10px 36px 10px 34px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.90rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.staff-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

body.theme-limon .staff-search-input:focus {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.staff-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.staff-filters-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.staff-filter-item {
  flex: 1;
}

.staff-filter-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 3px;
}

.staff-select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 600;
  background: #f8fafc;
  color: #334155;
  outline: none;
}

.staff-results-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.staff-search-hint {
  color: #94a3b8;
  font-weight: 500;
}

/* Öğrenci Kartları */
.staff-students-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-student-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.staff-student-card:active {
  transform: scale(0.98);
  background: #f8fafc;
}

.staff-st-info {
  min-width: 0;
  flex: 1;
}

.staff-st-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.staff-st-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.staff-st-no {
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 6px;
}

.staff-st-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
}

.staff-st-class {
  font-weight: 600;
  color: var(--primary);
}

.staff-st-school {
  color: #64748b;
}

.staff-st-exam-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.73rem;
  color: #334155;
  margin-top: 4px;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-st-exam-name {
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-st-exam-date {
  color: #94a3b8;
  font-size: 0.70rem;
  flex-shrink: 0;
}

.staff-st-exam-empty {
  font-style: italic;
  color: #94a3b8;
}

.staff-st-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.72rem;
}

.staff-badge-exam-count {
  background: #eff6ff;
  color: #2563eb;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.staff-badge-last-net {
  background: #f0fdf4;
  color: #16a34a;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.staff-st-action {
  color: #94a3b8;
  font-size: 14px;
  padding-left: 6px;
  flex-shrink: 0;
}

/* Sınav Kartları */
.staff-exams-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-exam-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.staff-exam-card:active {
  transform: scale(0.98);
  background: #f8fafc;
}

.staff-exam-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.staff-exam-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.staff-exam-type-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  white-space: nowrap;
}

.staff-exam-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748b;
}

.staff-exam-stats {
  display: flex;
  gap: 10px;
}

.staff-exam-stat-item strong {
  color: #1e293b;
}

/* Boş Durum & Yükleniyor */
.staff-empty-state {
  text-align: center;
  padding: 36px 16px;
  color: #94a3b8;
}

.staff-empty-state i {
  font-size: 36px;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.staff-empty-state h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 4px;
}

.staff-empty-state p {
  font-size: 0.82rem;
  margin: 0;
}

/* Deneme Sonuçları & Yetkili Modalları - Sayfa Bütünlüğü ve Ayrık Floating Kart Mimarisi */
.admin-page .app-header {
  z-index: 1000 !important;
}

.staff-exam-modal,
.admin-page .staff-exam-modal {
  position: fixed !important;
  top: calc(var(--safe-top, 0px) + 68px) !important;
  bottom: calc(var(--safe-bottom, 0px) + 74px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 580px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  z-index: 10000100 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

body.theme-limon .staff-exam-modal,
body.theme-limon.admin-page .staff-exam-modal {
  background: #ffffff !important;
  border: 1.5px solid rgba(234, 179, 8, 0.25) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 6px 20px rgba(234, 179, 8, 0.12) !important;
}

.staff-exam-modal .staff-modal-search-bar,
.staff-exam-modal .staff-modal-body,
.staff-exam-modal .staff-users-modal-body,
.staff-exam-modal .users-coach-req-banner {
  width: 100%;
  box-sizing: border-box;
}

.staff-modal-header,
.staff-exam-modal .staff-modal-header {
  padding: 12px 16px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  border-top-left-radius: 19px !important;
  border-top-right-radius: 19px !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

body.theme-limon .staff-modal-header,
body.theme-limon .staff-exam-modal .staff-modal-header {
  background: linear-gradient(135deg, #18140b 0%, #292211 100%) !important;
  border-bottom: 2px solid #facc15 !important;
}

.coach-modal-tab-bar {
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 4px 10px 0 !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.staff-modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.staff-modal-title-wrap h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-modal-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-staff-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-staff-modal-close:active {
  background: rgba(255, 255, 255, 0.25);
}

.staff-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.staff-modal-search-bar,
.staff-exam-modal .staff-modal-search-bar {
  padding: 10px 14px 4px 14px !important;
  background: transparent !important;
  border: none !important;
  flex-shrink: 0;
  width: 100% !important;
  box-sizing: border-box !important;
}

.staff-modal-search-bar input,
.staff-exam-modal .staff-modal-search-bar input {
  width: 100% !important;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.85rem;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  outline: none;
  box-sizing: border-box !important;
}

.staff-modal-body,
.staff-exam-modal .staff-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 14px 24px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.staff-result-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.staff-result-item:active {
  background: #f1f5f9;
}

.staff-result-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.80rem;
  flex-shrink: 0;
}

.staff-result-rank.top-1 { background: #fef08a; color: #854d0e; }
.staff-result-rank.top-2 { background: #e2e8f0; color: #334155; }
.staff-result-rank.top-3 { background: #fed7aa; color: #9a3412; }

.staff-result-info {
  min-width: 0;
  flex: 1;
}

.staff-result-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.staff-result-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.staff-result-scores {
  text-align: right;
  flex-shrink: 0;
}

.staff-result-net {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--primary);
}

.staff-result-puan {
  font-size: 0.72rem;
  color: #64748b;
}


/* Öğrenci İncelenirken Sayfa Başındaki Geri Dönüş Bannerı */
.staff-inspect-return-banner {
  padding: 10px 14px 4px;
}

.btn-staff-return-main {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: left;
}

body.theme-limon .btn-staff-return-main {
  background: linear-gradient(135deg, #241c0e 0%, #18140b 100%);
  border-color: rgba(250, 204, 21, 0.25);
}

.btn-staff-return-main:active {
  transform: scale(0.98);
}

.btn-staff-return-main i {
  font-size: 20px;
  color: #38bdf8;
  flex-shrink: 0;
}

body.theme-limon .btn-staff-return-main i {
  color: #facc15;
}

.btn-return-text {
  display: flex;
  flex-direction: column;
}

.btn-return-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.btn-return-text span {
  font-size: 0.75rem;
  color: #94a3b8;
}

body.theme-limon .btn-return-text span {
  color: #cbd5e1;
}

/* Alt Barda Geri Dönüş Butonu */
.nav-item-back {
  background: rgba(220, 38, 38, 0.08) !important;
  color: #dc2626 !important;
  font-weight: 800 !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-limon .nav-item-back {
  background: rgba(202, 138, 4, 0.12) !important;
  color: #a16207 !important;
}

.nav-item-back i {
  font-size: 18px !important;
}

/* Yetkili Portalı Kullanıcı Kartları */
.staff-users-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-staff-add-user {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-staff-add-user:active { opacity: 0.85; }

.users-coach-req-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.staff-user-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.staff-user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.staff-user-meta {
  flex: 1;
  min-width: 0;
}

.staff-user-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.staff-user-name {
  font-size: 0.90rem;
  font-weight: 700;
  color: #0f172a;
}

.badge-me-tag {
  background: #dcfce7;
  color: #166534;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.staff-user-sub-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.staff-user-uname {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.staff-user-role-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-role-admin { background: #fee2e2; color: #dc2626; }
.badge-role-okul  { background: #ede9fe; color: #7c3aed; }
.badge-role-user  { background: #e0f2fe; color: #0284c7; }
.badge-role-koc   { background: #fef3c7; color: #d97706; }

.staff-user-school-box {
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  color: #6b21a8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.staff-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: 2px;
}

.btn-user-action {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-user-action.btn-user-edit {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}
.btn-user-action.btn-user-delete {
  flex: 0 0 auto;
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}


/* Koç Talepleri Bildirim ve Buton Stilleri */
.admin-coach-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
  transition: transform 0.15s ease;
}

.admin-coach-banner:active {
  transform: scale(0.98);
}

.acb-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #92400e;
  font-size: 0.88rem;
}

.acb-badge {
  background: #dc2626;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn-coach-add-request {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.90rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
  transition: transform 0.15s ease;
}

.btn-coach-add-request:active {
  transform: scale(0.98);
}

/* Koçun Kendi Bekleyen Talepleri */
.coach-pending-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.cpb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.80rem;
  color: #475569;
  margin-bottom: 8px;
}

.badge-pending {
  background: #fef3c7;
  color: #b45309;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.70rem;
  font-weight: 800;
}

.cpb-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.cpb-item-name {
  font-weight: 700;
  color: #1e293b;
}

.cpb-item-status {
  font-size: 0.70rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.cpb-item-status.status-beklemede { background: #fef3c7; color: #b45309; }
.cpb-item-status.status-onaylandi { background: #dcfce7; color: #15803d; }
.cpb-item-status.status-reddedildi { background: #fee2e2; color: #b91c1c; }

/* Yönetici Koç Talep Kartları */
.admin-req-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.admin-req-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.admin-req-coach-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0369a1;
}

.admin-req-date {
  font-size: 0.70rem;
  color: #94a3b8;
}

.admin-req-student {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

.admin-req-meta {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 10px;
}

.admin-req-actions {
  display: flex;
  gap: 8px;
}

.btn-req-approve {
  flex: 1;
  padding: 8px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-req-reject {
  flex: 1;
  padding: 8px;
  background: #f1f5f9;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.coach-modal-tab-bar .coach-tab-btn:hover {
  background: #f1f5f9;
}

.admin-coach-acc-header:hover {
  background: #f1f5f9 !important;
}

.btn-remove-coach-st:hover {
  background: #fee2e2 !important;
}

/* Modal and Overlay Safety Z-Indexes */
#logoutConfirmModal {
  z-index: 10000150 !important;
}
.profile-dropdown-menu {
  z-index: 10000005 !important;
}
.staff-users-modal-body {
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}


/* ==========================================================================
   ÖĞRENCİ & YÖNETİCİ MOBİL SAYFA AYRIMI (PAGE ISOLATION)
   ========================================================================== */

/* Giriş yapılmamışsa alt barlar kesinlikle gizli */
html:not(.app-has-auth) #staffBottomNav,
html:not(.app-has-auth) #bottomNav {
  display: none !important;
}

/* 1. ÖĞRENCİ PORTAL GÖRÜNÜMÜ */
html.app-has-auth.user-is-student .app-header,
html.app-has-auth:not(.admin-page):not(.user-is-staff) .app-header {
  display: block !important;
}
html.app-has-auth.user-is-student #loginView,
html.app-has-auth:not(.admin-page):not(.user-is-staff) #loginView {
  display: none !important;
}
html.app-has-auth.user-is-student #mainAppView,
html.app-has-auth:not(.admin-page):not(.user-is-staff) #mainAppView {
  display: block !important;
}
html.app-has-auth.user-is-student #bottomNav,
html.app-has-auth:not(.admin-page):not(.user-is-staff) #bottomNav {
  display: flex !important;
}
html.app-has-auth.user-is-student #staffPortalView,
html.app-has-auth:not(.admin-page):not(.user-is-staff) #staffPortalView {
  display: none !important;
}
html.app-has-auth.user-is-student #staffBottomNav,
html.app-has-auth:not(.admin-page):not(.user-is-staff) #staffBottomNav {
  display: none !important;
}
html.app-has-auth.user-is-student #headerRefreshBtn,
html.app-has-auth:not(.admin-page):not(.user-is-staff) #headerRefreshBtn {
  display: none !important;
}

/* 2. YÖNETİCİ & ÖĞRETMEN PORTAL GÖRÜNÜMÜ */
html.app-has-auth.user-is-staff:not(.inspecting-student) .app-header,
html.admin-page.app-has-auth:not(.user-is-student):not(.inspecting-student) .app-header {
  display: block !important;
}
html.app-has-auth.user-is-staff:not(.inspecting-student) #loginView,
html.admin-page.app-has-auth:not(.user-is-student):not(.inspecting-student) #loginView {
  display: none !important;
}
html.app-has-auth.user-is-staff:not(.inspecting-student) #staffPortalView,
html.admin-page.app-has-auth:not(.user-is-student):not(.inspecting-student) #staffPortalView {
  display: block !important;
}
html.app-has-auth.user-is-staff:not(.inspecting-student) #staffBottomNav,
html.admin-page.app-has-auth:not(.user-is-student):not(.inspecting-student) #staffBottomNav {
  display: flex !important;
}
html.app-has-auth.user-is-staff:not(.inspecting-student) #mainAppView,
html.admin-page.app-has-auth:not(.user-is-student):not(.inspecting-student) #mainAppView {
  display: none !important;
}
html.app-has-auth.user-is-staff:not(.inspecting-student) #bottomNav,
html.admin-page.app-has-auth:not(.user-is-student):not(.inspecting-student) #bottomNav {
  display: none !important;
}

/* 3. ÖĞRENCİ İNCELEME (Yetkili bir öğrencinin profiline girdiğinde) */
html.app-has-auth.user-is-staff.inspecting-student #staffPortalView,
html.admin-page.app-has-auth.inspecting-student #staffPortalView {
  display: none !important;
}
html.app-has-auth.user-is-staff.inspecting-student #staffBottomNav,
html.admin-page.app-has-auth.inspecting-student #staffBottomNav {
  display: none !important;
}
html.app-has-auth.user-is-staff.inspecting-student #mainAppView,
html.admin-page.app-has-auth.inspecting-student #mainAppView {
  display: block !important;
}
html.app-has-auth.user-is-staff.inspecting-student #bottomNav,
html.admin-page.app-has-auth.inspecting-student #bottomNav {
  display: flex !important;
}

/* Yetkili Alt Barı Buton Ayarları (4 Buton: Öğrenciler, Denemeler, Takvim, Duyurular) */
.staff-app-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.staff-app-nav .nav-item {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
}
.staff-app-nav .nav-item span {
  font-size: 0.72rem !important;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

/* Sayfalama (Pagination) Barı - 10'arlı Liste */
.staff-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 4px 6px;
  margin-top: 10px;
}
.staff-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.staff-page-btn:active {
  transform: scale(0.97);
}
.staff-page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
.staff-page-info {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}


/* ==========================================================================
   YETKİLİ SINAV SONUÇLARI & DERS DÖKÜMÜ AKORDİYONU
   ========================================================================== */
.btn-staff-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.btn-staff-modal-close:hover,
.btn-staff-modal-close:active {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.staff-result-card {
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.15s ease;
}
.staff-result-card.open {
  background: #f8fafc;
}
.staff-result-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  gap: 12px;
  user-select: none;
}
.staff-result-item:active {
  background: rgba(0, 0, 0, 0.04);
}
.staff-result-toggle {
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  flex-shrink: 0;
}
.staff-chevron {
  transition: transform 0.25s ease;
}
.staff-result-scores {
  text-align: right;
  flex-shrink: 0;
  min-width: 76px;
}
.staff-result-net {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary, #dc2626);
  line-height: 1.2;
}
body.theme-limon .staff-result-net {
  color: #ca8a04;
}
.staff-result-puan {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
.staff-result-no {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 5px;
}
.staff-result-drawer {
  background: #f8fafc;
  border-top: 1px dashed #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 12px 14px 14px 14px;
  animation: staffDrawerFadeIn 0.2s ease-out;
}
@keyframes staffDrawerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.staff-drawer-badge {
  font-size: 11px;
  color: #334155;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 700;
}
.staff-ders-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.staff-ders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.staff-ders-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  padding: 7px 10px;
  font-size: 11px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
.staff-ders-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}
.staff-ders-table tr:last-child td {
  border-bottom: none;
}
.staff-ders-col-name {
  text-align: left !important;
  font-weight: 600;
  color: #1e293b;
}
.staff-ders-col-val {
  font-weight: 700;
}
.staff-ders-col-net {
  text-align: right !important;
  font-weight: 800;
  color: #0f172a;
}
.staff-drawer-action-row {
  margin-top: 10px;
  text-align: right;
}
.btn-staff-full-karne {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}
.btn-staff-full-karne:active {
  background: #f1f5f9;
  transform: scale(0.98);
}


/* ====================================================================
   DENEME SINAVI SONUÇLARI SAYFA İÇİ GÖRÜNÜM (MODAL YERİNE SAYFADA AÇILMA)
   ==================================================================== */
#staffExamResultsSection {
  width: 100%;
  animation: fadeInStaffPage 0.2s ease-out;
}

@keyframes fadeInStaffPage {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.staff-exam-page-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

body.theme-limon .staff-exam-page-header {
  background: linear-gradient(135deg, #18140b 0%, #292211 100%);
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.12);
}

.btn-staff-page-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
}

body.theme-limon .btn-staff-page-back {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.45);
  color: #facc15;
}

.btn-staff-page-back:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.25);
}

.staff-exam-page-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.staff-exam-page-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.staff-exam-page-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

body.theme-limon .staff-exam-page-sub {
  color: #fef08a;
  opacity: 0.88;
}

.staff-page-search-bar {
  margin-bottom: 12px;
  width: 100%;
}

.staff-page-search-bar .form-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.86rem;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.staff-page-search-bar .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

body.theme-limon .staff-page-search-bar .form-input:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

.staff-page-results-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 30px;
}

/* Sınav İçi Hızlı Filtre Butonları */
.staff-filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.staff-filter-pill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

body.theme-limon .staff-filter-pill-btn.active {
  background: #ca8a04;
  color: #ffffff;
  border-color: #ca8a04;
}

.pill-count-badge {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-filter-pill-btn.active .pill-count-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.badge-my-student {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 6px;
}

body.theme-limon .badge-my-student {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fef08a;
}

/* Sınav sonuçları açıkken üst karşılama kartı gizlenir, böylece çift başlık oluşmaz ve yalnızca tek sınav başlığı görünür */
body.viewing-staff-exam-results .staff-welcome-card {
  display: none !important;
}
body.viewing-staff-exam-results #staffPortalRoleBadge {
  display: none !important;
}

/* Yetkili Sınav Sonuçları: Öğrenci Kartında Kurum & TG Sıralama Rozetleri */
.staff-result-tags {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 4px;
}
.staff-result-tags .meta-tag {
  font-size: 0.68rem;
  padding: 2.5px 7px;
  border-radius: 6px;
  line-height: 1.25;
  white-space: nowrap;
}
.staff-result-tags .meta-tag.kurum-tag {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.staff-result-tags .meta-tag.tg-tag {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

/* Çekmece içi Kurum & TG Sıralaması Özet Kartları */
.staff-drawer-ranks-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.staff-drawer-rank-card {
  flex: 1;
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 0;
}
.staff-drawer-rank-card.kurum {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.staff-drawer-rank-card.kurum .rank-card-label {
  font-size: 10px;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.staff-drawer-rank-card.kurum .rank-card-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e3a8a;
  margin-top: 3px;
}
.staff-drawer-rank-card.tg {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}
.staff-drawer-rank-card.tg .rank-card-label {
  font-size: 10px;
  font-weight: 700;
  color: #6d28d9;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.staff-drawer-rank-card.tg .rank-card-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #5b21b6;
  margin-top: 3px;
}


/* ====================================================================
   NATIVE MOBİL KARNE & GRAFİKSEL ANALİZ STİLLERİ (pages/ogrenci.php İLE %100 EŞİTLİK)
   ==================================================================== */
.karne-native-container {
  padding: 12px 10px 16px 10px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

/* Sınav Aksiyon Çubuğu (Optik Form & PDF Butonları) */
.karne-native-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.btn-karne-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}
.btn-karne-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.btn-karne-action.optik-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.btn-karne-action.optik-btn:hover {
  background: #dbeafe;
  color: #1e40af;
}
.btn-karne-action.pdf-btn {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-karne-action.pdf-btn:hover {
  background: #fee2e2;
}

/* KPI Derece & Net Kutuları Grid */
.ed-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.ed-kpi-grid.has-dilim {
  grid-template-columns: repeat(3, 1fr);
}
.ed-kpi-grid.no-tg {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 480px) {
  .ed-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}
.ed-kpi-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
}
.ed-kpi-box .val {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-kpi-box .lbl {
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.ed-kpi-box .sub-lbl {
  font-size: 0.52rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 1px;
  line-height: 1.15;
}

/* ÖSYM YKS Tahmini Sıralamaları Kartı */
.ed-osym-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
  border: 1px solid #fde68a;
  border-left: 3px solid #d97706;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.ed-osym-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.osym-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.osym-icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.osym-main-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #92400e;
}
.osym-sub-title {
  font-size: 0.64rem;
  color: #b45309;
}
.ed-osym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 6px;
}
.osym-kpi-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
}
.osym-kpi-box.highlight {
  border-color: #f59e0b;
  background: #fffdf5;
}
.osym-kpi-box .osym-badge-top {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: #fef3c7;
  color: #b45309;
  margin-bottom: 2px;
}
.osym-kpi-box.highlight .osym-badge-top {
  background: #d97706;
  color: #ffffff;
}
.osym-kpi-box .osym-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #92400e;
  line-height: 1.15;
}
.osym-kpi-box .osym-lbl {
  font-size: 0.60rem;
  color: #78350f;
  margin-top: 2px;
  font-weight: 600;
}

/* Ders Başarı Analizi Tablosu */
.ed-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ed-section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.ed-section-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ed-table-container {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.desktop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}
.desktop-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 6px 6px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.desktop-table td {
  padding: 6px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.2;
}
.desktop-table tr:hover td { background: #f8fafc; }
.desktop-table tfoot tr {
  background: #f1f5f9;
  font-weight: 800;
  border-top: 2px solid #cbd5e1;
}
.table-net-badge {
  display: inline-block;
  font-weight: 800;
  color: var(--primary);
}
.ed-table-footer-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 6px;
  gap: 6px;
}
.etfs-item {
  text-align: center;
  background: #ffffff;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.etfs-lbl {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}
.etfs-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  line-height: 1.2;
  margin-top: 2px;
}

/* ====================================================================
   KARNEDEKİ GRAFİKLER BÖLÜMÜ (RADAR + DOUGHNUT + HISTOGRAM)
   ==================================================================== */
.karne-graphics-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.karne-graphics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}
.karne-graphics-head h4 {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.karne-graphics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .karne-graphics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .karne-graphics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.karne-chart-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 8px 8px 8px;
  text-align: center;
}
.karne-chart-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.karne-chart-canvas-wrap {
  position: relative;
  height: 200px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

/* ====================================================================
   SINAV KONU ANALİZİ & SORU SIRALI DÖKÜMÜ
   ==================================================================== */
.exam-topics-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.exam-lesson-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}
.exam-lesson-card.open {
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}
.exam-lesson-header {
  padding: 9px 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: filter 0.15s ease;
}
.exam-lesson-header:hover {
  filter: brightness(0.97);
}
.elh-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.elh-title i.lesson-chevron {
  font-size: 0.70rem;
  color: #64748b;
  transition: transform 0.2s ease;
}
.exam-lesson-card.open .elh-title i.lesson-chevron {
  transform: rotate(180deg);
}
.elh-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.elh-body {
  padding: 0;
  display: none;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.exam-lesson-card.open .elh-body {
  display: block;
}

/* Modern Dijital Karne Soru Tablosu */
.modern-karne-legend-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 5px 8px;
}
.modern-karne-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: #64748b;
}
.modern-karne-legend strong {
  color: #0f172a;
}
.modern-karne-table-container {
  width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
.modern-karne-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.modern-karne-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 2px;
  text-align: center;
  border-bottom: 1px solid #cbd5e1;
  vertical-align: middle;
}
.modern-karne-table thead th.th-konu {
  text-align: left;
  padding-left: 6px;
}
.modern-karne-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
}
.modern-karne-table tbody tr:last-child {
  border-bottom: none;
}
.modern-karne-table tbody tr.row-d { background: rgba(240, 253, 244, 0.6); }
.modern-karne-table tbody tr.row-y { background: rgba(254, 242, 242, 0.45); }
.modern-karne-table tbody tr.row-b { background: rgba(248, 250, 252, 0.4); }
.modern-karne-table tbody tr.row-ipt { background: rgba(254, 249, 195, 0.4); }
.modern-karne-table tbody td {
  padding: 5px 2px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.78rem;
  color: #1e293b;
}
.modern-karne-table .th-no, .modern-karne-table tbody td.td-no { width: 34px; }
.modern-karne-table .th-konu, .modern-karne-table tbody td.td-konu {
  width: auto;
  text-align: left;
  padding-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modern-karne-table .th-dc, .modern-karne-table tbody td.td-dc { width: 30px; }
.modern-karne-table .th-oc, .modern-karne-table tbody td.td-oc { width: 30px; }
.modern-karne-table .th-so, .modern-karne-table tbody td.td-so { width: 30px; }
.modern-karne-table .th-sc, .modern-karne-table tbody td.td-sc { width: 32px; }
.modern-karne-table .th-vd, .modern-karne-table tbody td.td-vd { width: 32px; }

.modern-no-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
}
.modern-topic-link {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.74rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modern-dc-badge {
  font-weight: 800;
  font-size: 0.78rem;
  color: #0f172a;
}
.modern-oc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}
.modern-oc-badge.oc-correct { color: #15803d; }
.modern-oc-badge.oc-wrong { color: #dc2626; }
.modern-oc-badge.oc-empty { color: #94a3b8; font-weight: 600; }
.modern-so-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
}
.modern-so-badge.so-correct { background: #dcfce7; color: #15803d; }
.modern-so-badge.so-wrong { background: #fee2e2; color: #dc2626; }
.modern-so-badge.so-empty { background: #f1f5f9; color: #94a3b8; }
.modern-so-badge.so-iptal { background: #fef3c7; color: #d97706; border-radius: 4px; width: auto; padding: 0 3px; font-size: 0.60rem; }
.modern-sc-btn {
  width: 25px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid #fef08a;
  background: #fefce8;
  color: #ca8a04;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.74rem;
}
.modern-vd-btn {
  width: 25px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.70rem;
}
.modern-vd-none {
  color: #cbd5e1;
  font-size: 0.80rem;
}


/* Karne Grafikleri Grid'i (Alt alta, ferah ve tam genislik) */
.karne-graphics-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.karne-chart-box {
  width: 100% !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 10px 10px 10px;
  text-align: center;
}
.karne-chart-canvas-wrap {
  position: relative;
  height: 250px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  margin: 0 auto;
}
.ed-table-footer-summary.cols-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}
.ed-table-footer-summary.cols-5 {
  grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 540px) {
  .ed-table-footer-summary.cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .ed-table-footer-summary.cols-5 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}


/* ====================================================================
   VELİ GİRİŞİ & KARDEŞ ÖĞRENCİ SEÇİM STİLLERİ (WEB İLE %100 UYUMLU)
   ==================================================================== */
.login-type-pills {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  gap: 4px;
  border: 1px solid #e2e8f0;
}
.type-pill-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .type-pill-btn {
    font-size: 0.69rem;
    padding: 7px 2px;
    gap: 3px;
  }
}
.type-pill-btn:hover {
  color: #1e293b;
}
.type-pill-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}
html[data-brand="limon"] .type-pill-btn.active {
  color: #a16207;
}

/* Veli Öğrenci Değiştirme Butonu (Header/Navbar Dairesel İkon Buton) */
.btn-switch-child-header {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.btn-switch-child-header i {
  font-size: 0.95rem;
}
.btn-switch-child-header:active {
  transform: scale(0.92);
}

/* Sağ Üst Köşe Bildirim Rozeti (Öğrenci Sayısı) */
.btn-switch-child-header .switch-child-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Limon Teması */
body.theme-limon .btn-switch-child-header,
html[data-brand="limon"] .btn-switch-child-header {
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #facc15;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
body.theme-limon .btn-switch-child-header .switch-child-badge,
html[data-brand="limon"] .btn-switch-child-header .switch-child-badge {
  background: #eab308;
  color: #0f172a;
  border: 1.5px solid #ffffff;
}
body.theme-limon .btn-switch-child-header:hover,
html[data-brand="limon"] .btn-switch-child-header:hover {
  background: #1e293b;
  border-color: #ffffff;
  color: #fef08a;
}

/* Limit Teması */
body:not(.theme-limon) .btn-switch-child-header,
html[data-brand="limit"] .btn-switch-child-header {
  background: #ffffff;
  border: 2px solid #fecaca;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}
body:not(.theme-limon) .btn-switch-child-header .switch-child-badge,
html[data-brand="limit"] .btn-switch-child-header .switch-child-badge {
  background: #dc2626;
  color: #ffffff;
  border: 1.5px solid #ffffff;
}
body:not(.theme-limon) .btn-switch-child-header:hover,
html[data-brand="limit"] .btn-switch-child-header:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #991b1b;
}

.btn-switch-child-header * {
  pointer-events: none !important;
}

/* Kardeş Öğrenci Seçim Modal Diyaloğu Animasyonu */
@keyframes childModalPop {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.child-modal-dialog {
  will-change: transform, opacity;
}

.badge-active-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 750;
  margin-left: 6px;
  vertical-align: middle;
}

/* Kardeş Öğrenciler Grid & Kartları */
.child-select-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.child-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.child-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.child-card:active {
  transform: scale(0.99);
}
.child-card.active-child {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}
.child-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.child-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
body.theme-limon .child-avatar,
html[data-brand="limon"] .child-avatar {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  color: #1e293b;
}
body:not(.theme-limon) .child-avatar,
html[data-brand="limit"] .child-avatar {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}
.child-card-meta {
  flex: 1;
  min-width: 0;
}
.child-card-meta strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.3;
}
.child-card-meta span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 3px;
}
.child-card-btn {
  width: 100%;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #334155;
  font-size: 0.80rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.child-card.active-child .child-card-btn {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
  font-weight: 750;
}
.child-card:hover:not(.active-child) .child-card-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
body.theme-limon .child-card:hover:not(.active-child) .child-card-btn,
html[data-brand="limon"] .child-card:hover:not(.active-child) .child-card-btn {
  background: #facc15;
  border-color: #eab308;
  color: #1e293b;
}
