/* ============================================================
   GYS ŞEF ÇALIŞMA ALANI — 2026 Premium Light Design System
   "Clarity" — Modern Education-First Design
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Colors — 2026 Clarity Light Palette */
  --bg-body: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFBFF;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-hero: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
  --bg-hero-subtle: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 100%);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-heading: #0F172A;
  --text-on-dark: #FFFFFF;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.85);

  /* Accent Colors */
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-lighter: #EEF2FF;
  --primary-dark: #4338CA;
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
  --primary-gradient-2: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);

  --secondary: #0EA5E9;
  --secondary-light: #38BDF8;
  --secondary-lighter: #F0F9FF;

  --accent-cyan: #0EA5E9;
  --accent-amber: #F59E0B;
  --accent-rose: #EF476F;

  --success: #10B981;
  --success-dark: #059669;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;

  --error: #EF476F;
  --error-dark: #DC2626;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;

  --warning: #F59E0B;
  --warning-dark: #D97706;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;

  --info: #0EA5E9;
  --info-bg: #F0F9FF;
  --info-border: #BAE6FD;

  --ezber: #4F46E5;
  --ezber-bg: #EEF2FF;
  --ezber-border: #C7D2FE;

  /* Borders */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-strong: #94A3B8;
  --border-card: rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 30px rgba(79, 70, 229, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-primary: 0 4px 14px rgba(79, 70, 229, 0.2);
  --shadow-primary-hover: 0 8px 24px rgba(79, 70, 229, 0.35);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1100px;
  --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

strong {
  color: var(--text-heading);
  font-weight: 600;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--primary);
}

.text-success {
  color: var(--success-dark);
}

.text-error {
  color: var(--error);
}

.text-warning {
  color: var(--warning-dark);
}

.text-mono {
  font-family: var(--font-mono);
}

.text-sm {
  font-size: 0.875rem;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* ---------- Header / Top Navigation - Soft 3D Claymorphic ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 218, 206, 0.85);
  height: 68px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(175, 160, 145, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Left (Brand & Back Navigation) */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.25rem;
  font-weight: 900;
  color: #242E38;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.header-brand:hover {
  transform: scale(1.02);
  color: #242E38;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 11px;
  box-shadow: 0 3px 8px rgba(175, 160, 145, 0.16);
  font-size: 1.2rem;
}

.header-brand .text-coral,
.header-brand .text-primary {
  color: #F87D59 !important;
}

.header-divider-v {
  width: 1px;
  height: 22px;
  background: rgba(210, 200, 185, 0.85);
}

/* Sleek Back Pill Button */
.nav-back-pill,
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #556980;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 218, 206, 0.9);
  box-shadow: 0 2px 7px rgba(175, 160, 145, 0.1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.nav-back-pill:hover,
.btn-back:hover {
  color: #F87D59;
  border-color: #FCE3D7;
  background: #FFFDF9;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(248, 125, 89, 0.16);
}

.back-pill-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

/* Header Center - Segmented Capsule Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(242, 237, 229, 0.9);
  padding: 4px 5px;
  border-radius: 9999px;
  border: 1px solid rgba(226, 218, 206, 0.85);
  box-shadow: inset 0 2px 4px rgba(160, 145, 130, 0.08);
}

.header-nav .nav-segment-item,
.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5E6D7E;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-nav .nav-segment-item:hover,
.header-nav a:hover {
  color: #242E38;
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.header-nav .nav-segment-item.active,
.header-nav a.active {
  color: #242E38;
  background: #FFFFFF;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 12px rgba(175, 160, 145, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

.nav-segment-icon {
  font-size: 1rem;
}

/* Header Right - Actions & Profile */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hata Defterim Button */
.nav-hata-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 218, 206, 0.85);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(175, 160, 145, 0.08);
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-hata-btn:hover {
  color: #EF476F;
  border-color: #FECDD3;
  background: #FFF8F9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 71, 111, 0.15);
}

.hata-badge-count {
  background: #EF476F;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid rgba(226, 218, 206, 0.85);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(175, 160, 145, 0.1);
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #242E38;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero / Page Header ---------- */
.page-hero {
  text-align: center;
  padding: 60px 0 40px;
  background: transparent;
  border-radius: 0;
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: visible;
}

/* Decorative circles hidden in default clean hero */
.page-hero::before {
  display: none;
}

.page-hero::after {
  display: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
  color: var(--text-heading);
  position: relative;
  z-index: 1;
}

.page-hero h1 .text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px auto;
  position: relative;
  z-index: 1;
}

/* ===== COUNTDOWN TIMER COMPONENT ===== */
.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.badge-top .pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.countdown-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.6));
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 70, 229, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.countdown-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5, #0EA5E9, #10B981);
}

.countdown-header-info {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  padding: 16px 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.3);
}

.countdown-item.seconds-item {
  background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%);
  border-color: rgba(79, 70, 229, 0.3);
}

.countdown-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 8px;
}

.countdown-dots {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.4;
  margin-top: -16px;
  animation: blink 1.5s infinite;
}

.countdown-footer-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.motivation-text {
  display: inline-block;
  margin-top: var(--space-lg);
  padding: 8px 20px;
  background: var(--primary-lighter);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  animation: fadeInUp 0.6s ease;
  position: relative;
  z-index: 1;
}

/* Topic page hero — lighter variant */
.page-hero.topic-hero {
  background: var(--bg-hero-subtle);
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.page-hero.topic-hero h1 {
  color: var(--text-heading);
  font-size: 2rem;
}

.page-hero.topic-hero h1 .text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero.topic-hero .subtitle {
  color: var(--text-secondary);
}

.page-hero.topic-hero::before,
.page-hero.topic-hero::after {
  display: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-heading);
  font-family: var(--font-heading);
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

/* Module cards grid (Dashboard) */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-lighter);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #06D6A0 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 214, 160, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 214, 160, 0.4);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

/* CTA Button */
.btn-cta {
  background: var(--primary-gradient);
  color: white;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.12) 50%,
      transparent 70%);
  animation: shimmer 3s infinite;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-hover);
  color: white;
}

/* ---------- Accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.accordion-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
  gap: var(--space-md);
}

.accordion-header:hover {
  background: var(--bg-surface);
}

.accordion-header h3,
.accordion-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
  margin: 0;
  color: var(--text-heading);
  line-height: 1.4;
}

.accordion-item.active .accordion-header h3,
.accordion-item.active .accordion-header h4 {
  color: var(--primary);
}

.accordion-icon {
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: white;
  background: var(--primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.accordion-item.active .accordion-body {
  max-height: 5000px;
}

.accordion-content {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
}

.accordion-content h4 {
  color: var(--text-heading);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--primary-lighter);
  font-size: 1.05rem;
}

.accordion-content h4:first-child {
  margin-top: 0;
}

.accordion-content ul,
.accordion-content ol {
  padding-left: var(--space-xl);
  margin: var(--space-sm) 0 var(--space-md);
}

.accordion-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  color: var(--text-secondary);
}

.accordion-content li strong {
  color: var(--text-heading);
}

/* ---------- Flashcard ---------- */
.flashcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.flashcard {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

.flashcard-front {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-card);
}

.flashcard-front::after {
  content: '👆 Cevap için tıkla';
  position: absolute;
  bottom: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.flashcard-back {
  background: var(--primary-gradient);
  color: white;
  font-size: 0.9rem;
  transform: rotateY(180deg);
  line-height: 1.6;
  box-shadow: var(--shadow-primary);
}

.flashcard-back strong {
  color: white;
}

/* ---------- Info / Note Boxes ---------- */
.note-box {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  line-height: 1.7;
}

.note-box .note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.note-box strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.note-box.note-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-left: 4px solid var(--info);
  color: var(--text-secondary);
}

.note-box.note-info strong {
  color: var(--primary-dark);
}

.note-box.note-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-left: 4px solid var(--success);
  color: var(--text-secondary);
}

.note-box.note-success strong {
  color: var(--success-dark);
}

.note-box.note-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-left: 4px solid var(--warning);
  color: var(--text-secondary);
}

.note-box.note-warning strong {
  color: var(--warning-dark);
}

.note-box.note-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-left: 4px solid var(--error);
  color: var(--text-secondary);
}

.note-box.note-error strong {
  color: var(--error-dark);
}

.note-box.note-ezber {
  background: var(--ezber-bg);
  border: 1px solid var(--ezber-border);
  border-left: 4px solid var(--ezber);
  color: var(--text-secondary);
}

.note-box.note-ezber strong {
  color: var(--secondary);
}

.note-box ul,
.note-box ol {
  padding-left: var(--space-lg);
  margin-top: var(--space-sm);
}

.note-box li {
  margin-bottom: var(--space-xs);
}

/* ---------- Tables (Responsive & Horizontal Scroll) ---------- */
.table-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-lighter);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  display: block;
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrapper table,
.mevzuat-tablo-wrapper table {
  min-width: 600px;
}

thead {
  background: var(--primary-lighter);
}

th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:nth-child(even) {
  background: var(--bg-surface);
}

tbody tr:hover {
  background: var(--primary-lighter);
}

/* ---------- Topic List (Dashboard) ---------- */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.topic-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.topic-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.topic-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-medium);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
  background: var(--bg-card);
}

.topic-checkbox:hover {
  border-color: var(--primary);
}

.topic-checkbox:checked {
  background: var(--success);
  border-color: var(--success);
}

.topic-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.topic-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.topic-item.completed .topic-name {
  color: var(--text-muted);
  text-decoration: line-through;
}

.topic-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}

/* ---------- Progress Bar ---------- */
.progress-container {
  margin: var(--space-lg) 0 var(--space-2xl);
  background: var(--bg-card);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-percent {
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.progress-bar {
  height: 10px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  animation: progressShine 2s infinite;
}

/* ============================================================
   APPLE DESIGN SYSTEM — İNTERAKTİF TEST & SINAV SİSTEMİ (2026)
   ============================================================ */

/* ---------- Test Başlangıç Ekranı - Soft 3D Claymorphic ---------- */
.test-start {
  text-align: center;
  padding: 48px 36px;
  max-width: 680px;
  margin: 32px auto;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF7 50%, #FAF6F0 100%) !important;
  border-radius: 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 20px 50px rgba(175, 160, 145, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.95) !important;
  position: relative;
}

.test-start-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFE5DC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px rgba(248, 125, 89, 0.25), inset 0 3px 4px rgba(255, 255, 255, 0.95);
  animation: bounceSoft 2.4s infinite ease-in-out;
}

@keyframes bounceSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.test-start h1 {
  font-size: 2rem !important;
  font-weight: 900 !important;
  color: #1E293B !important;
  letter-spacing: -0.6px !important;
  margin-bottom: 8px !important;
}

.test-start p {
  color: #64748B !important;
  font-size: 0.96rem !important;
  line-height: 1.6 !important;
  max-width: 520px;
  margin: 0 auto 24px auto !important;
}

.test-start .test-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.test-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(226, 218, 206, 0.7);
  box-shadow: 0 6px 16px rgba(175, 160, 145, 0.08), inset 0 2px 2px rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease;
}

.test-info-item:hover {
  transform: translateY(-2px);
}

.test-info-item:nth-child(1) {
  background: #EBF5F0;
  border-color: #D8EAE2;
}
.test-info-item:nth-child(1) .test-info-value {
  color: #23533E !important;
}

.test-info-item:nth-child(2) {
  background: #FFFAEC;
  border-color: #FDF0CC;
}
.test-info-item:nth-child(2) .test-info-value {
  color: #735714 !important;
}

.test-info-item:nth-child(3) {
  background: #FFF2EB;
  border-color: #FCE3D7;
}
.test-info-item:nth-child(3) .test-info-value {
  color: #8F432E !important;
}

.test-info-value {
  font-size: 1.85rem !important;
  font-weight: 900 !important;
  font-family: var(--font-heading);
  line-height: 1;
}

.test-info-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 3D Coral Start CTA Button */
.btn-cta,
.test-start .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #F87D59 0%, #EA5A32 100%) !important;
  color: #FFFFFF !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  padding: 18px 48px !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 12px 28px rgba(248, 125, 89, 0.42), inset 0 2px 2px rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.btn-cta:hover,
.test-start .btn:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(248, 125, 89, 0.52), inset 0 2px 2px rgba(255, 255, 255, 0.6) !important;
}

.apple-test-rules {
  max-width: 540px !important;
  margin: 32px auto 0 !important;
  text-align: left !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 218, 206, 0.8) !important;
  border-radius: 24px !important;
  padding: 22px 26px !important;
  box-shadow: 0 6px 18px rgba(175, 160, 145, 0.08) !important;
}

/* ---------- Test Üst Barı (Sticky Glass Bar) ---------- */
.test-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: calc(var(--header-height) + 10px);
  z-index: 40;
  gap: 12px;
}

.test-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  color: #0F172A;
  background: #F8FAFC;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.test-timer.warning {
  color: #D97706;
  background: #FEF3C7;
  border-color: #FCD34D;
  animation: pulse 1s infinite;
}

.test-timer.danger {
  color: #E11D48;
  background: #FFE4E6;
  border-color: #FDA4AF;
  animation: pulse 0.5s infinite;
}

.test-timer-icon {
  font-size: 1.15rem;
}

.test-progress-text {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 700;
  background: #F1F5F9;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Test İlerleme Çubuğu */
.test-progress-bar {
  height: 6px;
  background: #E2E8F0;
  border-radius: 9999px;
  margin-bottom: 24px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #06B6D4);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Soru Kartı (Apple Card) ---------- */
.question-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.2s ease;
}

.question-number {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.75;
  color: #0F172A;
  margin: 16px 0 28px 0;
  white-space: pre-line;
}

/* ---------- Şık Butonları (Option Buttons) ---------- */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: inherit;
  width: 100%;
  position: relative;
  user-select: none;
}

.option-btn:hover {
  border-color: #818CF8;
  background: #F8FAFC;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.option-btn.selected {
  background: #EEF2FF !important;
  border-color: #4F46E5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
  transform: translateX(4px);
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  font-weight: 800;
  font-size: 0.88rem;
  color: #475569;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-btn:hover .option-letter {
  border-color: #818CF8;
  color: #4F46E5;
}

.option-btn.selected .option-letter {
  background: #4F46E5 !important;
  color: #FFFFFF !important;
  border-color: #4F46E5 !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.option-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.5;
  flex: 1;
}

.option-btn.selected .option-text {
  color: #0F172A;
  font-weight: 700;
}

/* Doğru / Yanlış İnceleme Durumları */
.option-btn.correct {
  background: #ECFDF5 !important;
  border-color: #10B981 !important;
}

.option-btn.correct .option-letter {
  background: #10B981 !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
}

.option-btn.wrong {
  background: #FFF1F2 !important;
  border-color: #F43F5E !important;
}

.option-btn.wrong .option-letter {
  background: #F43F5E !important;
  color: #FFFFFF !important;
  border-color: #F43F5E !important;
}

/* ---------- Test Navigasyon Barı ---------- */
.test-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.test-nav .btn {
  border-radius: 14px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.test-nav-center {
  display: flex;
  gap: 8px;
}

/* ---------- Soru Haritası (Question Palette / Map) ---------- */
/* ---------- Soru Haritası (Question Palette / Map) ---------- */
.question-map {
  display: block;
  max-width: 860px;
  margin: 32px auto 40px auto;
  padding: 24px 28px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
}

.qmap-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.qmap-grid-inner {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.qmap-item,
.exam-qmap-item {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #FFFFFF;
  color: #64748B;
  border: 1.5px solid #E2E8F0;
  user-select: none;
  box-sizing: border-box;
}

.qmap-item:hover,
.exam-qmap-item:hover {
  border-color: #4F46E5;
  color: #4F46E5;
  background: #EEF2FF;
  transform: translateY(-2px);
}

.qmap-item.current,
.exam-qmap-item.current {
  background: #4F46E5 !important;
  color: #FFFFFF !important;
  border-color: #4F46E5 !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transform: scale(1.06);
  z-index: 2;
}

.qmap-item.answered,
.exam-qmap-item.answered {
  background: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
  font-weight: 800;
}

.qmap-item.skipped,
.exam-qmap-item.skipped {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FCD34D;
}

/* ---------- Sonuç Ekranı (Apple Health & Fitness Style) ---------- */
.result-screen {
  text-align: center;
  animation: fadeInUp 0.5s ease;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.result-score {
  margin: 28px 0;
}

.score-circle {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  background: #FFFFFF;
  border: 6px solid #4F46E5;
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.16);
}

.score-circle .score-value {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

.score-circle .score-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.score-circle.high {
  border-color: #10B981;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.2);
}

.score-circle.high .score-value {
  color: #059669;
}

.score-circle.medium {
  border-color: #F59E0B;
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.2);
}

.score-circle.medium .score-value {
  color: #D97706;
}

.score-circle.low {
  border-color: #EF476F;
  box-shadow: 0 12px 36px rgba(239, 68, 111, 0.2);
}

.score-circle.low .score-value {
  color: #E11D48;
}

/* İstatistik Kartları Grid */
.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.stat-card {
  padding: 18px 20px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stat-card.stat-correct {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.stat-card.stat-wrong {
  background: #FFF1F2;
  border-color: #FECDD3;
}

.stat-card.stat-empty {
  background: #FEF3C7;
  border-color: #FDE68A;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.stat-card.stat-correct .stat-value {
  color: #059669;
}

.stat-card.stat-wrong .stat-value {
  color: #E11D48;
}

.stat-card.stat-empty .stat-value {
  color: #D97706;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Yanlış / Boş İnceleme Bölümü */
.review-section {
  text-align: left;
  margin-top: 36px;
}

.review-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.review-question {
  font-weight: 700;
  font-size: 1.02rem;
  color: #0F172A;
  margin-bottom: 14px;
  line-height: 1.6;
}

.review-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.review-answer.user-answer {
  background: #FFF1F2;
  color: #E11D48;
  border: 1px solid #FECDD3;
}

.review-answer.correct-answer {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.review-explanation {
  margin-top: 14px;
  padding: 14px 18px;
  background: #F8FAFC;
  border-left: 4px solid #4F46E5;
  border-radius: 0 12px 12px 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.65;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Sınav Modu (sinav.html) Soru Kartları ---------- */
.exam-question {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  padding: 26px 30px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
}

.exam-question:hover {
  border-color: #CBD5E1;
  box-shadow: 0 6px 20px -2px rgba(0, 0, 0, 0.06);
}

.exam-question .exam-q-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #4F46E5;
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.exam-question .exam-q-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.7;
  color: #0F172A;
  margin-top: 10px;
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.exam-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid #E2E8F0;
  font-size: 0.94rem;
  color: #334155;
  background: #FFFFFF;
  user-select: none;
}

.exam-option:hover {
  background: #F8FAFC;
  border-color: #818CF8;
}

.exam-option.selected {
  background: #EEF2FF !important;
  border-color: #4F46E5 !important;
  color: #0F172A !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.exam-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
  background: #FFFFFF;
}

.exam-option.selected .exam-option-radio {
  border-color: #4F46E5;
  background: #4F46E5;
}

.exam-option.selected .exam-option-radio::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* ---------- Exam/Test List Cards ---------- */
.exam-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.exam-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  flex-wrap: wrap;
  gap: var(--space-md);
  box-shadow: var(--shadow-xs);
}

.exam-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.exam-card-info {
  flex: 1;
}

.exam-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.exam-card-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exam-card-actions {
  display: flex;
  gap: var(--space-sm);
}

.exam-card-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.topic-exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--warning-dark);
  white-space: nowrap;
  line-height: 1.4;
}

.topic-exam-badge .badge-icon {
  font-size: 0.8rem;
  flex-shrink: 0;
}

.exam-card-badge.badge-score {
  background: var(--success-bg);
  color: var(--success-dark);
  border: 1px solid var(--success-border);
}

/* ---------- Section Headers ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.3rem;
}

/* ---------- Bottom Navigation (Topic Pages) ---------- */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-light);
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- Completion Checkbox ---------- */
.completion-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  margin: var(--space-2xl) 0;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.completion-box:hover {
  border-color: var(--success);
  background: var(--success-bg);
}

.completion-box.completed {
  background: var(--success-bg);
  border-color: var(--success);
}

.completion-text {
  font-weight: 600;
  color: var(--text-heading);
}

.completion-box.completed .completion-text {
  color: var(--success-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  background: var(--bg-card);
}

/* ============================================================
   TOPIC PAGE SPECIFIC STYLES
   (Moved from inline <style> blocks in each topic HTML page)
   ============================================================ */

/* Stat Badge Grid (topic overview stats) */
.stat-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-badge-card {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.stat-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-badge-card h5 {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-badge-card .stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: var(--space-xs);
  font-family: var(--font-heading);
}

/* Stat card color variants */
.stat-badge-card.stat-warning {
  border-left-color: var(--warning);
}

.stat-badge-card.stat-error {
  border-left-color: var(--error);
}

.stat-badge-card.stat-info {
  border-left-color: var(--accent-cyan);
}

/* Flow Steps (process indicators on topic pages) */
.flow-steps {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
  border-left: 3px solid var(--primary-lighter);
}

.step-item {
  position: relative;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  line-height: 1.7;
  color: var(--text-secondary);
}

.step-item strong {
  color: var(--text-heading);
}

/* Interactive Quiz Section */
.interactive-quiz-section {
  background: var(--bg-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2xl);
  border: 1px solid var(--border-light);
}

.quiz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.quiz-card {
  background: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.quiz-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.quiz-card strong {
  color: var(--primary);
}

.quiz-answer {
  display: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px dashed var(--border-light);
  font-weight: 500;
  line-height: 1.7;
}

.quiz-card.revealed .quiz-answer {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.quiz-card.revealed {
  border-color: var(--success);
  background: var(--success-bg);
}

.quiz-card.revealed strong {
  color: var(--success-dark);
}

/* ---------- Utility Classes ---------- */
.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

@keyframes countUp {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

.animate-slideDown {
  animation: slideDown 0.3s ease forwards;
}

/* Staggered animation delays for children */
.stagger-children>*:nth-child(1) {
  animation-delay: 0ms;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 80ms;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 160ms;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 240ms;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 320ms;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 400ms;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  /* Hamburger menu visible */
  .menu-toggle {
    display: flex;
  }

  .header-nav:not(.mobile-open) {
    display: none !important;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero {
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    margin-left: -4px;
    margin-right: -4px;
  }

  .question-card {
    padding: var(--space-lg);
  }

  .test-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .test-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .result-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 200px;
  }

  .bottom-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .topic-item {
    flex-wrap: wrap;
  }

  .topic-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .exam-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .exam-card-actions {
    width: 100%;
  }

  .exam-card-actions .btn {
    flex: 1;
  }

  .flashcard-grid {
    grid-template-columns: 1fr;
  }

  .qmap-item {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .score-circle {
    width: 130px;
    height: 130px;
  }

  .score-circle .score-value {
    font-size: 2.5rem;
  }

  .stat-badge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accordion-header {
    padding: var(--space-md);
  }

  .accordion-content {
    padding: 0 var(--space-md) var(--space-md);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .container {
    padding: 0 var(--space-md);
  }

  .question-card {
    padding: var(--space-md);
  }

  .option-btn {
    padding: var(--space-sm) var(--space-md);
  }

  .stat-badge-grid {
    grid-template-columns: 1fr;
  }
}

/* Print (hide interactive elements) */
@media print {

  .site-header,
  .test-topbar,
  .test-nav,
  .question-map,
  .btn,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: #333;
  }

  .card,
  .question-card,
  .accordion-item {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

.gys-workspace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.gys-sidebar {
  background: #1a1c24;
  color: white;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.nav-link {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  background: transparent;
  color: #a0a0a0;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.pulse-effect {
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

/* ============================================================
   INTERACTIVE STUDY WORKSPACE LAYOUT
   ============================================================ */
.workspace-active .page-hero {
  margin-bottom: var(--space-md);
}

.workspace-active .stat-badge-grid {
  margin-bottom: var(--space-md);
}

/* Container */
.workspace-container {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  align-items: flex-start;
  width: 100%;
}

/* Sidebar styling (Apple-Inspired Minimalism) */
.workspace-sidebar {
  flex: 0 0 260px;
  width: 260px;
  background: var(--bg-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

/* Sidebar collapsed state (Compact Mode) */
.workspace-sidebar.collapsed {
  flex: 0 0 68px;
  width: 68px;
  padding: 14px 8px;
  align-items: center;
}

.workspace-sidebar.collapsed .sidebar-title,
.workspace-sidebar.collapsed .sidebar-count-badge {
  display: none;
}

.workspace-sidebar.collapsed .sidebar-header {
  justify-content: center;
  width: 100%;
}

.workspace-sidebar.collapsed .nav-tab-item {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.workspace-sidebar.collapsed .nav-tab-item .tab-title {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

.sidebar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}

.sidebar-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #EEF2FF;
  color: #4F46E5;
  padding: 2px 8px;
  border-radius: 9999px;
}

.btn-sidebar-toggle {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: #64748B;
  transition: all 0.2s ease;
}

.btn-sidebar-toggle:hover {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

/* Nav list */
.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-align: left;
}

.nav-tab-item:hover {
  background: #F8FAFC;
  color: #0F172A;
}

.nav-tab-item.active {
  background: #EEF2FF;
  color: #4F46E5;
  font-weight: 700;
  border-left: 3px solid #4F46E5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.nav-tab-item .tab-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-tab-item.active .tab-badge {
  background: #4F46E5;
  color: #FFFFFF;
}

.nav-tab-item .tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Content Area */
.workspace-content {
  flex: 1;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 32px 36px;
  min-height: calc(100vh - var(--header-height) - 40px);
  position: relative;
  transition: all var(--transition-base);
}

/* Top Bar inside Content Area */
.workspace-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.current-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.curr-sec-badge {
  font-size: 0.74rem;
  font-weight: 800;
  background: #4F46E5;
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.curr-sec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.workspace-quick-nav {
  display: flex;
  gap: 8px;
}

.btn-nav-step {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-step:hover:not(:disabled) {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #4F46E5;
}

/* Inside workspace, original headers are hidden, active body is always expanded */
.workspace-active .accordion {
  gap: 0;
}

.workspace-active .accordion-item {
  display: none !important;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.workspace-active .accordion-item.active {
  display: block !important;
}

.workspace-active .accordion-header {
  display: none !important;
}

.workspace-active .accordion-body {
  max-height: none !important;
  overflow: visible !important;
  transition: none !important;
}

.workspace-active .accordion-content {
  padding: 0;
}

/* Bottom Navigation Inside Each Section */
.section-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-step-action {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: none;
}

.btn-step-prev {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
}

.btn-step-prev:hover {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #4F46E5;
}

.btn-step-next {
  background: #4F46E5;
  border: 1px solid #4F46E5;
  color: #FFFFFF;
  margin-left: auto;
}

.btn-step-next:hover {
  background: #4338CA;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-step-test {
  background: #10B981;
  border: 1px solid #10B981;
  color: #FFFFFF;
  margin-left: auto;
}

.btn-step-test:hover {
  background: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

/* Mobile Chips Navigation Bar */
.mobile-chips-nav {
  display: none;
}

@media (max-width: 1024px) {
  .workspace-sidebar {
    flex: 0 0 230px;
    width: 230px;
  }
}

@media (max-width: 768px) {
  .workspace-container {
    flex-direction: column;
    gap: var(--space-md);
  }

  .workspace-sidebar {
    display: none !important;
  }

  .workspace-content {
    padding: 20px 16px;
  }

  .mobile-chips-nav {
    display: block !important;
    width: 100%;
    margin-bottom: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-chips-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-chips-track {
    display: inline-flex;
    gap: 8px;
    padding: 4px 2px;
    white-space: nowrap;
  }

  .mobile-chip-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .mobile-chip-btn.active {
    background: #4F46E5;
    color: #FFFFFF;
    border-color: #4F46E5;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
  }

  .workspace-top-bar {
    display: none;
  }

  .workspace-nav::-webkit-scrollbar {
    height: 4px;
  }

  .workspace-nav::-webkit-scrollbar-thumb {
    background: var(--border-medium);
  }

  .nav-tab-item {
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.85rem;
    transform: none !important;
  }

  .nav-tab-item:hover {
    transform: none;
  }

  .nav-tab-item .tab-title {
    opacity: 1 !important;
    display: inline !important;
  }

  .workspace-content {
    width: 100%;
    padding: var(--space-md);
    min-height: auto;
    border-radius: var(--radius-md);
  }
}

/* ==================== SUBJECT TREE DESIGN ==================== */
.subject-tree {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.tree-node {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  overflow: hidden;
  transition: all var(--transition-base);
}

.tree-node:hover {
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.tree-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  user-select: none;
}

.tree-header:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.6));
}

.tree-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-primary);
}

.tree-title-wrapper {
  flex: 1;
}

.tree-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.tree-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tree-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  transition: transform var(--transition-bounce), background var(--transition-fast), color var(--transition-fast);
}

.tree-node.expanded .tree-toggle-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.tree-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(250, 251, 255, 0.6);
}

.tree-node.expanded .tree-children {
  max-height: 3000px;
}

.tree-child-list {
  padding: var(--space-md) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
}

.tree-child-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: var(--space-lg);
  left: 48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
  border-radius: 2px;
}

.tree-child-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  position: relative;
  margin-left: 20px;
}

.tree-child-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--primary-light);
}

.tree-child-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.tree-child-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.tree-child-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
}

.tree-child-title {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.tree-child-actions {
  display: flex;
  gap: var(--space-sm);
}
@media (max-width: 768px) {
  .tree-child-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .tree-child-actions {
    width: 100%;
    margin-top: 8px;
  }
  .tree-child-actions .btn {
    flex: 1;
  }

  /* Mobile Hamburger Button */
  .menu-toggle {
    display: flex !important;
  }

  /* Mobile Menu Card Dropdown (Dark Navy #0F172A) */
  .header-nav {
    display: none;
  }

  .header-nav.mobile-open {
    display: flex !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    background: #0F172A !important;
    background-color: #0F172A !important;
    border: 1px solid #1E293B !important;
    border-radius: 20px !important;
    padding: 16px !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
    z-index: 99999 !important;
    animation: mobileMenuDropDown 0.2s ease !important;
  }

  @keyframes mobileMenuDropDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile Nav Item Cards */
  .header-nav.mobile-open a {
    width: 100% !important;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    background: #1E293B !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border: 1px solid #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .header-nav.mobile-open a.active,
  .header-nav.mobile-open a:hover {
    background: #4F46E5 !important;
    color: #FFFFFF !important;
    border-color: #6366F1 !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
  }

  .header-nav.mobile-open a::after {
    content: "➔";
    font-size: 0.85rem;
    opacity: 0.7;
  }
}

.text-primary {
  color: var(--primary) !important;
}

/* ============================================================
   PROFILE SYSTEM & HATA DEFTERİ & 16-WEEK PROGRAM STYLES
   ============================================================ */

/* Header Profile Container */
.header-profile-container {
  position: relative;
  display: inline-block;
}

.profile-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #242E38;
  padding: 5px 14px 5px 6px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(175, 160, 145, 0.12);
}

.profile-select-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(175, 160, 145, 0.16);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #D8EAE2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.profile-name {
  color: #242E38;
  font-weight: 800;
}

.profile-dropdown-arrow {
  font-size: 0.65rem;
  color: #94A3B8;
  opacity: 0.8;
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(175, 160, 145, 0.2);
  padding: 10px;
  z-index: 10000;
  animation: fadeInDown 0.2s ease;
}

.profile-dropdown-menu.show {
  display: block;
}

.dropdown-header {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748B;
  padding: 4px 8px 8px;
}

.profile-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-option:hover {
  background: #F1F5F9;
}

.profile-option.active {
  background: #EEF2FF;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.option-avatar {
  font-size: 1.4rem;
}

.option-info {
  flex: 1;
}

.option-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
}

.option-sub {
  font-size: 0.75rem;
  color: #64748B;
}

.option-check {
  font-size: 0.9rem;
  color: #4F46E5;
  font-weight: 800;
}

.dropdown-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 8px 0;
}

.dropdown-action-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.dropdown-action-btn:hover {
  background: #EEF2FF;
  color: #4F46E5;
}

/* Modal System */
.gys-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 35, 30, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gys-modal-backdrop.show {
  display: flex;
}

.gys-modal-content {
  background: #FAF7F2;
  border-radius: 28px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 55px rgba(160, 140, 120, 0.28), inset 0 2px 4px rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.gys-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #EDE6DC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #FFF1EA 0%, #FCE3D7 100%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.gys-modal-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #5C2A1C;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gys-modal-close {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8F432E;
  transition: all 0.2s ease;
}

.gys-modal-close:hover {
  background: #F87D59;
  color: #FFFFFF;
  transform: scale(1.08);
}

.gys-modal-body {
  padding: 24px 24px;
}

/* Hata Defteri Card Styling */
.hata-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hata-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
}

.hata-card.resolved {
  opacity: 0.75;
  background: #F8FAFC;
  border-left: 4px solid #10B981;
}

.hata-card.unresolved {
  border-left: 4px solid #EF476F;
}

.hata-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hata-topic-badge {
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}

.hata-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.hata-status-badge.unresolved {
  background: #FFE4E6;
  color: #E11D48;
}

.hata-status-badge.resolved {
  background: #D1FAE5;
  color: #059669;
}

.hata-question {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.5;
}

.hata-answers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.hata-ans-wrong {
  color: #DC2626;
  background: #FEF2F2;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.hata-ans-correct {
  color: #059669;
  background: #ECFDF5;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.hata-explanation {
  background: #F1F5F9;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hata-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 16-Week Program Section Styles */
.program-section-container {
  margin: 56px 0;
}

.program-phase-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.program-phase-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}

.phase-badge {
  background: linear-gradient(135deg, #4F46E5, #0EA5E9);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.phase-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.week-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.week-card.completed {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.week-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.week-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
}

.week-topic-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.week-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.4;
}

.week-check-btn {
  align-self: flex-start;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.week-card.completed .week-check-btn {
  background: #10B981;
  border-color: #10B981;
  color: white;
}

/* ============================================================
   MOBILE RESPONSIVENESS ENHANCEMENTS (320px - 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Header & Profile Selector */
  .header-inner {
    gap: 8px;
    padding: 10px 16px;
  }

  .header-brand {
    font-size: 1.1rem;
  }

  .profile-select-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .profile-name {
    font-size: 0.8rem;
  }

  .profile-dropdown-menu {
    right: -10px;
    width: 240px;
  }

  /* Modals */
  .gys-modal-content {
    max-height: 94vh;
    border-radius: 18px;
    margin: 8px;
  }

  .gys-modal-header {
    padding: 16px 20px;
  }

  .gys-modal-title {
    font-size: 1.05rem;
  }

  .gys-modal-body {
    padding: 16px;
  }

  /* Hata Cards */
  .hata-card {
    padding: 14px;
    border-radius: 12px;
  }

  .hata-question {
    font-size: 0.9rem;
  }

  /* 16-Week Program */
  .program-section-container {
    margin: 32px 0;
  }

  .program-phase-card {
    padding: 16px;
    border-radius: 16px;
  }

  .week-grid {
    grid-template-columns: 1fr;
  }

  /* Hero & Countdown */
  .page-hero h1 {
    font-size: 1.6rem;
  }

  .countdown-timer {
    gap: 6px;
  }

  .countdown-item {
    padding: 8px 10px;
    min-width: 55px;
  }

  .countdown-value {
    font-size: 1.3rem;
  }

  .countdown-label {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .btn-back {
    display: none;
  }

  .profile-select-btn .profile-name {
    display: inline-block;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .countdown-dots {
    display: none;
  }
}

/* ============================================================
   HATA DEFTERİ RESPONSIVE FILTER BAR & MODAL FIT
   ============================================================ */
.hata-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  width: 100%;
}

.hata-filter-group,
.hata-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .gys-modal-backdrop {
    padding: 8px !important;
  }

  .gys-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 94vh !important;
    border-radius: 16px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .gys-modal-header {
    padding: 14px 16px !important;
  }

  .gys-modal-body {
    padding: 14px 12px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .hata-filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .hata-filter-group,
  .hata-action-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .hata-filter-group .btn,
  .hata-action-group .btn {
    flex: 1 1 auto !important;
    font-size: 0.76rem !important;
    padding: 8px 10px !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .hata-card {
    padding: 14px 12px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .hata-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .hata-answers {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .hata-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }

  .hata-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ============================================================
   APPLE DESIGN SYSTEM — MODULAR HUB & CARDS (2026 EDITION)
   ============================================================ */

/* Apple-style Segmented Hub Bar */
.apple-nav-container {
  display: flex;
  justify-content: center;
  margin: 28px 0 32px;
  position: sticky;
  top: 76px;
  z-index: 90;
}

.apple-segmented-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.apple-segmented-bar::-webkit-scrollbar {
  display: none;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748B;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.seg-btn .seg-icon {
  font-size: 1.1rem;
}

.seg-btn .seg-count {
  font-size: 0.75rem;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
}

.seg-btn:hover {
  color: #0F172A;
  background: rgba(255, 255, 255, 0.6);
}

.seg-btn.active {
  background: #FFFFFF;
  color: #4F46E5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.seg-btn.active .seg-count {
  background: #EEF2FF;
  color: #4F46E5;
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: appleFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
  display: block;
}

@keyframes appleFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apple Live Search Bar */
.apple-search-wrapper {
  max-width: 540px;
  margin: 0 auto 28px;
  position: relative;
}

.apple-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.apple-search-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.apple-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #94A3B8;
  pointer-events: none;
}

/* Apple Topics Grid (All 16 topics directly) */
.apple-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.apple-topic-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.apple-topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4F46E5, #0EA5E9);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.apple-topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.apple-topic-card:hover::before {
  opacity: 1;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #EEF2FF;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.card-question-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-question-badge.important {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.apple-topic-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.35;
}

.apple-topic-desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.apple-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.apple-card-actions .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Deneme Sınavları Grid */
.apple-deneme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.apple-deneme-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.apple-deneme-card:hover {
  transform: translateY(-3px);
  border-color: #4F46E5;
  box-shadow: 0 10px 24px -4px rgba(79, 70, 229, 0.12);
}

.btn-exam-full {
  background: #0284C7 !important;
  color: #FFFFFF !important;
  border: 1px solid #0284C7 !important;
  border-radius: 14px !important;
  padding: 13px 18px !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn-exam-full:hover {
  background: #0369A1 !important;
  border-color: #0369A1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4) !important;
  color: #FFFFFF !important;
}

.btn-exam-goc {
  background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%) !important;
  border: 1px solid #3730A3 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
}

.btn-exam-goc:hover {
  background: linear-gradient(135deg, #3730A3 0%, #4338CA 100%) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5) !important;
  color: #FFFFFF !important;
}

.btn-exam-afad {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  border: 1px solid #92400E !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.btn-exam-afad:hover {
  background: linear-gradient(135deg, #B45309 0%, #92400E 100%) !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5) !important;
  color: #FFFFFF !important;
}

.deneme-num-badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #4F46E5;
  background: #EEF2FF;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .apple-segmented-bar {
    width: 100%;
    justify-content: flex-start;
  }
  .seg-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .apple-topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   APPLE-GRADE AI SPECIAL QUESTIONS (YAPAY ZEKA ÖZEL SORULARI)
   ============================================================ */
.btn-ai-special {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-ai-special::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-ai-special:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.06);
}

.btn-ai-special:hover::before {
  left: 100%;
}

.btn-ai-special:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Topic Card AI Button */
.topic-btn-ai {
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
  color: #6366F1 !important;
  border: 1px solid #C7D2FE;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.topic-btn-ai:hover {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: #FFFFFF !important;
  border-color: #6366F1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

/* Section Bottom Step AI Button */
.btn-step-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-step-ai:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Completion Box Multi-Buttons Layout */
.completion-box .btn-group-completion {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* AI Hub Specific Styler - Soft 3D Claymorphic Pastel */
.ai-hub-hero {
  background: linear-gradient(135deg, #FFF9F2 0%, #FFF3EC 55%, #F5EFEB 100%);
  color: #242E38;
  border-radius: 28px;
  padding: 40px 36px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(175, 160, 145, 0.14), inset 0 2px 3px rgba(255, 255, 255, 0.95);
  position: relative;
  overflow: hidden;
}

.ai-hub-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(248, 125, 89, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ai-hub-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(216, 234, 226, 0.35) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.ai-hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(175, 160, 145, 0.12);
  color: #F87D59;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ai-hub-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-top: 14px;
  color: #242E38;
}

.ai-hub-desc {
  font-size: 1rem;
  color: #64748B;
  max-width: 700px;
  line-height: 1.6;
  margin-top: 10px;
}

.ai-hub-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ai-stat-pill {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 16px rgba(175, 160, 145, 0.12), inset 0 2px 2px rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease;
}

.ai-stat-pill:hover {
  transform: translateY(-2px);
}

.ai-stat-num {
  font-size: 1.7rem;
  font-weight: 900;
  color: #242E38;
  font-family: inherit;
}

.ai-stat-label {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* AI Hub Card Grid */
.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

.ai-topic-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(175, 160, 145, 0.12), inset 0 2px 3px rgba(255, 255, 255, 0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ai-topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(175, 160, 145, 0.18), inset 0 2px 3px rgba(255, 255, 255, 0.95);
}

.ai-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ai-qcount-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.ai-qcount-badge.heavy {
  background: #FFE5DC;
  color: #C03816;
  border: 1px solid #FFCCBE;
}

.ai-qcount-badge.standard {
  background: #D8EAE2;
  color: #23533E;
  border: 1px solid #B7D9CA;
}

.ai-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #242E38;
  margin-bottom: 8px;
  line-height: 1.35;
}

.ai-card-desc {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ai-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #F4EFE6;
  gap: 10px;
}

.ai-card-score {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

.ai-card-score strong {
  color: #10B981;
}

.btn-ai-special {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F87D59;
  color: #FFFFFF !important;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 4px 14px rgba(248, 125, 89, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-ai-special:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(248, 125, 89, 0.45);
  filter: brightness(1.05);
}

.btn-ai-special:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(248, 125, 89, 0.3);
}

/* ============================================================
   MOBİL ODAKLI MİNİMALİST SINAV MODU (Mobile Minimalist Exam Mode)
   ============================================================ */
.test-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-size: 1.15rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.test-home-btn:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.test-home-btn:active {
  transform: scale(0.95);
}

.test-topbar-center,
.exam-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-open-qmap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-qmap:active {
  background: #F1F5F9;
  transform: scale(0.96);
}

.qmap-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}

@media (min-width: 769px) {
  /* Masaüstünde #question-map içindeki kapatma butonunu gizle (zaten sayfada açık duruyor) */
  #question-map .qmap-drawer-close {
    display: none !important;
  }

  /* Masaüstünde Deneme Sınavı Soru Haritası Modalı */
  #exam-qmap-drawer {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.95) !important;
    max-width: 760px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    background: #FFFFFF !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
    padding: 24px 28px !important;
    z-index: 2000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    border: 1px solid #E2E8F0 !important;
  }

  #exam-qmap-drawer.drawer-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  #exam-qmap-drawer .qmap-drawer-close {
    display: flex !important;
  }
}

.qmap-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qmap-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* 768px ve altı: Telefon ve Küçük Tablet Sınav Görünümü */
@media (max-width: 768px) {
  body.test-active-mode {
    background: #F8FAFC !important;
    overflow-x: hidden !important;
  }

  /* Ana site menüsünü ve altbilgiyi gizle: ekranda sadece sınav kalsın */
  body.test-active-mode .site-header,
  body.test-active-mode .site-footer {
    display: none !important;
  }

  body.test-active-mode .main-content {
    padding-top: 0 !important;
    padding-bottom: 76px !important; /* Alt butonlar için temiz alan */
    margin: 0 !important;
    min-height: 100vh !important;
    background: #F8FAFC !important;
  }

  body.test-active-mode .container,
  body.test-active-mode #test-container,
  body.test-active-mode #exam-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Minimalist Sabit Üst Bar (Top Bar) */
  body.test-active-mode .test-topbar,
  body.test-active-mode .exam-header-bar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.test-active-mode .test-home-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.05rem !important;
  }

  body.test-active-mode .test-progress-text,
  body.test-active-mode #exam-answered-counter {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #4F46E5 !important;
    background: #EEF2FF !important;
    border: 1px solid #C7D2FE !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
  }

  body.test-active-mode .test-timer,
  body.test-active-mode .exam-global-timer {
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    padding: 5px 9px !important;
    border-radius: 10px !important;
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FDE68A !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    font-family: var(--font-mono) !important;
    flex-shrink: 0 !important;
  }

  body.test-active-mode .test-timer.danger,
  body.test-active-mode .exam-global-timer.danger {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border-color: #FECACA !important;
  }

  body.test-active-mode .test-progress-bar {
    height: 3px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #E2E8F0 !important;
  }

  /* Soru Alanı: Kenar boşlukları sıfırlanmış, ferah ve okunaklı */
  body.test-active-mode .question-card,
  body.test-active-mode .exam-question {
    background: #FFFFFF !important;
    border: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 16px 14px 20px 14px !important;
    margin: 0 !important;
  }

  body.test-active-mode .question-number,
  body.test-active-mode .exam-q-number {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
  }

  body.test-active-mode .question-text,
  body.test-active-mode .exam-q-text {
    font-size: 1.04rem !important;
    line-height: 1.65 !important;
    font-weight: 600 !important;
    color: #0F172A !important;
    margin: 12px 0 18px 0 !important;
  }

  /* Şıklar Listesi */
  body.test-active-mode .options-list,
  body.test-active-mode .exam-options {
    gap: 10px !important;
    padding-left: 0 !important;
  }

  body.test-active-mode .option-btn,
  body.test-active-mode .exam-option {
    padding: 12px 14px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 1.5px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    font-size: 0.94rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body.test-active-mode .option-letter,
  body.test-active-mode .exam-option-letter {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }

  body.test-active-mode .option-text,
  body.test-active-mode .exam-option-text {
    font-size: 0.94rem !important;
    line-height: 1.45 !important;
    flex: 1 !important;
  }

  body.test-active-mode .option-btn:active,
  body.test-active-mode .exam-option:active {
    background: #F8FAFC !important;
    transform: scale(0.99) !important;
  }

  body.test-active-mode .option-btn.selected,
  body.test-active-mode .exam-option.selected {
    background: #EEF2FF !important;
    border-color: #4F46E5 !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18) !important;
  }

  /* Parmak Dostu Sabit Alt Çubuk (Bottom Navigation) */
  body.test-active-mode .test-nav,
  body.test-active-mode .mobile-exam-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid #E2E8F0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  body.test-active-mode .test-nav .btn,
  body.test-active-mode .mobile-exam-bottom-nav .btn {
    padding: 11px 12px !important;
    font-size: 0.86rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    flex: 1 !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.test-active-mode #btn-prev,
  body.test-active-mode #exam-btn-prev {
    flex: 0.9 !important;
    background: #F1F5F9 !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
  }

  body.test-active-mode #btn-skip,
  body.test-active-mode #exam-btn-skip {
    flex: 1 !important;
    background: #F8FAFC !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0 !important;
  }

  body.test-active-mode #btn-next,
  body.test-active-mode #exam-btn-next {
    flex: 1.3 !important;
    background: #4F46E5 !important;
    color: #FFFFFF !important;
    border: 1px solid #4F46E5 !important;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.28) !important;
  }

  body.test-active-mode #btn-finish,
  body.test-active-mode #exam-btn-finish {
    flex: 1.3 !important;
    background: #10B981 !important;
    color: #FFFFFF !important;
    border: 1px solid #10B981 !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.28) !important;
  }

  /* Soru Haritası: Mobilde Alttan Kayan Çekmece (Bottom Sheet Drawer) */
  body.test-active-mode .question-map,
  body.test-active-mode #exam-qmap-drawer {
    position: fixed !important;
    bottom: -100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2000 !important;
    background: #FFFFFF !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2) !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding: 18px 16px 36px 16px !important;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    border: 1px solid #E2E8F0 !important;
    display: block !important;
  }

  body.test-active-mode .question-map.drawer-open,
  body.test-active-mode #exam-qmap-drawer.drawer-open {
    bottom: 0 !important;
  }

  body.test-active-mode .qmap-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #F1F5F9 !important;
  }

  body.test-active-mode .qmap-drawer-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #F1F5F9 !important;
    border: none !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748B !important;
  }

  body.test-active-mode .qmap-grid-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  body.test-active-mode .qmap-item,
  body.test-active-mode .exam-qmap-item {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  /* Tek Soru Modu (Deneme Sınavı Mobilde Tek Soru) */
  body.test-active-mode.exam-mobile-mode .exam-question {
    display: none !important;
  }
  body.test-active-mode.exam-mobile-mode .exam-question.active-mobile-q {
    display: block !important;
  }
  body.test-active-mode.exam-mobile-mode .exam-finish-area {
    display: none !important;
  }
}

/* ============================================================
   UNIVERSAL SOFT 3D CLAYMORPHIC CONTENT & MOBILE RESPONSIVENESS
   ============================================================ */
.topic-hero,
.page-hero {
  background: linear-gradient(135deg, #FFF9F2 0%, #FFF3EC 55%, #F5EFEB 100%) !important;
  color: #242E38 !important;
  border-radius: 28px !important;
  padding: 36px 32px !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 12px 30px rgba(175, 160, 145, 0.14), inset 0 2px 3px rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 28px !important;
  overflow: hidden;
}

.topic-hero h1,
.page-hero h1 {
  color: #242E38 !important;
}

.topic-hero p,
.page-hero p,
.page-hero .subtitle {
  color: #64748B !important;
}

/* Universal Table Wrapper for Zero Mobile Horizontal Overflow */
.mevzuat-tablo-wrapper,
.table-wrapper,
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 16px 0 24px 0 !important;
  border-radius: 18px !important;
  background: #FFFFFF !important;
  border: 1px solid #EDE6DC !important;
  box-shadow: 0 4px 12px rgba(175, 160, 145, 0.08) !important;
  display: block !important;
}

.mevzuat-tablo {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0 !important;
}

.mevzuat-tablo th {
  background: #FAF7F2 !important;
  color: #242E38 !important;
  font-weight: 800 !important;
  padding: 12px 16px !important;
  border-bottom: 2px solid #EDE6DC !important;
}

.mevzuat-tablo td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #F5F2EB !important;
  color: #334155 !important;
}

.stat-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-badge-card {
  background: #FFFFFF !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 6px 16px rgba(175, 160, 145, 0.12), inset 0 2px 2px rgba(255, 255, 255, 0.95) !important;
}

.tuzak-kutu {
  background: #FFF9F2 !important;
  border: 1px solid #FFE5DC !important;
  border-radius: 20px !important;
  padding: 18px 22px !important;
  box-shadow: 0 4px 14px rgba(248, 125, 89, 0.08) !important;
  margin: 20px 0 !important;
}

.tuzak-kutu-baslik {
  font-weight: 800 !important;
  color: #C03816 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

/* Mobile responsive layout constraints (Phones <= 768px) */
@media (max-width: 768px) {
  .site-header {
    height: 60px !important;
  }

  .header-inner {
    padding: 0 12px !important;
  }

  .btn-back {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }

  .header-brand {
    font-size: 1.05rem !important;
  }

  .container {
    padding: 0 14px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .topic-hero {
    padding: 20px 16px !important;
    border-radius: 20px !important;
    margin-bottom: 18px !important;
  }

  .topic-hero h1 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .topic-hero p {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .stat-badge-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .stat-badge-card {
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }

  .stat-badge-card h5 {
    font-size: 0.72rem !important;
  }

  .stat-badge-card .stat-val {
    font-size: 1.15rem !important;
  }

  .card {
    padding: 18px 14px !important;
    border-radius: 18px !important;
    margin-bottom: 18px !important;
  }

  .mevzuat-tablo {
    min-width: 440px !important;
    font-size: 0.82rem !important;
  }

  .mevzuat-tablo th,
  .mevzuat-tablo td {
    padding: 10px 12px !important;
  }
}

@media (max-width: 480px) {
  .stat-badge-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   GLOBAL FLOATING TACTILE MOBILE DOCK (IOS STYLE)
   ============================================================ */
.mobile-tactile-bar,
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 10px;
  right: 10px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 9999px !important;
  padding: 6px 4px !important;
  box-shadow: 0 12px 32px rgba(160, 145, 130, 0.32), inset 0 2px 3px rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  z-index: 9999 !important;
  justify-content: space-around !important;
  align-items: center !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}

.mobile-bar-btn,
.mobile-dock-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  background: transparent !important;
  border: none !important;
  color: #64748B !important;
  font-family: inherit !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 6px 2px !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mobile-bar-btn .icon,
.mobile-bar-btn .btn-icon,
.mobile-dock-item .dock-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

.mobile-bar-btn.active,
.mobile-dock-item.active {
  color: #F87D59 !important;
  background: #FFF1EA !important;
}

/* Accordion Clay Upgrades */
.accordion-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(226, 218, 206, 0.75) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(175, 160, 145, 0.08), inset 0 2px 2px rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 14px !important;
  overflow: hidden !important;
  transition: all 0.25s ease !important;
}

.accordion-item:hover {
  box-shadow: 0 6px 20px rgba(175, 160, 145, 0.14) !important;
  border-color: rgba(200, 190, 175, 0.9) !important;
}

.accordion-item.active {
  border-color: #F87D59 !important;
  box-shadow: 0 8px 24px rgba(248, 125, 89, 0.12), inset 0 2px 2px rgba(255, 255, 255, 0.95) !important;
}

.accordion-header {
  padding: 16px 22px !important;
}

.accordion-header h3,
.accordion-header h4 {
  font-weight: 800 !important;
  color: #242E38 !important;
}

.accordion-item.active .accordion-header h3,
.accordion-item.active .accordion-header h4 {
  color: #F87D59 !important;
}

.accordion-item.active .accordion-icon {
  background: #F87D59 !important;
  color: #FFFFFF !important;
}

@media (max-width: 1024px) {
  body {
    padding-bottom: 95px !important;
  }
  .mobile-tactile-bar,
  .mobile-dock {
    display: flex !important;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 1024px) {
    body {
      padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    }
    .mobile-tactile-bar,
    .mobile-dock {
      bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* Universal Table Protection & Mobile Layout Fixes */
@media (max-width: 768px) {
  table,
  .study-table,
  .mevzuat-tablo,
  .clean-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    min-width: 0 !important;
  }

  .apple-topics-grid,
  .ai-cards-grid,
  .apple-deneme-grid,
  .week-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 10px !important;
    gap: 6px !important;
  }
  .nav-back-pill, .btn-back {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
  }
  .header-brand {
    font-size: 1.05rem !important;
  }
  .nav-hata-btn {
    padding: 5px 9px !important;
    font-size: 0.74rem !important;
  }
  .profile-select-btn {
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 380px) {
  .nav-back-pill span:not(.back-pill-arrow),
  .btn-back span:not(.back-pill-arrow) {
    display: none !important;
  }
  .nav-hata-btn span:nth-child(2) {
    display: none !important;
  }
  .header-brand {
    font-size: 0.95rem !important;
  }
}

/* ============================================================
   WORKSPACE COLLAPSIBLE SIDEBAR & TOPIC READER PANEL
   ============================================================ */
.tactile-sidebar {
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.reader-active .tactile-sidebar,
.tactile-sidebar.collapsed {
  width: 74px !important;
  min-width: 74px !important;
  padding: 18px 10px !important;
}

body.reader-active .tactile-sidebar .sidebar-greeting,
body.reader-active .tactile-sidebar .sidebar-target-badge,
body.reader-active .tactile-sidebar .clay-nav-btn span:not(.nav-icon):not(:first-child),
body.reader-active .tactile-sidebar .nav-badge-pill,
body.reader-active .tactile-sidebar .sidebar-crown-card,
.tactile-sidebar.collapsed .sidebar-greeting,
.tactile-sidebar.collapsed .sidebar-target-badge,
.tactile-sidebar.collapsed .clay-nav-btn span:not(.nav-icon):not(:first-child),
.tactile-sidebar.collapsed .nav-badge-pill,
.tactile-sidebar.collapsed .sidebar-crown-card {
  display: none !important;
}

body.reader-active .tactile-sidebar .clay-avatar-circle,
.tactile-sidebar.collapsed .clay-avatar-circle {
  width: 46px !important;
  height: 46px !important;
  font-size: 1.5rem !important;
  margin-bottom: 12px !important;
  border-width: 2px !important;
}

body.reader-active .tactile-sidebar .clay-nav-btn,
.tactile-sidebar.collapsed .clay-nav-btn {
  justify-content: center !important;
  padding: 10px 0 !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  margin: 0 auto !important;
}

/* Topic Reader Controls & Glass Container */
.reader-glass-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 218, 206, 0.85);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(175, 160, 145, 0.12);
  margin-bottom: 14px;
}

.btn-back-to-topics {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FAF7F2;
  border: 1px solid #EDE6DC;
  color: #242E38;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-back-to-topics:hover {
  background: #F87D59;
  color: #FFFFFF;
  border-color: #F87D59;
  box-shadow: 0 4px 12px rgba(248, 125, 89, 0.3);
}

.btn-reader-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-test-action {
  background: #F87D59;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(248, 125, 89, 0.25);
}

.btn-test-action:hover {
  background: #E76A46;
  transform: translateY(-1px);
}

.btn-yz-action {
  background: #6366F1;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
}

.btn-yz-action:hover {
  background: #4F46E5;
  transform: translateY(-1px);
}

.reader-frame-container {
  width: 100%;
  height: calc(100vh - 165px);
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226, 218, 206, 0.85);
  box-shadow: 0 8px 24px rgba(175, 160, 145, 0.12);
  background: #FAF7F2;
}

#topicReaderIframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   MOBILE PROFILE DROPDOWN SHEET (RELIABLE TOUCH COMFORT)
   ============================================================ */
@media (max-width: 768px) {
  .profile-dropdown-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 84px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    border-radius: 26px !important;
    background: #FFFFFF !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 0 100vmax rgba(30, 20, 15, 0.35) !important;
    z-index: 100000 !important;
    padding: 14px 16px !important;
    animation: slideUpMobile 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes slideUpMobile {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reader-frame-container {
    height: calc(100vh - 180px) !important;
    border-radius: 16px !important;
  }

  .btn-yz-action {
    display: none !important;
  }
}